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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x449be4], ebx
push esi
push edi
jne 0x42357a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4235b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43d790
push edi
call esi
test eax, eax
mov dword [0x449be4], eax
je 0x4235b5
push 0x43d780
push edi
call esi
push 0x43d76c
push edi
mov dword [0x449be8], eax
call esi
cmp dword [0x449794], 2
mov dword [0x449bec], eax
jne 0x42357a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x449bf4], eax
je 0x42357a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x449bf0], eax
mov eax, dword [0x449bf0]
test eax, eax
je 0x4235bf
call eax
test eax, eax
je 0x4235a6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x449bf4]
test eax, eax
je 0x4235a6
test byte [ebp - 8], 1
jne 0x4235bf
cmp dword [0x4497a0], 4
jb 0x4235b9
or byte [ebp + 0x12], 0x20
jmp 0x4235de
xor eax, eax
jmp 0x4235ee
or byte [ebp + 0x12], 4
jmp 0x4235de
mov eax, dword [0x449be8]
test eax, eax
je 0x4235de
call eax
mov ebx, eax
test ebx, ebx
je 0x4235de
mov eax, dword [0x449bec]
test eax, eax
je 0x4235de
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x449be4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x423967
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004189f0
mov eax, dword [0x446490]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00420ca0
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x423a91
push 2
push esi
push dword [ebp + 8]
call fcn.00420ca0
add esp, 0xc
cmp eax, ebx
je 0x423a91
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x423a34
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00419690
push 0x8000
push dword [ebp + 8]
call fcn.0042499a
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4239ed
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00420dbf
add esp, 0xc
cmp eax, 0xffffffff
je 0x423a0d
sub edi, eax
test edi, edi
jg 0x4239e5
jmp 0x423a25
call fcn.00419fae
cmp dword [eax], 5
jne 0x423a22
call fcn.00419fa5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0042499a
pop ecx
pop ecx
jmp 0x423a7c
jge 0x423a7c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00420ca0
push dword [ebp + 8]
call fcn.00421a15
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x423a7c
call fcn.00419fa5
mov dword [eax], 0xd
call fcn.00419fae
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00420ca0
add esp, 0xc
mov eax, esi
pop edi
jmp 0x423a93
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004195ce
leave
ret
Function at 0x4247e5
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 0x424850
push 0x3d
push dword [ebp + 8]
call fcn.004196fb
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x424850
cmp dword [ebp + 8], esi
je 0x424850
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x4497b4]
cmp eax, dword [0x4497b8]
jne 0x424836
mov edi, eax
call fcn.00424784
mov dword [0x4497b4], eax
cmp eax, ebx
jne 0x42488f
cmp dword [ebp + 0xc], ebx
je 0x424858
cmp dword [0x4497bc], ebx
je 0x424858
call fcn.004238fc
test eax, eax
je 0x42488f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x424993
push 4
call fcn.00418d60
cmp eax, ebx
pop ecx
mov dword [0x4497b4], eax
je 0x424850
mov dword [eax], ebx
cmp dword [0x4497bc], ebx
jne 0x42488f
push 4
call fcn.00418d60
cmp eax, ebx
pop ecx
mov dword [0x4497bc], eax
je 0x424850
mov dword [eax], ebx
mov ebx, dword [0x4497b4]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00424737
mov edi, eax
test edi, edi
pop ecx
jl 0x4248e8
cmp dword [ebx], 0
je 0x4248e8
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00418d72
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4248d0
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x42491e
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4248c7
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00419776
test eax, eax
pop ecx
pop ecx
je 0x42491e
jmp 0x424919
cmp dword [ebp - 4], 0
jne 0x42498c
test edi, edi
jge 0x4248f8
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00419776
test eax, eax
pop ecx
pop ecx
je 0x424850
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4497b4], eax
cmp dword [ebp + 0xc], 0
je 0x424975
push dword [ebp + 8]
call fcn.004195e0
inc eax
inc eax
push eax
call fcn.00418d60
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x424975
push dword [ebp + 8]
push esi
call fcn.0041c4f0
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 0x42496e
or dword [ebp - 8], 0xffffffff
push esi
call fcn.00418d72
pop ecx
cmp dword [ebp - 4], 0
je 0x424984
push dword [ebp + 8]
call fcn.00418d72
pop ecx
mov eax, dword [ebp - 8]
jmp 0x424853
push esi
call fcn.00418d72
pop ecx
xor eax, eax
jmp 0x424853
Function at 0x426731
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 0x426768
call fcn.0042f683
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 0x426779
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x4267b2
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x426797
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x42679f
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x4267b0
test ax, ax
jne 0x4267b0
test si, si
je 0x4267b2
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x4267c1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x426a13
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x433ffc
call fcn.0041966c
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.0042f683
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x426a61
call fcn.0042f683
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 0x426a72
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x426a7e
or eax, 0xffffffff
jmp 0x426b81
mov ecx, esi
call fcn.0042655b
mov dword [ebp - 0x14], eax
call fcn.004283db
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x426ac1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x426ac1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x426ac1
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.00429647
push dword [ebp - 0x14]
call fcn.00428333
push edi
push eax
push ebx
mov ecx, esi
call fcn.00426806
xor ebx, ebx
cmp eax, ebx
je 0x426b35
test byte [esi + 0x38], 0x10
je 0x426b03
push 4
pop edi
mov ecx, esi
call fcn.0042a2df
test ah, 1
je 0x426afb
push 5
pop edi
push edi
mov ecx, esi
call fcn.00427dd7
cmp dword [esi + 0x1c], ebx
je 0x426b35
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0042a535
jmp 0x426b35
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x426b49
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x426b62
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x426b62
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.00426595
cmp dword [esi + 0x54], ebx
je 0x426b7e
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 0x428d91
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x428dcb
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.0040dee2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00408110
pop esi
ret 4
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x429fb4
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 0x429ff7
call fcn.0042f683
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x429ff7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42a012
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042911b
test ebx, ebx
mov esi, eax
je 0x42a010
test edi, edi
je 0x42a010
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42a8e7
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x434109
call fcn.0041966c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x42a901
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42a94d
call fcn.004261a4
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.004011a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42b2fe
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 0x42b331
push dword [ebp + 8]
call edi
push eax
call fcn.0042b140
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x42b35c
test byte [ebp - 4], 1
je 0x42b35c
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42b35c
push dword [ebp + 8]
call edi
push eax
call fcn.0042b140
lea eax, [esi + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x42b40c
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0042b254
pop ecx
lea eax, [esi + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x42b392
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0042b254
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x42b3ab
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0042b254
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 0x42b3d6
push dword [ebp + 8]
call edi
push eax
call fcn.0042b140
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 0x42b3f6
push dword [ebp + 8]
call edi
push eax
call fcn.0042b140
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42b40c
push dword [ebp + 8]
call edi
push eax
call fcn.0042b140
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x42b434
test byte [ebp - 4], 1
jne 0x42b434
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42b434
push dword [ebp + 8]
call edi
push eax
call fcn.0042b140
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42b43b
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.00419690
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 [0x43ace8]
je 0x42b542
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 0x42b4ab
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 0x42b4b2
cmp ebx, ebx
jne 0x42b4b2
xor eax, eax
jmp 0x42b545
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x42b4bf
mov byte [esi + 0x20], bl
jmp 0x42b4d3
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.0040eb72
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.0040eb72
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.0040eb72
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 0x42b52e
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 0x42b542
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 0x42bb85
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434226
call fcn.0041966c
sub esp, 0x14c
mov eax, dword [0x446490]
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 0x42bbcf
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x42bc64
push ebx
call fcn.004261a4
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.0042bb43
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x42bc56
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 0x42bc59
test byte [ebp + 8], 2
jne 0x42bc24
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x42bc56
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x42bc56
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.004011a0
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.004195ce
leave
ret 8

Function at 0x42df12
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x446490]
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, pe_nt_image_headers32
cmp esi, eax
ja 0x42df64
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x42df64
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x42df70
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.004195ce
leave
ret 8
Function at 0x42ea14
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x446490]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x42ea64
push dword [ebp + 8]
call fcn.004314c1
mov esi, eax
test esi, esi
je 0x42ea8c
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 0x42ea8c
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x436f60
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.004195ce
leave
ret 0xc

Function at 0x430144
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x446490]
xor eax, dword [ebp + 4]
cmp dword [ebp + 0xc], 0x800
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x4301a1
push 0x43b114
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.004195ce
leave
ret
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x430170
jmp 0x430194
Function at 0x4301c7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x446490]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x43026c
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0xc], ecx
call esi
push dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x43036e
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x43031c
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43036f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x430311
cmp dword [ebp - 0x14], 1
jne 0x430311
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push 0x43b124
push eax
call fcn.00419a58
add esp, 0xc
cmp eax, 1
jne 0x430311
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43036f
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x43036f
lea ecx, [ebp - 8]
push ecx
push 0x4301b5
push 1
push 0x10
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 8], bx
je 0x43036f
movzx eax, word [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x430395
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00430144
cmp eax, ebx
pop ecx
pop ecx
jne 0x430397
inc edi
cmp edi, esi
jl 0x43037e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004195ce
leave
ret 4