joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001250
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x10012020]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 0x19c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x100012fc
push 4
lea ecx, [ebp - 0x1a0]
push ecx
push 8
push 0xffff
push eax
mov dword [ebp - 0x1a0], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
lea edi, [esi + 8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
mov edx, 2
push eax
mov word [edi], dx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 4]
push 0x10
push edi
push ecx
mov word [esi + 0xa], ax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x10001315
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
pop edi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100047f3
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi], eax
test eax, eax
jne 0x1000132f
mov eax, dword [esi + 4]
push eax
jmp 0x100012ef
mov ecx, dword [esi + 4]
push 0x28
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.100047f3
mov esp, ebp
pop ebp
ret 4

Function at 0x100013d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
mov dword [esi], vtable.CThread.0
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
push 0x1c
mov dword [esi + 0x38], ebx
call fcn.10004ab8
add esp, 4
cmp eax, ebx
je 0x10001468
mov dword [esi + 0x34], eax
mov dword [eax], eax
mov eax, dword [esi + 0x34]
mov dword [eax + 4], eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push 0xffff
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push ebx
push ebx
push ebx
lea edi, [esi + 0x10]
push ebx
mov dword [esi + 0x30], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x10001460
push edi
push 4
push esi
push 0x100013a0
push ebx
push ebx
call fcn.10004a0d
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x10001460
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
pop edi
mov eax, esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.1000488a
push 0x10010c50
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], vtable.std::bad_alloc.0
call fcn.10006214
int3
Function at 0x10001550
Capabilities:
Resume thread

Disassembly:
cmp dword [esi + 8], 0
je 0x100015cd
cmp dword [esi + 0xc], 0
je 0x100015cd
push edi
push 1
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
lea esp, [esp]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1000158e
push eax
call edi
test eax, eax
jne 0x10001580
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x10]
je 0x100015a5
mov edx, dword [esi + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0xc]
push ecx
call edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
pop edi
xor eax, eax
ret

Function at 0x10001690
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000cf50
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10012020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp dword [esi], edi
je 0x100016e3
push 0x10010c84
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.10006214
lea ecx, [ebp - 0x18]
push ecx
push 0x100102a4
push 1
push edi
push 0x10010294
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x10001713
push 0x10010c84
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], 2
call fcn.10006214
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, edi
jge 0x1000173b
push 0x10010c84
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], 3
call fcn.10006214
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, edi
jge 0x10001760
push 0x10010c84
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], 4
call fcn.10006214
mov dword [ebp - 4], 0xffffffff
jmp 0x10001781
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x10001790
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x1000179f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002360
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x10012020]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x124
lea ecx, [ebp - 0x238]
push 0
push ecx
mov dword [ebp - 0x240], eax
call fcn.10008d90
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x23c], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100024aa
push 0x103
lea edx, [ebp - 0x113]
push 0
push edx
mov byte [ebp - 0x114], 0
call fcn.10008d90
push 0x5c
push ebx
call fcn.10004b90
inc eax
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.10004bbd
add esp, 0x20
lea ecx, [ebp - 0x23c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100024a3
lea ecx, [ebp - 0x114]
lea eax, [ebp - 0x218]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002430
test dl, dl
je 0x1000242c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002430
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002410
xor eax, eax
jmp 0x10002435
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000248d
mov edx, dword [ebp - 0x234]
push edx
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x10002463
push ebx
push eax
call fcn.10002720
add esp, 8
mov eax, dword [ebp - 0x240]
mov eax, dword [eax + 0x74]
push ebx
call fcn.100040c0
test eax, eax
jne 0x10002482
test esi, esi
je 0x1000248d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x1000248d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x23c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10002401
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.100047f3
mov esp, ebp
pop ebp
ret 4
Function at 0x100024c0
Capabilities:
Create process on windows
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push eax
call fcn.10002720
mov eax, esi
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100024e0
sub eax, edx
mov dword [ebp - 4], 0x14
test eax, eax
jle 0x10002583
jmp 0x10002500
cmp dword [ebp - 4], 0
jl 0x100025b1
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10002566
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x1000255c
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x10002546
mov ebx, 1
jmp 0x10002555
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10002720
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp + 0xc]
dec dword [ebp - 4]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
je 0x10002500
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, 0xa
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push ecx
push str.open
push 0
call ebx
push 0xc8
call edi
dec esi
jns 0x10002594
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100025c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10012020]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0xf01ff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
test eax, eax
je 0x10002646
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10002646
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.100047f3
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10012020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov edi, 1
dec eax
cmp eax, edi
jle 0x100026fa
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
sub eax, ecx
dec eax
mov esi, 1
cmp eax, esi
jle 0x100026ee
add ecx, esi
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, edi
push ecx
call dword [sym.imp.USER32.dll_SetCursorPos]
push 0
call ebx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sub eax, ecx
inc esi
dec eax
cmp esi, eax
jl 0x100026cd
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
inc edi
dec edx
cmp edi, edx
jl 0x100026c4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetCursorPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100047f3
mov esp, ebp
pop ebp
ret

Function at 0x10002cc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esi + 0x54]
sub eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x58]
add ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x48]
push ebx
xor ebx, ebx
push ebx
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jl 0x10002d5c
add dword [esi + 0x64], eax
mov ecx, dword [esi + 0x64]
add dword [esi + 0x68], eax
cmp ecx, dword [esi + 0x54]
jl 0x10002d55
cmp dword [esi + 0x50], ebx
je 0x10002d36
mov eax, dword [esi + 0x5c]
cmp byte [eax], 0x49
jne 0x10002d5c
cmp byte [eax + 1], 0x46
jne 0x10002d5c
cmp byte [eax + 2], 0x57
jne 0x10002d5c
movzx ecx, word [eax + 6]
push edi
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [esi + 0x5c]
movzx edi, ax
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
add eax, edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x64], ebx
mov dword [esi + 0x50], ebx
pop edi
cmp eax, ebx
jne 0x10002d55
mov ecx, esi
call fcn.10002d60
test eax, eax
je 0x10002d5c
mov dword [esi + 0x50], 1
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x54], 0x14c
mov eax, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x10004180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x10012020]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push 0x103
push eax
lea ecx, [ebp - 0x31f]
push ecx
mov word [ebp - 0x330], ax
mov dword [ebp - 0x32e], eax
mov dword [ebp - 0x32a], eax
mov dword [ebp - 0x326], eax
mov word [ebp - 0x322], ax
mov byte [ebp - 0x320], al
call fcn.10008d90
push 0x103
lea edx, [ebp - 0x217]
push 0
push edx
mov byte [ebp - 0x218], 0
call fcn.10008d90
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.10008d90
add esp, 0x24
lea ecx, [ebp - 0x330]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x103
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x110]
push 0x5c
push eax
call fcn.10004cb0
add esp, 8
push 0x103
lea ecx, [ebp - 0x218]
push ecx
push 0
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x218]
push 0x5c
push edx
call fcn.10004b90
lea esi, [eax + 1]
push 0x2e
push esi
call fcn.10004b90
mov byte [eax], 0
movzx eax, word [ebp - 0x324]
movzx ecx, word [ebp - 0x326]
movzx edx, word [ebp - 0x328]
push eax
movzx eax, word [ebp - 0x32a]
push ecx
movzx ecx, word [ebp - 0x32e]
push edx
movzx edx, word [ebp - 0x330]
push eax
push ecx
push edx
push esi
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x320]
push str._sDebugHelperFiles_s__04d_02d_02d__02d_02d_02d.dmp
push ecx
call fcn.10004c1c
add esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x100042e2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100047f3
mov esp, ebp
pop ebp
ret

Function at 0x10004590
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d10b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10012020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10004420
mov eax, dword [0x10013c24]
test eax, eax
je 0x10004601
cmp dword [eax + 4], 0
lea esi, [eax + 4]
mov edi, eax
jne 0x10004601
push 0x78
call fcn.10004ab8
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x100045ef
push edi
push eax
call fcn.10001e90
jmp 0x100045f1
xor eax, eax
mov dword [esi], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10004601
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004660
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d0ce
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x10012020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10013c24], 0
je 0x10004711
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.10008d90
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [0x10013c24]
cmp dword [esi], 0
jne 0x10004711
push 0x394
call fcn.10004ab8
add esp, 4
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x100046ff
push esi
lea ecx, [ebp - 0x114]
mov edx, eax
call fcn.10002f70
jmp 0x10004701
xor eax, eax
mov dword [esi], eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10004711
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100047f3
mov esp, ebp
pop ebp
ret

Function at 0x100047f3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10012020]
jne 0x100047fd
repz ret
jmp fcn.10005028
Function at 0x10009cd0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10012020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000525b
and dword [ebp - 0x14], 0
cmp dword [0x10013bf8], 0
mov dword [ebp - 0x18], eax
jne 0x10009d83
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10009e2b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10009e2b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10013bf8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10013bfc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10013c00], eax
call edi
push eax
call esi
mov dword [0x10013c08], eax
test eax, eax
je 0x10009d83
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10013c04], eax
mov eax, dword [0x10013c04]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10009ddc
cmp dword [0x10013c08], ecx
je 0x10009ddc
push eax
call esi
push dword [0x10013c08]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10009ddc
test ebx, ebx
je 0x10009ddc
call edi
test eax, eax
je 0x10009dd3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10009dd3
test byte [ebp - 8], 1
jne 0x10009ddc
or dword [ebp + 0x10], 0x200000
jmp 0x10009e0f
mov eax, dword [0x10013bfc]
cmp eax, dword [ebp - 0x18]
je 0x10009e0f
push eax
call esi
test eax, eax
je 0x10009e0f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10009e0f
mov eax, dword [0x10013c00]
cmp eax, dword [ebp - 0x18]
je 0x10009e0f
push eax
call esi
test eax, eax
je 0x10009e0f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10013bf8]
call esi
test eax, eax
je 0x10009e2b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10009e2d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100047f3
leave
ret
Function at 0x426dcb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00418cbb
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x426e03
xor eax, eax
jmp 0x426e2f
cmp esi, dword [ebp - 4]
je 0x426e2c
cmp dword [ebp + 0xc], 0
je 0x426e2c
push dword [edi + 0x9c]
call fcn.004269d9
push dword [edi + 0x9c]
mov esi, eax
call fcn.00416bd5
pop ecx
pop ecx
cmp esi, eax
je 0x426dff
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x1d3c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1d3c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1d3c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d3c06a
add dl, dl
jne 0x1d3c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d3c0dc
xor eax, eax
add dl, dl
jne 0x1d3c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d3c17d
add dl, dl
jne 0x1d3c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d3c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d3c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d3c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1d3c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1d3c075
mov eax, 1
add dl, dl
jne 0x1d3c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d3c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d3c0e1
sub eax, ebx
mov ebx, 1
jne 0x1d3c128
mov ecx, 1
add dl, dl
jne 0x1d3c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1d3c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d3c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d3c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1d3c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1d3c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d3c136
cmp eax, 0x7d00
jae 0x1d3c16d
cmp eax, 0x500
jb 0x1d3c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d3c075
cmp eax, 0x7f
ja 0x1d3c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d3c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1d3c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1d3c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10