joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015f4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401606
mov eax, dword [0x52f08b]
shl eax, 2
mov dword [0x52f08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.005227d0
pop edx
call fcn.00522734
call fcn.00522810
push 0
call fcn.00523c1c
pop ecx
push 0x52f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x52f093], eax
push 0
jmp fcn.00528d60

Function at 0x4050f0
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
lea edi, [ebp - 0x14c]
mov eax, 0x530b34
call fcn.00522f7c
mov dword [ebp - 8], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.0052cf58
inc dword [ebp - 8]
mov word [ebp - 0x14], 8
mov dword [edi], 0x128
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
test ebx, ebx
jne 0x40515b
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.0052cfd8
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x4051f2
push edi
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
setne al
and eax, 1
test al, al
je 0x4051d8
lea edx, [edi + 0x24]
push edx
call fcn.005257d8
pop ecx
mov edx, eax
cmp dword [ebp + 8], 0
je 0x405185
mov eax, dword [ebp + 8]
jmp 0x40518a
mov eax, 0x530906
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x4051c5
test cl, cl
je 0x4051a6
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x4051c5
add eax, 2
add edx, 2
test cl, cl
jne 0x40518a
jne 0x4051c5
mov edx, dword [edi + 8]
push edx
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov esi, eax
push 0
push esi
call sub.KERNEL32.DLL_TerminateProcess
push esi
call sub.KERNEL32.DLL_CloseHandle
push edi
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
setne al
and eax, 1
test al, al
jne 0x40516e
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.0052cfd8
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405464
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov byte [ebp - 8], dl
test dl, dl
jle 0x405477
call fcn.0052d604
mov ebx, ecx
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
mov eax, 0x530c64
call fcn.00522f7c
mov word [ebp - 0x18], 8
mov ecx, ebx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004ac15c
add dword [ebp - 0xc], 2
mov eax, dword [ebp - 4]
add eax, 0x34
xor edx, edx
mov dword [eax], edx
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], 0xffffff9c
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
mov eax, dword [ebp - 4]
cmp byte [ebp - 0x29], 0
je 0x4054cd
call fcn.0052d611
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423104
Capabilities:
Check os version

Disassembly:
add ebx, dword [esi]
push esp
arpl word [eax + 0x45], di
imul esi, dword fs:[edx + eax*2 + 0x61], 0x72676b63
outsd dx, dword [esi]
jne 0x423124
push eax
popal
imul ebp, dword [esi + 0x74], 0x53676e69
je 0x42313b
insb byte es:[edi], dx
add dword gs:[eax], eax
add byte [eax], al
add byte [edx], al
add byte [eax], al
add byte [eax + 0x8004230], ah
add byte [eax], cl
bound esi, qword [eax + 0x73]
push ebx
outsd dx, dword [esi]
insb byte es:[edi], dx
imul esp, dword [esp + ecx + 0x62], 0x6f437370
insd dword es:[edi], dx
bound ebp, qword [edi + 0x45]
imul esi, dword fs:[eax + edx + 0x62], 0x6f437370
insd dword es:[edi], dx
bound ebp, qword [edi + 0x4c]
imul esi, dword [ebx + 0x74], 0x74696445
or esp, dword [ebx + 0x78]
inc ebp
imul esi, dword fs:[ebp + edx*2 + 0x74], 0x81736c69
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [esp + 0x10], 1
jne 0x423125
cmp dword [esp + 8], 0
jne 0x423137
adc al, byte [ebx + 0x210247c]
cmp dword [esp + 0x10], 2
jne 0x423133
cmp dword [esp + 4], 5
je 0x423137
xor eax, eax
jmp 0x423139
mov al, 1
mov byte [0x531374], al
adc edx, dword [ebx]
add esp, 0x94
ret

Function at 0x4421cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
or dword [esi + 0xc], 0x80
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jl 0x4421f2
or dword [esi + 0xc], 2
mov eax, ebx
call sym.usafeadmin.exe__Cxtextedit_TcxCustomInnerTextEdit_GetContainer_qqrv
mov edx, dword [eax]
call dword [edx + 0x218]
test al, al
jne 0x442218
mov eax, ebx
call sym.usafeadmin.exe__Cxtextedit_TcxCustomInnerTextEdit_GetContainer_qqrv
mov edx, dword [eax]
call dword [edx + 0x20c]
test al, al
je 0x44221c
or dword [esi + 0xc], 4
pop esi
pop ebx
ret

Function at 0x44a974
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [esp + 4], 5
ja 0x44a9a0
cmp dword [esp + 4], 5
jne 0x44a99c
cmp dword [esp + 8], 1
jae 0x44a9a0
xor eax, eax
jmp 0x44a9a2
mov al, 1
mov byte [0x537550], al
add esp, 0x94
ret
Function at 0x44f83c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.USER32.DLL_GetKeyboardState
mov eax, esp
call fcn.004ec468
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x45426c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov edx, ebx
mov eax, dword [0x53788c]
call fcn.004a39f8
inc eax
je 0x45431d
mov edx, ebx
mov eax, dword [0x53788c]
call fcn.004a3b3c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x120]
mov byte [0x53177c], 1
mov dword [0x537880], ebx
xor eax, eax
push ebp
push 0x454316
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, ebx
call fcn.00503edc
call sym.usafeadmin.exe__Cxcontainer_NativeHandle_qqrui
push eax
call sub.USER32.DLL_ShowWindow
mov eax, ebx
call fcn.004f1fcc
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x11c]
mov eax, ebx
call fcn.005041e0
test al, al
je 0x454301
call sub.USER32.DLL_GetCapture
mov edx, eax
mov cl, 1
mov eax, ebx
call sym.usafeadmin.exe__Cxcontainer_HasNativeHandle_qqrp20Controls_TWinControluio
test al, al
je 0x454301
xor eax, eax
call fcn.004fa9d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45431d
mov byte [0x53177c], 0
ret
pop ebx
pop ebp
ret
Function at 0x455298
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45546d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x210], 0
je 0x455452
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebx + 0x2a0]
cmp eax, dword [ebx + 0x280]
jb 0x4552e9
lea eax, [ebx + 0x284]
call fcn.004c6ea0
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebx + 0x2a0], eax
cmp byte [edi], 8
jne 0x45533c
mov eax, dword [ebx + 0x284]
call fcn.004c7158
mov esi, eax
jmp 0x455309
dec esi
mov edx, esi
mov eax, dword [ebx + 0x284]
call fcn.004b82cc
cmp al, 2
je 0x455308
mov eax, dword [ebx + 0x284]
call fcn.004c7158
mov ecx, eax
sub ecx, esi
inc ecx
lea eax, [ebx + 0x284]
mov edx, esi
call fcn.004c73f0
jmp 0x4553bd
mov al, byte [edi]
mov edx, dword [0x536ef0]
and eax, 0xff
bt dword [edx], eax
jae 0x4553a5
push 1
push 0x102
push 0x102
mov eax, ebx
call fcn.00503edc
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x4553bd
push dword [ebx + 0x284]
lea eax, [ebp - 0x20]
mov dl, byte [edi]
call fcn.004c7080
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.004c7080
push dword [ebp - 0x24]
lea eax, [ebx + 0x284]
mov edx, 3
call fcn.004c7218
mov byte [edi], 0
jmp 0x4553bd
lea eax, [ebp - 0x28]
mov dl, byte [edi]
call fcn.004c7080
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 0x284]
call fcn.004c7160
mov eax, dword [ebx + 0x284]
call fcn.004c7158
test eax, eax
jle 0x45543b
mov edx, dword [ebx + 0x284]
mov eax, ebx
call sym.usafeadmin.exe__Cxcontainer_TcxCustomInnerListBox_FindAutoCompleteString_qqrx17System_AnsiString
mov esi, eax
cmp esi, 0xffffffff
je 0x455428
cmp byte [ebx + 0x208], 0
je 0x455411
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xd8]
mov edx, esi
mov eax, esi
call fcn.0049c8f0
push eax
push 1
push 0x19b
mov eax, ebx
call fcn.00503edc
push eax
call sub.USER32.DLL_SendMessageA
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, ebx
mov si, 0xffeb
call fcn.004c626c
mov al, byte [edi]
sub al, 8
je 0x455452
sub al, 5
je 0x455452
sub al, 0xe
je 0x455452
mov byte [edi], 0
jmp 0x455452
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, ebx
mov si, 0xffeb
call fcn.004c626c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455474
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004c6ec4
ret

Function at 0x455b84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
cmp dword [ebx + 0x2b0], 0
je 0x455bb3
or dword [esi + 0xc], 0x80
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jl 0x455bb3
or dword [esi + 0xc], 2
pop esi
pop ebx
ret
Function at 0x456a04
Capabilities:
Set global application hook

Disassembly:
sub dword [0x53787c], 1
jae 0x456aab
call fcn.0044fbec
mov eax, dword [0x4f90d8]
call fcn.004a2f7c
mov edx, dword [0x4f90d8]
mov eax, dword [sym.usafeadmin.exe__Cxcontainer_TcxStyleController_]
call fcn.004a2fc8
mov dl, 1
mov eax, dword [0x4a0dcc]
call fcn.004c6040
mov dword [0x53788c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4560c8
push eax
push 4
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x531780], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x45655c
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x531784], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4568cc
push eax
push 7
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x531788], eax
mov dl, 1
mov eax, dword [sym.usafeadmin.exe__Cxgraphics_TcxScreenCanvas_]
call sym.usafeadmin.exe__Cxgraphics_TcxScreenCanvas__bctr_qqrv
mov dword [0x537884], eax
mov eax, dword [sym.usafeadmin.exe__Cxcontrols_cxGetParentWndForDocking]
mov dword [eax], sym.usafeadmin.exe__Cxcontainer_GetPopupOwnerControl_qqrui
ret

Function at 0x458060
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor ebx, ebx
push 1
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
jge 0x458070
inc ebx
push 4
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
jge 0x45807f
add ebx, 0x10
push 2
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
jge 0x45808e
add ebx, 2
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
jge 0x45809d
add ebx, 8
push 0x10
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
jge 0x4580ac
add ebx, 4
mov eax, ebx
pop ebx
ret

Function at 0x459bc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], edx
mov edi, eax
xor ebp, ebp
xor ebx, ebx
mov esi, 0x5317f4
mov eax, ebx
cmp al, 7
ja 0x459be3
and eax, 0x7f
bt dword [edi + 0x23f], eax
jae 0x459bf8
cmp bl, 3
jne 0x459bf6
push 0x11
call sub.USER32.DLL_GetAsyncKeyState
test ax, ax
jl 0x459bf8
add ebp, dword [esi]
inc ebx
add esi, 4
cmp bl, 4
jne 0x459bd3
mov eax, dword [esp]
mov dword [eax + 0xc], ebp
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x470f38
Capabilities:
Create process on windows

Disassembly:
push ebx
push 0
mov ebx, eax
push 3
push 0
push 0
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0xc]
call fcn.004c7350
push eax
push 0x470f60
push 0
call sub.SHELL32.DLL_ShellExecuteA
pop edx
pop ebx
ret
Function at 0x49d3f0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x49d415
cmp dword [esp + 4], 5
jb 0x49d415
mov al, 1
jmp 0x49d417
xor eax, eax
add esp, 0x94
ret

Function at 0x4ac498
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004ac31c
dec esi
jne 0x4ac4ba
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4adc04
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x537ad0
cmp dword [edi], 0
jne 0x4adc80
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x537acc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x53224c
mov ecx, 2
call fcn.004c5164
mov edx, 0x4adbdc
lea eax, [esi + 5]
call fcn.004adbfc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004adbfc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4adc55
mov dword [0x537acc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4afdec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004c7350
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4afe44
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x536eb0]
mov dl, 1
mov eax, dword [0x4af9a4]
call fcn.004b7ad8
call fcn.004c6900
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004afaac
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4b3e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004c7350
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4b3e19
test al, 0x10
jne 0x4b3e1d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4b71d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4b720d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004c6f90
jmp 0x4b7216
mov eax, ebx
mov edx, esi
call fcn.004c6ef4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b7220
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4b7241
mov al, byte [esp]
jmp 0x4b7243
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4b8748
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4b87ac
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004c7108
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004b3ad8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b87b3
lea eax, [ebp - 0xc]
call fcn.004c6ea0
ret

Function at 0x4c5290
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004c6ea0
test esi, esi
jne 0x4c52c6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004c6f90
jmp 0x4c52e4
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004c51a4
mov edi, eax
test esi, esi
je 0x4c52e4
cmp dword [ebx], 0
je 0x4c52e4
dec esi
jmp 0x4c52cd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4c5ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5327e4]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4c5f78
push Ordinal_3
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4c5f58
xor eax, eax
push ebp
push 0x4c5f51
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4c5f94
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5f58
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x5327e4]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5327e4], ax
mov esp, ebp
pop ebp
ret

Function at 0x4c6c80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x537e10], 0
je 0x4c6ce1
cmp word [0x537fe4], 0xd7b2
jne 0x4c6ca9
cmp dword [0x537fec], 0
jbe 0x4c6ca9
mov eax, 0x537fe0
call dword [0x537ffc]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4c6d08
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x5327f4], 0
jne 0x4c6cfd
push 0
push 0x53284c
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4c6e54
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004c4f00
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x537e11], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4c6e1c
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4c8bc0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c8df0
push reloc.API209X_DLL_M.DLL_Ordinal_1
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4c8c43
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c8df0
push Ordinal_3
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4c8c43
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4c8e0c
push reloc.API209X_DLL_M.DLL_Ordinal_1
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4c8ccc
xor eax, eax
push ebp
push 0x4c8cc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004c8a08
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4c8caa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4c8e2c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4c8caa
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8ccc
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4c8de6
cmp byte [ebp - 0xd], 0
jne 0x4c8d13
cmp byte [ebp - 0x12], 0
je 0x4c8de6
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4c8d2c
dec ebx
cmp byte [ebx], 0x2e
je 0x4c8d3b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4c8d2b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4c8de6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4c8d78
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4c8de6
cmp byte [ebp - 0xd], 0
je 0x4c8de6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4c8de6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret