joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441540
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441573
push esi
call fcn.00444630
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44156c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4415f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4415e2
mov eax, dword [esi + 8]
test eax, eax
je 0x441597
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4415de
cmp eax, 2
je 0x4415e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44158a
cmp eax, 3
je 0x4415bd
cmp eax, 1
jne 0x44158a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44158a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44158a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441620
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441608
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441620
add esp, 4
pop esi
ret

Function at 0x44c8e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44c946
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44c946
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44c927
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x44ccd0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x44cd08
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x44d9f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44da39
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x44deb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b2b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044da60
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044dae0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044dae0
lea ecx, [esi + 0xc]
call fcn.0046ab07
lea ecx, [esi + 0x10]
call fcn.0046ab07
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044f070
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044f070
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044f070
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046ab7c
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046ab7c
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46cf6c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46cfa4
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.0046b023
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046affb
jmp 0x46cfb0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46e65a
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 0x46e69c
call fcn.00474609
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46e69c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46e693
xor eax, eax
jmp 0x46e6a4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046e6aa
pop edi
pop esi
pop ebx
ret 4

Function at 0x474b39
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 0x474b67
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474b85
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00474a9f
jmp 0x474b85
mov eax, dword [esi + 0x14]
test eax, eax
je 0x474b85
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00474a9f
test edi, edi
mov eax, edi
jne 0x474b6f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40176d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push str.WINDOWRGN
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [eax + 4]
push 2
add eax, 8
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowRgn]
ret

Function at 0x401813
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov esi, 0x4210c0
push 0x4211cc
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4018ac
xor edi, edi
push edi
push 0x20
push 3
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401852
xor eax, eax
jmp 0x4018af
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x50]
push 0x48
push eax
push ebx
call esi
movsx eax, word [ebp - 0x40]
mov dword [0x4211c0], eax
movsx eax, word [ebp - 0x3e]
mov dword [0x4211c4], eax
mov eax, dword [ebp - 0x3c]
push eax
mov dword [ebp - 8], eax
call fcn.0040fd1b
pop ecx
mov dword [0x4210a0], eax
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp - 8]
push dword [0x4210a0]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401a90
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
push edi
push 0x10
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 3
push ebx
push str.SoftwareBestaPCLinkDownloadAp
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401aec
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
cmp eax, 0x3b6
mov eax, 0x4202cc
je 0x401add
mov eax, 0x4202ac
push 0x30
push 0x4211cc
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push str.Position
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x15c]
push 0x42029c
push eax
call esi
lea eax, [ebp - 0x15c]
push 0x4210c0
push eax
call esi
lea eax, [ebp - 0x15c]
push 0x420298
push eax
call esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x15c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [ebp + 8]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, 0xffffffff
jne 0x401b72
push 5
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c21
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0xc0
je 0x402c36
xor eax, eax
jmp 0x402ce3
push esi
push 0x20
call fcn.0040fd1b
mov esi, eax
movzx eax, word [edi + 2]
mov dword [esi], eax
movzx eax, word [edi + 6]
mov dword [esi + 0xc], eax
movzx eax, word [edi + 0xa]
mov dword [esi + 8], eax
movzx eax, word [edi + 0x10]
mov dword [esi + 4], eax
shl eax, 2
push eax
call fcn.0040fd1b
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
shl eax, 2
push eax
call fcn.0040fd1b
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
shl eax, 2
push eax
call fcn.0040fd1b
and dword [ebp + 8], 0
add esp, 0x10
cmp dword [esi + 4], 0
mov dword [esi + 0x18], eax
push 0xd
pop ecx
jle 0x402ce0
push ebx
mov eax, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
movzx edx, word [edi + ecx*2]
shl eax, 2
inc ecx
mov dword [eax + ebx], edx
mov ebx, dword [esi + 0x14]
movzx edx, word [edi + ecx*2]
mov dword [ebx + eax], edx
mov ebx, dword [esi + 0x18]
lea edx, [edi + ecx*2 + 2]
mov dword [eax + ebx], edx
movzx eax, word [edi + ecx*2]
inc eax
inc eax
cdq
sub eax, edx
sar eax, 1
lea ecx, [ecx + eax + 1]
movzx eax, word [edi + ecx*2]
add ecx, eax
inc dword [ebp + 8]
lea ecx, [ecx + eax*4 + 1]
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 4]
jl 0x402c96
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x405bd1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
push esi
xor esi, esi
movsx edx, word [eax + 6]
movsx ecx, word [eax]
mov dword [ebp + 0x14], edx
mov dword [ebp - 0xc], ecx
movsx edx, word [eax + 2]
mov ax, word [eax + 8]
mov dword [ebp - 0x10], edx
test ecx, ecx
mov word [ebp - 8], ax
jle 0x405db1
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov ax, word [ebx + esi*2]
mov ecx, dword [ebp - 4]
lea edi, [ebx + esi*2]
push eax
call fcn.00405e19
test eax, eax
je 0x405d5f
movzx ecx, word [edi]
mov eax, 0xf193
cmp ecx, eax
jg 0x405d05
je 0x405cff
sub ecx, 0xa
je 0x405cff
sub ecx, 3
je 0x405cff
sub ecx, 0xf183
je 0x405c6d
dec ecx
je 0x405c5d
dec ecx
jne 0x405d1a
jmp 0x405c66
mov ax, word [ebx + esi*2 + 2]
mov word [ebp - 8], ax
inc esi
inc esi
jmp 0x405da6
movzx eax, word [ebx + esi*2 + 4]
mov ecx, dword [ebp - 4]
push 0
push 0
push eax
call fcn.0040e05b
mov edi, eax
test edi, edi
je 0x405cf7
movzx eax, word [ebx + esi*2 + 2]
sub eax, 0
je 0x405cd6
dec eax
je 0x405cc8
dec eax
je 0x405cb2
dec eax
jne 0x405cee
mov ecx, dword [ebp - 4]
push dword [ebp + 0x10]
movsx eax, word [edi]
mov edx, dword [ecx + 0x18]
sub edx, eax
push edx
push edi
push dword [ebp + 8]
call fcn.0040e4e7
jmp 0x405cee
mov ecx, dword [ebp - 4]
push dword [ebp + 0x10]
movsx edx, word [edi]
mov eax, dword [ecx + 0x18]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
jmp 0x405ca7
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push 0
push edi
push dword [ebp + 8]
jmp 0x405cab
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push dword [ebp + 0x14]
push edi
push dword [ebp + 8]
call fcn.0040e4e7
movsx eax, word [edi]
add dword [ebp + 0x14], eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040e4b5
add esi, 3
jmp 0x405da6
inc esi
jmp 0x405da6
sub ecx, 0xf194
je 0x405c66
dec ecx
je 0x405cf7
dec ecx
je 0x405d38
dec ecx
je 0x405d33
xor edi, edi
push edi
push edi
push str.new_type_node_found
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
add esi, 4
jmp 0x405da6
movzx eax, word [ebx + esi*2 + 2]
push eax
lea eax, [ebx + esi*2 + 4]
push eax
mov ecx, dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00407d32
movzx eax, word [ebx + esi*2 + 2]
lea esi, [esi + eax + 2]
jmp 0x405da6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
sub eax, esi
push eax
push edi
call fcn.00405dba
add esi, eax
mov cx, word [ebx + esi*2 - 2]
cmp cx, 0xd
je 0x405d80
test cx, cx
jne 0x405d81
dec eax
test eax, eax
je 0x405da6
push dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, eax
push eax
mov eax, dword [ebp + 0x10]
add ecx, eax
push edi
push ecx
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0040b71e
add esp, 0x18
add dword [ebp + 0x14], eax
cmp esi, dword [ebp - 0xc]
jl 0x405c09
pop edi
pop ebx
mov ax, word [ebp - 8]
pop esi
leave
ret 0x10
Function at 0x407dec
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp word [edi + 4], 9
jne 0x407eb4
push esi
push 0x4c
call fcn.0040fd1b
mov esi, eax
pop ecx
mov word [esi + 4], 7
mov eax, dword [edi + 0x30]
mov dword [esi + 0x44], eax
mov ax, word [edi + 0xc]
mov word [esi + 0xc], ax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x34], eax
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov cx, word [edi + 0x44]
push eax
mov word [esi + 0x4a], cx
mov ecx, dword [edi]
push eax
push eax
push eax
mov dword [esi], ecx
mov dword [esi + 0x3c], eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ax, word [edi + 0xe]
mov word [esi + 0xe], ax
mov ax, word [edi + 0xa]
mov word [esi + 0xa], ax
mov ax, word [edi + 6]
mov word [esi + 6], ax
mov ax, word [edi + 8]
mov word [esi + 8], ax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x28], eax
mov ax, word [edi + 0xc]
mov word [esi + 0x48], ax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ax, word [edi + 0x24]
mov word [esi + 0x24], ax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov ax, word [edi + 0x26]
mov word [esi + 0x26], ax
mov eax, dword [edi + 0x20]
push edi
mov dword [esi + 0x20], eax
call fcn.0040fd10
pop ecx
mov dword [ebp + 8], esi
pop esi
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret 8

Function at 0x40b622
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_CharLowerA]
push str..boo
push edi
call fcn.004105c0
pop ecx
test eax, eax
pop ecx
je 0x40b6f1
xor esi, esi
push esi
push 0x20
push 3
push esi
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b66e
or eax, 0xffffffff
jmp 0x40b71a
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x48]
push 0x48
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x48], 0x42
jne 0x40b6ca
cmp byte [ebp - 0x47], 0x4f
jne 0x40b6ca
cmp byte [ebp - 0x46], 0x4f
jne 0x40b6ca
cmp byte [ebp - 0x45], 0x4b
jne 0x40b6ca
cmp dword [ebp - 0x44], 0x9001
jle 0x40b6c5
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
cmp eax, 0x3b6
push esi
push esi
jne 0x40b6be
push 0x42053c
jmp 0x40b6e5
push 0x420520
jmp 0x40b6e5
push 2
pop eax
jmp 0x40b71a
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
cmp eax, 0x3b6
push esi
push esi
jne 0x40b6e0
push 0x420508
jmp 0x40b6e5
push 0x4204f0
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40b666
push str..ebk
push edi
call fcn.004105c0
pop ecx
test eax, eax
pop ecx
je 0x40b706
push 1
jmp 0x40b6c7
push 0x4204e4
push edi
call fcn.004105c0
neg eax
sbb eax, eax
pop ecx
neg eax
pop ecx
dec eax
pop edi
pop esi
leave
ret
Function at 0x40df5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
push 0x68
mov dword [esi], 0x41e124
call fcn.0040fd1b
mov dword [esp], str.BMPHEAD
push 0x85
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x68
push eax
push dword [esi + 4]
call fcn.0040fd50
add esp, 0xc
mov ecx, esi
mov dword [esi + 8], 0x280
mov dword [esi + 0xc], 0x1e0
push 2
call fcn.0040e8a4
mov eax, esi
pop esi
ret

Function at 0x40eb33
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x68
call fcn.0040fd1b
mov dword [esp], str.BMPHEAD
xor edi, edi
push 0x85
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x68
push eax
push esi
call fcn.0040fd50
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
push edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push esi
mov edi, eax
call fcn.0040fd10
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x413075
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x420758
cmp edx, dword [eax]
je 0x413097
add eax, 8
inc ecx
cmp eax, 0x4207e8
jl 0x413088
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x420758]
jne 0x4131c5
mov eax, dword [0x4215ec]
cmp eax, 1
je 0x41319f
test eax, eax
jne 0x4130c8
cmp dword [0x4205e4], 1
je 0x41319f
cmp edx, 0xfc
je 0x4131c5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4130ff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040fc20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410090
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x413142
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410090
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41e524
push edi
call fcn.00415b10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040fc20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040fc30
lea eax, [ebp - 0xa0]
push 0x41e504
push eax
call fcn.0040fc30
push dword [esi + 0x42075c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040fc30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00415a85
add esp, 0x2c
pop edi
jmp 0x4131c5
lea eax, [ebp + 8]
lea esi, [esi + 0x42075c]
push 0
push eax
push dword [esi]
call fcn.00410090
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 0x41e512
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.0041762e
and dword [ebp - 4], 0
cmp dword [0x430a1c], 0
mov ebx, eax
jne 0x41e5c3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41e674
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41e674
push eax
call fcn.004175bc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x430a1c], eax
call esi
push eax
call fcn.004175bc
mov dword [esp], 0x426db4
push edi
mov dword [0x430a20], eax
call esi
push eax
call fcn.004175bc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x430a24], eax
call esi
push eax
call fcn.004175bc
pop ecx
mov dword [0x430a2c], eax
test eax, eax
je 0x41e5c3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004175bc
pop ecx
mov dword [0x430a28], eax
mov eax, dword [0x430a28]
cmp eax, ebx
je 0x41e61b
cmp dword [0x430a2c], ebx
je 0x41e61b
push eax
call fcn.00417637
push dword [0x430a2c]
mov esi, eax
call fcn.00417637
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41e61b
test edi, edi
je 0x41e61b
call esi
test eax, eax
je 0x41e612
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41e612
test byte [ebp - 0xc], 1
jne 0x41e61b
or dword [ebp + 0x10], 0x200000
jmp 0x41e654
mov eax, dword [0x430a20]
cmp eax, ebx
je 0x41e654
push eax
call fcn.00417637
pop ecx
test eax, eax
je 0x41e654
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41e654
mov eax, dword [0x430a24]
cmp eax, ebx
je 0x41e654
push eax
call fcn.00417637
pop ecx
test eax, eax
je 0x41e654
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430a1c]
call fcn.00417637
pop ecx
test eax, eax
je 0x41e674
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41e676
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x438c99
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop esi
sub edi, eax
add edi, 1
call fcn.00438ce8
push 0x56c29de3
mov eax, dword [esp]
add esp, 4
push eax
mov eax, dword [esp]
add esp, 4
add edi, edi
xor dword [ecx], esi
or edi, edi
push edi
pop edi
add ecx, 1
inc eax
add eax, 0xaf3d5db0
cmp ecx, edx
jne fcn.00438c99
sub eax, edi
and edi, eax
ret