joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c134
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43e640], ebx
push esi
push edi
jne 0x41c1b4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41c1ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x433768
push edi
call esi
test eax, eax
mov dword [0x43e640], eax
je 0x41c1ef
push 0x433758
push edi
call esi
push 0x433744
push edi
mov dword [0x43e644], eax
call esi
cmp dword [0x43e218], 2
mov dword [0x43e648], eax
jne 0x41c1b4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43e650], eax
je 0x41c1b4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43e64c], eax
mov eax, dword [0x43e64c]
test eax, eax
je 0x41c1f9
call eax
test eax, eax
je 0x41c1e0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43e650]
test eax, eax
je 0x41c1e0
test byte [ebp - 8], 1
jne 0x41c1f9
cmp dword [0x43e224], 4
jb 0x41c1f3
or byte [ebp + 0x12], 0x20
jmp 0x41c218
xor eax, eax
jmp 0x41c228
or byte [ebp + 0x12], 4
jmp 0x41c218
mov eax, dword [0x43e644]
test eax, eax
je 0x41c218
call eax
mov ebx, eax
test ebx, ebx
je 0x41c218
mov eax, dword [0x43e648]
test eax, eax
je 0x41c218
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43e640]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41c926
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004139e0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41c9bb
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x43e218]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x41c9bb
cmp eax, 1
je 0x41c9d3
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41c9bb
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x41c990
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41c9b7
xor eax, eax
inc eax
jmp 0x41c9ef
cmp esi, ebx
jae 0x41c9bf
xor eax, eax
jmp 0x41c9ef
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x43e218]
jmp 0x41c9d5
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41dae2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41dca8
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x43f700]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41dca8
test cl, 0x48
je 0x41db48
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41db48
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41db9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41db82
call fcn.00415a2e
mov dword [eax], 9
call fcn.00415a37
mov dword [eax], esi
jmp 0x41db92
cmp eax, 0x6d
je 0x41dca8
push eax
call fcn.00415a40
pop ecx
or eax, 0xffffffff
jmp 0x41dcaa
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x41dca3
test edx, edx
je 0x41dbbd
cmp byte [ebx], 0xa
jne 0x41dbbd
or al, 4
jmp 0x41dbbf
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41dc9d
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41dc8d
cmp al, 0xd
je 0x41dbf3
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41dc7f
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41dc0d
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41dc08
add dword [ebp + 0x10], 2
jmp 0x41dc61
mov dword [ebp + 0x10], eax
jmp 0x41dc7b
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41dc35
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41dc7b
cmp dword [ebp - 0xc], 0
je 0x41dc7b
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41dc56
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41dc61
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41dc7e
cmp ebx, dword [ebp + 0xc]
jne 0x41dc66
cmp byte [ebp - 1], 0xa
jne 0x41dc66
mov byte [ebx], 0xa
jmp 0x41dc7e
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041af98
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41dc7f
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41dbd7
jmp 0x41dc9d
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41dc9d
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41dcaa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e3c0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x41e42b
push 0x3d
push dword [ebp + 8]
call fcn.00414830
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x41e42b
cmp dword [ebp + 8], esi
je 0x41e42b
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x43e238]
cmp eax, dword [0x43e23c]
jne 0x41e411
mov edi, eax
call fcn.0041e35f
mov dword [0x43e238], eax
cmp eax, ebx
jne 0x41e46a
cmp dword [ebp + 0xc], ebx
je 0x41e433
cmp dword [0x43e240], ebx
je 0x41e433
call fcn.0041dda8
test eax, eax
je 0x41e46a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x41e56e
push 4
call fcn.0041395c
cmp eax, ebx
pop ecx
mov dword [0x43e238], eax
je 0x41e42b
mov dword [eax], ebx
cmp dword [0x43e240], ebx
jne 0x41e46a
push 4
call fcn.0041395c
cmp eax, ebx
pop ecx
mov dword [0x43e240], eax
je 0x41e42b
mov dword [eax], ebx
mov ebx, dword [0x43e238]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0041e312
mov edi, eax
test edi, edi
pop ecx
jl 0x41e4c3
cmp dword [ebx], 0
je 0x41e4c3
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0041396e
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x41e4ab
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x41e4f9
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x41e4a2
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00414238
test eax, eax
pop ecx
pop ecx
je 0x41e4f9
jmp 0x41e4f4
cmp dword [ebp - 4], 0
jne 0x41e567
test edi, edi
jge 0x41e4d3
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00414238
test eax, eax
pop ecx
pop ecx
je 0x41e42b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x43e238], eax
cmp dword [ebp + 0xc], 0
je 0x41e550
push dword [ebp + 8]
call fcn.004140f0
inc eax
inc eax
push eax
call fcn.0041395c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41e550
push dword [ebp + 8]
push esi
call fcn.00419de0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41e549
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0041396e
pop ecx
cmp dword [ebp - 4], 0
je 0x41e55f
push dword [ebp + 8]
call fcn.0041396e
pop ecx
mov eax, dword [ebp - 8]
jmp 0x41e42e
push esi
call fcn.0041396e
pop ecx
xor eax, eax
jmp 0x41e42e
Function at 0x41ec0a
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x42d456
call fcn.00413cc0
sub esp, 0x9c
mov eax, dword [0x43b380]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call fcn.0041fd3d
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.00401510
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x41ec9b
mov edi, 0x94
push edi
lea eax, [ebp - 0xa8]
push ebx
push eax
call fcn.00413c60
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x98], 2
jne 0x41ec94
cmp dword [ebp - 0xa4], 5
mov dword [ebp + 0x20], 0x58
jae 0x41ec9b
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0041395c
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x41ecb0
call fcn.0041e9a4
push dword [ebp + 0x20]
push ebx
push dword [esi + 0x70]
call fcn.00413c60
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x41ed2f
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.0042a0a8
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x41eef7
je 0x41ed5b
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x41ed91
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00401e80
push ebx
mov ecx, edi
call fcn.00401550
jmp 0x41ed7a
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.00414830
cmp eax, ebx
pop ecx
pop ecx
jne 0x41ed77
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0041355b
leave
ret 0x1c
Function at 0x4200df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x420116
call fcn.0042a0a8
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x420127
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x420160
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x420145
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x42014d
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x42015e
test ax, ax
jne 0x42015e
test si, si
je 0x420160
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x42016f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4203c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42cf03
call fcn.00413cc0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.0042a0a8
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x42040f
call fcn.0042a0a8
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
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], 0
je 0x420420
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x42042c
or eax, 0xffffffff
jmp 0x42052f
mov ecx, esi
call fcn.0041ff09
mov dword [ebp - 0x14], eax
call fcn.00421be1
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x42046f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42046f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42046f
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.00422e4d
push dword [ebp - 0x14]
call fcn.00421b39
push edi
push eax
push ebx
mov ecx, esi
call fcn.004201b4
xor ebx, ebx
cmp eax, ebx
je 0x4204e3
test byte [esi + 0x38], 0x10
je 0x4204b1
push 4
pop edi
mov ecx, esi
call fcn.00423ac4
test ah, 1
je 0x4204a9
push 5
pop edi
push edi
mov ecx, esi
call fcn.004215dd
cmp dword [esi + 0x1c], ebx
je 0x4204e3
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00423cf0
jmp 0x4204e3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4204f7
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x420510
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x420510
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.0041ff43
cmp dword [esi + 0x54], ebx
je 0x42052c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x422597
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x4225d1
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.004062d1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00406292
pop esi
ret 4
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x4237ba
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 0x4237fd
call fcn.0042a0a8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4237fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x423818
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00422921
test ebx, ebx
mov esi, eax
je 0x423816
test edi, edi
je 0x423816
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4240a2
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x42d00b
call fcn.00413cc0
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4240bc
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x424108
call fcn.004246e1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x425741
Capabilities:
Get disk information

Disassembly:
mov eax, 0x42d48f
call fcn.00413cc0
sub esp, 0x14c
mov eax, dword [0x43b380]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x42578b
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x425820
push ebx
call fcn.004246e1
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.004256ff
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x425812
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x425815
test byte [ebp + 8], 2
jne 0x4257e0
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x425812
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x425812
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.004010d0
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.0041355b
leave
ret 8
Function at 0x4264a0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00413c60
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x4315dc]
je 0x4265a7
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x426510
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x426517
cmp ebx, ebx
jne 0x426517
xor eax, eax
jmp 0x4265aa
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x426524
mov byte [esi + 0x20], bl
jmp 0x426538
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00412b68
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00412b68
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00412b68
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x426593
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4265a7
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42717a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x43b380]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x4271cc
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x4271cc
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4271d8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.0041355b
leave
ret 8
Function at 0x427d9d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43b380]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x427ded
push dword [ebp + 8]
call fcn.0042ab10
mov esi, eax
test esi, esi
je 0x427e15
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x427e15
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x4309a4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.0041355b
leave
ret 0xc

Function at 0x428e6f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x43b380]
xor eax, dword [ebp + 4]
cmp dword [ebp + 0xc], 0x800
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x428ecc
push 0x430a54
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0041355b
leave
ret
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x428e9b
jmp 0x428ebf