joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5205a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x54f477
call fcn.00468c5c
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.0053abfb
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x5205ee
call fcn.0053abfb
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 0x5205ff
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, eax
test ebx, ebx
jne 0x52060b
or eax, 0xffffffff
jmp 0x52070e
mov ecx, esi
call fcn.005200e0
mov dword [ebp - 0x14], eax
call fcn.005222b7
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x52064e
call dword [sym.imp.user32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x52064e
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x52064e
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.005239dc
push dword [ebp - 0x14]
call fcn.0052220f
push edi
push eax
push ebx
mov ecx, esi
call fcn.00520393
xor ebx, ebx
cmp eax, ebx
je 0x5206c2
test byte [esi + 0x38], 0x10
je 0x520690
push 4
pop edi
mov ecx, esi
call fcn.0052475e
test ah, 1
je 0x520688
push 5
pop edi
push edi
mov ecx, esi
call fcn.00521cb3
cmp dword [esi + 0x1c], ebx
je 0x5206c2
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.005249cf
jmp 0x5206c2
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x5206d6
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x5206ef
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x5206ef
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.0052011a
cmp dword [esi + 0x54], ebx
je 0x52070b
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 0x520748
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0053abfb
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x52077f
push edi
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00520393
push edi
mov esi, eax
call dword [sym.imp.kernel32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x522ff6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x52302f
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.0041ef90
push eax
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040e9c0
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x524348
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 0x52438b
call fcn.0053abfb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x52438b
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5243a6
push edi
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.005234ad
test ebx, ebx
mov esi, eax
je 0x5243a4
test edi, edi
je 0x5243a4
push edi
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x5244f1
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x559e91
mov ecx, edi
call fcn.00401ae0
cmp dword [esi + 0x48], 0
push dword [esp + 0xc]
jne 0x524544
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x524557
push esi
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0041ef90
push eax
push esi
call dword [sym.imp.user32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040e9c0
jmp 0x524557
mov ecx, esi
call fcn.0052466f
test eax, eax
je 0x524557
push edi
mov ecx, eax
call fcn.00522ff6
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x524e30
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x54f593
call fcn.00468c5c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x524e55
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
jmp 0x524ea1
call fcn.0051fbb3
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_lstrcpyn]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_lstrlen]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x525830
Capabilities:
Get disk information

Disassembly:
mov eax, 0x54f5ba
call fcn.00468c5c
sub esp, 0x150
mov eax, dword [0x5a2f48]
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 0x525878
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_lstrcpyn]
jmp 0x52587c
cmp eax, esi
jb 0x525883
xor eax, eax
jmp 0x525958
call fcn.0051fbb3
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.005257ee
push dword [ebp + 8]
call dword [sym.imp.shlwapi.dll_PathIsUNCA]
test eax, eax
jne 0x525948
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 0x5258d7
xor esi, esi
jmp 0x52594b
test byte [ebp - 0x158], 2
jne 0x5258e7
push edi
call dword [sym.imp.user32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x525948
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x525948
push eax
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x5258d3
cmp dword [ebp - 0x154], edi
jbe 0x5258d3
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x5258d3
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.kernel32.dll_lstrcpy]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004011e0
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.00464eaf
leave
ret 8
Function at 0x525b04
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.00468ca0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyn]
mov eax, dword [edi + 4]
cmp eax, dword [0x5667c0]
je 0x525c0b
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 0x525b74
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 0x525b7b
cmp ebx, ebx
jne 0x525b7b
xor eax, eax
jmp 0x525c0e
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x525b88
mov byte [esi + 0x20], bl
jmp 0x525b9c
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.0045bc70
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.0045bc70
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.0045bc70
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 0x525bf7
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 0x525c0b
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 0x526609
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.00468ca0
add esp, 0xc
call fcn.0053abeb
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 0x5266d9
cmp dword [ebp - 8], ebx
je 0x5266d4
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x5264db
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0046987a
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x5266e3
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 0x5266ac
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x5266c6
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 0x5266de
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x5266e5
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x5266e3
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x5266ec
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
call fcn.0052698e
mov esi, eax
test esi, esi
jne 0x526703
call fcn.0051c4d4
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
and dword [esi + 0x30], 0
or eax, 4
push eax
mov ecx, esi
call fcn.00526609
test eax, eax
jne 0x52672a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x526747
push dword [ebp + 0xc]
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
test byte [ebp + 0x14], 4
jne 0x526745
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebp
ret 0x14

Function at 0x5299be
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x5a2f48]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_lstrlen]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x529a0d
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextA]
cmp eax, esi
jne 0x529a0d
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.kernel32.dll_lstrcmp]
test eax, eax
je 0x529a19
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00464eaf
leave
ret 8
Function at 0x52bb1f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5a2f48]
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.0052bb08
cmp dword [esi], 0
mov ebx, eax
je 0x52bb7f
push edi
mov edi, dword [ebp + 0x18]
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.user32.dll_GetWindowTextA]
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.004668d8
add esp, 0xc
cmp eax, 1
pop edi
je 0x52bb9c
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.0052c1b3
mov ecx, esi
call fcn.0052b8cf
jmp 0x52bb9c
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.00465776
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.005299be
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00464eaf
leave
ret

Function at 0x52be6f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5a2f48]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x52bebc
push dword [ebp + 8]
call fcn.0053b845
mov esi, eax
test esi, esi
je 0x52bee4
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 0x52bee4
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x55f390
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.00464eaf
leave
ret 0xc
Function at 0x52dc33
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.0052096f
test eax, eax
jne 0x52de23
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call fcn.0045b818
test byte [esi + 0x7c], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x52dc77
cmp edi, ebx
je 0x52dc77
cmp edi, 0x202
jne 0x52ddd0
cmp edi, 0x200
jb 0x52dc87
cmp edi, 0x209
jbe 0x52dc9f
cmp edi, 0xa0
jb 0x52ddd0
cmp edi, 0xa9
ja 0x52ddd0
call fcn.0053ac21
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.user32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00468ca0
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
mov dword [ebp - 0x48], 0x28
call dword [eax + 0x6c]
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], eax
je 0x52dcfd
push dword [ebp - 0x24]
call fcn.004660a2
pop ecx
cmp edi, ebx
jne 0x52dd10
test byte [ebp - 0x41], 0x80
je 0x52dd10
mov dword [ebp - 8], 1
jmp 0x52dd2e
and dword [ebp - 8], 0
cmp edi, ebx
je 0x52dd2e
push 1
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jge 0x52dd2e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x52dd9a
cmp dword [ebp - 8], 0
jne 0x52dd9a
cmp edi, 0x202
jne 0x52dd5a
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xc8
push 0xe001
jmp 0x52dd82
test byte [esi + 0x78], 8
jne 0x52dd8b
push 1
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jl 0x52dd8b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x78]
je 0x52ddc7
push 0x12c
push 0xe000
mov ecx, esi
call fcn.0052d321
jmp 0x52ddc7
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
jmp 0x52ddc7
push 1
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jge 0x52ddad
cmp dword [ebp - 8], 0
je 0x52ddc7
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_KillTimer]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov ecx, esi
call fcn.00522c58
test eax, eax
pop ebx
je 0x52dde2
cmp dword [eax + 0x64], 0
jne 0x52de28
cmp dword [ebp - 0x10], 0
je 0x52de0a
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
jne 0x52de23
mov ecx, edi
call fcn.00522c19
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x52dde8
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
je 0x52de28
push dword [ebp + 8]
mov ecx, esi
call fcn.00521420
jmp 0x52de2a
xor eax, eax
inc eax
jmp 0x52de2a
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x534447
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x53445d
mov edi, dword [esi + 0xc]
jmp 0x534487
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_FindResourceA]
push eax
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_LoadResource]
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov edi, eax
test edi, edi
jne 0x534487
call fcn.00528076
call fcn.0053abfb
cmp dword [eax + 0x1038], 0
je 0x53449f
push edi
mov ecx, ebx
call fcn.005337b2
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00534366
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x5344bd
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
and dword [ebx + 0x58], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5344c9
mov edi, eax
mov dword [ebx + 0x58], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x53b8f4
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x54f7ef
call fcn.00468c5c
mov eax, 0x1014
call fcn.00466b00
mov eax, dword [0x5a2f48]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x101c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x53b9ef
push dword [ebp + 0xc]
call fcn.0053b845
cmp eax, edi
mov dword [ebp - 0x1014], eax
jne 0x53b93d
push dword [ebp + 0x14]
jmp 0x53ba20
push esi
call fcn.0051fbb3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1020]
push eax
push edi
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x1014]
call esi
cmp eax, edi
mov dword [ebp - 0x1018], eax
jne 0x53b9ba
lea eax, [ebp - 0x1020]
push eax
push dword [ebp - 0x1020]
lea ecx, [ebp + 0xc]
call fcn.00401540
push eax
lea eax, [ebp - 0x101c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1014]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1018], eax
call fcn.0040e9c0
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x1014]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp - 0x1018], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x53b9dd
lea eax, [ebp + 0xc]
push eax
call fcn.004016b0
jmp 0x53b9e5
push dword [ebp + 0x14]
call fcn.00401bc0
lea ecx, [ebx - 0x10]
call fcn.004011e0
jmp 0x53ba28
cmp dword [ebp + 0x14], edi
jne 0x53b9fb
mov dword [ebp + 0x14], 0x559e91
push dword [ecx + 0x64]
lea eax, [ebp - 0x1010]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401bc0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00464eaf
leave
ret 0x10
Function at 0x53baf7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x5a2f48]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x53bb55
push 0x568984
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
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.00469905
add esp, 0x10
cmp eax, 0xffffffff
je 0x53bb69
cmp eax, esi
jae 0x53bb69
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
jmp 0x53bb6b
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
jne 0x53bb20
jmp 0x53bb6c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00464eaf
leave
ret