joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8f10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511748
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x553418]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0043e0d1
mov edi, eax
add esp, 4
test edi, edi
je 0x4b8fb4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004398fd
add esp, 4
mov dword [edi + 4], eax
jmp 0x4b8fb6
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.0041a4a0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4b9017
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4b9017
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x4b903a
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4b905d
cmp byte [ebp + 0xc], 0
je 0x4b9049
push esi
call fcn.00439db8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4b9069
mov esi, str.ios_base::badbit_set
jmp 0x4b9079
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00413910
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.0040f160
push 0x5461d8
lea eax, [ebp - 0x30]
push eax
call fcn.004d1f6e
int3
Function at 0x4bbc50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511d51
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x553418]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov dword [edi], 0
call fcn.00407780
mov ecx, eax
test ecx, ecx
je 0x4bbde4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 1
push eax
push 0xf003f
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bbda5
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push eax
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bbd97
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4bbda5
add eax, 0x10
push 0x55b716
push eax
mov dword [ebp - 0x20], eax
call fcn.0043e516
mov esi, eax
add esp, 8
test esi, esi
je 0x4bbda5
push dword [ebp - 0x20]
push 0
push esi
call fcn.004d2e90
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4bbd5a
push esi
call fcn.0043e4d1
add esp, 4
jmp 0x4bbda5
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bbd60
sub ecx, edx
sar ecx, 1
je 0x4bbd8e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bbd76
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.004117d0
push esi
call fcn.0043e4d1
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bbda5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bbdc4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0043e3a9
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00406290
int3
Function at 0x4bbdf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x553418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4bbe14
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x4bbe76
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x4bbe76
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4bbe91
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e3a9
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4bdea5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4f3aa5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f3765
Function at 0x501400
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5134b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x553418]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x501549
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x501549
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x501549
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x501549
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x501535
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x50152e
cmp dword [ebp - 0x1c], ebx
jne 0x50152e
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x5014cd
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x5014c7
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x5014d9
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00412960
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.0041fc40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x50152e
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
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 0x4059e3
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405ca1
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405a22
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4247a8], eax
jmp 0x405bac
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a3c
test eax, eax
je 0x405b5a
test bl, 2
je 0x405b5a
mov esi, 0x421d30
push edi
push esi
call fcn.00406221
cmp dword [ebp + 8], 0
je 0x405a5b
push 0x40a3cc
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405a61
push edi
call fcn.00405bfa
cmp byte [edi], 0
jne 0x405a6f
cmp byte [0x421d30], 0x5c
jne 0x405a7a
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405b50
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405bde
cmp byte [eax], 0
je 0x405ac0
cmp byte [ebp - 0x1c], 0
je 0x405ac0
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405ad6
mov al, byte [esi + 1]
test al, al
je 0x405b2f
cmp al, 0x2e
jne 0x405ad6
cmp byte [esi + 2], 0
je 0x405b2f
push esi
push ebx
call fcn.00406221
test byte [ebp - 0x14c], 0x10
je 0x405afb
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b2f
push dword [ebp + 0xc]
push edi
call fcn.004059e3
jmp 0x405b2f
push dword [ebp - 4]
push edi
call fcn.0040599b
test eax, eax
jne 0x405b27
cmp dword [ebp - 4], eax
je 0x405b1f
push edi
push 0xfffffffffffffff1
call fcn.00405342
push 0
push edi
call fcn.00405ffa
jmp 0x405b2f
inc dword [0x4247a8]
jmp 0x405b2f
push edi
push 0xfffffffffffffff2
call fcn.00405342
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405a9e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b5a
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405bac
cmp dword [ebp - 0xc], esi
jne 0x405b6e
inc dword [0x4247a8]
jmp 0x405bac
push edi
call fcn.00406598
test eax, eax
je 0x405bac
push edi
call fcn.00405bb3
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.0040599b
test eax, eax
jne 0x405ba4
cmp dword [ebp - 4], esi
je 0x405b66
push edi
push 0xfffffffffffffff1
call fcn.00405342
push esi
push edi
call fcn.00405ffa
jmp 0x405bac
push edi
push 0xffffffffffffffe5
call fcn.00405342
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401140
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x434e08
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push edi
mov eax, dword [0x445758]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, 1
call fcn.004075ea
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401183
push 0x80004005
call fcn.004014c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004016a0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
lea ecx, [esp + 0x14]
push str._04x
push ecx
mov dword [esi + 0xa8], eax
call fcn.00401680
add esp, 0xc
push 0x11
push str.Nusb3utl.exe.mui
lea ecx, [esp + 0x18]
call fcn.00401410
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 2
push 0
push edi
call ebx
test eax, eax
mov dword [esi + 0xac], eax
jne 0x40122b
lea ecx, [esp + 0x10]
call fcn.004016a0
push 0x15
push str.0409Nusb3utl.exe.mui
lea ecx, [esp + 0x18]
mov dword [esi + 0xa8], 0x409
call fcn.004017c0
mov edi, dword [esp + 0x10]
push 2
push 0
push edi
call ebx
test eax, eax
mov dword [esi + 0xac], eax
jne 0x40122b
xor ebp, ebp
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40124f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4037c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x445758]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x403801
push 0x4369e0
push 4
push eax
call fcn.0041f279
push eax
call fcn.004034d4
add esp, 0x10
jmp 0x403813
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40387e
push edi
call fcn.0041fd78
mov edi, dword [eax]
call fcn.0041fd78
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0041fd1e
add esp, 0x18
mov ebx, eax
call fcn.0041fd78
cmp dword [eax], 0
je 0x40385e
call fcn.0041fd78
push dword [eax]
call fcn.004036af
pop ecx
jmp 0x403865
call fcn.0041fd78
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40387e
cmp ebx, esi
jae 0x40387e
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x403880
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f00a
leave
ret
Function at 0x406150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x406196
call fcn.00407fad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x406196
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4061d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4061c2
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4061c2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4061d6
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40734f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x433cfd
call fcn.0041f8f9
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.00407fad
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x40739a
call fcn.00407fad
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4073ab
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4073b8
or eax, 0xffffffff
jmp 0x407514
mov ecx, esi
call fcn.00406e7f
mov dword [ebp - 0x14], eax
call fcn.0040a893
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x407436
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x407436
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x407436
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004030f0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x407436
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x407436
mov ecx, ebx
call fcn.0040d561
test eax, eax
je 0x407436
push 0
mov ecx, ebx
call fcn.0040d57c
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040c212
push dword [ebp - 0x14]
call fcn.0040a7eb
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00407157
xor edi, edi
cmp eax, edi
je 0x407493
test byte [esi + 0x3c], 0x10
je 0x40747d
push 4
pop edi
mov ecx, esi
call fcn.0040d448
test ax, 0x100
je 0x407473
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040a381
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x407493
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040d74b
or dword [ebp - 4], 0xffffffff
jmp 0x4074be
cmp dword [ebp - 0x28], edi
je 0x4074cc
push 1
mov ecx, ebx
call fcn.0040d57c
cmp dword [ebp - 0x2c], edi
je 0x4074dc
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4074f5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x4074f5
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.00406eb9
cmp dword [esi + 0x58], edi
je 0x407511
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0041f99e
ret
Function at 0x40d32c
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 0x40d36f
call fcn.00407fad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d36f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40d38a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040cee6
test ebx, ebx
mov esi, eax
je 0x40d388
test edi, edi
je 0x40d388
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40f31f
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 0x40f34d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40f36b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040f289
jmp 0x40f36b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40f36b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040f289
test edi, edi
mov eax, edi
jne 0x40f355
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x448710]
test ecx, ecx
je 0x40f42e
jmp 0x40f31e
ret 8

Function at 0x411fc6
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x412903
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea eax, [esp + 0xdc]
mov dword [esp + 8], eax
lea eax, [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
and al, 0x10
add dword [eax], eax
add byte [eax], al
mov dword [esp + 0x14], 0
call fcn.00411d7c
jmp 0x412ae6

Function at 0x412932
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea eax, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], 0x100001
lea eax, [esp + 0xdc]
mov dword [esp + 8], eax
lea eax, [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
call fcn.00411ddc
jmp 0x412ae6

Function at 0x4129f2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jne 0x412ae6
mov eax, 0xc00000bb
mov ecx, dword [esp + 0x174]
mov edx, ecx
sub edx, 1
je 0x412a9e
jmp 0x412a11
mov edx, ecx
sub edx, 2
je 0x412a63
jmp 0x412a1a
invalid

Function at 0x412dd2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xlatb
cmp al, byte [eax]
add byte [eax + edx*2 - 0x17], dh
xchg esi, eax
add byte [eax], al
add byte [ecx], dh
ror byte [ebx - 0x76b3dbbc], 4
and al, 0xc7
inc esp
and al, 4
add byte [eax], al
add byte [eax], al

Function at 0x41f00a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445758]
jne 0x41f014
repz ret
jmp fcn.00425927
Function at 0x422d67
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 + 0x445770]
je 0x422d82
inc edi
cmp edi, 0x17
jb 0x422d73
cmp edi, 0x17
jae 0x422f02
push ebp
push 3
call fcn.0042c040
cmp eax, 1
pop ecx
je 0x422ece
push 3
call fcn.0042c040
test eax, eax
pop ecx
jne 0x422db6
cmp dword [0x4455c4], 1
je 0x422ece
cmp ebx, 0xfc
je 0x422f01
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x448a68
push ebp
call fcn.0042bfdb
add esp, 0xc
test eax, eax
je 0x422dec
push esi
push esi
push esi
push esi
push esi
call fcn.004242bf
add esp, 0x14
push 0x104
mov esi, 0x448a81
push esi
push 0
mov byte [0x448b85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422e30
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042bfdb
add esp, 0xc
test eax, eax
je 0x422e30
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004242bf
add esp, 0x14
push esi
call fcn.0042bf50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x422e75
push esi
call fcn.0042bf50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x448d7c
push 0x43a21c
sub ecx, eax
push ecx
push eax
call fcn.0042be90
add esp, 0x14
test eax, eax
je 0x422e75
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004242bf
add esp, 0x14
jmp 0x422e77
xor esi, esi
push 0x43a218
push ebx
push ebp
call fcn.0042be1f
add esp, 0xc
test eax, eax
je 0x422e97
push esi
push esi
push esi
push esi
push esi
call fcn.004242bf
add esp, 0x14
push dword [edi*8 + 0x445774]
push ebx
push ebp
call fcn.0042be1f
add esp, 0xc
test eax, eax
je 0x422eb9
push esi
push esi
push esi
push esi
push esi
call fcn.004242bf
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042bc62
add esp, 0xc
jmp 0x422f01
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x422f01
cmp ebp, 0xffffffff
je 0x422f01
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x445774]
push dword [esi]
call fcn.0042bf50
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