joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403140
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x119c
call fcn.004177a0
push ebx
push esi
push edi
push 0xc
mov edi, ecx
call fcn.0040420d
add esp, 4
mov esi, eax
lea eax, [ebp - 0x198]
push eax
push 0x202
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
call dword [sym.imp.WSOCK32.dll_WSAStartup]
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4031bb
cmp dword [esi + 8], 0
mov dword [esi + 4], 0
je 0x4031bb
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
push 0x41f724
call fcn.00401ad0
push 0x41f734
mov ecx, esi
call fcn.00404030
mov ecx, esi
call fcn.004040d0
cmp eax, 0xffffffff
je 0x403373
test al, 0x10
jne 0x403373
push 0x41f754
call fcn.00401ad0
add esp, 4
push 0x1000
push 0
push 0x422d08
call fcn.004053b0
add esp, 0xc
push 0x41f540
push edi
push 0x41f558
push str.Report.php
push 0x41f57c
push str.GET__s_s_userid_schunkid_d_HTTP_1.1_r_nHost:__s_r_nConnection:_close_r_n_r_n
push 0x422d08
call fcn.00403620
mov ecx, 0x422d08
add esp, 0x1c
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403240
push 0
sub ecx, edx
push ecx
push 0x422d08
push dword [esi]
call dword [sym.imp.WSOCK32.dll_send]
nop dword [eax]
mov ecx, esi
call fcn.004040d0
test al, 2
jne 0x403270
cmp eax, 0xffffffff
jne 0x403260
push 0
push 0x1000
lea eax, [ebp - 0x1198]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_recv]
mov ebx, eax
mov byte [ebp + ebx - 0x1198], 0
cmp ebx, 0xf
jl 0x40336c
lea ecx, [ebp - 0x1198]
mov edx, str.HTTP_1.1_200_OK
mov edi, 0xb
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40336c
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4032b0
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40336c
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40336c
lea ecx, [ebx - 4]
xor eax, eax
test ecx, ecx
jle 0x403313
cmp byte [ebp + eax - 0x1198], 0xd
jne 0x40330e
cmp byte [ebp + eax - 0x1197], 0xa
jne 0x40330e
cmp byte [ebp + eax - 0x1196], 0xd
jne 0x40330e
cmp byte [ebp + eax - 0x1195], 0xa
je 0x40331a
inc eax
cmp eax, ecx
jl 0x4032e6
push 0x41f788
jmp 0x403378
lea eax, [ebp + eax - 0x1194]
test eax, eax
je 0x403313
cmp dword [eax], 0x4b4f5750
jne 0x403359
push dword [esi]
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0xc
push esi
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
call fcn.0040423d
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add eax, 4
push eax
push 0x41f7a0
call fcn.00401ad0
add esp, 8
jmp 0x403380
push 0x41f77c
jmp 0x403378
push 0x41f740
call fcn.00401ad0
add esp, 4
push dword [esi]
call dword [sym.imp.WSOCK32.dll_closesocket]
push 0xc
push esi
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
call fcn.0040423d
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403be0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov ecx, dword [edi + 0x20]
lea eax, [ecx + esi]
mov dword [edi + 0x20], eax
cmp eax, ecx
jae 0x403c03
inc dword [edi + 0x24]
and ecx, 0x3f
je 0x403c7e
mov eax, 0x40
lea edx, [edi + 0x28]
sub eax, ecx
add edx, ecx
mov dword [ebp - 8], eax
cmp esi, eax
jae 0x403c2f
push esi
push ebx
push edx
call fcn.00405a60
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push ebx
push edx
call fcn.00405a60
add esp, 0xc
add edi, 0x28
xor esi, esi
nop
mov edx, dword [edi + esi*4]
rol edx, 0x10
mov ecx, edx
mov eax, edx
shr ecx, 8
shl eax, 8
xor ecx, eax
shl edx, 8
and ecx, 0xff00ff
xor ecx, edx
mov dword [edi + esi*4], ecx
inc esi
cmp esi, 0x10
jl 0x403c40
mov ecx, dword [ebp - 4]
mov edx, edi
call fcn.004039c0
mov esi, dword [ebp + 8]
add ebx, dword [ebp - 8]
sub esi, dword [ebp - 8]
mov dword [ebp + 8], esi
jmp 0x403c81
add edi, 0x28
cmp esi, 0x40
jb 0x403cf2
shr esi, 6
mov dword [ebp - 8], esi
nop dword [eax]
movups xmm0, xmmword [ebx]
xor esi, esi
movups xmmword [edi], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [ebx + 0x30]
movups xmmword [edi + 0x30], xmm0
mov edx, dword [edi + esi*4]
rol edx, 0x10
mov ecx, edx
mov eax, edx
shr ecx, 8
shl eax, 8
xor ecx, eax
shl edx, 8
and ecx, 0xff00ff
xor ecx, edx
mov dword [edi + esi*4], ecx
inc esi
cmp esi, 0x10
jl 0x403cb0
mov ecx, dword [ebp - 4]
mov edx, edi
call fcn.004039c0
mov esi, dword [ebp + 8]
add ebx, 0x40
sub esi, 0x40
sub dword [ebp - 8], 1
mov dword [ebp + 8], esi
jne 0x403c90
test esi, esi
je 0x403d01
push esi
push ebx
push edi
call fcn.00405a60
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
push esi
mov ecx, 0x3f
push edi
mov eax, dword [ebx + 0x20]
and eax, 0x3f
lea esi, [eax + ebx]
sub ecx, eax
mov byte [esi + 0x28], 0x80
add esi, 0x29
cmp ecx, 8
jae 0x403d86
push ecx
push 0
push esi
call fcn.004053b0
add esp, 0xc
lea edi, [ebx + 0x28]
xor esi, esi
nop dword [eax]
mov edx, dword [edi + esi*4]
rol edx, 0x10
mov ecx, edx
mov eax, edx
shr ecx, 8
shl eax, 8
xor ecx, eax
shl edx, 8
and ecx, 0xff00ff
xor ecx, edx
mov dword [edi + esi*4], ecx
inc esi
cmp esi, 0x10
jl 0x403d50
mov edx, edi
mov ecx, ebx
call fcn.004039c0
push 0x38
push 0
push edi
jmp 0x403d8f
jbe 0x403d97
lea eax, [ecx - 8]
push eax
push 0
push esi
call fcn.004053b0
add esp, 0xc
mov edx, dword [ebx + 0x20]
mov eax, edx
mov ecx, dword [ebx + 0x24]
shr eax, 0x1d
shl ecx, 3
or ecx, eax
lea eax, [edx*8]
mov dword [ebx + 0x60], ecx
lea edx, [ebx + 0x28]
mov dword [ebx + 0x64], eax
xor edi, edi
nop dword [eax]
mov esi, dword [edx + edi*4]
rol esi, 0x10
mov ecx, esi
mov eax, esi
shr ecx, 8
shl eax, 8
xor ecx, eax
shl esi, 8
and ecx, 0xff00ff
xor ecx, esi
mov dword [edx + edi*4], ecx
inc edi
cmp edi, 0xe
jl 0x403dc0
mov ecx, ebx
call fcn.004039c0
mov ecx, dword [ebp - 4]
lea edx, [ebx + 2]
add ecx, 2
mov esi, 8
nop dword [eax + eax]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx + 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 4], al
movzx eax, byte [edx - 4]
mov byte [ecx - 5], al
movzx eax, byte [edx - 3]
mov byte [ecx - 6], al
sub esi, 1
jne 0x403e00
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403e30
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
push edi
mov edi, dword [0x422bc0]
mov esi, edx
push 0x40
push 0
lea eax, [edi + 0x28]
mov dword [edi], 0x6a09e667
push eax
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
call fcn.004053b0
push 0x19
mov edx, esi
mov ecx, edi
call fcn.00403be0
mov edx, dword [0x422bcc]
add esp, 0x10
mov ecx, edi
call fcn.00403d10
mov esi, dword [0x422bc8]
xor ebx, ebx
test esi, esi
je 0x403ed6
mov eax, dword [0x422bcc]
dec esi
mov edx, dword [0x422bc4]
movzx ecx, byte [eax + esi]
movzx eax, byte [edx + esi]
add ebx, eax
add ebx, ecx
mov byte [edx + esi], bl
shr ebx, 8
test esi, esi
jne 0x403eb4
push dword [0x422bd0]
push 0
push dword [0x422bcc]
call fcn.004053b0
add esp, 0xc
mov dword [0x422bd4], 0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x403f00
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x422bd4]
mov edx, dword [0x422bd0]
push ebx
push edi
mov edi, 0x40
mov ebx, 0x425d08
cmp ecx, edi
jae 0x404002
push esi
mov eax, dword [0x422bcc]
sub eax, ecx
push ecx
add eax, edx
push eax
push ebx
call fcn.00405a60
mov esi, dword [0x422bc0]
add ebx, dword [0x422bd4]
sub edi, dword [0x422bd4]
push 0x40
lea eax, [esi + 0x28]
mov dword [ebp - 4], ebx
push 0
push eax
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
call fcn.004053b0
push dword [0x422bc8]
mov edx, dword [0x422bc4]
mov ecx, esi
call fcn.00403be0
mov edx, dword [0x422bcc]
add esp, 0x1c
mov ecx, esi
call fcn.00403d10
mov eax, dword [0x422bc8]
test eax, eax
je 0x403feb
nop dword [eax]
mov edx, dword [0x422bc4]
dec eax
mov bl, byte [edx + eax]
lea ecx, [ebx + 1]
mov byte [edx + eax], cl
test bl, bl
jne 0x403fe8
test eax, eax
jne 0x403fd0
mov ebx, dword [ebp - 4]
mov edx, dword [0x422bd0]
mov ecx, edx
mov dword [0x422bd4], ecx
cmp edi, ecx
ja 0x403f25
pop esi
mov eax, dword [0x422bcc]
sub eax, ecx
push edi
add eax, edx
push eax
push ebx
call fcn.00405a60
sub dword [0x422bd4], edi
add esp, 0xc
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404030
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 1
je 0x4040b8
cmp eax, 2
je 0x4040b8
cmp eax, 0xffffffff
jne 0x404082
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4040c4
cmp dword [esi + 8], 0
mov dword [esi + 4], 0
je 0x404082
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
push dword [ebp + 8]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0x50
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_connect]
mov dword [esi + 4], 1
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4040d0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], 0xffffffff
je 0x404181
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x114], eax
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x21c], eax
push ecx
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x324], eax
push ecx
inc eax
mov dword [ebp - 8], edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x328], 1
call dword [sym.imp.WSOCK32.dll_select]
mov ebx, dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
lea eax, [ebp - 0x118]
push eax
push dword [esi]
call ebx
test eax, eax
je 0x4041b3
push 2
push 8
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jns 0x40418b
push dword [esi]
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jne 0x4041a9
push dword [esi]
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov edi, 1
mov dword [esi], 0xffffffff
jmp 0x4041b3
test eax, eax
mov ecx, 2
cmovg edi, ecx
lea eax, [ebp - 0x220]
push eax
push dword [esi]
call ebx
test eax, eax
je 0x4041d7
cmp dword [esi + 4], 1
jne 0x4041d4
mov dword [esi + 4], 2
or edi, 4
jmp 0x4041d7
or edi, 8
lea eax, [ebp - 0x328]
push eax
push dword [esi]
call ebx
test eax, eax
je 0x404204
cmp dword [esi + 4], 1
jne 0x404181
push dword [esi]
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
or edi, 0x10
mov dword [esi], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404a67
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404aa6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404aa6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404aa6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404aa6
cmp dword [ecx + 0x74], 0xe
jbe 0x404aa6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40fa63
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040f6e0

Function at 0x417330
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41735d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41735d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402ea8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040394c
test esi, esi
jne 0x402ede
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004039cc
jmp 0x402efc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402dac
mov edi, eax
test esi, esi
je 0x402efc
cmp dword [ebx], 0
je 0x402efc
dec esi
jmp 0x402ee5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403034
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40600c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4030ac
xor eax, eax
push ebp
push 0x4030a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4030e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4030ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40600c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40600c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4037cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x407038], 0
je 0x40382d
cmp word [0x40720c], 0xd7b2
jne 0x4037f5
cmp dword [0x407214], 0
jbe 0x4037f5
mov eax, 0x407208
call dword [0x407224]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403854
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x406018], 0
jne 0x403849
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x401e1e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4a4fec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x4800b8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], eax
mov eax, 0x47fd28
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
movzx eax, byte [ebp + 8]
push eax
push 0x4a93b8
push 0x47fce4
lea eax, [ebp - 0xcc]
push 0x18
push eax
mov dword [ebp - 0xcc], 0x4800ac
mov dword [ebp - 0xc8], 0x480094
mov dword [ebp - 0xc4], 0x48008c
mov dword [ebp - 0xc0], 0x480078
mov dword [ebp - 0xbc], 0x480070
mov dword [ebp - 0xb8], 0x48005c
mov dword [ebp - 0xb4], 0x480054
mov dword [ebp - 0xb0], str.QQSV
mov dword [ebp - 0xac], 0x480038
mov dword [ebp - 0xa8], 0x480028
mov dword [ebp - 0xa4], 0x48001c
mov dword [ebp - 0xa0], 0x480004
mov dword [ebp - 0x9c], 0x47fff8
mov dword [ebp - 0x98], 0x47ffe0
mov dword [ebp - 0x94], 0x47ffd4
mov dword [ebp - 0x90], 0x47ffb8
mov dword [ebp - 0x8c], 0x47ffac
mov dword [ebp - 0x88], 0x47ff94
mov dword [ebp - 0x84], 0x47ff84
mov dword [ebp - 0x80], 0x47ff68
mov dword [ebp - 0x7c], 0x47ff54
mov dword [ebp - 0x78], 0x47ff3c
mov dword [ebp - 0x74], 0x47ff2c
mov dword [ebp - 0x70], 0x47ff10
mov dword [ebp - 0x6c], 0x47ff00
mov dword [ebp - 0x68], 0x47fee4
mov dword [ebp - 0x64], 0x47fed0
mov dword [ebp - 0x60], 0x47feb0
mov dword [ebp - 0x5c], 0x47fea4
mov dword [ebp - 0x58], 0x47fe8c
mov dword [ebp - 0x54], 0x47fe74
mov dword [ebp - 0x50], 0x47fe50
mov dword [ebp - 0x4c], 0x47fe40
mov dword [ebp - 0x44], 0x47fe2c
mov dword [ebp - 0x3c], 0x47fe20
mov dword [ebp - 0x38], 0x47fe08
mov dword [ebp - 0x34], 0x47fdf8
mov dword [ebp - 0x30], 0x47fddc
mov dword [ebp - 0x2c], 0x47fdcc
mov dword [ebp - 0x28], 0x47fdb0
mov dword [ebp - 0x24], 0x47fda4
mov dword [ebp - 0x20], 0x47fd8c
mov dword [ebp - 0x1c], 0x47fd80
mov dword [ebp - 0x18], 0x47fd68
mov dword [ebp - 0x14], 0x47fd5c
mov dword [ebp - 0x10], 0x47fd44
call fcn.00401da4
mov ecx, dword [ebp - 4]
add esp, 0x14
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0043cac0
leave
ret
Function at 0x46ff87
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4314bb
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x453460]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebx], 0
mov dword [ebp - 0x44], edx
mov dword [eax], 0
mov byte [edx], 0
mov edx, ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], eax
call fcn.0046fe47
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x46ffe8
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [0x433180]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x47001b
push dword [ebp - 0x28]
call fcn.00473a8d
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x47003b
xor al, al
jmp 0x470188
push 0xc
call fcn.00473add
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
mov edi, dword [fcn.0043319c]
test eax, eax
je 0x470075
mov dword [eax], 0x44c2a4
mov byte [ebp - 4], 2
mov dword [eax], 0x44c4c8
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov byte [ebp - 4], 1
jmp 0x470077
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 4
push 0
push 0
push 0
push 2
push 0
push esi
call dword [0x433068]
mov esi, eax
test esi, esi
jne 0x4700a6
xor bl, bl
jmp 0x470177
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x2c], esi
call fcn.00471f07
mov byte [ebp - 4], 5
push 0
push 0
push 0
push 4
push esi
call dword [0x433118]
mov edi, eax
test edi, edi
jne 0x4700d8
xor bl, bl
jmp 0x47016b
mov eax, dword [0x433114]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], edi
call fcn.00471f97
mov byte [ebp - 4], 6
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x470124
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
je 0x470112
mov dword [ebx], 1
jmp 0x47015d
movzx eax, word [esi + 4]
cmp eax, 0x14c
je 0x470130
cmp eax, 0x8664
je 0x470128
xor bl, bl
jmp 0x47015f
mov dword [ebx], 3
jmp 0x470154
mov edx, edi
mov dword [ebx], 2
mov ecx, esi
call fcn.004701a7
test eax, eax
je 0x470154
mov eax, dword [eax + 0x10]
test al, 1
je 0x470154
test al, 2
jne 0x470154
mov eax, dword [ebp - 0x44]
mov byte [eax], 1
mov ecx, dword [ebp - 0x34]
movzx eax, word [esi + 0x5c]
mov dword [ecx], eax
mov bl, 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0046b4f7
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.0046b4f7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0046b4f7
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047313a
mov esp, ebp
pop ebp
ret
Function at 0x4701a7
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
test esi, esi
jne 0x4701bc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xec]
push edi
test eax, eax
je 0x470220
mov edi, dword [esi + 0xe8]
test edi, edi
je 0x470220
cmp eax, 0x48
jne 0x470220
movzx eax, word [esi + 0x14]
lea edx, [esi + 0x18]
push ebx
movzx ebx, word [esi + 6]
add edx, eax
xor ecx, ecx
test ebx, ebx
je 0x470202
mov esi, dword [edx + 0xc]
cmp edi, esi
jb 0x4701fa
mov eax, dword [edx + 0x10]
add eax, esi
cmp edi, eax
jb 0x470202
inc ecx
add edx, 0x28
cmp ecx, ebx
jb 0x4701ea
cmp ebx, ecx
pop ebx
je 0x470220
mov ecx, dword [edx + 0x14]
xor eax, eax
sub ecx, dword [edx + 0xc]
add ecx, edi
add ecx, dword [ebp - 4]
pop edi
pop esi
cmp dword [ecx], 0x48
cmove eax, ecx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004a06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10004a5f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10004a5f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10004a50
cmp esi, ecx
jae 0x10004a5f
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10004a3e
cmp esi, ecx
jae 0x10004a5f
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x10004a61
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10005b24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x10005b69
call fcn.10016552
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10005b66
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10005bb0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x10005b8c
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1017b9f0]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x10005bad
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x1017b9f0]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc