joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c848
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x469644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x409ba1
cmp byte [edi + 0x49], bl
je 0x409ba1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x409b95
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x409af4
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x409b0c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x409b35
dec eax
je 0x409b39
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x409b90
jmp 0x409b9c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x409b49
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x409b72
cmp ebx, 0x10
jae 0x409b58
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0042728c
add esp, 0x10
cmp esi, eax
jne 0x409b8d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x409b99
test esi, esi
jne 0x409b00
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00403450
jmp 0x409afa
lea ecx, [ebp - 0x2c]
call fcn.004022b0
xor al, al
jmp 0x409ba3
lea ecx, [ebp - 0x2c]
call fcn.004022b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042575d
mov esp, ebp
pop ebp
ret
Function at 0x40b960
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c6ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x469644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004249c8
push 4
mov dword [ebp - 4], 0
call fcn.00427438
mov edi, eax
add esp, 4
test edi, edi
je 0x40b9dc
call fcn.004247c3
mov dword [edi], eax
call fcn.00424582
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00424989
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40b9d2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004249b1
jmp 0x40b9de
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41ce10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d216
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x469644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, 8
mov dword [ebp - 0x45c], edi
cmp dword [edi + 0x14], eax
jb 0x41ce51
mov ecx, dword [edi]
mov edx, dword [0x46db20]
cmp dword [0x46db34], eax
jae 0x41ce64
mov edx, 0x46db20
cmp dword [0x46db18], eax
mov eax, dword [0x46db04]
jae 0x41ce76
mov eax, 0x46db04
push ecx
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x41ce98
xor al, al
jmp 0x41cfe0
xor edx, edx
lea eax, [ebp - 0x420]
mov word [ebp - 0x458], dx
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cec0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x420]
lea esi, [ebp - 0x458]
call fcn.00404210
lea esi, [edi + 0x2c]
lea edi, [ebp - 0x458]
mov dword [ebp - 4], 0
call fcn.00404be0
mov esi, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x444], esi
jb 0x41cf19
mov eax, dword [ebp - 0x458]
push eax
call fcn.00426e9f
add esp, 4
mov edi, dword [ebp - 0x45c]
cmp dword [edi + 0x14], esi
jb 0x41cf28
mov ecx, dword [edi]
jmp 0x41cf2a
mov ecx, edi
mov edx, dword [0x46db3c]
cmp dword [0x46db50], esi
jae 0x41cf3d
mov edx, 0x46db3c
mov eax, dword [0x46db04]
cmp dword [0x46db18], esi
jae 0x41cf4f
mov eax, 0x46db04
push ecx
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edx, edx
lea eax, [ebp - 0x218]
mov word [ebp - 0x43c], dx
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cf90
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x43c]
call fcn.00404210
lea esi, [edi + 0x48]
lea edi, [ebp - 0x43c]
mov dword [ebp - 4], 1
call fcn.00404be0
cmp dword [ebp - 0x428], 8
jb 0x41cfde
mov eax, dword [ebp - 0x43c]
push eax
call fcn.00426e9f
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042575d
mov esp, ebp
pop ebp
ret
Function at 0x421f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c943
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x469644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, 7
xor ecx, ecx
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], ebx
mov word [edi], cx
xor edx, edx
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], ebx
mov word [edi + 0x3c], dx
push ebx
lea eax, [ebp + 8]
push eax
or eax, 0xffffffff
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00403a30
push ebx
lea ecx, [ebp + 0x24]
push ecx
or eax, 0xffffffff
lea ecx, [edi + 0x3c]
call fcn.00403a30
xor eax, eax
lea esi, [ebp - 0x20]
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ebx
mov byte [edi + 0x24], bl
mov dword [edi + 0x28], ebx
call fcn.00406be0
mov esi, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], edx
mov dword [edi + 0x34], esi
mov esi, 8
mov dword [edi + 0x38], eax
mov dword [edi + 0x58], ebx
cmp dword [ebp + 0x1c], esi
jb 0x421fd4
mov edx, dword [ebp + 8]
push edx
call fcn.00426e9f
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], esi
jb 0x421ff5
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00426e9f
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x42575d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x469644]
jne 0x425767
repz ret
jmp fcn.0042bd72

Function at 0x437ec7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x469644]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042e50a
and dword [ebp - 0x14], 0
cmp dword [0x4721c0], 0
mov dword [ebp - 0x18], eax
jne 0x437f7a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x438022
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45d07c
push ebx
call edi
test eax, eax
je 0x438022
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4721c0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4721c4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4721c8], eax
call edi
push eax
call esi
mov dword [0x4721d0], eax
test eax, eax
je 0x437f7a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4721cc], eax
mov eax, dword [0x4721cc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x437fd3
cmp dword [0x4721d0], ecx
je 0x437fd3
push eax
call esi
push dword [0x4721d0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x437fd3
test ebx, ebx
je 0x437fd3
call edi
test eax, eax
je 0x437fca
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x437fca
test byte [ebp - 8], 1
jne 0x437fd3
or dword [ebp + 0x10], 0x200000
jmp 0x438006
mov eax, dword [0x4721c4]
cmp eax, dword [ebp - 0x18]
je 0x438006
push eax
call esi
test eax, eax
je 0x438006
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x438006
mov eax, dword [0x4721c8]
cmp eax, dword [ebp - 0x18]
je 0x438006
push eax
call esi
test eax, eax
je 0x438006
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4721c0]
call esi
test eax, eax
je 0x438022
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x438024
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042575d
leave
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40673a
pop dword [ebp - 0x30]
mov eax, 0x40673a
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x5212d014
add dword [ebp - 0x40], 0xfc3f7537
mov dword [ebp - 0x3c], 0x356c9c6d
add dword [ebp - 0x3c], 0xfcc6afd8
mov dword [ebp - 0x38], 0x30d36d75
add dword [ebp - 0x38], 0x1b78d6b9
mov dword [ebp - 0x34], 0x144b6d48
sub dword [ebp - 0x34], 0x144b6d48
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xe8984a10
add dword [ebp - 0x40], 0x8bda1f46
mov dword [ebp - 0x3c], 0x363fc08f
add dword [ebp - 0x3c], 0xb2ca0e6
mov dword [ebp - 0x38], 0xa280d1a0
add dword [ebp - 0x38], 0xc0ee9acc
mov dword [ebp - 0x34], 0xade1e53a
add dword [ebp - 0x34], 0x521e1ac6
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3a615
push 0
call eax
mov ecx, 0x409b86d8
add ecx, 0xbf64cc9d
mov esi, eax
mov edx, 0x46e400
add edx, dword [ebp - 0x30]
mov ebx, 0x2540de5b
add ebx, 0xf8e81ac2
xor dword [ebp - 0x1c], 0xb3e2b7d9
mov edi, dword [edx]
sub dword [ebp - 0x2c], eax
xor edi, ebx
add dword [ebp - 0x28], 0xc51c3d75
mov dword [esi], edi
sub dword [ebp - 0x24], 0x6e505cca
add esi, 0x4a3c5c37
add esi, 0xb5c3a3cd
add edx, 4
loop 0x406847
add eax, 0x140a7
mov ebx, eax
add eax, 0x351d9550
add eax, 0xcae26ab5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x407e90
Capabilities:
Create directory

Disassembly:
push esi
push ebx
push eax
mov eax, 0x2010
call fcn.0040ee4c
sub esp, eax
mov eax, dword [esp + eax]
mov esi, eax
mov eax, dword [0x429080]
test eax, eax
je 0x407f30
xor ebx, ebx
test eax, eax
jg 0x407ecb
jmp 0x407ee8
add ebx, 1
cmp dword [0x429080], ebx
jle 0x407ee8
mov eax, dword [ebx*4 + 0x428080]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x407ec0
jmp 0x407f22
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
cmp eax, 2
jne 0x407efc
cmp word [esi + 2], 0x3a
je 0x407f22
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x407f78
mov ebx, dword [0x429080]
cmp ebx, 0x3ff
jle 0x407f90
mov eax, 1
add esp, 0x2014
pop ebx
pop esi
ret
mov ecx, 0x1000
mov edx, str._HOME_
lea eax, [esp + 0x10]
call fcn.00407710
test al, al
je 0x407fab
lea eax, [esp + 0x10]
mov ebx, dword [0x429080]
mov dword [esp], eax
call sub.msvcrt.dll__wcsdup
mov dword [ebx*4 + 0x428080], eax
mov eax, dword [0x429080]
add eax, 1
mov dword [0x429080], eax
jmp 0x407eb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407f14
xor eax, eax
jmp 0x407f27
mov dword [esp], esi
call sub.msvcrt.dll__wcsdup
add dword [0x429080], 1
mov dword [ebx*4 + 0x428080], eax
jmp 0x407f22
mov eax, str._HOME_
call fcn.00407dc0
lea esi, [esi]
lea esi, [esi]

Function at 0x408140
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x423040]
test eax, eax
je 0x408179
mov dword [esp + 4], 0x1388
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
jne 0x408190
mov eax, dword [0x423040]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp byte [0x426060], 0
jne 0x4081b0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x423040]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
jmp 0x408168
mov edx, 0x414
lea edi, [esp + 0x12]
mov dword [esp + 0x12], 0
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [esp + 0x16], 3
mov ebx, 0x14
mov dword [esp + 0x1a], 0x426080
mov dword [esp + 0x1e], 0x41613c
mov word [esp + 0x22], dx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x41613c
mov dword [esp], edi
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
jmp 0x408283
test al, 0x10
je 0x408182
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x414
sub esp, 4
mov dword [esp + 0x12], 0
mov dword [esp + 0x16], 3
mov dword [esp + 0x1a], 0x426080
mov dword [esp + 0x1e], 0x41613c
mov word [esp + 0x22], ax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x41613c
mov dword [esp], edi
call esi
sub esp, 4
sub ebx, 1
je 0x408182
mov dword [esp], 0x426080
call ebp
sub esp, 4
cmp eax, 0xffffffff
jne 0x408218
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40de9c
Capabilities:
Write file on windows

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

Function at 0x40ea70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40ea8f
mov eax, 0
jmp 0x40ead3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40eab2
mov eax, 0
jmp 0x40ead3
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40eace
mov eax, 0
jmp 0x40ead3
mov eax, 1
leave
ret

Function at 0x40ead5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40eb34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40eb2c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40eb2c
mov eax, dword [ebp - 4]
jmp 0x40eb48
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40eb09
mov eax, 0
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00408902
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00408902
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00408902
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00408902
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00408902
mov dword [0x41203c], eax
call fcn.00408902
test eax, eax
jge 0x402550
push 8
call fcn.00408902
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00408902
pop ecx
push 1
call fcn.00408902
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00408902
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00408902
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00408902
jmp 0x402495

Function at 0x408902
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x408911
pop dword [ebp - 0x2c]
mov eax, 0xcc11f10
add eax, 0xf37f6a01
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x39ad9
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x47df2abf
sub ecx, 0x47dee0e0
mov ebx, eax
mov edx, 0x99a1eb3c
add edx, 0x669f5088
add edx, dword [ebp - 0x2c]
mov edi, 0x5aceeff1
sub edi, 0x3cf873da
xor dword [ebp - 0x10], 0x50c7271a
mov esi, dword [edx]
add dword [ebp - 0x28], edx
xor esi, edi
xor dword [ebp - 0xc], 0x240c7e87
mov dword [ebx], esi
xor dword [ebp - 0x18], edi
add ebx, 0x64c17931
add ebx, 0x9b3e86d3
add edx, 0x5b1b9ab
add edx, 0xfa4e4659
loop 0x40896b
add eax, 0xa983c92f
add eax, 0x567d5120
xor ebx, ebx
add ebx, eax
add eax, 0xf4f45176
sub eax, 0xf4f45171
mov ecx, 0x53d9d88c
sub ecx, 0x5399d88c
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x4059c1
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00403a0d
mov dword [ebp - 0x14], eax
cmp dword [0x413f30], esi
jne 0x405ab4
push 0x800
push esi
push 0x40e3ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x405a41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x405b94
push esi
push esi
push 0x40e3ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x405b94
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405b94
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x413f30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x413f34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x413f38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413f40], eax
test eax, eax
je 0x405ab1
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x413f3c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x405ad9
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x405acc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x405aee
push 4
pop eax
jmp 0x405b96
cmp dword [ebp - 0x14], esi
je 0x405aee
push dword [0x413f30]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x405ad3
mov eax, dword [0x413f3c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x405b4c
cmp dword [0x413f40], edi
je 0x405b4c
push eax
call ebx
push dword [0x413f40]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x405b4c
test eax, eax
je 0x405b4c
call ecx
test eax, eax
je 0x405b41
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x405b41
test byte [ebp - 8], 1
jne 0x405b4c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x405b7c
mov eax, dword [0x413f34]
cmp eax, edi
je 0x405b79
push eax
call ebx
test eax, eax
je 0x405b79
call eax
mov esi, eax
test esi, esi
je 0x405b79
mov eax, dword [0x413f38]
cmp eax, edi
je 0x405b79
push eax
call ebx
test eax, eax
je 0x405b79
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x413f30]
call ebx
test eax, eax
je 0x405b94
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x405b96
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010df
mov esp, ebp
pop ebp
ret