joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499b00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x499b1f
mov ecx, dword [ebp + 8]
xor eax, eax
mov ax, word [ecx]
mov edx, dword [eax*4 + 0x4fa05c]
mov dword [ebp + 0x14], edx
mov eax, dword [ebp + 0x10]
push esi
test eax, eax
jne 0x499b2e
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
test edx, edx
je 0x499c4e
lea eax, [ebp - 0x14]
push ebx
push edi
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
mov eax, dword [esi]
mov ebx, dword [esi + 4]
test eax, 0xfffe
jne 0x499b95
cmp al, 1
je 0x499b6e
mov al, 6
mov dword [edi + 4], ebx
xor ebx, ebx
mov ecx, dword [esi + 8]
mov bh, byte [esi + 0xc]
mov dword [edi], eax
mov bl, byte [esi + 0xd]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
jmp 0x499b95
mov al, byte [esi + 3]
mov bl, byte [esi + 5]
mov bh, byte [esi + 4]
mov ah, byte [esi + 2]
shl eax, 0x10
xor ecx, ecx
shl ebx, 0x10
mov al, 2
mov bl, byte [esi + 7]
mov dword [edi + 8], ecx
mov bh, byte [esi + 6]
mov dword [edi + 0xc], ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [edx + 8]
lea ecx, [ebp - 0x14]
push 0x10
push ecx
mov ecx, dword [ebp + 0xc]
push 0
push eax
push ecx
push edx
call sub.WSOCK32.dll_sendto
mov ecx, dword [ebp + 0x10]
pop edi
cmp eax, ecx
pop ebx
jne 0x499bbe
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xffffffff
jne 0x499c4e
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x499c4e
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
xor edx, edx
mov ecx, 0x4d2a1c
cmp dword [ecx], esi
je 0x499bf3
add ecx, 0xc
inc edx
cmp ecx, 0x4d2b90
jl 0x499be1
jmp 0x499c22
lea ecx, [edx + edx*2]
xor eax, eax
shl ecx, 2
mov al, byte [ecx + 0x4d2a19]
mov dword [0x4fa06c], eax
mov eax, dword [ecx + 0x4d2a20]
mov dword [0x4fa068], eax
mov al, byte [ecx + 0x4d2a18]
test al, al
je 0x499c22
mov ecx, dword [ebp + 0x14]
mov byte [ecx + 0xd], 1
cmp edx, 0x1f
jne 0x499c4e
push esi
push str.Unknown_Error__u
push 0x4f5fcc
call fcn.004b57c2
add esp, 0xc
mov dword [0x4fa06c], 1
mov dword [0x4fa068], 0x4f5fcc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x499c60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 0x18]
push esi
push edi
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov eax, dword [esi]
mov ebx, dword [esi + 4]
test eax, 0xfffe
jne 0x499ccd
cmp al, 1
je 0x499ca6
mov al, 6
mov dword [edi + 4], ebx
xor ebx, ebx
mov ecx, dword [esi + 8]
mov bh, byte [esi + 0xc]
mov dword [edi], eax
mov bl, byte [esi + 0xd]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
jmp 0x499ccd
mov al, byte [esi + 3]
mov bl, byte [esi + 5]
mov bh, byte [esi + 4]
mov ah, byte [esi + 2]
shl eax, 0x10
xor ecx, ecx
shl ebx, 0x10
mov al, 2
mov bl, byte [esi + 7]
mov dword [edi + 8], ecx
mov bh, byte [esi + 6]
mov dword [edi + 0xc], ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
push 0x48
call fcn.0048b010
mov ecx, dword [str.SOCK]
mov edi, dword [ebp + 8]
mov esi, eax
xor eax, eax
add esp, 4
mov dword [esi], ecx
mov ax, word [edi]
xor ecx, ecx
mov edx, dword [eax*4 + 0x4c1904]
mov cx, word [eax*2 + 0x4c18f8]
push edx
push 2
push ecx
call sub.WSOCK32.dll_socket
lea edx, [ebp - 4]
push 4
push edx
push 0x20
push 0xffff
push eax
mov dword [esi + 8], eax
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x499da9
lea ecx, [ebp - 0x18]
push 0x10
push ecx
push eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x499da9
mov edx, dword [0x4f6010]
mov eax, dword [esi + 8]
push 1
push 0x402
push edx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
test eax, eax
jne 0x499da9
mov byte [esi + 0xc], 2
mov dword [esi + 0x3c], 0x226
mov edx, dword [edi]
lea ecx, [esi + 0x20]
mov dword [esi + 0x20], edx
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov edx, dword [edi + 8]
mov dword [ecx + 8], edx
mov ax, word [edi + 0xc]
mov edx, dword [esi + 8]
mov word [ecx + 0xc], ax
mov eax, dword [0x4d29d4]
test eax, eax
mov ecx, 0x4d29d0
je 0x499d97
cmp dword [eax + 8], edx
jae 0x499d97
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x499d89
mov edx, dword [ecx + 4]
mov eax, esi
mov dword [esi + 4], edx
mov dword [ecx + 4], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
xor edx, edx
mov ecx, 0x4d2a1c
cmp dword [ecx], edi
je 0x499dc9
add ecx, 0xc
inc edx
cmp ecx, 0x4d2b90
jl 0x499db7
jmp 0x499df9
lea ecx, [edx + edx*2]
xor eax, eax
shl ecx, 2
mov al, byte [ecx + 0x4d2a19]
mov dword [0x4fa06c], eax
mov eax, dword [ecx + 0x4d2a20]
mov dword [0x4fa068], eax
mov al, byte [ecx + 0x4d2a18]
test al, al
je 0x499df9
test esi, esi
je 0x499df9
mov byte [esi + 0xd], 1
cmp edx, 0x1f
jne 0x499e25
push edi
push str.Unknown_Error__u
push 0x4f5fcc
call fcn.004b57c2
add esp, 0xc
mov dword [0x4fa06c], 1
mov dword [0x4fa068], 0x4f5fcc
mov eax, dword [esi + 8]
test eax, eax
je 0x499e32
push eax
call sub.WSOCK32.dll_closesocket
push esi
call fcn.0048b120
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499f20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x400
push ebx
push esi
mov esi, dword [esp + 0x40c]
push edi
test esi, esi
jne 0x499f88
mov dword [0x4fa06c], 0x18
xor ecx, ecx
mov eax, 0x4d2b90
cmp byte [eax], 0x18
je 0x499f57
add eax, 8
inc ecx
cmp eax, 0x4d2ba8
jl 0x499f45
jmp 0x499f63
mov eax, dword [ecx*8 + 0x4d2b94]
mov dword [0x4fa068], eax
mov ecx, dword [0x4fa068]
push ecx
push str.netGetHostAddr
push str.NET:__s_failed:__s
call fcn.0048edc0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x400
ret
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [0x4d2bac], eax
je 0x499f9e
push eax
jmp 0x49a0a6
call fcn.0049a220
mov eax, dword [0x4f6010]
lea edx, [esp + 0xc]
push 0x400
push edx
push esi
push 0x404
push eax
call sub.WSOCK32.dll_WSAAsyncGetHostByName
mov ecx, dword [0x4d29cc]
mov ebx, eax
mov edi, dword [ecx]
call fcn.0048db40
mov esi, eax
add esi, edi
xor edi, edi
cmp word [0x4fa064], 0x404
je 0x499ff9
call fcn.0048db40
mov edi, eax
cmp edi, esi
jae 0x49a030
call fcn.0048de10
cmp word [0x4fa064], 0x404
jne 0x499fde
cmp edi, esi
jae 0x49a030
cmp word [0x4f5fc8], 0
sete al
test al, al
jne 0x49a09d
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
xor edx, edx
mov ecx, 0x4d2a1c
cmp dword [ecx], esi
je 0x49a046
add ecx, 0xc
inc edx
cmp ecx, 0x4d2b90
jl 0x49a01e
jmp 0x49a065
test ebx, ebx
je 0x49a03a
push ebx
call sub.WSOCK32.dll_WSACancelAsyncRequest
push 0x274c
call sub.WSOCK32.dll_WSASetLastError
jmp 0x49a010
lea ecx, [edx + edx*2]
shl ecx, 2
xor eax, eax
mov al, byte [ecx + 0x4d2a19]
mov ecx, dword [ecx + 0x4d2a20]
mov dword [0x4fa06c], eax
mov dword [0x4fa068], ecx
cmp edx, 0x1f
jne 0x49a091
push esi
push str.Unknown_Error__u
push 0x4f5fcc
call fcn.004b57c2
add esp, 0xc
mov dword [0x4fa06c], 1
mov dword [0x4fa068], 0x4f5fcc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x400
ret
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_ntohl
pop edi
mov dword [0x4d2bac], eax
pop esi
mov eax, 0x4d2ba8
pop ebx
add esp, 0x400
ret
Function at 0x49c080
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x4d049c]
test eax, eax
je 0x49c0c7
push esi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push 0x4fa6b8
push 0
push esi
push 0x49c180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push esi
mov dword [0x4fa6c4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x4bbee1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4def20
cmp edx, dword [eax]
je 0x4bbf03
add eax, 8
inc ecx
cmp eax, 0x4defb0
jl 0x4bbef4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4def20]
jne 0x4bc031
mov eax, dword [0x50df38]
cmp eax, 1
je 0x4bc00b
test eax, eax
jne 0x4bbf34
cmp dword [0x4dea04], 1
je 0x4bc00b
cmp edx, 0xfc
je 0x4bc031
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbf6b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bc040
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004b9260
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bbfae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004b9260
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c427c
push edi
call fcn.004b62e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bc040
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc050
lea eax, [ebp - 0xa0]
push 0x4c425c
push eax
call fcn.004bc050
push dword [esi + 0x4def24]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc050
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004be2d4
add esp, 0x2c
pop edi
jmp 0x4bc031
lea eax, [ebp + 8]
lea esi, [esi + 0x4def24]
push 0
push eax
push dword [esi]
call fcn.004b9260
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4b9e70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x77000]
push edi
jmp 0x4b9e8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b9e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b9e80
mov eax, 1
add ebx, ebx
jne 0x4b9ea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b9eb4
jne 0x4b9ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b9ed3
dec eax
add ebx, ebx
jne 0x4b9ec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b9e98
add ebx, ebx
jne 0x4b9ecf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b9f25
xor ecx, ecx
sub eax, 3
jb 0x4b9eeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b9f5a
sar eax, 1
mov ebp, eax
jmp 0x4b9ef6
add ebx, ebx
jne 0x4b9ef6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b9ec4
inc ecx
add ebx, ebx
jne 0x4b9f04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b9ec4
add ebx, ebx
jne 0x4b9f11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b9f06
jne 0x4b9f22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b9f06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b9f44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b9f36
jmp 0x4b9e86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b9f44
add edi, ecx
jmp 0x4b9e86
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b9f62
cmp byte [edi], 0x13
jne 0x4b9f62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b9f67
lea edi, [esi + 0xb5000]
mov eax, dword [edi]
or eax, eax
je 0x4b9fdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc29e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc2b3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b9f94
mov ecx, edi
jns 0x4b9fc3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc2b40]
or eax, eax
je 0x4b9fd9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b9fb1
call dword [esi + 0xc2b50]
mov ebp, dword [esi + 0xc2b44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4ba013
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x6d6289ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d62e944]
jne 0x6d6289f4
repz ret
jmp fcn.6d629069

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x40e791
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x41279f
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x4091b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov esi, eax
test edi, edi
je 0x409375
test esi, esi
je 0x409375
cmp dword [ebp + 0xc], 0
je 0x409375
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00409130
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], eax
jge 0x4091f1
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], ecx
mov eax, 0x13
mov dword [ebp - 8], 0
js 0x4092eb
cmp dword [ebp - 8], ebx
jne 0x40924f
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x4092bd
mov dword [ebp - 0xc], eax
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [edi + 2]
shl ecx, 8
or ecx, edx
shl ecx, 8
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_m]
mov byte [esi], dl
shl ecx, 6
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_m]
shl ecx, 6
mov byte [esi + 1], dl
mov edx, ecx
shr edx, 0x1a
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_m]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_m]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
dec dword [ebp - 0xc]
jne 0x409256
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
lea edx, [edx + eax*4 + 2]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
inc edx
mov word [esi], 0xa0d
add esi, 2
mov dword [ebp - 8], edx
cmp edx, ebx
jle 0x409233
cmp dword [ebp - 4], 0
je 0x4092eb
sub esi, 2
sub dword [ebp - 4], 2
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
sub ecx, eax
je 0x409361
lea edx, [ecx + 1]
test edx, edx
je 0x409361
xor eax, eax
test ecx, ecx
jle 0x409306
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x409314
movzx ebx, byte [edi]
or eax, ebx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x409321
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test edx, edx
jle 0x409344
mov ecx, edx
lea ebx, [ebx]
mov edi, eax
shr edi, 0x1a
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_m]
mov byte [esi], bl
inc esi
shl eax, 6
dec ecx
jne 0x409330
add dword [ebp - 4], edx
mov edi, 4
sub edi, edx
test edi, edi
jle 0x40935e
push edi
push 0x3d
push esi
call fcn.004391a0
add esp, 0xc
add dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
pop ebx
pop edi
mov dword [edx], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409450
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x46a668], 0
jne 0x40956f
call fcn.0040e0b0
lea eax, [ebp - 0x24]
test eax, eax
je 0x40949c
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409492
lea ecx, [ebp - 0x24]
push ecx
call eax
jmp 0x40949c
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x4094b1
cmp ax, 6
mov eax, 0x20
jne 0x4094b6
mov eax, 0x40
push esi
mov dword [0x468df4], eax
call fcn.0040e8a0
mov esi, dword [ebp + 0xc]
mov eax, 0x46a6f0
mov edx, 0x10
sub esi, eax
lea ecx, [edx + 0x7fffffee]
test ecx, ecx
je 0x4094ee
movzx ecx, word [esi + eax]
test cx, cx
je 0x4094ee
mov word [eax], cx
add eax, 2
dec edx
jne 0x4094d0
jmp 0x4094f2
test edx, edx
jne 0x4094f5
sub eax, 2
mov esi, dword [ebp + 8]
xor edx, edx
mov word [eax], dx
mov eax, 0x46a690
mov edx, 0x10
sub esi, eax
lea esp, [esp]
lea ecx, [edx + 0x7fffffee]
test ecx, ecx
je 0x40952e
movzx ecx, word [esi + eax]
test cx, cx
je 0x40952e
mov word [eax], cx
add eax, 2
dec edx
jne 0x409510
jmp 0x409532
test edx, edx
jne 0x409535
sub eax, 2
xor edx, edx
push edx
push edx
push edx
push edx
mov word [eax], dx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x46a618
mov dword [0x46a66c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0x409600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x46a668], eax
pop esi
mov esp, ebp
pop ebp
ret