joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ff10
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x43ff76
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x43ff76
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x43ff57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x440300
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x440338
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x440fd0
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.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x441019
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 0x441490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45c3c0
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.00441040
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004410c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004410c0
lea ecx, [esi + 0xc]
call fcn.004542b6
lea ecx, [esi + 0x10]
call fcn.004542b6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00442650
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00442650
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00442650
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045432b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045432b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x443f40
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push 0x34
mov ebp, ecx
call fcn.0045406c
mov esi, eax
mov ecx, 0xd
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x5bb0e8]
push eax
call fcn.0045406c
add esp, 8
xor ebx, ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x14], ebp
mov ecx, dword [0x5bb0e8]
push 1
push ebx
push ebx
push 6
push 1
push 2
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
jne 0x443fc7
mov edx, dword [esi + 0x20]
push edx
call fcn.00454095
push esi
mov dword [esi + 0x20], ebx
call fcn.00454095
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
jmp dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
push 0x5bb0e8
push 0x1002
push 0xffff
push eax
call edi
lea eax, [esp + 0x14]
push 4
mov dword [esp + 0x18], ebx
mov ecx, dword [esi + 0x1c]
push eax
push 0x1001
push 0xffff
push ecx
call edi
lea edx, [esp + 0x18]
push 4
mov dword [esp + 0x1c], 1
mov eax, dword [esi + 0x1c]
push edx
push 4
push 0xffff
push eax
call edi
mov ecx, dword [0x5ec9fc]
mov edx, dword [esi + 0x1c]
push ebx
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x44405a
mov eax, dword [esi + 0x1c]
push eax
call fcn.00444b90
mov ecx, dword [esi + 0x20]
push ecx
call fcn.00454095
push esi
mov dword [esi + 0x20], ebx
call fcn.00454095
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea edx, [esp + 0x20]
push ebx
push edx
mov edx, dword [ebp]
lea eax, [esp + 0x1c]
push 4
push eax
lea ecx, [esp + 0x38]
push 0x10
push ecx
push 0xc8000006
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], 0xb5367df1
mov word [esp + 0x4c], 0xcbac
mov word [esp + 0x4e], 0x11cf
mov byte [esp + 0x50], 0x95
mov byte [esp + 0x51], 0xca
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], 0x80
mov byte [esp + 0x54], 0x5f
mov byte [esp + 0x55], 0x48
mov byte [esp + 0x56], 0xa1
mov byte [esp + 0x57], 0x92
mov dword [esp + 0x40], ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4440f2
mov eax, dword [esi + 0x1c]
push eax
call fcn.00444b90
mov ecx, dword [esi + 0x20]
push ecx
call fcn.00454095
push esi
mov dword [esi + 0x20], ebx
call fcn.00454095
add esp, 0xc
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea edx, [esp + 0x20]
push esi
push edx
mov edx, dword [ebp]
mov dword [esp + 0x28], ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
push 0x20
push 0x20
push ebx
push eax
push ecx
push edx
call dword [esp + 0x30]
test eax, eax
je 0x444140
mov eax, dword [esi + 0x1c]
push eax
call fcn.00444b90
mov ecx, dword [esi + 0x20]
push ecx
call fcn.00454095
push esi
mov dword [esi + 0x20], ebx
call fcn.00454095
add esp, 0xc
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
Function at 0x444150
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
call fcn.00443f40
mov esi, dword [esp + 0x30]
test eax, eax
je 0x444190
mov eax, dword [esi + 0x1c]
push eax
call fcn.00444b90
mov ecx, dword [esi + 0x20]
push ecx
call fcn.00454095
push esi
mov dword [esi + 0x20], 0
call fcn.00454095
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8
mov edx, dword [esi + 0x1c]
push 4
push edi
push 0x700b
push 0xffff
push edx
call dword [sym.imp.WSOCK32.dll_setsockopt]
xor ebx, ebx
mov edx, dword [esi + 0x1c]
push ebx
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push ebx
lea ecx, [esp + 0x30]
push 0xc
push ecx
push 0x98000004
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 0x7530
mov dword [esp + 0x48], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, dword [edi + 4]
inc eax
mov dword [edi + 4], eax
push eax
mov eax, dword [esi + 0x1c]
push eax
call fcn.00443f10
mov ecx, dword [esi + 0x1c]
add esp, 4
push eax
push ebx
push ebx
push 1
push ecx
push edi
call dword [0x5eca08]
cmp byte [esp + 0x2c], bl
je 0x44424c
mov edx, dword [edi + 4]
dec edx
mov dword [edi + 4], edx
mov eax, edx
mov edx, dword [esi + 0x1c]
push eax
push edx
call fcn.00443f10
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
add esp, 4
push eax
mov eax, dword [esi + 0x28]
push eax
push ecx
push 3
push edx
push edi
call dword [0x5eca08]
mov eax, dword [esi + 0x1c]
push eax
call fcn.00444b90
mov ecx, dword [esi + 0x20]
push ecx
jmp 0x444311
mov dword [esi + 0x18], 2
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x44428c
mov edx, dword [esi + 0x20]
push edx
call fcn.00454095
push 4
mov dword [esi + 0x30], ebx
call fcn.0045406c
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x20], eax
mov edx, 4
add esp, 8
add eax, ecx
sub edx, ecx
mov dword [esi + 0x2c], 4
mov dword [esp + 0x14], edx
jmp 0x444299
mov ecx, dword [0x5bb0e8]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
push ebx
lea edx, [esp + 0x14]
push esi
lea eax, [esp + 0x14]
push edx
mov edx, dword [esi + 0x1c]
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x444322
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x444322
cmp eax, 0x3e5
je 0x444322
mov eax, dword [edi + 4]
dec eax
mov dword [edi + 4], eax
push eax
mov eax, dword [esi + 0x1c]
push eax
call fcn.00443f10
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x20]
add esp, 4
push eax
mov eax, dword [esi + 0x1c]
push ecx
push edx
push 3
push eax
push edi
call dword [0x5eca08]
mov ecx, dword [esi + 0x1c]
push ecx
call fcn.00444b90
mov edx, dword [esi + 0x20]
push edx
call fcn.00454095
push esi
mov dword [esi + 0x20], ebx
call fcn.00454095
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x444970
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push esi
push 0
push eax
mov edx, dword [eax + 0x2c]
mov esi, dword [eax + 0x1c]
add esi, edx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x10], esi
mov esi, dword [eax + 0x28]
sub esi, edx
mov dword [eax + 0x18], 2
mov ecx, dword [ecx]
lea edx, [esp + 0x18]
add eax, 0x24
push edx
push eax
lea eax, [esp + 0x14]
push 1
push eax
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
pop esi
je 0x4449df
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x4449df
cmp eax, 0x3e5
je 0x4449df
mov eax, 1
add esp, 8
ret 4
xor eax, eax
add esp, 8
ret 4

Function at 0x444b90
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
push 4
push eax
push 0x80
push 0xffff
push esi
mov word [esp + 0x18], 1
mov word [esp + 0x1a], 0
call dword [sym.imp.WSOCK32.dll_setsockopt]
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop esi
pop ecx
ret
Function at 0x454cb9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x45c8c0
call fcn.00447ac4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0045a75a
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x454cf8
call fcn.0045a75a
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x454d06
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x454d14
or eax, 0xffffffff
jmp 0x454dfc
mov ecx, esi
call fcn.00454c2f
mov dword [ebp - 0x14], eax
call fcn.00455c29
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x454d4b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x454d4b
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00455bdd
push dword [ebp - 0x14]
call fcn.0045570e
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004549c7
cmp eax, edi
je 0x454dbe
test byte [esi + 0x24], 0x10
je 0x454d8c
push 4
mov ecx, esi
pop ebx
call fcn.0045510e
test ah, 1
je 0x454d84
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00457730
cmp dword [esi + 0x1c], edi
je 0x454dbe
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00455142
jmp 0x454dbe
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x454dd2
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x454deb
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x454deb
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00454c69
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4575de
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 0x457620
call fcn.0045a75a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x457620
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x457617
xor eax, eax
jmp 0x457628
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045762e
pop edi
pop esi
pop ebx
ret 4
Function at 0x45ac53
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 0x45ac81
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45ac9f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045abb9
jmp 0x45ac9f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45ac9f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0045abb9
test edi, edi
mov eax, edi
jne 0x45ac89
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404688
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407580
test esi, esi
jne 0x4046c0
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004076bc
jmp 0x4046de
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004045cc
mov edi, eax
test esi, esi
je 0x4046de
cmp dword [ebx], 0
je 0x4046de
dec esi
jmp 0x4046c7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404710
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x63a008], 0x8088405
inc edx
mov dword [ebx + 0x63a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406504
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x643054], 0
je 0x406565
cmp word [0x643330], 0xd7b2
jne 0x40652d
cmp dword [0x643338], 0
jbe 0x40652d
mov eax, 0x64332c
call dword [0x643348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406590
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x63a034], 0
jne 0x406581
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x63a03c], 0
je 0x406736
mov edx, esi
mov eax, ebx
call dword [0x63a03c]
jmp 0x406745
mov eax, 8
call fcn.004042dc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x643055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4066d8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4098ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409a53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407580
cmp si, word [0x63a7d8]
jb 0x409986
cmp si, word [0x63a9d8]
ja 0x409986
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x409986
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x63a7d8]
jae 0x409960
mov edi, ebx
dec edi
jmp 0x409981
cmp si, word [ebx*8 + 0x63a7d8]
jbe 0x409970
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409981
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x63a7dc]
call fcn.004097fc
jmp 0x409986
cmp edi, dword [ebp - 0xc]
jae 0x40994a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409a35
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x409a35
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407778
push dword [ebp - 0x164]
push 0x409a70
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407778
push dword [ebp - 0x168]
push 0x409a80
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407778
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a5a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407578
ret
Function at 0x409a84
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x409c6a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x645b5c
call sub.KERNEL32.DLL_EnterCriticalSection_1
movzx eax, word [0x645b74]
cmp ax, word [ebp - 2]
jne 0x409adc
mov eax, dword [ebp - 6]
mov edx, 0x645b78
mov ecx, 0x55
call fcn.00407778
push 0x645b5c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
jmp 0x409c54
push 0x645b5c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00407580
push 2
movzx eax, word [ebp - 2]
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x409c1c
cmp byte [0x645b58], 0
je 0x409bd2
call dword [0x645b50]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x645b54]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x409bcb
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x645b4c]
test al, al
je 0x409ba4
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004042dc
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x645b4c]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x409b99
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x409b95
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x409b82
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.0040773c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c1c
movzx eax, word [ebp - 0x16]
push eax
call dword [0x645b54]
cmp dword [ebp - 0x10], 0
je 0x409bca
mov eax, dword [ebp - 0x10]
call fcn.004042f8
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.004098ec
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x409c1c
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x409c01
mov eax, dword [ebp - 6]
mov edx, 0x409c84
call fcn.0040798c
mov eax, dword [ebp - 6]
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.004098ec
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.0040798c
mov eax, dword [ebp - 6]
push 0x645b5c
call sub.KERNEL32.DLL_EnterCriticalSection_1
movzx eax, word [ebp - 2]
mov word [0x645b74], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.0040760c
push eax
push 0x645b78
call sub.KERNEL32.DLL_lstrcpynW
push 0x645b5c
call sub.KERNEL32.DLL_LeaveCriticalSection_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c71
lea eax, [ebp - 0x1c]
call fcn.00407570
ret
Function at 0x409ea8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407568
xor eax, eax
push ebp
push 0x40a08d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409ee8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW_1
jmp 0x409f02
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040760c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a077
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a09c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409f91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a09c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409f91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a0d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409f91
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a104
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a077
xor eax, eax
push ebp
push 0x40a070
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409cac
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a000
mov eax, dword [ebp - 0x10]
call fcn.004042dc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040773c
jmp 0x40a04b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a144
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a04b
mov eax, dword [ebp - 0x10]
call fcn.004042dc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a144
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040773c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a077
cmp dword [ebp - 8], 0
je 0x40a066
mov eax, dword [ebp - 8]
call fcn.004042f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a094
lea eax, [ebp - 4]
call fcn.00407570
ret