joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4078ed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
push 0x20019
xor esi, esi
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407915
xor eax, eax
jmp 0x4079ee
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 4
push eax
push esi
push esi
push str.Install
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40793f
mov edi, esi
jmp 0x407967
mov eax, dword [ebp - 4]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x40795e
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004079f5
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0xc]
mov ebx, esi
test ecx, ecx
jne 0x4079c9
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push str.Full
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407987
mov ebx, esi
jmp 0x4079c9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push str.Install
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4079a7
mov ebx, esi
jmp 0x4079c0
mov eax, dword [ebp - 4]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x4079c0
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
call fcn.004079f5
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
mov al, bl
xor al, 1
mov byte [ecx + 0x10], al
test edi, edi
jne 0x4079e9
test ebx, ebx
jne 0x4079e9
cmp byte [ebp + 0xc], bl
je 0x4079ec
xor esi, esi
inc esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411431
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.004115e9
mov eax, dword [0x44f3a0]
cmp eax, 2
jne 0x4114a3
push ebx
xor ebx, ebx
test esi, esi
je 0x41147e
push edi
mov edi, 0x1000
mov eax, esi
mov ecx, edi
cmp word [eax], bx
je 0x411467
add eax, 2
sub ecx, 1
jne 0x41145a
xor eax, eax
mov edx, 0x80070057
test ecx, ecx
cmovne edx, eax
sub edi, ecx
neg ecx
sbb ecx, ecx
and ecx, edi
pop edi
jmp 0x411486
mov ecx, dword [ebp - 0xc]
mov edx, 0x80070057
push ebx
lea eax, [ebp - 4]
push eax
xor eax, eax
test edx, edx
cmovns eax, ecx
push eax
push esi
push dword [0x44f39c]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
pop ebx
jmp 0x4114c9
cmp eax, 3
jne 0x4114c9
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.00402d23
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
push dword [0x44f39c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4114ce
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
call fcn.004115e9
mov ecx, esi
call fcn.00411431
cmp dword [0x44f3a0], 2
mov ecx, 0x445588
mov eax, 0x441d78
cmovne ecx, eax
pop esi
jmp fcn.00411431

Function at 0x4115e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
inc ebx
cmp dword [0x44f3a0], 0
jne 0x41165e
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x44f39c], eax
test eax, eax
je 0x411658
cmp eax, 0xffffffff
je 0x411658
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x41162d
mov dword [0x44f3a0], 2
jmp 0x41165e
push 0
lea eax, [ebp - 0xc]
mov dword [0x44f3a0], 3
push eax
push 2
lea eax, [ebp - 4]
mov dword [ebp - 4], 0xfeff
push eax
push dword [0x44f39c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41165e
mov dword [0x44f3a0], ebx
cmp dword [0x44f398], 0
jne 0x41169c
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x44f394], eax
test eax, eax
je 0x411696
cmp eax, 0xffffffff
je 0x411696
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
neg eax
sbb eax, eax
add eax, 3
mov dword [0x44f398], eax
jmp 0x41169c
mov dword [0x44f398], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412452
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x434404
call fcn.00415017
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
cmp byte [0x44f383], 0
je 0x412523
cmp byte [0x44f382], 0
jne 0x412523
cmp dword [0x44f390], edi
jne 0x4124ef
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 8]
call fcn.00412115
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x44], eax
mov ecx, esi
lea eax, [ebp - 0x14]
push eax
call fcn.0041319b
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x38], edx
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4124c7
call fcn.00410b64
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4124d7
call fcn.00410b64
lea eax, [esi + 0x40]
push eax
push edi
push esi
push 0x41261a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
jmp 0x412523
push 0x44f3e8
mov edx, str.Starting
lea ecx, [ebp - 0x10]
call fcn.00406d44
mov eax, dword [ebp - 0x10]
pop ecx
test eax, eax
je 0x41250d
mov ecx, dword [eax]
jmp 0x41250f
mov ecx, edi
call fcn.004114ce
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x412523
call fcn.004031e4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x412536
call fcn.00410b64
call fcn.00414fe0
ret 8
Function at 0x419adf
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x437478
push 0x437470
push 0x435fa8
push 0
call fcn.00419a58
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419b11
push dword [ebp + 8]
mov ecx, esi
call fcn.00414fda
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x419b53
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x437488
push 0x437480
push 0x435fbc
push 2
call fcn.00419a58
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x419b84
mov ecx, esi
call fcn.00414fda
call esi
jmp 0x419b8a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x419b8d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x437490
push 0x437488
push 0x435fc8
push 3
call fcn.00419a58
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x419bc1
mov ecx, esi
call fcn.00414fda
call esi
jmp 0x419bc7
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x424852
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x439efc
push str.FlsAlloc
push 0x1e
call fcn.004246bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424886
push dword [ebp + 8]
mov ecx, esi
call dword [0x4352e0]
call esi
jmp 0x42488c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4248d0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x439f20
push str.FlsGetValue
push 0x20
call fcn.004246bf
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424907
push dword [ebp + 8]
mov ecx, esi
call dword [0x4352e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x428be7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x44d07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x428c32
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00428d86
test al, al
jne 0x428c2c
sub edx, 2
cmp edx, edi
jne 0x428c12
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x428c54
lea eax, [edi + 2]
cmp edx, eax
je 0x428c54
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00428b33
add esp, 0x10
jmp 0x428d4e
push esi
lea ecx, [ebp - 0x255]
call fcn.00428d86
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x428c97
push dword [ebp - 0x25c]
jmp 0x428c44
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x428cd4
cmp word [ebp - 0x226], 0
je 0x428cf5
cmp word [ebp - 0x226], ax
jne 0x428cd4
cmp word [ebp - 0x224], 0
je 0x428cf5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00428b33
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x428d41
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x428cae
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x428d29
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x428d4e
push 0x428963
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042f210
add esp, 0x10
jmp 0x428d1e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414893
leave
ret

Function at 0x429659
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42966a
pop esi
ret
push ebx
push edi
push esi
call fcn.00429622
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041f83e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x429692
push ebx
push esi
push edi
call fcn.00415b70
add esp, 0xc
push 0
call fcn.00420075
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x429a56
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004296a7
Function at 0x401043
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push 0x1f4
push dword [ebp + 8]
call sub.USER32.dll_LoadIconA
mov dword [0x43500c], eax
jmp 0x40106b
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 0x3000
mov dword [ebp - 0x28], 0x401197
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x40105d
push dword [0x43500c]
pop dword [ebp - 0x18]
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
push dword [0x43500c]
pop dword [ebp - 4]
lea eax, [ebp - 0x30]
push eax
call sub.USER32.dll_RegisterClassExA
mov dword [ebp - 0x50], 0xc0
mov dword [ebp - 0x54], 0x96
push 0
call sub.USER32.dll_GetSystemMetrics
push eax
push dword [ebp - 0x50]
call fcn.00401283
mov dword [ebp - 0x58], eax
push 1
call sub.USER32.dll_GetSystemMetrics
push eax
push dword [ebp - 0x54]
call fcn.00401283
mov dword [ebp - 0x5c], eax
push 0
push dword [ebp + 8]
push 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
push dword [ebp - 0x58]
push 0x80000
push str.Animate
push 0x40105d
push 0
call sub.USER32.dll_CreateWindowExA
mov dword [0x435004], eax
push 0x258
push dword [ebp + 8]
call sub.USER32.dll_LoadMenuA
push eax
push dword [0x435004]
call sub.USER32.dll_SetMenu
push 1
push dword [0x435004]
call sub.USER32.dll_ShowWindow
push dword [0x435004]
call sub.USER32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_GetMessageA
cmp eax, 0
je 0x401190
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_DispatchMessageA
jmp 0x401168
mov eax, dword [ebp - 0x44]
leave
ret 0x10

Function at 0x4013f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 1
jne 0x401404
mov eax, dword [0x4350ec]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
jmp 0x401416
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [0x4350f0]
shr edx, 1
cmp dword [ebp - 4], edx
jae 0x40149b
mov eax, dword [ebp - 4]
mov ecx, dword [0x4350d4]
movzx edx, word [ecx + eax*2]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 0xc
cmp eax, 3
jne 0x401496
mov ecx, dword [ebp - 0xc]
and ecx, 0xfff
add ecx, 0x638f
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
sub edx, 0x638f
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 0
jne 0x401477
push 0x20e
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401477
xor eax, eax
jmp 0x40149b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx], eax
jmp 0x40140d
mov esp, ebp
pop ebp
ret
Function at 0x401810
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4350e0], 0x24e1
mov eax, dword [0x4350e0]
sub eax, 0x24e1
mov dword [0x4350e0], eax
mov ecx, 1
test ecx, ecx
je 0x4018bb
mov edx, dword [0x4350e0]
cmp edx, dword [ebp + 0xc]
jb 0x401847
jmp 0x4018bb
cmp dword [0x4350e0], 0
jne 0x401865
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401865
xor eax, eax
jmp 0x4018bb
mov eax, dword [ebp + 8]
add eax, dword [0x4350e0]
mov ecx, dword [eax]
add ecx, dword [0x4350e0]
mov edx, dword [ebp + 8]
add edx, dword [0x4350e0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x6c6da
mov eax, dword [0x4350e0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4350e0]
push eax
call fcn.004015c0
add esp, 8
mov ecx, dword [0x4350e0]
add ecx, 4
mov dword [0x4350e0], ecx
jmp 0x40182d
mov esp, ebp
pop ebp
ret
Function at 0x402129
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42ff44
call fcn.00411dd0
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
call fcn.0042a015
lea eax, [esi + 0xbc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax + 4], ebx
mov dword [eax], 0x432f64
lea eax, [esi + 0xc4]
mov dword [eax + 4], ebx
mov dword [eax], vtable.CFont.0
mov edi, 0x104
lea eax, [esi + 0xf0]
push edi
push eax
mov byte [ebp - 4], 2
mov dword [esi], 0x432e70
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esi + 0x1f4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esi + 0x1f4]
lea edi, [esi + 0x2f8]
push eax
push edi
call fcn.00411df0
push 0x449274
push edi
call fcn.00411e00
lea eax, [esi + 0xf0]
lea edi, [esi + 0x3fc]
push eax
push edi
call fcn.00411df0
push str.INF
push edi
call fcn.00411e00
add esp, 0x20
call fcn.0042c9d7
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c8], ebx
mov dword [0x44c280], 0x43f380
jne 0x4021f4
mov dword [0x44c280], 0x43f908
call fcn.0042c9d7
mov eax, dword [eax + 4]
cmp dword [eax + 0x1c8], ebx
mov eax, dword [0x43f900]
jne 0x40220e
mov eax, dword [0x43ff88]
mov dword [0x44c27c], eax
call fcn.0042c9d7
call fcn.0042c9d7
mov edi, dword [eax + 0xc]
call fcn.0042c9d7
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x80
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 0x600000
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push dword [ebp - 0x14]
push 0xb
call fcn.0042250d
push eax
lea ecx, [ebp - 0x18]
call fcn.00424cf8
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
mov byte [ebp - 4], 3
call edi
mov ecx, dword [ebp - 0x18]
push ebx
mov dword [ebp - 0x1c], ecx
push ebx
lea ecx, [eax + eax*2]
mov dword [ebp - 0x10], eax
neg dword [ebp - 0x10]
push ebx
push 1
mov dword [ebp - 0x14], ecx
call edi
add eax, dword [ebp - 0x14]
push eax
push ebx
call edi
add eax, dword [ebp - 0x14]
mov ecx, esi
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x10]
push SysReAllocStringLen
push 0x43f154
push dword [ebp - 0x1c]
push ebx
call fcn.00421e28
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00424c8a
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405dd7
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00411df0
lea eax, [ebp - 0x118]
push str.USER.EXE
push eax
call fcn.00411e00
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x405ece
lea eax, [esi + 0x64]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x405ece
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
lea eax, [ebp - 0x118]
push edi
push esi
push dword [ebp - 0x14]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0xc], 0
je 0x405ebf
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x43f1e8
movsx eax, byte [eax]
push eax
lea eax, [ebp - 4]
push edi
push eax
call esi
lea eax, [ebp - 4]
push eax
call fcn.00412047
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movsx eax, byte [eax + 1]
push eax
lea eax, [ebp - 4]
push edi
push eax
call esi
lea eax, [ebp - 4]
push eax
call fcn.00412047
add esp, 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret
Function at 0x405ed5
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00411df0
lea eax, [ebp - 0x114]
push str.USER.EXE
push eax
call fcn.00411e00
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x405fcc
lea eax, [esi + 0x64]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x405fcc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
lea eax, [ebp - 0x114]
push edi
push esi
push dword [ebp - 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0x10], 0
je 0x405fbd
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x43f1e8
movsx eax, byte [eax]
push eax
lea eax, [ebp - 4]
push edi
push eax
call esi
lea eax, [ebp - 4]
push eax
call fcn.00412047
mov eax, dword [ebp - 8]
movsx eax, byte [eax + 1]
push eax
lea eax, [ebp - 4]
push edi
push eax
call esi
lea eax, [ebp - 4]
push eax
call fcn.00412047
add esp, 0x20
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x417d15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44b800
cmp edx, dword [eax]
je 0x417d37
add eax, 8
inc ecx
cmp eax, 0x44b890
jl 0x417d28
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44b800]
jne 0x417e65
mov eax, dword [0x44e4b4]
cmp eax, 1
je 0x417e3f
test eax, eax
jne 0x417d68
cmp dword [0x44b0f4], 1
je 0x417e3f
cmp edx, 0xfc
je 0x417e65
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417d9f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411df0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004120f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417de2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004120f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4367bc
push edi
call fcn.0041a020
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411df0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411e00
lea eax, [ebp - 0xa0]
push 0x43679c
push eax
call fcn.00411e00
push dword [esi + 0x44b804]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411e00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041a160
add esp, 0x2c
pop edi
jmp 0x417e65
lea eax, [ebp + 8]
lea esi, [esi + 0x44b804]
push 0
push eax
push dword [esi]
call fcn.004120f0
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 0x41f180
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.00412200
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41f24b
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 0x41f24b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41f1fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41f209
or bh, 8
and edi, 0x8000000
je 0x41f224
mov eax, dword [0x44fc3c]
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 0x41f24b
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