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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x47ab34
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 0x47ab39
cmp eax, 1
je 0x47ab39
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x47ab3d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4d1260]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x47abcf
push ebx
call fcn.0047ab06
test eax, eax
pop ecx
jne 0x47aba4
call fcn.00469d8f
mov dword [eax], 0xf
call fcn.00469d86
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0046521c
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x47abde
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x47ab8b
inc eax
cmp eax, 0x104
ja 0x47ab8b
test edi, edi
mov ecx, edi
jne 0x47ac1b
cmp eax, dword [ebp + 0xa0]
jg 0x47abfe
mov eax, dword [ebp + 0xa0]
push eax
call fcn.00466212
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x47ac33
call fcn.00469d86
mov dword [eax], 0xc
jmp 0x47ab8b
cmp eax, dword [ebp + 0xa0]
jle 0x47ac33
call fcn.00469d86
mov dword [eax], 0x22
jmp 0x47ab8b
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.00465320
pop ecx
pop ecx
jmp 0x47ab8d
Function at 0x47b6ef
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4ba8b8
call fcn.00469bbc
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4d792c], edi
jne 0x47b733
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47b71e
mov dword [0x4d792c], ebx
jmp 0x47b733
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x47b733
mov dword [0x4d792c], 2
mov eax, dword [0x4d792c]
cmp eax, ebx
jne 0x47b753
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x47b816
cmp eax, 2
je 0x47b75c
cmp eax, edi
jne 0x47b784
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x47b76f
mov eax, dword [0x4d7894]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x47b78b
xor eax, eax
jmp 0x47b816
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00465b70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x47b7be
cmp esi, edi
jne 0x47b7d4
push dword [ebp - 0x20]
call fcn.00466212
pop ecx
mov esi, eax
cmp esi, edi
je 0x47b784
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x47b807
cmp dword [ebp + 0x14], edi
jne 0x47b7f1
push edi
push edi
jmp 0x47b7f7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x47b813
push esi
call fcn.00466224
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00469bf7
ret
Function at 0x47b81f
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4ba8c8
call fcn.00469bbc
xor esi, esi
cmp dword [0x4d7930], esi
jne 0x47b863
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47b84e
mov dword [0x4d7930], edi
jmp 0x47b863
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x47b863
mov dword [0x4d7930], 2
mov eax, dword [0x4d7930]
cmp eax, 2
je 0x47b944
cmp eax, esi
je 0x47b944
cmp eax, 1
jne 0x47b8a8
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x47b891
mov eax, dword [0x4d7894]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x47b8af
xor eax, eax
jmp 0x47b956
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00465b70
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x47b8e5
cmp edi, esi
jne 0x47b900
lea eax, [ebx + ebx]
push eax
call fcn.00466212
pop ecx
mov edi, eax
cmp edi, esi
je 0x47b8a8
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47b933
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x47b91d
push esi
push esi
jmp 0x47b923
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x47b93f
push edi
call fcn.00466224
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x47b956
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00469bf7
ret
Function at 0x47be15
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 0x47be2e
or eax, 0xffffffff
jmp 0x47be8f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x47be8b
push 0x3d
push esi
call fcn.0046a86c
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x47be8b
cmp esi, eax
je 0x47be8b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4d7380]
sete cl
cmp eax, dword [0x4d7384]
mov dword [ebp - 4], ecx
jne 0x47be71
mov edi, eax
call fcn.0047bdb4
mov dword [0x4d7380], eax
cmp eax, ebx
jne 0x47beca
cmp dword [ebp + 0xc], ebx
je 0x47be93
cmp dword [0x4d7388], ebx
je 0x47be93
call fcn.0047b1d9
test eax, eax
je 0x47beca
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x47be9c
xor eax, eax
jmp 0x47be8e
push 4
call fcn.00466212
cmp eax, ebx
pop ecx
mov dword [0x4d7380], eax
je 0x47be8b
mov dword [eax], ebx
cmp dword [0x4d7388], ebx
jne 0x47beca
push 4
call fcn.00466212
cmp eax, ebx
pop ecx
mov dword [0x4d7388], eax
je 0x47be8b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4d7380]
sub edi, esi
push esi
call fcn.0047bd67
mov edi, eax
test edi, edi
pop ecx
jl 0x47bf31
cmp dword [ebx], 0
je 0x47bf31
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00466224
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x47bf11
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x47bf72
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x47bf08
mov eax, edi
shl eax, 2
push eax
push dword [0x4d7380]
call fcn.00466295
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x47bf72
jmp 0x47bf6d
cmp dword [ebp - 4], 0
jne 0x47bfd9
test edi, edi
jge 0x47bf41
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4d7380]
call fcn.00466295
test eax, eax
pop ecx
pop ecx
je 0x47be8b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4d7380], eax
cmp dword [ebp + 0xc], 0
je 0x47bfc4
push esi
call fcn.00465aa0
inc eax
inc eax
push eax
call fcn.00466212
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x47bfc4
push esi
push edi
call fcn.00465320
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x47bfbd
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00466224
pop ecx
cmp dword [ebp - 4], 0
je 0x47bfd1
push esi
call fcn.00466224
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x47be8e
push esi
call fcn.00466224
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x47be98
Function at 0x47efea
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x494f45
call fcn.0046862c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x47f004
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x47f050
call fcn.0048070d
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.00411650
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x47f670
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 0x47f6a7
call fcn.004878d4
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 0x47f6b8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x47f6f1
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x47f6d6
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x47f6de
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x47f6ef
test ax, ax
jne 0x47f6ef
test si, si
je 0x47f6f1
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x47f700
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x47f960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x494f8d
call fcn.0046862c
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.004878d4
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x47f9a0
call fcn.004878d4
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 0x47f9b1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x47f9bd
or eax, 0xffffffff
jmp 0x47fac0
mov ecx, esi
call fcn.0047f494
mov dword [ebp - 0x14], eax
call fcn.00482a3b
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x47fa00
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x47fa00
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x47fa00
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.00483c4d
push dword [ebp - 0x14]
call fcn.00482993
push edi
push eax
push ebx
mov ecx, esi
call fcn.0047f745
xor ebx, ebx
cmp eax, ebx
je 0x47fa74
test byte [esi + 0x38], 0x10
je 0x47fa42
push 4
pop edi
mov ecx, esi
call fcn.0047e923
test ah, 1
je 0x47fa3a
push 5
pop edi
push edi
mov ecx, esi
call fcn.00482437
cmp dword [esi + 0x1c], ebx
je 0x47fa74
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0047eb3f
jmp 0x47fa74
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x47fa88
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x47faa1
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x47faa1
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.0047f4ce
cmp dword [esi + 0x54], ebx
je 0x47fabd
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 0x480083
Capabilities:
Get disk information

Disassembly:
mov eax, 0x494fdd
call fcn.0046862c
sub esp, 0x154
mov eax, dword [0x4d1260]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x158]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4800ca
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x4800ce
cmp eax, esi
jb 0x4800d5
xor eax, eax
jmp 0x4801b9
call fcn.0048070d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x154], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x154]
push eax
push edi
call fcn.00480041
push dword [ebp - 0x154]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x4801a6
push eax
push eax
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x160]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x480136
xor esi, esi
jmp 0x4801a9
test byte [ebp - 0x15c], 2
jne 0x480146
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x15c], 4
jne 0x4801a6
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4801a6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x158], 0
je 0x480132
cmp dword [ebp - 0x158], edi
jbe 0x480132
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x158]
cmp eax, esi
jge 0x480132
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x154]
add ecx, 0xfffffff0
call fcn.00411650
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046521c
leave
ret 8

Function at 0x4845ba
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 0x4845fd
call fcn.004878d4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4845fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x484618
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00483715
test ebx, ebx
mov esi, eax
je 0x484616
test edi, edi
je 0x484616
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x484e76
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.00464db0
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 [0x4b4f04]
je 0x484fc4
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 0x484ee6
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 0x484eed
cmp ebx, ebx
jne 0x484eed
xor eax, eax
jmp 0x484fc7
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x484efa
mov byte [esi + 0x20], bl
jmp 0x484f0e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
lea eax, [ebp - 8]
push eax
call fcn.0045d45e
test eax, eax
je 0x484f35
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0045d545
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x484f3a
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0045d45e
test eax, eax
je 0x484f62
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0045d545
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x484f6c
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.0045d45e
test eax, eax
je 0x484f94
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0045d545
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x484f9e
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x484fb0
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x484fc4
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 0x485ea5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4d1260]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x485ef8
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x485ef8
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x485f00
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046521c
leave
ret 8

Function at 0x486af6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d1260]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x486b47
push edi
call fcn.004887a2
mov esi, eax
test esi, esi
je 0x486b6b
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
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
jmp 0x486b6b
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x4aa084
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046521c
leave
ret 0xc

Function at 0x48793d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4d1260]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x11c]
jne 0x487970
push 0x4b545c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x487982
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4879b7
lea eax, [ebp - 0x11c]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0046a6d6
add esp, 0x10
cmp eax, 0xffffffff
je 0x4879b7
cmp eax, esi
jae 0x4879b7
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4879b9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046521c
leave
ret
Function at 0x4879dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4d1260]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push 0x4b54a8
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x487a86
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], 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 - 0x38], eax
call esi
mov dword [ebp - 0x34], eax
push 4
xor ebx, ebx
jmp 0x487b88
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x487b36
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x487b89
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x487b2b
cmp dword [ebp - 0x24], 1
jne 0x487b2b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x4b5460
push eax
call fcn.00469d52
add esp, 0xc
cmp eax, 1
jne 0x487b2b
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], 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 - 0x40], eax
call esi
push 2
mov dword [ebp - 0x3c], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x487b89
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x487b89
lea ecx, [ebp - 0x18]
push ecx
push 0x4879c6
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x487b89
movzx eax, word [ebp - 0x18]
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 - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x40], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x487bae
push dword [ebp + edi*4 - 0x40]
mov ecx, dword [ebp - 0x2c]
call fcn.0048793d
cmp eax, ebx
pop ecx
jne 0x487bb0
inc edi
cmp edi, esi
jl 0x487b98
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046521c
leave
ret 4