joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cef2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41cf20
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x41cf25
cmp eax, 1
je 0x41cf25
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41cf29
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x43f2a8]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x41cfa1
push ebx
call fcn.0041cef2
test eax, eax
pop ecx
jne 0x41cf70
call fcn.0041503d
mov dword [eax], 0xf
call fcn.00415034
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00412f7c
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x41cfb3
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41cf63
inc eax
cmp eax, 0x104
ja 0x41cf63
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41cfeb
cmp eax, dword [ebp + 0x10]
jg 0x41cfce
mov eax, dword [ebp + 0x10]
push eax
call fcn.00413aa7
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41d000
call fcn.00415034
mov dword [eax], 0xc
jmp 0x41cf63
cmp eax, dword [ebp + 0x10]
jle 0x41d000
call fcn.00415034
mov dword [eax], 0x22
jmp 0x41cf63
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0041b770
pop ecx
pop ecx
jmp 0x41cf65
Function at 0x41d4f8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44269c], ebx
push esi
push edi
jne 0x41d578
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41d5b3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x436d3c
push edi
call esi
test eax, eax
mov dword [0x44269c], eax
je 0x41d5b3
push 0x436d2c
push edi
call esi
push 0x436d18
push edi
mov dword [0x4426a0], eax
call esi
cmp dword [0x442258], 2
mov dword [0x4426a4], eax
jne 0x41d578
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4426ac], eax
je 0x41d578
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4426a8], eax
mov eax, dword [0x4426a8]
test eax, eax
je 0x41d5bd
call eax
test eax, eax
je 0x41d5a4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4426ac]
test eax, eax
je 0x41d5a4
test byte [ebp - 8], 1
jne 0x41d5bd
cmp dword [0x442264], 4
jb 0x41d5b7
or byte [ebp + 0x12], 0x20
jmp 0x41d5dc
xor eax, eax
jmp 0x41d5ec
or byte [ebp + 0x12], 4
jmp 0x41d5dc
mov eax, dword [0x4426a0]
test eax, eax
je 0x41d5dc
call eax
mov ebx, eax
test ebx, ebx
je 0x41d5dc
mov eax, dword [0x4426a4]
test eax, eax
je 0x41d5dc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44269c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f957
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 0x41f970
or eax, 0xffffffff
jmp 0x41f9d1
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41f9cd
push 0x3d
push esi
call fcn.004135a1
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41f9cd
cmp esi, eax
je 0x41f9cd
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x442278]
sete cl
cmp eax, dword [0x44227c]
mov dword [ebp - 8], ecx
jne 0x41f9b3
mov edi, eax
call fcn.0041f8f6
mov dword [0x442278], eax
cmp eax, ebx
jne 0x41fa0c
cmp dword [ebp + 0xc], ebx
je 0x41f9d5
cmp dword [0x442280], ebx
je 0x41f9d5
call fcn.0041f156
test eax, eax
je 0x41fa0c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41f9de
xor eax, eax
jmp 0x41f9d0
push 4
call fcn.00413aa7
cmp eax, ebx
pop ecx
mov dword [0x442278], eax
je 0x41f9cd
mov dword [eax], ebx
cmp dword [0x442280], ebx
jne 0x41fa0c
push 4
call fcn.00413aa7
cmp eax, ebx
pop ecx
mov dword [0x442280], eax
je 0x41f9cd
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x442278]
call fcn.0041f8a9
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41fa6d
cmp dword [esi], ebx
je 0x41fa6d
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0041398f
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41fa50
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41faae
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41fa47
mov eax, edi
shl eax, 2
push eax
push dword [0x442278]
call fcn.0041497a
cmp eax, ebx
pop ecx
pop ecx
je 0x41faae
jmp 0x41faa9
cmp dword [ebp - 8], ebx
jne 0x41fb19
cmp edi, ebx
jge 0x41fa7c
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x442278]
call fcn.0041497a
cmp eax, ebx
pop ecx
pop ecx
je 0x41f9cd
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 [0x442278], eax
cmp dword [ebp + 0xc], ebx
je 0x41fb03
push dword [ebp - 4]
call fcn.00414820
inc eax
inc eax
push eax
call fcn.00413aa7
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41fb03
push dword [ebp - 4]
push esi
call fcn.0041b770
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 0x41fafc
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0041398f
pop ecx
cmp dword [ebp - 8], ebx
je 0x41fb11
push dword [ebp - 4]
call fcn.0041398f
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41f9d0
push dword [ebp - 4]
call fcn.0041398f
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41f9da
Function at 0x42020f
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x430547
call fcn.0041428c
sub esp, 0x9c
mov eax, dword [0x43f2a8]
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 - 0xa8], esi
call fcn.00421ae8
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.004012d0
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x4202a0
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.004148e0
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x420299
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x4202a0
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00413aa7
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x4202b5
call fcn.0041ff8f
push dword [ebp + 0x20]
push ebx
push eax
call fcn.004148e0
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 0x420332
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.0042cf2e
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], 0x4204f7
je 0x42035e
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x420394
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.004014a0
push ebx
mov ecx, edi
call fcn.00401310
jmp 0x42037d
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.004135a1
cmp eax, ebx
pop ecx
pop ecx
jne 0x42037a
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00412f7c
leave
ret 0x1c
Function at 0x421e92
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 0x421ec9
call fcn.0042cf2e
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 0x421eda
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x421f13
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x421ef8
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x421f00
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x421f11
test ax, ax
jne 0x421f11
test si, si
je 0x421f13
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x421f22
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x422174
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x430273
call fcn.0041428c
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.0042cf2e
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x4221c2
call fcn.0042cf2e
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 0x4221d3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4221df
or eax, 0xffffffff
jmp 0x4222e2
mov ecx, esi
call fcn.00421cb4
mov dword [ebp - 0x14], eax
call fcn.004246fd
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x422222
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x422222
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x422222
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.0042598d
push dword [ebp - 0x14]
call fcn.00424655
push edi
push eax
push ebx
mov ecx, esi
call fcn.00421f67
xor ebx, ebx
cmp eax, ebx
je 0x422296
test byte [esi + 0x38], 0x10
je 0x422264
push 4
pop edi
mov ecx, esi
call fcn.0042669e
test ah, 1
je 0x42225c
push 5
pop edi
push edi
mov ecx, esi
call fcn.004240f9
cmp dword [esi + 0x1c], ebx
je 0x422296
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.004268ec
jmp 0x422296
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4222aa
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x4222c3
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4222c3
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.00421cee
cmp dword [esi + 0x54], ebx
je 0x4222df
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 0x4250d2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x42510b
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.0040a6c3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00408530
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x4262f9
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 0x42633c
call fcn.0042cf2e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42633c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x426357
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042545e
test ebx, ebx
mov esi, eax
je 0x426355
test edi, edi
je 0x426355
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4264a2
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x431ca0
mov ecx, edi
call fcn.004014a0
cmp dword [esi + 0x48], 0
push dword [esp + 0xc]
jne 0x4264f5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x426508
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0040a6c3
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00408530
jmp 0x426508
mov ecx, esi
call fcn.004265fe
test eax, eax
je 0x426508
push edi
mov ecx, eax
call fcn.004250d2
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x426d58
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x43045e
call fcn.0041428c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x426d72
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x426dbe
call fcn.00422453
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.004010e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42762a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x42765d
push dword [ebp + 8]
call edi
push eax
call fcn.00428cff
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x427688
test byte [ebp - 4], 1
je 0x427688
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x427688
push dword [ebp + 8]
call edi
push eax
call fcn.00428cff
lea eax, [esi + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x427738
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00427571
pop ecx
lea eax, [esi + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x4276be
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00427571
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x4276d7
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00427571
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x427702
push dword [ebp + 8]
call edi
push eax
call fcn.00428cff
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x427722
push dword [ebp + 8]
call edi
push eax
call fcn.00428cff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x427738
push dword [ebp + 8]
call edi
push eax
call fcn.00428cff
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x427760
test byte [ebp - 4], 1
jne 0x427760
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x427760
push dword [ebp + 8]
call edi
push eax
call fcn.00428cff
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x427767
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.004148e0
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 [0x435030]
je 0x42786e
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 0x4277d7
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 0x4277de
cmp ebx, ebx
jne 0x4277de
xor eax, eax
jmp 0x427871
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x4277eb
mov byte [esi + 0x20], bl
jmp 0x4277ff
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.0040a948
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.0040a948
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.0040a948
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 0x42785a
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 0x42786e
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 0x428415
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4309dd
call fcn.0041428c
sub esp, 0x150
mov eax, dword [0x43f2a8]
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 0x42845d
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x428461
cmp eax, esi
jb 0x428468
xor eax, eax
jmp 0x42853d
call fcn.00422453
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.004283d3
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x42852d
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 0x4284bc
xor esi, esi
jmp 0x428530
test byte [ebp - 0x158], 2
jne 0x4284cc
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x42852d
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x42852d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x4284b8
cmp dword [ebp - 0x154], edi
jbe 0x4284b8
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 0x4284b8
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.004010e0
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.00412f7c
leave
ret 8

Function at 0x429f18
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x43f2a8]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, pe_nt_image_headers32
cmp esi, eax
ja 0x429f67
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x429f67
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x429f73
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00412f7c
leave
ret 8
Function at 0x42a6b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43f2a8]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x42a6fd
push dword [ebp + 8]
call fcn.0042bdb9
mov esi, eax
test esi, esi
je 0x42a725
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 0x42a725
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x432714
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.00412f7c
leave
ret 0xc

Function at 0x42b5db
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x43f2a8]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x42b639
push 0x432974
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.004141fe
add esp, 0x10
cmp eax, 0xffffffff
je 0x42b64d
cmp eax, esi
jae 0x42b64d
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x42b64f
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42b604
jmp 0x42b650
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00412f7c
leave
ret