joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418184
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41819d
or eax, 0xffffffff
jmp 0x4181fe
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4181fa
push 0x3d
push esi
call fcn.0040cb4f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4181fa
cmp esi, eax
je 0x4181fa
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x43b02c]
sete cl
cmp eax, dword [0x43b030]
mov dword [ebp - 8], ecx
jne 0x4181e0
mov edi, eax
call fcn.00418123
mov dword [0x43b02c], eax
cmp eax, ebx
jne 0x418239
cmp dword [ebp + 0xc], ebx
je 0x418202
cmp dword [0x43b034], ebx
je 0x418202
call fcn.00416e69
test eax, eax
je 0x418239
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41820b
xor eax, eax
jmp 0x4181fd
push 4
call fcn.0040bc3b
cmp eax, ebx
pop ecx
mov dword [0x43b02c], eax
je 0x4181fa
mov dword [eax], ebx
cmp dword [0x43b034], ebx
jne 0x418239
push 4
call fcn.0040bc3b
cmp eax, ebx
pop ecx
mov dword [0x43b034], eax
je 0x4181fa
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x43b02c]
call fcn.004180d6
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41829a
cmp dword [esi], ebx
je 0x41829a
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040bb23
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41827d
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4182db
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x418274
mov eax, edi
shl eax, 2
push eax
push dword [0x43b02c]
call fcn.0040dfcc
cmp eax, ebx
pop ecx
pop ecx
je 0x4182db
jmp 0x4182d6
cmp dword [ebp - 8], ebx
jne 0x418346
cmp edi, ebx
jge 0x4182a9
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x43b02c]
call fcn.0040dfcc
cmp eax, ebx
pop ecx
pop ecx
je 0x4181fa
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x43b02c], eax
cmp dword [ebp + 0xc], ebx
je 0x418330
push dword [ebp - 4]
call fcn.0040d830
inc eax
inc eax
push eax
call fcn.0040bc3b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x418330
push dword [ebp - 4]
push esi
call fcn.00414700
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
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 0x418329
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040bb23
pop ecx
cmp dword [ebp - 8], ebx
je 0x41833e
push dword [ebp - 4]
call fcn.0040bb23
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4181fd
push dword [ebp - 4]
call fcn.0040bb23
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x418207
Function at 0x4191f0
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
mov eax, 0x10020
call fcn.0040d7f0
mov eax, dword [0x438148]
mov ecx, dword [0x431094]
mov edx, dword [0x431098]
push esi
mov dword [esp + 0x10020], eax
mov eax, dword [str.Accept:___r_n_r_n]
push 0
mov dword [esp + 0x10018], ecx
mov dword [esp + 0x10014], eax
mov eax, dword [0x43109c]
push 0x84000100
lea ecx, [esp + 0x10018]
push ecx
mov dword [esp + 0x10024], edx
mov dword [esp + 0x10028], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10030]
push eax
mov eax, dword [esp + 0x10038]
lea edx, [esp + 0x1001c]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x41928e
mov eax, 1
pop esi
mov ecx, dword [esp + 0x1001c]
call fcn.0040cf18
add esp, 0x10020
ret 0xc
push 0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x20000005
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4192d5
mov eax, 3
pop esi
mov ecx, dword [esp + 0x1001c]
call fcn.0040cf18
add esp, 0x10020
ret 0xc
mov ecx, dword [esp + 0x10030]
push edi
push 0x43108c
push ecx
call fcn.0040c6de
mov edi, eax
add esp, 8
test edi, edi
jne 0x41930d
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x1001c]
call fcn.0040cf18
add esp, 0x10020
ret 0xc
push ebx
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
push ebp
call ebx
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x10]
push edx
push 0x4000
lea eax, [esp + 0x24]
push eax
push esi
call ebp
test eax, eax
je 0x419364
mov eax, dword [esp + 0x10]
test eax, eax
push edi
je 0x419374
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
call fcn.0040c895
add esp, 0x10
call ebx
lea edx, [esp + 0x10]
push edx
push 0x4000
lea eax, [esp + 0x24]
push eax
push esi
call ebp
test eax, eax
jne 0x419333
push edi
call fcn.0040c73d
add esp, 4
mov eax, 3
jmp 0x419384
call fcn.0040ca41
push edi
call fcn.0040c73d
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x1002c]
pop ebp
pop ebx
pop edi
pop esi
call fcn.0040cf18
add esp, 0x10020
ret 0xc
Function at 0x4193a0
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
sub esp, 0x48
mov eax, dword [0x438148]
mov dword [esp + 0x44], eax
push 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [esp], 0x20
je 0x4193d3
mov eax, 4
mov ecx, dword [esp + 0x44]
call fcn.0040cf18
add esp, 0x48
ret 0xc
push esi
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea ecx, [esp + 0xc]
push str.Agent_ld
push ecx
call fcn.0040c62a
mov al, byte [esp + 0x10]
add esp, 0xc
test al, 4
push 0
push 0
push 0
jne 0x419404
push 4
lea edx, [esp + 0x18]
push edx
jmp 0x41940b
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x419444
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push edi
push ecx
push edx
push esi
call fcn.004191f0
push esi
mov edi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x44]
call fcn.0040cf18
add esp, 0x48
ret 0xc
mov ecx, dword [esp + 0x48]
mov eax, 4
pop esi
call fcn.0040cf18
add esp, 0x48
ret 0xc
Function at 0x419730
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x438148]
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41977b
cmp dword [esp + 0x10], 2
jne 0x41977b
cmp dword [esp + 4], 6
jb 0x41977b
mov al, 1
mov ecx, dword [esp + 0x94]
call fcn.0040cf18
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor al, al
call fcn.0040cf18
add esp, 0x98
ret

Function at 0x419800
Capabilities:
Get disk size

Disassembly:
sub esp, 0x18
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x41985d
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
shrd eax, ecx, 0xa
cdq
push esi
mov esi, eax
xor esi, edx
lea eax, [edi - 0x10]
shr ecx, 0xa
sub esi, edx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419853
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
pop esi
pop edi
add esp, 0x18
ret 4
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419877
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop edi
add esp, 0x18
ret 4

Function at 0x419880
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x2001f
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4198c6
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test esi, esi
je 0x4198bc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret 4
xor eax, eax
pop ecx
ret 4

Function at 0x419960
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4199c6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
inc eax
push eax
push esi
mov esi, dword [esp + 0xc]
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x4199bc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret 8
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x41bb50
Capabilities:
Check if file exists
Create directory
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x42b016
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
call fcn.00422403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
push str.AppData
push ebp
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, SysReAllocString
mov dword [esp + 0x20], 0
call fcn.004198d0
test eax, eax
lea esi, [ebp + 0xc4]
jne 0x41bbab
xor ecx, ecx
jmp 0x41bbb9
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x41bbb0
sub ecx, edi
push ecx
push eax
mov ecx, esi
call fcn.00401c50
push str.xfplayer_
lea eax, [esp + 0x10]
push esi
push eax
call fcn.004016b0
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.00401be0
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bc05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41bc1d
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.Down.txt
lea eax, [esp + 0x10]
push esi
push eax
call fcn.004016b0
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.00401be0
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bc62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x20]
mov eax, dword [esi - 4]
mov edx, dword [esi - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, edx
or eax, ecx
jge 0x41bc8a
push edx
lea ecx, [esp + 0x24]
call fcn.00401a50
mov esi, dword [esp + 0x20]
push esi
push str.http:__www.xfplay.com_Down.txt
push ebp
call fcn.004193a0
test esi, esi
mov edi, eax
jne 0x41bca0
xor eax, eax
jmp 0x41bcb0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41bca5
sub eax, edx
js 0x41bcf4
cmp eax, dword [esi - 8]
jg 0x41bcf4
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bcde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 4
push 0x80070057
call fcn.004011d0
int3
Function at 0x41ddcf
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 0x41de06
call fcn.00427c99
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 0x41de17
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x41de50
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x41de35
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x41de3d
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x41de4e
test ax, ax
jne 0x41de4e
test si, si
je 0x41de50
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x41de5f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41e0bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42a6d4
call fcn.0040d490
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.00427c99
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x41e0ff
call fcn.00427c99
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 0x41e110
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x41e11c
or eax, 0xffffffff
jmp 0x41e21f
mov ecx, esi
call fcn.0041dbf1
mov dword [ebp - 0x14], eax
call fcn.0041f8b0
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x41e15f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41e15f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41e15f
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.00420afb
push dword [ebp - 0x14]
call fcn.0041f808
push edi
push eax
push ebx
mov ecx, esi
call fcn.0041dea4
xor ebx, ebx
cmp eax, ebx
je 0x41e1d3
test byte [esi + 0x38], 0x10
je 0x41e1a1
push 4
pop edi
mov ecx, esi
call fcn.00422de9
test ah, 1
je 0x41e199
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041f2ac
cmp dword [esi + 0x1c], ebx
je 0x41e1d3
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00422fe3
jmp 0x41e1d3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x41e1e7
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x41e200
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41e200
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.0041dc2b
cmp dword [esi + 0x54], ebx
je 0x41e21c
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 0x421467
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 0x4214aa
call fcn.00427c99
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4214aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4214c5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004205cc
test ebx, ebx
mov esi, eax
je 0x4214c3
test edi, edi
je 0x4214c3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x422a5d
Capabilities:
Get disk information

Disassembly:
mov eax, 0x42a9aa
call fcn.0040d490
sub esp, 0x150
mov eax, dword [0x438148]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x422aa5
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x422aa9
cmp eax, esi
jb 0x422ab0
xor eax, eax
jmp 0x422b85
call fcn.00422403
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
push edi
mov dword [ebp - 4], ebx
call fcn.00422a1b
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x422b75
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x422b04
xor esi, esi
jmp 0x422b78
test byte [ebp - 0x158], 2
jne 0x422b14
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x422b75
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x422b75
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x422b00
cmp dword [ebp - 0x154], edi
jbe 0x422b00
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x422b00
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004013b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040cf18
leave
ret 8

Function at 0x42344f
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x42a9d1
call fcn.0040d490
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x423469
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4234b5
call fcn.00422403
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.004013b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4240ec
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.0040d8c0
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 [0x42dd2c]
je 0x4241f3
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 0x42415c
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 0x424163
cmp ebx, ebx
jne 0x424163
xor eax, eax
jmp 0x4241f6
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x424170
mov byte [esi + 0x20], bl
jmp 0x424184
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.0040ba04
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.0040ba04
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.0040ba04
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 0x4241df
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 0x4241f3
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 0x424df8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x438148]
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 0x424e47
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x424e47
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x424e53
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040cf18
leave
ret 8
Function at 0x425717
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x438148]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x425764
push dword [ebp + 8]
call fcn.00427577
mov esi, eax
test esi, esi
je 0x42578c
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 0x42578c
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x42d8dc
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]
pop esi
call fcn.0040cf18
leave
ret 0xc

Function at 0x426d9f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x438148]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x426dfd
push 0x42d61c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0040d920
add esp, 0x10
cmp eax, 0xffffffff
je 0x426e11
cmp eax, esi
jae 0x426e11
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x426e13
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x426dc8
jmp 0x426e14
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.0040cf18
leave
ret