joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f0f30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5897fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x10], esi
call fcn.004f3030
mov edi, dword [esp + 0x24]
xor eax, eax
mov dword [esi + 0x66], eax
mov dword [esi], vtable.ScScript::Function.0
mov dword [esi + 0x14], vtable.ScScript::Function.1.0
mov dword [esi + 0x6a], eax
mov dword [esi + 0x6e], eax
mov dword [esi + 0x72], eax
mov word [esi + 0x76], ax
lea ebx, [esi + 0x14]
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov byte [esi + 0x84], al
mov dword [esi + 0x80], 0x100420
mov dword [esi + 0x4e], 0x2000008d
mov edx, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
mov eax, dword [eax]
mov ecx, dword [0x639ab4]
add eax, 0xc
push eax
call fcn.004d3570
mov ecx, dword [esp + 0x2c]
lea edx, [edi + 4]
push edx
mov dword [esi + 0x6a], eax
mov dword [esi + 0x6e], ecx
mov dword [esi + 0x72], edi
mov byte [esi + 0x76], 1
call fcn.00520b30
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x4a]
mov dword [esi + 0x52], eax
mov edx, dword [ecx + 0xcc]
add esp, 4
push edx
mov ecx, esi
call fcn.004f3340
push 0x6c6f4977
push ebx
lea ecx, [edi + 0x16]
call fcn.00522820
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x504c40
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x58b209
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [esp + 0x1c], ebx
mov dword [esi], vtable.jsScanner.0
mov dword [esi + 4], ebp
mov dword [esi + 8], eax
call fcn.00514470
mov ecx, dword [esp + 0x2c]
lea edi, [esi + 0x10]
push ecx
mov ecx, edi
mov byte [esp + 0x20], 1
call fcn.00515680
add ebp, 0xe0
push ebp
lea ecx, [esi + 0x14]
mov byte [esp + 0x20], 2
call fcn.00515680
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 3
call fcn.00514470
lea ecx, [esi + 0x3c]
mov dword [esi + 0x34], ebx
call fcn.00504a20
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x38], ebx
mov byte [esi + 0x75], 1
mov byte [esi + 0x71], bl
jl 0x504ce8
mov edx, dword [edi]
cmp eax, dword [edx]
jle 0x504cec
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, dword [esp + 0x38]
add ecx, eax
cmp ecx, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
jl 0x504d00
cmp ecx, dword [edx]
jle 0x504d05
mov edx, dword [edx]
mov dword [esi + 0x24], edx
mov ecx, dword [esp + 0x14]
pop edi
mov byte [esi + 0x73], bl
mov byte [esi + 0x72], bl
mov byte [esi + 0x74], bl
mov byte [esi + 0x76], bl
mov dword [esi + 0x30], ebx
mov word [esi + 0x6e], 0xa
mov byte [esi + 0x70], 1
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18

Function at 0x508340
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [0x639af0], esi
push edi
jne 0x50837c
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x508372
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x639aec], eax
mov dword [0x639af0], 1
mov eax, dword [0x639aec]
test eax, eax
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x508399
push edi
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x5083d5
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
test eax, eax
jne 0x5083ca
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
mov eax, dword [esp + 0x14]
jns 0x5083ba
mov ecx, dword [eax + 8]
mov edx, dword [eax]
jmp 0x5083c0
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
push ecx
call edx
test eax, eax
je 0x5083dd
mov dword [ebp], eax
push edi
push eax
call ebx
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
ret 0xc
Function at 0x508750
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push edi
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x5087ae
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, dword [esi + 4]
push 5
mov dword [edx + 0xc], eax
movsx eax, word [esi + 0x12]
movsx ecx, word [esi + 0x10]
mov edx, dword [esi + 4]
push 0
push 0
push eax
mov eax, dword [edx + 4]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push 5
push edx
call edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
push 9
push eax
call edi
mov ecx, dword [esi + 4]
pop edi
mov byte [ecx + 0x1a], 1
pop esi
ret

Function at 0x508830
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov byte [esi + 0x54], 0
mov byte [eax + 0x1a], 0
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x5088a5
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea edx, [esp + 4]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dx, word [esp + 4]
mov ax, word [esp + 8]
mov ecx, dword [esi + 4]
mov word [esi + 0x10], dx
mov word [esi + 0x12], ax
mov edx, dword [ecx + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5088a5
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop esi
add esp, 0x10
ret

Function at 0x509300
Capabilities:
Print debug messages

Disassembly:
push edi
xor edi, edi
cmp dword [0x639ae8], edi
je 0x509316
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x639ae0], edi
je 0x509327
mov eax, 1
pop edi
ret 4
cmp dword [0x639ae8], edi
push esi
jne 0x509339
call fcn.00509110
test eax, eax
je 0x50937b
mov eax, dword [0x639b04]
test eax, eax
mov esi, dword [0x62170c]
jne 0x509365
push str.ActivateActCtx
push 0x639af4
push 0x5ccd44
call fcn.00508340
test eax, eax
mov dword [0x639b04], eax
je 0x50937b
mov ecx, dword [esp + 0xc]
push ecx
push esi
call eax
test eax, eax
je 0x50937b
pop esi
mov eax, 1
pop edi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7f
je 0x509390
cmp eax, 0x7e
je 0x509390
cmp eax, 0x78
jne 0x50939f
mov eax, 1
pop esi
mov dword [0x639ae0], eax
pop edi
ret 4
pop esi
mov eax, edi
pop edi
ret 4
Function at 0x50a2f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58b7ec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
mov esi, dword [esp + 0x80]
push esi
lea ecx, [esp + 0x40]
call fcn.004e8510
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x20], bx
lea ecx, [esp + 8]
mov byte [esp + 0x78], 1
call fcn.0051e6b0
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x38], bx
mov ecx, dword [esp + 0x8c]
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, dword [0x639ab4]
mov byte [esp + 0x80], 3
call fcn.004d3da0
mov esi, dword [esi + 0x4a]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x3c]
mov dword [esp + 0x5c], edx
lea eax, [esp + 0x24]
lea edx, [esp + 8]
mov dword [esp + 0x60], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
mov eax, dword [edx + 0x10]
cmp eax, ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x64], 0x74657374
je 0x50a3dc
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push eax
lea eax, [esp + 0x58]
push eax
call edx
jmp 0x50a3e8
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x54]
push edx
call eax
cmp dword [esp + 0x1c], ebx
lea ecx, [esp + 0xc]
setne byte [esp + 0x80]
call fcn.00519fe0
test al, al
je 0x50a418
lea ecx, [esp + 0xc]
call fcn.00519f70
cmp eax, ebx
je 0x50a418
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 2
call fcn.0051ac60
lea ecx, [esp + 8]
mov byte [esp + 0x78], 1
call fcn.0051ecc0
lea ecx, [esp + 0xc]
mov byte [esp + 0x78], bl
call fcn.0051ac60
lea ecx, [esp + 0x3c]
mov dword [esp + 0x78], 0xffffffff
call fcn.0051ac60
mov ecx, dword [esp + 0x70]
mov al, byte [esp + 0x80]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret

Function at 0x50c5b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x58bac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
xor edi, edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
mov dword [esi], vtable.ScScript::ScopeInfo.0
call fcn.00514470
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 1
call fcn.0052b800
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 4], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], 0x10000
mov dword [esi + 0x14], 0xffffffff
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x5105f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58bedf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x30]
push edi
push eax
push esi
lea ecx, [esp + 0x10]
call fcn.0050e580
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
mov dword [esp + 0x38], 0
call fcn.005101b0
add esp, 0xc
push 0x2c
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.0050e650
push esi
lea ecx, [esp + 0xc]
call fcn.0050e800
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0050e5c0
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x51f750
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58cd8b
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax], 1
push edi
jle 0x51f779
call fcn.0051ee10
xor edi, edi
xor eax, eax
xor bl, bl
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov word [esp + 0x2c], di
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], edi
call fcn.00514470
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.00514470
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call fcn.00515680
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 3
call fcn.005160d0
mov edx, dword [esp + 0xc]
cmp dword [edx], edi
je 0x51f81f
push ebp
mov ebp, dword [esp + 0x48]
push ebp
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.005105f0
add esp, 0xc
test eax, eax
sete bl
test bl, bl
je 0x51f81e
mov edx, dword [esi]
mov eax, dword [edx + 8]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
call fcn.0051f4d0
mov ecx, eax
call fcn.0051bb00
mov edx, dword [esp + 0x10]
cmp dword [edx], edi
jne 0x51f7e1
pop ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 2
call fcn.005144a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call fcn.005144a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.005144a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.0051ac60
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8

Function at 0x5201c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push 0x10
mov esi, ecx
call fcn.00514090
add esp, 4
mov dword [esi], eax
call fcn.00520cd0
mov ecx, dword [esi]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.0051fc80
push eax
push 0x51fe60
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov edx, dword [esi]
mov dword [edx], eax
mov eax, dword [0x639bb0]
test eax, eax
jne 0x520219
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x639bb0], eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esi]
mov dword [ecx + 0xc], eax
mov edx, dword [esi]
mov eax, dword [0x639bb0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.005331f0
push 1
call fcn.00520180
add esp, 4
mov eax, esi
pop esi
ret
Function at 0x520250
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0
mov esi, ecx
call fcn.00520180
mov eax, dword [esi]
add esp, 4
cmp dword [eax], 0
je 0x52026d
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
test eax, eax
je 0x52027d
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, dword [0x639bb0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [esi]
push edx
call fcn.005142a0
add esp, 4
pop esi
ret

Function at 0x5202a0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x28
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [esp + 8], 0x28
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edi
call fcn.00533170
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov eax, dword [edx]
add ecx, 0xc
add eax, 0xc
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
mov dword [esp + 0x2c], ecx
or esi, 0x12000
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
call fcn.005201c0
lea edx, [esp + 8]
push edx
call fcn.00520850
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00520250
pop edi
mov eax, esi
pop esi
add esp, 0x28
ret

Function at 0x520c80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x622960]
cmp eax, 0xffffffff
je 0x520cc6
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x520cb7
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x520ca7
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, esi
call fcn.00539510
push esi
call fcn.00469949
add esp, 4
mov eax, dword [0x622960]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret

Function at 0x520cd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x639bcc]
test eax, eax
jne 0x520d2c
mov eax, dword [0x622960]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x520d2c
push esi
push 0x15a
call fcn.00469919
add esp, 4
test eax, eax
je 0x520d06
mov ecx, eax
call fcn.00539460
mov esi, eax
jmp 0x520d08
xor esi, esi
cmp byte [0x639bc8], 0
jne 0x520d1b
mov dword [0x639bcc], esi
mov eax, esi
pop esi
ret
mov ecx, dword [0x622960]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret
Function at 0x520d30
Capabilities:
Allocate thread local storage

Disassembly:
cmp byte [esp + 4], 0
je 0x520d43
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x622960], eax
ret
call fcn.00520c80
mov eax, dword [0x622960]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [0x639bcc]
test eax, eax
je 0x520d89
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x520d71
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, dword [0x639bcc]
test eax, eax
push esi
mov esi, eax
je 0x520d88
mov ecx, eax
call fcn.00539510
push esi
call fcn.00469949
add esp, 4
pop esi
ret

Function at 0x52f1f8
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58e26c
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x16], 0
mov eax, 0x32
je 0x52f2ea
mov edx, dword [esp + 0x1c]
push edi
push edx
lea ecx, [esp + 0x24]
call fcn.00515680
mov edi, dword [esi + 4]
mov dword [esp + 0x18], 0
call fcn.005181f0
cmp dword [edi + 0x12], eax
setne al
cmp byte [esp + 0x24], 0
je 0x52f24a
test al, al
je 0x52f24a
mov eax, dword [edi + 0x1e]
push eax
lea ecx, [esp + 0x24]
call fcn.005152f0
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x12]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
call fcn.005157b0
mov edi, eax
test edi, edi
jne 0x52f293
mov eax, dword [esp + 8]
test eax, eax
je 0x52f293
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0x16]
mov edx, dword [esp + 0xc]
push ecx
push 1
push eax
push edx
call fcn.0048c5d1
add esp, 0x10
cmp eax, 1
je 0x52f293
mov edi, 0x34
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x16]
push ecx
call fcn.0048c68d
add esp, 4
test eax, eax
je 0x52f2bc
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x16]
push eax
call fcn.0048d085
add esp, 4
mov edi, 0x34
jmp 0x52f2d6
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x16]
push edx
call fcn.0048d222
mov esi, dword [esi + 4]
add esp, 4
cmp eax, dword [esi + 0x1a]
jle 0x52f2d6
mov dword [esi + 0x1a], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.005144a0
mov eax, edi
pop edi
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x52f5d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58e2cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
lea ecx, [esp + 4]
call fcn.00514470
mov dword [esp + 0x30], 0
xor esi, esi
lea esp, [esp]
push ebx
call fcn.0056e777
add esp, 4
test eax, eax
lea ecx, [esp + 4]
jl 0x52f631
mov byte [esp + esi + 8], al
push edi
add esi, 1
push esi
lea eax, [esp + 0x10]
push eax
call fcn.005162a0
test eax, eax
je 0x52f651
cmp esi, 0x20
jl 0x52f600
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.005144a0
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [esp + 4]
movzx esi, word [ecx + 0xc]
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.005144a0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x52fd30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esp + 0x14]
push edi
mov edi, 0x32
call fcn.005150c0
mov eax, dword [esi + 4]
cmp dword [eax + 0x16], 0
je 0x52ff06
push ebx
push ebp
mov ebp, eax
mov ebx, dword [ebp + 0x12]
mov dword [esp + 0x10], 0
call fcn.005181f0
mov edi, dword [esp + 0x1c]
cmp ebx, eax
setne byte [esp + 0x14]
cmp edi, 0x7fffffff
je 0x52fd81
test edi, edi
jge 0x52fe0a
mov ecx, dword [ebp + 0x16]
push ecx
call fcn.0048d222
mov edx, dword [esi + 4]
push 2
mov ebp, eax
mov eax, dword [edx + 0x16]
push 0
push eax
call fcn.0048cd03
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x16]
push edx
call fcn.0048d222
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x16]
push 0
push ebp
push ecx
sub edi, ebp
call fcn.0048cd03
push edi
call fcn.00514090
mov edx, dword [esi + 4]
mov ebp, eax
mov eax, dword [edx + 0x16]
push eax
push edi
push 1
push ebp
call fcn.0048c919
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x12]
mov ebx, dword [esp + 0x54]
add esp, 0x34
push edx
push eax
push ebp
mov ecx, ebx
call fcn.005162a0
cmp byte [esp + 0x14], 0
mov edi, eax
je 0x52fdfc
push 3
mov ecx, ebx
call fcn.005152f0
push ebp
call fcn.005142a0
add esp, 4
jmp 0x52feb2
mov eax, dword [ebx + 4]
test eax, eax
jle 0x52fe52
imul eax, edi
mov ebp, eax
push ebp
call fcn.00514090
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x16]
push ecx
push ebp
push 1
push edi
call fcn.0048c919
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0x12]
add esp, 0x14
push ecx
mov ecx, dword [esp + 0x24]
push eax
push edi
call fcn.005162a0
push edi
mov dword [esp + 0x14], eax
call fcn.005142a0
add esp, 4
jmp 0x52feae
test edi, edi
jle 0x52feae
mov ebx, dword [esp + 0x14]
lea ebx, [ebx]
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x12]
mov ecx, dword [ecx + 0x16]
push ebx
call fcn.0052f680
add esp, 4
sub edi, 1
cmp eax, 0xffffffff
je 0x52feae
mov ecx, dword [esp + 0x20]
push eax
call fcn.00516180
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x16]
push eax
call fcn.0048c68d
add esp, 4
test eax, eax
jne 0x52feae
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x16]
push edx
call fcn.0048c65e
add esp, 4
test eax, eax
jne 0x52feae
test edi, edi
jg 0x52fe60
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x16]
push ecx
call fcn.0048c68d
add esp, 4
test eax, eax
pop ebp
pop ebx
je 0x52fee3
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x16]
push eax
call fcn.0048d085
add esp, 4
pop edi
mov eax, 0x34
pop esi
add esp, 8
ret 8
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x16]
push edx
call fcn.0048c65e
add esp, 4
test eax, eax
je 0x52ff06
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp dword [ecx], 0
mov eax, 0x33
je 0x52ff08
mov eax, edi
pop edi
pop esi
add esp, 8
ret 8
Function at 0x532f50
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x58e829
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
xor edi, edi
mov dword [esp + 8], edi
mov esi, dword [esp + 0x28]
push str.en_US
mov ecx, esi
mov dword [esp + 0x24], edi
call fcn.005156c0
push 8
lea eax, [esp + 0x10]
push eax
push 0x59
mov dword [esp + 0x2c], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x400
mov dword [esp + 0x18], 1
call edi
test eax, eax
je 0x532fdf
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00515b70
push 8
lea edx, [esp + 0x10]
push edx
push 0x5a
push 0x400
call edi
test eax, eax
je 0x532fdf
push 0x5f
mov ecx, esi
call fcn.00516150
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.005161b0
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x533000
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x204
push 0x200
lea eax, [esp + 8]
push eax
push 0x1004
push 0x800
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
movsx ecx, byte [esp + 4]
push ecx
call fcn.0048a827
add esp, 4
test eax, eax
je 0x533058
push 0x7e
lea edx, [esp + 8]
push edx
lea eax, [esp + 0xe]
push eax
call fcn.0048fbb0
add esp, 0xc
mov byte [esp + 4], 0x43
mov byte [esp + 5], 0x50
push esi
call fcn.005181e0
mov esi, dword [esp + 0x20c]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.005173d0
mov eax, esi
pop esi
add esp, 0x204
ret

Function at 0x533170
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], eax
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x53319a
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [esp + 4]
push eax
mov eax, esi
call fcn.005330e0
add esp, 4
test eax, eax
mov dword [esp + 8], eax
je 0x5331cc
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x5331c4
mov eax, esi
mov dword [esp + 8], eax
jmp 0x5331c8
mov eax, dword [esp + 8]
test eax, eax
jne 0x5331e0
lea ecx, [esp + 4]
push ecx
push 0x533140
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 8]
pop esi
add esp, 8
ret