joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b330
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044b480
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44b350
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44b331
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044b480
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44b350
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44b380
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44b3d7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44b3ed
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044b410
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44b410
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44b4a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44b4e9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44b960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46e2b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044b510
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044b590
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044b590
lea ecx, [esi + 0xc]
call fcn.0045fbc6
lea ecx, [esi + 0x10]
call fcn.0045fbc6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044ddc0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044ddc0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044ddc0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045fc3b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045fc3b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44c608
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e4d8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44c618
call fcn.0044cb30
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44c6fb
cmp byte [edi], 0
je 0x44c6fb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44c63d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044b330
test eax, eax
jne 0x44c65d
push 0x48c460
lea ecx, [esi + 0x38]
call fcn.0045fd78
jmp 0x44c6fb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044b380
test eax, eax
jne 0x44c68c
mov ecx, esi
call fcn.0044b480
push edi
add esi, 0x38
push 0x48c43c
push esi
call fcn.0045dbd7
add esp, 0xc
jmp 0x44c6fb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044d3b0
test eax, eax
je 0x44c6f4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044c7d0
test eax, eax
jne 0x44c710
push edi
lea eax, [esi + 0x38]
push 0x48c418
push eax
call fcn.0045dbd7
add esp, 0xc
mov ecx, esi
call fcn.0044cb30
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44c7b8
mov ecx, dword [0x48c6d0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045dbd7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044b430
test eax, eax
jne 0x44c77a
push 0x48c3fc
lea ecx, [esi + 0x38]
call fcn.0045fd78
jmp 0x44c78a
push 0xfa
mov ecx, esi
call fcn.0044d3b0
test eax, eax
jne 0x44c7a7
mov ecx, esi
call fcn.0044cb30
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045fc3b
jmp 0x44c6fb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045fc3b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x461fdf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462017
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.00460096
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046006e
jmp 0x462023
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4636cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46370f
call fcn.00469291
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46370f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463706
xor eax, eax
jmp 0x463717
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046371d
pop edi
pop esi
pop ebx
ret 4

Function at 0x4697c1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4697ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46980d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469727
jmp 0x46980d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46980d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469727
test edi, edi
mov eax, edi
jne 0x4697f7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10033cf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
and word [ebp - 0x88], 0
lea eax, [ebp - 0x88]
push 0x40
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x100340b
push 1
pop eax
jmp 0x1003451
push edi
lea eax, [ebp - 8]
push esi
push eax
push dword [0x1017898]
call fcn.01003455
push dword [ebp + 0xc]
mov esi, dword [ebp - 4]
push 0
push 0x40b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [0x1017898]
call fcn.01003455
cmp esi, dword [ebp - 4]
je 0x100344d
call fcn.0100dbe9
mov eax, edi
pop esi
pop edi
leave
ret 8

Function at 0x1003455
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
cmp edi, ebx
jne 0x1003473
xor eax, eax
jmp 0x10034cd
push esi
lea eax, [ebp - 0x80]
push 0x40
push eax
push dword [ebp + 8]
mov word [ebp - 0x80], bx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
push ebx
push 0x31
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x80]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push dword [ebp + 8]
push edi
call esi
push edi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 1
pop eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x1004577
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x10178b0], ebx
jne 0x10046fc
push edi
mov edi, dword [esp + 0xc]
push esi
push ebp
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x40000000
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ebp, dword [esp + 0x18]
push ebp
push edi
call dword [sym.imp.USER32.dll_SetParent]
cmp dword [0x1016d60], ebx
jne 0x10045da
cmp dword [0x1016d64], ebx
jne 0x10045c8
push ebx
push edi
call fcn.010043d1
cmp dword [0x1016d60], ebx
jne 0x10045da
mov dword [0x10178b0], 1
cmp dword [0x1016d64], ebx
mov esi, dword [esp + 0x1c]
je 0x10045f1
push 2
push esi
push ebp
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [0x1016d60], ebx
jne 0x1004622
cmp dword [0x1016d64], ebx
jne 0x10046ee
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
sub edx, eax
push 0x10
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push ebx
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [0x1016d64], ebx
jne 0x10046ee
mov eax, dword [0x101715c]
cmp eax, ebx
je 0x100465e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InstallHook
push eax
call esi
push str.RemoveHook
mov dword [0x1018928], eax
push dword [0x101715c]
call esi
mov dword [0x1018930], eax
jmp 0x100466a
mov dword [0x1018928], ebx
mov dword [0x1018930], ebx
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call esi
test ah, 0x80
jne 0x100468d
push 2
call esi
test ah, 0x80
jne 0x100468d
push 1
pop edi
mov dword [0x1016a94], edi
jmp 0x1004696
push 1
mov dword [0x1016a94], ebx
pop edi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
call esi
test ax, ax
jne 0x10046b3
push 2
call esi
test ax, ax
mov dword [0x1016a98], edi
je 0x10046b9
mov dword [0x1016a98], ebx
cmp dword [0x1018928], ebx
je 0x10046ee
mov ecx, ebp
xor eax, eax
shr ecx, 0x10
cmp cx, bx
je 0x10046d4
cmp cx, 0xffff
jne 0x10046dc
push ebx
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
push dword [0x1017660]
call dword [0x1018928]
mov dword [0x1016a9c], eax
call dword [sym.imp.USER32.dll_GetFocus]
pop ebp
pop esi
mov dword [0x101891c], eax
pop edi
pop ebx
ret 0xc
Function at 0x1004ab7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov edi, 0x10171e0
lea eax, [ebp - 0x474]
push edi
push eax
call esi
lea eax, [ebp - 0x26c]
push edi
push eax
call esi
mov al, byte [0x101803c]
xor ebx, ebx
test al, 2
je 0x1004b45
cmp word [ebp - 0x472], 0x3a
jne 0x1004b50
mov ax, word [ebp - 0x474]
mov word [ebp - 0xa], 0x3a
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 8], 0x5c
mov word [ebp - 6], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x1004b50
lea eax, [ebp - 0x26c]
mov word [ebp - 8], bx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.01004c9a
test eax, eax
jne 0x1004b50
jmp 0x1004be5
test al, 1
je 0x1004b50
mov word [ebp - 0x26c], bx
mov eax, dword [0x1016f50]
cmp eax, ebx
jne 0x1004b66
lea eax, [ebp - 0x64]
push 0x50
push eax
call fcn.0100a99a
jmp 0x1004b75
shl eax, 4
push dword [eax + 0x1017d04]
lea eax, [ebp - 0x64]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0x1015260
push ebx
push ebx
call edi
push ebx
push ebx
mov esi, eax
push ebx
push ebx
lea eax, [ebp - 0x26c]
push 0xffffffffffffffff
push eax
push ebx
push ebx
dec esi
call edi
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0x1017680
dec eax
push ebx
push ebx
mov dword [ebp - 0x10], eax
call edi
push ebx
push ebx
mov edx, eax
push ebx
push ebx
lea eax, [ebp - 0x64]
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov dword [ebp - 4], edx
call edi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add ecx, edx
add eax, ecx
lea eax, [eax + esi + 0x2a]
push eax
push 0x2040
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1004bec
xor eax, eax
jmp 0x1004c95
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov eax, dword [0x101805c]
sub eax, dword [0x1018054]
push 0x1017680
push 0x2c
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0x3b
push ebx
push ebx
push 0x400
push dword [0x10173ec]
call edi
push eax
push 0x2c
push ebx
push ebx
push 0x412
push dword [0x10173ec]
call edi
push eax
push 0x2c
push ebx
push ebx
push 0x411
push dword [0x10173ec]
call edi
push eax
mov eax, dword [0x1018024]
and al, 0xfc
push 0x2c
or eax, dword [0x1016f34]
mov edi, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x64]
push 0x2c
push eax
lea eax, [ebp - 0x26c]
push 0x2a
push eax
push 0x2a
push 0x1015260
push 0x10015e0
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x10]
add esp, 0x4c
add eax, esi
mov byte [esi + edi], bl
push dword [ebp - 4]
mov byte [eax + edi + 1], bl
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006112
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1006152
push dword [ebp + 8]
push 0x97
push 0x64
push 0x30
push dword [0x1017cf4]
push dword [0x1017660]
call fcn.01006260
add esp, 0x18
push 0
call edi
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x1006197
push dword [esi]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi + 4], eax
jne 0x1006192
push dword [ebp + 8]
push dword [esi]
push 0x98
push 0x64
push 0x30
push dword [0x1017cf4]
push dword [0x1017660]
call fcn.01006260
add esp, 0x1c
push 0
call edi
add esi, 8
jmp 0x1006155
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push 1
mov dword [eax], ecx
pop eax
pop edi
pop esi
leave
ret 0xc

Function at 0x10063a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
lea eax, [ebp + 0xc]
push edi
push eax
push 1
push 0
mov dword [ebp - 4], 0xc8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10063fb
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x10063fb
cmp dword [ebp + 8], 1
je 0x10063ff
xor eax, eax
jmp 0x1006418
push dword [ebp + 0x10]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
pop edi
leave
ret 0xc

Function at 0x1006470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 8]
push 0x1006451
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1006496
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4

Function at 0x100649a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 2
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x10064f1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 2
push edi
push 0x10015b0
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1006515
lea eax, [ebp - 4]
push eax
push 2
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1006515
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1006519
xor eax, eax
jmp 0x1006525
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
leave
ret 0x10
Function at 0x1007328
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 8]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100737c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
push esi
push 0x1016cc8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x1007373
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x1007383
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 8]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10073d7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
push esi
push 0x1016cc8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x10073ce
push 1
pop esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x1007e0c
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
cmp dword [0x1016ccc], esi
jne 0x1007e4f
lea eax, [esp + 4]
mov dword [0x1016ccc], 1
push eax
push esi
push esi
push 0x1007d75
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x1007e43
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1007e4f
push dword [0x1017658]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop ecx
ret

Function at 0x10081d1
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
mov edi, 0x100
xor ebx, ebx
test ebx, ebx
jne 0x10081ea
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x10081fa
add edi, 0x100
push 0x42
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
test ebx, ebx
je 0x1008224
push dword [esp + 0x10]
mov esi, edi
shr esi, 1
push esi
push ebx
push 0x1016cc8
push 0
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esi, 0xfffffffe
cmp eax, esi
jb 0x1008228
jmp 0x10081db
xor eax, eax
jmp 0x1008234
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1008232
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x100891d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x1015acc]
and word [ebp - 2], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov word [ebp - 4], ax
push edi
lea eax, [ebp - 4]
push 2
push eax
mov edi, 0x400
push 0xe
push edi
call esi
mov ax, word [ebp - 4]
and word [ebp - 2], 0
mov word [0x1015acc], ax
mov ax, word [0x1015ad0]
mov word [ebp - 4], ax
lea eax, [ebp - 4]
push 2
push eax
push 0x1e
push edi
call esi
mov ax, word [ebp - 4]
and word [ebp - 2], 0
mov word [0x1015ad0], ax
mov ax, word [0x1015ad4]
mov word [ebp - 4], ax
lea eax, [ebp - 4]
push 2
push eax
push 0x12
push edi
call esi
mov ax, word [ebp - 4]
push 1
mov word [0x1015ad4], ax
pop eax
pop edi
pop esi
leave
ret

Function at 0x1009a3f
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x54], 0
je 0x1009a62
push 0
push dword [0x1017660]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x18]
lea eax, [esi + 0x18]
push eax
call dword [ecx + 0x14]
pop esi
ret 4

Function at 0x100a490
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftMultimediaVideo_For_WindowsMCIAVI
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x100a4b2
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
mov esi, str.DefaultOptions
push 0
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100a4f3
lea eax, [ebp - 8]
and dword [ebp - 8], 0
push 4
push eax
push 4
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret