joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

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

Function at 0x401130
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x404584]
push eax
mov ecx, dword [str.Usage:__s_______files__n_______print_usage_nIf_no_files_are_specified__stdin_is_used_n]
push ecx
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR90.dll_exit]
pop ebp
ret
Function at 0x41b2d2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00413428
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41b30a
xor eax, eax
jmp 0x41b336
cmp esi, dword [ebp - 4]
je 0x41b333
cmp dword [ebp + 0xc], 0
je 0x41b333
push dword [edi + 0x9c]
call fcn.0041aee0
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040e2d6
pop ecx
pop ecx
cmp esi, eax
je 0x41b306
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x421c43
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00421ab9
Function at 0x40a2a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 3
jne 0x40a3b1
push edi
mov edi, dword [esp + 0x38]
xor esi, esi
push edi
call fcn.0041b0d0
mov eax, dword [esp + 0x38]
mov edx, dword [edi + 0x78]
add esp, 4
mov dword [esp + esi*4 + 0x18], esi
mov eax, dword [ebp + eax*4 + 0x1c]
add edi, 0x7c
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + esi*4 + 0x24], eax
inc esi
cmp esi, 3
jl 0x40a2bc
mov ecx, 4
lea edx, [esp + 0x24]
xor edi, edi
sub ecx, edx
mov dword [esp + 0x14], ecx
lea eax, [edi + 1]
cmp eax, 3
mov dword [esp + 0x10], eax
jge 0x40a33d
lea eax, [esp + edi*4 + 0x24]
add ecx, eax
mov esi, dword [esp + ecx + 0x24]
mov edx, dword [eax]
cmp edx, esi
jle 0x40a32d
mov ebx, dword [eax]
mov edx, dword [esp + ecx + 0x18]
mov dword [esp + ecx + 0x24], ebx
mov ebx, dword [esp + edi*4 + 0x18]
mov dword [esp + ecx + 0x18], ebx
mov dword [eax], esi
mov dword [esp + edi*4 + 0x18], edx
add ecx, 4
cmp ecx, 0xc
jl 0x40a30b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edi, eax
cmp edi, 2
jl 0x40a2f9
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
mov eax, ebx
shl eax, 5
sub eax, ebx
lea ecx, [esi + eax*4]
push ecx
call fcn.0041b1e0
add esp, 4
test eax, eax
pop edi
jg 0x40a37f
mov ebx, dword [esp + 0x18]
mov edx, ebx
shl edx, 5
sub edx, ebx
lea eax, [esi + edx*4]
push eax
call fcn.0041b1e0
add esp, 4
test eax, eax
jle 0x40a396
mov eax, dword [esp + 0x30]
pop esi
mov byte [eax + ebp + 0xc44bd], bl
pop ebp
movsx eax, bl
pop ebx
add esp, 0x20
ret 8
mov eax, dword [esp + 0x30]
mov cl, byte [esp + 0x1c]
pop esi
mov byte [eax + ebp + 0xc44bd], cl
pop ebp
movsx eax, cl
pop ebx
add esp, 0x20
ret 8
mov esi, dword [esp + 0x30]
mov dl, byte [eax + 4]
mov byte [esi + ebp + 0xc44bd], dl
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov ecx, eax
shl ecx, 5
sub ecx, eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041b0d0
movsx eax, byte [esi + ebp + 0xc44bd]
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x41fd80
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x7125d8]
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x41fdc8
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push eax
call fcn.0041fef0
add esp, 4
mov dword [ebp - 4], eax
mov eax, 2
jmp 0x41fe94
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [0x7125d8]
push edx
call dword [sym.imp.WSOCK32.dll_recv]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x64]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x64], 0
jg 0x41fe23
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0041fef0
add esp, 4
mov dword [ebp - 4], eax
mov eax, 2
jmp 0x41fe94
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov cx, word [eax + 6]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
cmp edx, dword [ebp - 8]
jle 0x41fe92
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x70]
add edx, dword [ebp - 8]
push edx
mov eax, dword [0x7125d8]
push eax
call dword [sym.imp.WSOCK32.dll_recv]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x64]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x64], 0
jge 0x41fe90
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
push edx
call fcn.0041fef0
add esp, 4
mov dword [ebp - 4], eax
mov eax, 2
jmp 0x41fe94
jmp 0x41fe35
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41fea0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x7125d8]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x41fee3
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.0041fef0
add esp, 4
mov dword [ebp - 4], eax
mov eax, 2
jmp 0x41fee5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4307b2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4307d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ce4b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4307f5
test byte [esp + 8], 2
je 0x4307f5
call fcn.0042cebe
mov dword [eax], 0xd
call fcn.0042cec7
mov dword [eax], 5
jmp 0x4307ce
xor eax, eax
ret
Function at 0x432591
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4725d0
cmp edx, dword [eax]
je 0x4325b3
add eax, 8
inc ecx
cmp eax, 0x472660
jl 0x4325a4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4725d0]
jne 0x4326e1
mov eax, dword [0x715580]
cmp eax, 1
je 0x4326bb
test eax, eax
jne 0x4325e4
cmp dword [0x47195c], 1
je 0x4326bb
cmp edx, 0xfc
je 0x4326e1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43261b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042a6c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042a7b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43265e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042a7b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x460088
push edi
call fcn.00434bd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042a6c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042a6d0
lea eax, [ebp - 0xa0]
push 0x46dc10
push eax
call fcn.0042a6d0
push dword [esi + 0x4725d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042a6d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00434d10
add esp, 0x2c
pop edi
jmp 0x4326e1
lea eax, [ebp + 8]
lea esi, [esi + 0x4725d4]
push 0
push eax
push dword [esi]
call fcn.0042a7b0
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 0x4393c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00429720
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43948b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x43948b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43943e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x439449
or bh, 8
and edi, 0x8000000
je 0x439464
mov eax, dword [0x716d3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x43948b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43988b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4398af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4398ca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x43d6ca
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43d702
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043c707
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043c6df
jmp 0x43d70e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x43f1d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x43f21b
call fcn.0045039b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43f21b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43f212
xor eax, eax
jmp 0x43f223
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043f229
pop edi
pop esi
pop ebx
ret 4

Function at 0x440496
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4404b8
cmp dword [edi + 0x3c], 0
jne 0x4404b8
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0045039b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004404e5
pop edi
pop esi
pop ebx
ret 8

Function at 0x4508f8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x450926
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x450944
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045085e
jmp 0x450944
mov eax, dword [esi + 0x14]
test eax, eax
je 0x450944
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0045085e
test edi, edi
mov eax, edi
jne 0x45092e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x66404fc8
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x355f1c39
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40a808
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x414f60
call fcn.0040a268
mov edi, 0x94
mov eax, edi
call fcn.00409ea0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x41403c]
mov ecx, dword [esi + 0x10]
mov dword [0x419450], ecx
mov eax, dword [esi + 4]
mov dword [0x41945c], eax
mov edx, dword [esi + 8]
mov dword [0x419460], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x419454], esi
cmp ecx, 2
je 0x40a868
or esi, 0x8000
mov dword [0x419454], esi
shl eax, 8
add eax, edx
mov dword [0x419458], eax
xor esi, esi
push esi
mov edi, dword [0x4140fc]
call edi
cmp word [eax], 0x5a4d
jne 0x40a8a3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a8a3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40a8bb
cmp eax, 0x20b
je 0x40a8a8
mov dword [ebp - 0x1c], esi
jmp 0x40a8cf
cmp dword [ecx + 0x84], 0xe
jbe 0x40a8a3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40a8c9
cmp dword [ecx + 0x74], 0xe
jbe 0x40a8a3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040d36c
pop ecx
test eax, eax
jne 0x40a8e3
push 0x1c
call fcn.0040a7e4
pop ecx
call fcn.0040b293
test eax, eax
jne 0x40a8f4
push 0x10
call fcn.0040a7e4
pop ecx
call fcn.0040ffdb
mov dword [ebp - 4], esi
call fcn.0040fddd
test eax, eax
jge 0x40a90d
push 0x1b
call fcn.0040a7bf
pop ecx
call dword [0x4140b8]
mov dword [0x41aa00], eax
call fcn.0040fcbb
mov dword [0x41918c], eax
call fcn.0040fc19
test eax, eax
jge 0x40a933
push 8
call fcn.0040a7bf
pop ecx
call fcn.0040f9e6
test eax, eax
jge 0x40a944
push 9
call fcn.0040a7bf
pop ecx
push 1
call fcn.0040f31b
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40a95a
push eax
call fcn.0040a7bf
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [0x414188]
call fcn.0040f989
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40a97b
movzx eax, word [ebp - 0x40]
jmp 0x40a97e
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00406fc9
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40a99c
push edi
call fcn.0040f448
call fcn.0040f46a
jmp 0x40a9ce
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040a2a3
ret
Function at 0x40f098
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40f0c6
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40f0cd
cmp ebx, dword [eax + 4]
jae 0x40f0cd
xor eax, eax
jmp 0x40f2bd
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40f0de
xor eax, eax
inc eax
jmp 0x40f2bc
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40f0f4
cmp ecx, edx
jae 0x40f239
cmp dword [eax + 4], 0
je 0x40f0fd
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40f0e5
cmp dword [ebp + 8], 0
je 0x40f11f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f239
cmp eax, esi
jae 0x40f239
mov eax, dword [0x419400]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40f144
cmp dword [esi*4 + 0x419408], edi
je 0x40f23d
inc esi
cmp esi, eax
jl 0x40f132
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x414184]
test eax, eax
je 0x40f2b9
cmp dword [ebp - 8], 0x1000000
jne 0x40f2b9
test byte [ebp - 0xc], 0xcc
je 0x40f1c2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f2b9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f2b9
cmp word [eax + 0x18], 0x10b
jne 0x40f2b9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f2b9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f1c2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f1c2
test byte [ecx + 0x27], 0x80
jne 0x40f239
push 1
push 0x419448
call dword [0x41402c]
test eax, eax
jne 0x40f0d6
mov ecx, dword [0x419400]
test ecx, ecx
mov edx, ecx
jle 0x40f1f6
lea eax, [ecx*4 + 0x419404]
cmp dword [eax], edi
je 0x40f1f6
dec edx
sub eax, 4
test edx, edx
jg 0x40f1ea
test edx, edx
jne 0x40f227
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f203
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f21b
lea eax, [edx*4 + 0x419408]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40f209
cmp ecx, 0x10
jge 0x40f227
inc ecx
mov dword [0x419400], ecx
push 0
push 0x419448
call dword [0x41402c]
jmp 0x40f0d6
xor eax, eax
jmp 0x40f2bc
test esi, esi
jle 0x40f0d6
mov ebx, dword [0x41402c]
push 1
push 0x419448
call ebx
test eax, eax
jne 0x40f0d6
cmp dword [esi*4 + 0x419408], edi
je 0x40f293
mov eax, dword [0x419400]
lea esi, [eax - 1]
test esi, esi
jl 0x40f281
cmp dword [esi*4 + 0x419408], edi
je 0x40f27d
dec esi
jns 0x40f271
test esi, esi
jge 0x40f291
cmp eax, 0x10
jge 0x40f28c
inc eax
mov dword [0x419400], eax
lea esi, [eax - 1]
jmp 0x40f293
je 0x40f2ab
xor ecx, ecx
test esi, esi
jl 0x40f2ab
lea eax, [ecx*4 + 0x419408]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40f299
push 0
push 0x419448
call ebx
jmp 0x40f0d6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret