joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a3b5
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x1000a50c
mov edx, 0x10000000
cmp eax, 0x7c
je 0x1000a50c
cmp eax, 0x29
jne 0x1000a3f2
cmp dword [esi + 0x10], 0
jne 0x1000a50c
cmp eax, eax
jne 0x1000a3f2
test dword [esi + 0x50], edx
je 0x1000a512
cmp eax, 0x2e
jne 0x1000a40d
push 5
lea ecx, [esi + 0x24]
call fcn.10015429
mov ecx, esi
call fcn.1000a38c
jmp 0x1000a4f6
cmp eax, 0x5c
jne 0x1000a462
mov ecx, esi
call fcn.1000a38c
test byte [esi + 0x50], 0x80
je 0x1000a456
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x1000a43e
push 4
lea ecx, [esi + 0x24]
call fcn.10015429
mov ecx, esi
call fcn.1000a38c
jmp 0x1000a4fd
cmp eax, 0x42
jne 0x1000a456
push 4
lea ecx, [esi + 0x24]
call fcn.10015429
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x1000a432
mov ecx, esi
call fcn.10015429
jmp 0x1000a4f6
cmp eax, 0x5b
jne 0x1000a482
mov ecx, esi
call fcn.1000a38c
mov ecx, esi
call fcn.1000b140
cmp dword [esi + 0x4c], 0x5d
je 0x1000a401
push 4
jmp 0x1000a514
cmp eax, 0x28
jne 0x1000a49f
mov ecx, esi
call fcn.1000a38c
mov ecx, esi
call fcn.1000b279
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x1000a512
jmp 0x1000a4eb
cmp eax, 0x5e
jne 0x1000a4a8
push 2
jmp 0x1000a42a
cmp eax, 0x24
jne 0x1000a4b4
push 3
jmp 0x1000a42a
cmp eax, 0x2a
je 0x1000a508
cmp eax, 0x2b
je 0x1000a508
cmp eax, 0x3f
je 0x1000a508
cmp eax, 0x7b
je 0x1000a508
cmp eax, 0x7d
jne 0x1000a4d2
test dword [esi + 0x50], edx
je 0x1000a504
cmp eax, 0x5d
jne 0x1000a4dc
test dword [esi + 0x50], edx
je 0x1000a47b
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.10015429
mov bl, 1
mov ecx, esi
call fcn.1000a38c
test bl, bl
je 0x1000a4fd
mov ecx, esi
call fcn.10015429
mov cl, 1
jmp 0x1000a3bc
push 6
jmp 0x1000a514
push 0xa
jmp 0x1000a514
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.10015429
int3

Function at 0x1000d464
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push esi
push edi
mov edi, dword [ebp + 8]
sub ecx, edi
sar ecx, 1
push 0
pop esi
add ecx, ecx
je 0x1000d490
movzx eax, byte [esi + edi]
xor eax, edx
imul edx, eax, 0x1000193
inc esi
cmp esi, ecx
jb 0x1000d47f
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x10015429
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10015438
pop dword [ebp - 0x18]
mov eax, 0x10015438
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xe4df2a84
add dword [ebp - 0x28], 0x69731ac7
mov dword [ebp - 0x24], 0x9a40fed
add dword [ebp - 0x24], 0x288f3c58
mov dword [ebp - 0x20], 0x299e86d2
add dword [ebp - 0x20], 0x22adbd5c
mov dword [ebp - 0x1c], 0xfa50b424
sub dword [ebp - 0x1c], 0xfa50b424
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x8fa37642
sub dword [ebp - 0x28], 0x1b310cec
mov dword [ebp - 0x24], 0x254d5017
sub dword [ebp - 0x24], 0xe3e0eea2
mov dword [ebp - 0x20], 0x4d289b6f
add dword [ebp - 0x20], 0x1646d0fd
mov dword [ebp - 0x1c], 0xc5e8a2f2
sub dword [ebp - 0x1c], 0xc5e8a2f2
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x6e231d0
sub eax, 0xf6e0b170
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3d4fe
push 0
call eax
mov ecx, 0x7b2cb37d
sub ecx, 0x7b2c63d6
xor edi, edi
add edi, eax
mov edx, 0x10027200
add edx, dword [ebp - 0x18]
mov esi, 0x61347cbb
sub dword [ebp - 0xc], 0xf12c57f2
mov ebx, dword [edx]
xor dword [ebp - 8], edi
xor ebx, esi
add dword [ebp - 0xc], ebx
mov dword [edi], ebx
sub dword [ebp - 8], eax
add edi, 0xd6e3360d
sub edi, 0xd6e33609
add edx, 0x503b2e59
add edx, 0xafc4d1ab
loop 0x10015546
add eax, 0x3bc493d1
sub eax, 0x3bc36262
mov ebx, eax
add eax, 0x27deae24
sub eax, 0x27deae1f
mov ecx, 0x9e4f689b
add ecx, 0x71b09765
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x10002bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10002bbf
pop dword [ebp - 0x50]
mov eax, 0x13c0054e
sub eax, 0x3bfd98f
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x38ace
push 0
mov eax, 0xd20082b2
sub eax, 0xc1fea156
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x3f2d
mov ebx, eax
mov esi, 0x1002e200
add esi, dword [ebp - 0x50]
mov edx, 0x90fe840b
add edx, 0xc9078bdc
mov edi, dword [esi]
sub dword [ebp - 0x24], 0x9a1f1297
xor edi, edx
add dword [ebp - 0x3c], 0xf128e48a
mov dword [ebx], edi
add dword [ebp - 0x3c], edx
add ebx, 0xe5cf495a
add ebx, 0x1a30b6aa
add esi, 4
loop 0x10002c12
add eax, 0x8d0f7373
sub eax, 0x8d0e83ec
xor ebx, ebx
add ebx, eax
add eax, 0xf195b670
sub eax, 0xf195b66b
mov ecx, 0x4a66989a
sub ecx, 0x3a66989a
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10008880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x10028164]
xor eax, ebp
mov dword [ebp + 0x398], eax
mov edx, dword [ebp + 0x3a8]
mov eax, dword [ebp + 0x3a4]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x70], edx
mov edx, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], esi
push edi
test eax, eax
je 0x10008a43
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100088d1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov ecx, 2
imul ecx
mov edi, eax
test edx, edx
jg 0x10008977
jl 0x100088fe
cmp edi, 0x7fffffff
ja 0x10008977
cmp edx, 0xffffffff
jl 0x10008977
jg 0x1000890d
cmp edi, 0x80000000
jb 0x10008977
cmp edi, 0x400
jg 0x1000892d
push edi
call fcn.10002bb0
add esp, 4
test al, al
je 0x1000892d
mov eax, edi
call fcn.1000bf00
mov ebx, esp
jmp 0x10008951
mov eax, edi
not eax
cmp eax, 8
jb 0x10008a91
lea eax, [edi + 8]
push eax
call fcn.10002bb0
add esp, 4
test eax, eax
je 0x10008977
mov dword [eax], esi
lea ebx, [eax + 8]
mov esi, eax
test ebx, ebx
je 0x10008977
push 0
push 0
push edi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x74]
mov byte [ebx], 0
push 0
push 3
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, ebx
jmp 0x10008979
xor edi, edi
test edi, edi
je 0x10008a43
push 0x60
push 0
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x100089ae
push 2
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x100089ae
call fcn.10003920
mov edi, eax
jmp 0x10008a48
push dword [ebp - 0x78]
push dword [ebp - 0x70]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x100089c8
call fcn.10003920
jmp 0x10008a34
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x100089de
call fcn.10003920
jmp 0x10008a34
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x100089f6
mov edi, 0x8007000e
jmp 0x10008a36
push eax
lea ecx, [ebp - 0x6c]
call fcn.100033c0
cmp dword [ebp - 0x6c], 0
jne 0x10008a0c
mov edi, 0x8007000e
jmp 0x10008a36
push edi
push dword [ebp - 0x70]
push edi
push dword [ebp - 0x6c]
call fcn.1000aa30
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
add esp, 0x10
mov byte [eax + edi], 0
push dword [ebp + 0x3b0]
push dword [ebp - 0x6c]
call fcn.100086f0
mov edi, eax
test ebx, ebx
je 0x10008a48
push ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
jmp 0x10008a48
mov edi, 0x8007000e
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x6c], eax
je 0x10008a58
lea ecx, [ebp - 0x6c]
call fcn.10005750
test esi, esi
je 0x10008a6f
nop dword [eax]
push esi
mov esi, dword [esi]
call fcn.10002bb0
add esp, 4
test esi, esi
jne 0x10008a60
mov eax, edi
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x398]
xor ecx, ebp
call fcn.1000bc54
lea esp, [ebp + 0x39c]
pop ebp
ret 0x10
push 0x80070216
call fcn.100013a0
int3
Function at 0x4017c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4017d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401814
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401810
lea ebx, [ebx]
cmp esi, eax
jae 0x401814
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401800
cmp esi, eax
jb 0x40181a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4025d0
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
push edi
call esi
mov ebx, eax
call esi
mov edi, eax
cmp ebx, edi
je 0x4025e0
rdtsc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
mov ebx, eax
call esi
mov ecx, eax
cmp ebx, ecx
je 0x402601
rdtsc
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, edi
sub eax, dword [esp + 0x14]
push 0
sbb edx, dword [esp + 0x1c]
push ecx
push edx
push eax
call fcn.004185e0
push 0
push 0x3e8
push edx
push eax
call fcn.004185e0
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x402650
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40265d
mov eax, 0x43b250
push esi
push edi
push eax
call fcn.004183bf
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
mov edi, eax
call fcn.00406af0
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x4028a0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
push edi
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4028d2
test al, 1
je 0x4028d2
mov ecx, dword [esi]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
ret 4
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x405570
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42c368
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x439d84]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call fcn.0040d5a6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4055ba
push 0x80004005
call fcn.00401030
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], ebx
call fcn.00401a40
push str.SOFTWAREFANUCFANUC_PMC_Programmer_SetUp_Module
lea ecx, [esp + 0x24]
call fcn.00402200
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push edx
push SysReAllocStringLen
mov byte [esp + 0x44], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405610
xor esi, esi
jmp 0x4056f8
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
push str.Install
push edx
call edi
test eax, eax
je 0x405644
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x4056f8
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00418ec9
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x18]
push edx
mov esi, eax
push esi
lea eax, [esp + 0x24]
push eax
push ebx
push str.Install
push ecx
call edi
test eax, eax
push esi
je 0x405687
call fcn.0041840f
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x4056f8
lea ecx, [esp + 0x28]
call fcn.004054d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.00401f30
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.0041840f
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0x42ee74
push edx
call fcn.00418939
add esp, 8
cmp eax, ebx
sete al
xor ecx, ecx
cmp al, bl
setne cl
mov esi, ecx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x30], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40571c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405744
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x40a994
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40a9cd
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00402bb0
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004029b0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40c562
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40c5a5
call fcn.0040fead
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40c5a5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40c5c0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040c119
test ebx, ebx
mov esi, eax
je 0x40c5be
test edi, edi
je 0x40c5be
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40e117
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x439d84]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x40e1af
push 0x4304f4
push 4
push eax
call fcn.0041894c
push eax
call fcn.004026b0
add esp, 0x10
push ebx
push edi
call fcn.0041b1a3
mov edi, dword [eax]
call fcn.0041b1a3
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0041b149
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.0041b1a3
cmp dword [eax], ebx
je 0x40e1c6
call fcn.0041b1a3
push dword [eax]
call fcn.004072ff
pop ecx
jmp 0x40e1cd
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x40e163
jmp 0x40e23f
call fcn.0041b1a3
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40e23b
cmp dword [ebp - 0x3c], esi
jae 0x40e23b
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00418e00
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x40e22d
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40e22d
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40e22d
push ebx
push ebx
push esi
jmp 0x40e233
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40e23d
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.00418200
add ebp, 0xe0
leave
ret
Function at 0x40ff2c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x439d84]
xor eax, ebp
mov dword [ebp + 0x88], eax
push esi
push edi
mov edi, dword [ebp + 0x94]
mov esi, 0x105
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40ff67
xor eax, eax
jmp 0x40ffad
lea eax, [ebp - 0x80]
push eax
call fcn.004198a0
cmp byte [ebp + eax - 0x81], 0x5c
pop ecx
je 0x40ff91
push 0x42eea8
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004189b1
add esp, 0xc
test eax, eax
jne 0x40ff63
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004189b1
add esp, 0xc
test eax, eax
jne 0x40ff63
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp + 0x88]
pop edi
xor ecx, ebp
pop esi
call fcn.00418200
add ebp, 0x8c
leave
ret
Function at 0x411fd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x42d1e1
call fcn.00419806
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040fead
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x412023
call fcn.0040fead
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x412034
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x412041
or eax, 0xffffffff
jmp 0x41219d
mov ecx, esi
call fcn.00411b1f
mov dword [ebp - 0x14], eax
call fcn.004099e5
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4120bf
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4120bf
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4120bf
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00408599
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4120bf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4120bf
mov ecx, ebx
call fcn.0040c7b1
test eax, eax
je 0x4120bf
push 0
mov ecx, ebx
call fcn.0040c7cc
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040b420
push dword [ebp - 0x14]
call fcn.0040993d
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00411de0
xor edi, edi
cmp eax, edi
je 0x41211c
test byte [esi + 0x3c], 0x10
je 0x412106
push 4
pop edi
mov ecx, esi
call fcn.0040c6c2
test ax, 0x100
je 0x4120fc
push 5
pop edi
push edi
mov ecx, esi
call fcn.004094d3
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41211c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040c833
or dword [ebp - 4], 0xffffffff
jmp 0x412147
cmp dword [ebp - 0x28], edi
je 0x412155
push 1
mov ecx, ebx
call fcn.0040c7cc
cmp dword [ebp - 0x2c], edi
je 0x412165
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41217e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41217e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00411b59
cmp dword [esi + 0x58], edi
je 0x41219a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00419872
ret
Function at 0x413a7a
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 0x413aa8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x413ac6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004139e4
jmp 0x413ac6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x413ac6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004139e4
test edi, edi
mov eax, edi
jne 0x413ab0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43d008]
test ecx, ecx
je 0x413b89
jmp 0x413a79
ret 8

Function at 0x418200
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439d84]
jne 0x41820a
repz ret
jmp fcn.0041f47c

Function at 0x4230e5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43a718]
je 0x423100
inc edi
cmp edi, 0x17
jb 0x4230f1
cmp edi, 0x17
jae 0x423280
push ebp
push 3
call fcn.00427aab
cmp eax, 1
pop ecx
je 0x42324c
push 3
call fcn.00427aab
test eax, eax
pop ecx
jne 0x423134
cmp dword [0x439da0], 1
je 0x42324c
cmp ebx, 0xfc
je 0x42327f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43d5b0
push ebp
call fcn.0041894c
add esp, 0xc
test eax, eax
je 0x42316a
push esi
push esi
push esi
push esi
push esi
call fcn.0041d276
add esp, 0x14
push 0x104
mov esi, 0x43d5c9
push esi
push 0
mov byte [0x43d6cd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4231ae
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041894c
add esp, 0xc
test eax, eax
je 0x4231ae
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041d276
add esp, 0x14
push esi
call fcn.004198a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4231f3
push esi
call fcn.004198a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43d8c4
push 0x431864
sub ecx, eax
push ecx
push eax
call fcn.0041afab
add esp, 0x14
test eax, eax
je 0x4231f3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041d276
add esp, 0x14
jmp 0x4231f5
xor esi, esi
push 0x431860
push ebx
push ebp
call fcn.004189b1
add esp, 0xc
test eax, eax
je 0x423215
push esi
push esi
push esi
push esi
push esi
call fcn.0041d276
add esp, 0x14
push dword [edi*8 + 0x43a71c]
push ebx
push ebp
call fcn.004189b1
add esp, 0xc
test eax, eax
je 0x423237
push esi
push esi
push esi
push esi
push esi
call fcn.0041d276
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004278ee
add esp, 0xc
jmp 0x42327f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42327f
cmp ebp, 0xffffffff
je 0x42327f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43a71c]
push dword [esi]
call fcn.004198a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret