joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4faad0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.004bd0a0
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x5c]
xor eax, eax
test esi, esi
push edi
je 0x4faaf5
mov eax, 1
mov dword [ebx], esi
jmp 0x4faafd
mov ecx, dword [ebx]
mov dword [esp + 0x60], ecx
mov esi, ecx
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x4fac3a
mov edi, dword [esi + 0x40]
cmp edi, 0x40
jbe 0x4fab25
push str.j___sizeof_ctx__key
push 0x52
push str..cryptohmachmac.c
call fcn.004cb670
add esp, 0xc
mov ebp, dword [esp + 0x5c]
cmp edi, ebp
jge 0x4fab5b
mov edx, dword [esp + 0x64]
push edx
lea edi, [ebx + 4]
push esi
push edi
call fcn.004df410
mov eax, dword [esp + 0x64]
push ebp
push eax
push edi
call fcn.004df530
lea esi, [ebx + 0x34]
push esi
lea ecx, [ebx + 0x38]
push ecx
push edi
call fcn.004df540
add esp, 0x24
jmp 0x4fab90
cmp ebp, 0x40
jbe 0x4fab74
push str.len___sizeof_ctx__key
push 0x5c
push str..cryptohmachmac.c
call fcn.004cb670
add esp, 0xc
mov esi, dword [esp + 0x58]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x40
je 0x4fabb2
mov ecx, 0x40
sub ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [esi + ebx + 0x38]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0x60]
xor eax, eax
jmp 0x4fabc0
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x40
jl 0x4fabc0
mov ebp, dword [esp + 0x64]
push ebp
lea edi, [ebx + 0x14]
push esi
push edi
call fcn.004df410
mov edx, dword [esi + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004df530
add esp, 0x18
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x40
jl 0x4fabf4
push ebp
lea edi, [ebx + 0x24]
push esi
push edi
call fcn.004df410
mov edx, dword [esi + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004df530
add esp, 0x18
lea ecx, [ebx + 0x14]
push ecx
add ebx, 4
push ebx
call fcn.004df630
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
test eax, eax
je 0x4fac22
jmp 0x4fabb6
Function at 0x5178ee
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004bd0a0
mov eax, dword [0x57c7a0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004c62c8
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x517a21
push 2
push esi
push dword [ebp + 8]
call fcn.004c62c8
add esp, 0xc
cmp eax, ebx
je 0x517a21
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x5179c1
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004bdf10
push 0x8000
push dword [ebp + 8]
call fcn.00516ead
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x517977
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004c4002
add esp, 0xc
cmp eax, 0xffffffff
je 0x517997
sub edi, eax
test edi, edi
jg 0x51796f
jmp 0x5179af
call fcn.004bea06
cmp dword [eax], 5
jne 0x5179ac
call fcn.004be9fd
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00516ead
pop ecx
pop ecx
jmp 0x517a09
jge 0x517a09
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004c62c8
push dword [ebp + 8]
call fcn.004c7424
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 0x517a09
call fcn.004be9fd
mov dword [eax], 0xd
call fcn.004bea06
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004c62c8
add esp, 0xc
mov eax, esi
pop edi
jmp 0x517a23
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004bde13
leave
ret

Function at 0x51e427
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x51e455
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 0x51e45a
cmp eax, 1
je 0x51e45a
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x51e45e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x57c7a0]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x51e4d6
push ebx
call fcn.0051e427
test eax, eax
pop ecx
jne 0x51e4a5
call fcn.004bea06
mov dword [eax], 0xf
call fcn.004be9fd
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004bde13
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 0x51e4e8
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
test eax, eax
je 0x51e498
inc eax
cmp eax, 0x104
ja 0x51e498
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x51e520
cmp eax, dword [ebp + 0x10]
jg 0x51e503
mov eax, dword [ebp + 0x10]
push eax
call fcn.004bab03
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x51e535
call fcn.004be9fd
mov dword [eax], 0xc
jmp 0x51e498
cmp eax, dword [ebp + 0x10]
jle 0x51e535
call fcn.004be9fd
mov dword [eax], 0x22
jmp 0x51e498
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004c5b60
pop ecx
pop ecx
jmp 0x51e49a
Function at 0x52022b
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.004bdf10
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 [0x545648]
je 0x520332
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 0x52029b
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 0x5202a2
cmp ebx, ebx
jne 0x5202a2
xor eax, eax
jmp 0x520335
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x5202af
mov byte [esi + 0x20], bl
jmp 0x5202c3
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.004b97c2
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.004b97c2
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.004b97c2
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 0x52031e
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 0x520332
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 0x520980
Capabilities:
Get disk information

Disassembly:
mov eax, 0x52ff66
call fcn.004bde24
sub esp, 0x150
mov eax, dword [0x57c7a0]
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 0x5209c8
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
jmp 0x5209cc
cmp eax, esi
jb 0x5209d3
xor eax, eax
jmp 0x520aa8
call fcn.0051ffd3
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.0052093e
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x520a98
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 0x520a27
xor esi, esi
jmp 0x520a9b
test byte [ebp - 0x158], 2
jne 0x520a37
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x520a98
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
je 0x520a98
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x520a23
cmp dword [ebp - 0x154], edi
jbe 0x520a23
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 0x520a23
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.004013d0
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.004bde13
leave
ret 8
Function at 0x521450
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.004bdf10
add esp, 0xc
call fcn.005299d8
mov edi, dword [sym.imp.KERNEL32.DLL_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x521520
cmp dword [ebp - 8], ebx
je 0x52151b
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x521322
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.004be8bc
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x52152a
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x5214f3
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x52150d
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x521525
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
xor eax, eax
inc eax
jmp 0x52152c
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x52152a
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x521533
Capabilities:
Resume thread

Disassembly:
mov eax, 0x530001
call fcn.004bde24
push ecx
push esi
push 0x40
call fcn.0051fe69
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x521562
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00527d6d
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.00521450
test eax, eax
jne 0x521589
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x5215a6
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x5215a4
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x524634
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 0x524677
call fcn.005299e8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x524677
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x524692
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00523799
test ebx, ebx
mov esi, eax
je 0x524690
test edi, edi
je 0x524690
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x5258b9
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 0x5258f0
call fcn.005299e8
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 0x525901
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x52593a
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x52591f
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x525927
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x525938
test ax, ax
jne 0x525938
test si, si
je 0x52593a
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x525949
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x525ba9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x53030c
call fcn.004bde24
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.005299e8
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x525be9
call fcn.005299e8
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 0x525bfa
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x525c06
or eax, 0xffffffff
jmp 0x525d09
mov ecx, esi
call fcn.005256db
mov dword [ebp - 0x14], eax
call fcn.00522ae6
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x525c49
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x525c49
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x525c49
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.00523cc8
push dword [ebp - 0x14]
call fcn.00522a3e
push edi
push eax
push ebx
mov ecx, esi
call fcn.0052598e
xor ebx, ebx
cmp eax, ebx
je 0x525cbd
test byte [esi + 0x38], 0x10
je 0x525c8b
push 4
pop edi
mov ecx, esi
call fcn.00524f67
test ah, 1
je 0x525c83
push 5
pop edi
push edi
mov ecx, esi
call fcn.005224e2
cmp dword [esi + 0x1c], ebx
je 0x525cbd
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00525019
jmp 0x525cbd
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x525cd1
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x525cea
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x525cea
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.00525715
cmp dword [esi + 0x54], ebx
je 0x525d06
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 0x526765
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x57c7a0]
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 0x5267b4
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x5267b4
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x5267c0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004bde13
leave
ret 8
Function at 0x5277da
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x57c7a0]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x527827
push dword [ebp + 8]
call fcn.0052a0b0
mov esi, eax
test esi, esi
je 0x52784f
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 0x52784f
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x53c1b0
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.004bde13
leave
ret 0xc

Function at 0x528755
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x57c7a0]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x5287b3
push 0x5462c4
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.004be947
add esp, 0x10
cmp eax, 0xffffffff
je 0x5287c7
cmp eax, esi
jae 0x5287c7
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x5287c9
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
jne 0x52877e
jmp 0x5287ca
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.004bde13
leave
ret
Function at 0x5287ea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x57c7a0]
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 - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x52888c
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 - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], 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 - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x52898e
call dword [sym.imp.KERNEL32.DLL_GetVersion]
test eax, eax
jns 0x52893c
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x52898f
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 0x528931
cmp dword [ebp - 0x24], 1
jne 0x528931
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x5462d4
push eax
call fcn.004be99e
add esp, 0xc
cmp eax, 1
jne 0x528931
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 - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x52898f
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x52898f
lea ecx, [ebp - 0x18]
push ecx
push 0x5287d4
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.DLL_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x52898f
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 - 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 0x5289b5
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00528755
cmp eax, ebx
pop ecx
pop ecx
jne 0x5289b7
inc edi
cmp edi, esi
jl 0x52899e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004bde13
leave
ret 4