joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407935
Capabilities:
Get cpu information
Get memory capacity
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push edi
push 8
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
push 0x3c
mov dword [ebp - 0x3c], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x7c], ebx
call fcn.0040888c
mov edi, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 8], ebx
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jle 0x407a47
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x407a47
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
shrd eax, ecx, 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
shr ecx, 0x14
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4079f0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push str.MHz
push dword [ebp - 8]
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
jg 0x407a15
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x407a47
mov eax, dword [ebp - 0x18]
cdq
mov ecx, 0xf4240
idiv ecx
cmp eax, ebx
mov dword [ebp - 4], eax
jle 0x407a47
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
mov dword [ebp + 8], eax
shl dword [ebp + 8], 0x10
push ebx
call esi
or eax, dword [ebp + 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x10]
push str._d__d__d__u
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x407da2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46213c], 0
jne 0x407ddd
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407db6
mov dword [ecx*4 + 0x462138], eax
inc ecx
cmp ecx, 0x100
jl 0x407db1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407e0a
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x462138]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x407deb
not eax
pop ebp
ret 0xc
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x401010
Capabilities:
Get common file path

Disassembly:
push edi
sub esp, 0x200
push esp
pop edi
push 0x100
push edi
call sub.KERNEL32.dll_GetSystemDirectoryA
lea edx, [edi + 0x7c]
xor ecx, ecx
push ecx
push ecx
push ecx
push edx
push ecx
push edi
add edi, eax
mov eax, 0x69636d5c
stosd dword es:[edi], eax
mov eax, 0x65766177
stosd dword es:[edi], eax
mov eax, 0x6c6c642e
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
call sub.KERNEL32.dll_FindFirstFileExA
add esp, 0x200
pop edi
cmp eax, 1
jg 0x401058
int3
pushal
jmp fcn.00401290

Function at 0x4015b0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
lea edx, [ebx - 0x38]
push edx
push ebx
mov ebx, esp
push ebx
push 0x2b
add dword [esp], 0x15
push 0xfffffe7c
add dword [esp], 0xaec
mov ebx, section..data
push ebx
sub ebx, ebx
dec ebx
and ebx, sym.imp.KERNEL32.dll_VirtualProtect
call dword [ebx]
pop edx
pop edx
mov esi, 0x403400
mov dword [edx + 0x7c], esi
lea edi, [esi - 0x98]
lea ebx, [0x4020f9]
xor ecx, ecx
mov eax, dword [ebx]
add ebx, 3
inc ebx
push eax
pop dword [edi + 0x98]
add edi, 4
xor dword [edi + 0x94], 0x4ae37c43
nop
sub dword [edi + 0x94], 0x4eac6723
add ecx, 4
cmp ecx, 0x568
jne 0x4015f6
push edx
lea ebx, [edx - 0x12c]
push 0
push 0
push ebx
call sub.KERNEL32.dll_LoadLibraryExA
test eax, eax
jne 0x401627
pop edx
pop ebp
ret 0x10
Function at 0x404340
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404464
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4042b7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404464
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4042b7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404480
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404340
xor eax, eax
push ebp
push 0x404339
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040407c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40431e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4044a0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40431e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404340
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40445a
cmp byte [ebp - 0xd], 0
jne 0x404387
cmp byte [ebp - 0x12], 0
je 0x40445a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4043a0
dec ebx
cmp byte [ebx], 0x2e
je 0x4043af
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40439f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40445a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4043ec
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40445a
cmp byte [ebp - 0xd], 0
je 0x40445a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40445a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408e98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x408fcc
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x408fb6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x408ef5
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x408fb6
cmp dword [ebp - 0x10], 0
jne 0x408f0a
mov eax, dword [ebp - 8]
call fcn.004038e8
mov bl, 1
jmp 0x408fb6
cmp dword [ebp - 0x10], 0x70000000
jb 0x408f18
call fcn.00406fa8
mov esi, dword [ebp - 0x10]
shr esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.004039d8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403d14
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x408ebe
test eax, eax
jne 0x408fb6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x408f66
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x408fb6
mov esi, dword [ebp - 0x10]
shr esi, 0
jmp 0x408f6f
dec esi
test esi, esi
je 0x408f7d
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x408f6e
cmp dword [ebp - 0xc], 7
jne 0x408f88
test esi, esi
je 0x408f88
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.00403db8
cmp dword [ebp - 0xc], 7
jne 0x408fa9
test esi, esi
je 0x408fa9
lea eax, [ebp - 0x14]
call fcn.00403d14
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.0040393c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fd3
lea eax, [ebp - 0x14]
call fcn.004038e8
ret

Function at 0x409978
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40e7d4
mov eax, esi
mov edx, 8
test al, 1
je 0x409994
shr eax, 1
xor eax, 0xedb88320
jmp 0x409996
shr eax, 1
dec edx
jne 0x409987
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x409980
pop esi
ret

Function at 0x40b3c8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040b37c
test al, al
jne 0x40b3e9
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40b435
xor eax, eax
push ebp
push 0x40b425
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403cc4
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b42c
lea eax, [ebp - 0xc]
call fcn.0040b3b8
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b774
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40b77c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40b869
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00408d80
mov edx, dword [ebp - 8]
mov ecx, 0x40b880
xor eax, eax
call fcn.0040b664
push 0
mov eax, dword [ebp - 4]
call fcn.00403cc4
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40b837
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40b796
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040b170
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00405b54
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00409268
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0040b140
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x404f5c]
call fcn.00406fb4
call fcn.00403348
jmp 0x40b796
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040393c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b870
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040390c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040390c
ret

Function at 0x40b890
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x40d500]
cmp dword [eax], 2
jne 0x40b8f8
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40b8b3
xor eax, eax
jmp 0x40b907
lea eax, [esp + 8]
push eax
push 0x40b90c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x40b8f8
xor eax, eax
jmp 0x40b907
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret

Function at 0x40b920
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40b97a
inc esi
xor edi, edi
cmp edi, 1
jne 0x40b946
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40b954
cmp edi, 1
jle 0x40b954
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040b3c8
test eax, eax
jne 0x40b97a
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40b97a
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40b97a
inc edi
dec esi
jne 0x40b936
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x40bddc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40beb1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40bec8
push ebx
push 0x40bed4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403c28
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402824
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403cc4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40be5c
mov al, 0x62
call fcn.0040b9bc
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.0040bdb0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40be65
call fcn.0040bdb0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40beb8
lea eax, [ebp - 4]
call fcn.004038e8
ret

Function at 0x40bf74
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40c028
jmp 0x40c01d
cmp dword [esi + 0x10], 0x1000
jne 0x40c009
test byte [esi + 0x15], 1
jne 0x40c009
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40bfc8
cmp eax, 2
je 0x40bfc8
cmp eax, 0x10
je 0x40bfc8
cmp eax, 0x20
jne 0x40bfdd
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40bfdd
mov bl, 1
xor ebp, ebp
jmp 0x40bfee
mov eax, dword [esi]
add eax, ebp
call fcn.0040bf6c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40bfe1
test bl, bl
je 0x40c009
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40c028
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40bfa0
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4018c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402600
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402600
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401920
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406070]
test esi, esi
jle 0x401a40
mov eax, dword [0x406074]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401954
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4019d7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401940
mov dword [esp], ebx
call fcn.00402310
mov edi, eax
test eax, eax
je 0x401a67
mov eax, dword [0x406074]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402450
mov edx, dword [0x406074]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a47
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4019d0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4019e0
add dword [0x406070], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406074]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004018c0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40195e
mov eax, dword [0x406074]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004018c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004018c0
lea esi, [esi]
nop
Function at 0x401f80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40608c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406084]
sub esp, 4
test ebx, ebx
je 0x401fd5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401fce
test esi, esi
je 0x401fce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fb0
mov dword [esp], 0x40608c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402310
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402335
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402340
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402335
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402388
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40237e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40238a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402370
xor eax, eax
pop ebx
pop esi
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x5b2752e5
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x2af5671d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x10acc000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x10acc00a
jmp 0x10ace00f
jmp fcn.10854058
Function at 0x406fc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x406ffe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x406ff6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407000
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x406fe6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4070d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407101
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407101
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407101
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403910
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fe], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404670], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404604], eax
mov dword [0x4040f6], eax
mov dword [0x4045f0], 0x30
mov dword [0x4045f4], 2
jmp 0x403955
mov dword [0x4045f8], 0x402f69
mov dword [0x4045fc], 0
mov dword [0x404600], 0
mov dword [0x404618], 0x404564
mov dword [0x404610], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404608], eax
mov dword [0x40461c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40460c], eax
push 0x4045f0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040f6]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push str.first
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404668], eax
push 5
push dword [0x404668]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404668]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404620]
jmp 0x403a29
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a1b
mov eax, dword [0x404628]
jmp 0x403a44
call 0x402a90
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219