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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10064de8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x1002ddf9
inc eax
mov dword [esi + 0x10], eax
jmp 0x1002df0c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x1002de0d
mov eax, 0xffffffc7
jmp 0x1002df0e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x1002de1e
cmp dword [esi + 8], eax
jne 0x1002de0d
cmp dword [esi + 8], eax
jne 0x1002de37
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x1002de37
mov eax, 0xffffffc7
jmp 0x1002df0e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x1002de4b
push eax
mov ecx, ebx
call fcn.1002d5f0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.10002450
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x1002de7c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.10002470
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.1002cd60
test eax, eax
mov dword [esp + 0x38], eax
je 0x1002deaf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10068cd8
call fcn.10002650
mov eax, dword [esp + 0x38]
jmp 0x1002df0e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.1002dc20
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x1002def3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.1002dc40
mov esi, eax
test esi, esi
jne 0x1002df23
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.1002dc20
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x1002dec5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10068cd8
call fcn.10002650
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10068cd8
call fcn.10002650
mov eax, esi
jmp 0x1002df0e

Function at 0x10030ff0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x10031050
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x10031050
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x10031050
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x10031050
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x10031090
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x10037170
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10065418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.1005e64f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.10036b10
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.1005e57d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.1005ae2c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.1005ae2c
push 1
push 0
push 0
mov ecx, esi
call fcn.1005add4
push 1
push 0
push 1
mov ecx, esi
call fcn.1005add4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1005e6c1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x100372f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10065438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.1005e64f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.10036b10
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.1005e57d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x100373b4
cmp dword [esp + 0x40], 1
jne 0x100373b2
cmp ecx, eax
jge 0x100373b4
mov eax, ecx
cmp eax, 0xc8
jge 0x100373c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.10037170
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1005e6c1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x10037b40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100654a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.10059245
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.1005e8f7
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.1005fe13
test eax, eax
je 0x10037c5c
mov ecx, dword [esp + 0x3c]
call fcn.1005e924
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10037c20
push edi
mov ecx, esi
call fcn.1005bf73
mov ecx, esi
call fcn.10037dc0
cmp dword [esp + 0x38], 1
jne 0x10037c55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.1005c0ae
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x1003a680
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1003a6b3
push esi
call fcn.1003d780
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1003a6ac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x1003a739
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1003a722
mov eax, dword [esi + 8]
test eax, eax
je 0x1003a6d7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1003a71e
cmp eax, 2
je 0x1003a722
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003a6ca
cmp eax, 3
je 0x1003a6fd
cmp eax, 1
jne 0x1003a6ca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1003a6ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1003a6ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1003a760
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1003a748
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1003a760
add esp, 4
pop esi
ret
Function at 0x10045cd0
Capabilities:
Get common file path
Get startup folder
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10065791
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.10046e35
mov esi, dword [esp + 0x164]
push 0
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x160], 0
call fcn.10046ef8
test eax, eax
lea ecx, [esp + 0x14]
jne 0x10045d29
call fcn.10046eae
jmp 0x10045de7
call fcn.10046eae
mov eax, dword [esp + 0x168]
test eax, eax
jne 0x10045e49
push esi
lea ecx, [esp + 0x10]
call fcn.10057d04
mov ebx, 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], bl
call fcn.10046e35
push 0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x160], 2
call fcn.10046ef8
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.10046eae
test edi, edi
je 0x10045dc6
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10045dc6
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x160]
mov eax, dword [ecx - 8]
push eax
mov eax, dword [esp + 0x14]
push esi
push ebx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10045e02
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], bl
call fcn.10046e72
lea ecx, [esp + 0xc]
mov byte [esp + 0x158], 0
call fcn.10057c96
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.10046e72
xor eax, eax
jmp 0x10045ecd
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], bl
call fcn.10046e72
lea ecx, [esp + 0xc]
mov byte [esp + 0x158], 0
call fcn.10057c96
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.10046e72
mov eax, ebx
jmp 0x10045ecd
push 0
lea eax, [esp + 0x50]
push 7
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, dword [esp + 0x160]
lea edx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x54]
push str._s_s.lnk
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x4c]
push ecx
push esi
mov ecx, edi
call fcn.10045f40
test eax, eax
jne 0x10045ea3
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.10046e72
xor eax, eax
jmp 0x10045ecd
lea edx, [esp + 0x4c]
mov ecx, edi
push edx
push closesocket
call fcn.10045ef0
lea ecx, [esp + 0x14]
mov dword [esp + 0x158], 0xffffffff
call fcn.10046e72
mov eax, 1
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x150
ret 0xc
Function at 0x10045f40
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x1006c420
push 1
push 0
push 0x1006c430
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x10045f6e
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x1006c4d0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x10045fa2
xor eax, eax
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret 8

Function at 0x1005a03a
Capabilities:
Get graphical window text

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

Function at 0x1005b730
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 0x1005b772
call fcn.100611fe
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1005b772
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1005b769
xor eax, eax
jmp 0x1005b77a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1005b780
pop edi
pop esi
pop ebx
ret 4
Function at 0x40f1b3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ebx
call dword [0x4101a0]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x40f1f5
lea ecx, [ebp - 4]
call fcn.0040b300
mov dword [ebp - 4], esi
push edi
push edi
push edi
push 2
push edi
push dword [ebp - 4]
call dword [0x410134]
mov esi, eax
cmp dword [ebp - 8], esi
je 0x40f216
lea ecx, [ebp - 8]
call fcn.00405c2f
mov dword [ebp - 8], esi
cmp dword [ebp - 8], edi
jne 0x40f23a
cmp dword [ebp - 4], ebx
je 0x40f2e9
push dword [ebp - 4]
mov esi, dword [0x41018c]
call esi
cmp dword [ebp - 8], edi
mov dword [ebp - 4], ebx
jmp 0x40f2e2
push edi
push edi
push edi
push 4
push dword [ebp - 8]
call dword [0x410130]
mov edi, eax
test edi, edi
jne 0x40f267
cmp dword [ebp - 4], ebx
mov esi, dword [0x41018c]
je 0x40f2de
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
jmp 0x40f2de
cmp word [edi], 0x5a4d
jne 0x40f297
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [0x41017c]
test eax, eax
jne 0x40f2c4
cmp dword [esi], 0x4550
jne 0x40f2c4
push esi
push edi
call fcn.0040f16d
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
cmp dword [ebp - 4], ebx
mov esi, dword [0x41018c]
je 0x40f2aa
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [0x41012c]
cmp dword [ebp - 8], 0
je 0x40f2bc
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
mov esi, dword [0x41018c]
je 0x40f2d7
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
push edi
call dword [0x41012c]
cmp dword [ebp - 8], 0
je 0x40f2e9
push dword [ebp - 8]
call esi
xor eax, eax
jmp 0x40f2bf

Function at 0x40689f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a12e4], 0
push esi
jne 0x4068d6
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068b0
mov dword [ecx*4 + 0x7a12e0], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ab
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406907
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a12e0]
xor eax, esi
inc ecx
dec edx
jne 0x4068e9
pop edi
not eax
pop esi
ret 0xc
Function at 0x100159f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x2710
call fcn.010011d9
mov dword [esp], 0x2711
call fcn.010011d9
pop ecx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
mov eax, dword [ebp + 8]
dec eax
push eax
call fcn.01001310
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x100163a
cmp eax, 2
je 0x1001648
jle 0x100162d
cmp eax, 4
jg 0x100162d
push edi
call fcn.01001656
mov edi, eax
test edi, edi
je 0x1001625
push esi
push edi
call fcn.01001165
mov esi, eax
test esi, esi
jne 0x1001603
mov eax, 0x10010d0
push eax
push edi
push 0x2713
call fcn.010011d9
add esp, 0xc
test esi, esi
je 0x100161e
push esi
call dword [0x100413c]
pop esi
push edi
call dword [0x100417c]
call fcn.010014c1
pop edi
jmp 0x100164d
push 0x2712
call fcn.010011d9
pop ecx
jmp 0x100164d
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.01001450
call fcn.010014c1
call fcn.01001154
xor eax, eax
leave
ret
Function at 0x403348
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45a00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033c0
xor eax, eax
push ebp
push 0x4033b9
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 0x4033fc
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 0x4033c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45a00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45a00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040a8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c048], 0
je 0x404109
cmp word [0x45c21c], 0xd7b2
jne 0x4040d1
cmp dword [0x45c224], 0
jbe 0x4040d1
mov eax, 0x45c218
call dword [0x45c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45a054
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 0x404130
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45a01c], 0
jne 0x404125
push 0
push 0x45a074
push 0x45a054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b04
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 0x405d34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b87
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d34
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b87
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c10
xor eax, eax
push ebp
push 0x405c09
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040594c
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 0x405bee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d70
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405bee
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 0x405c10
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 0x405d2a
cmp byte [ebp - 0xd], 0
jne 0x405c57
cmp byte [ebp - 0x12], 0
je 0x405d2a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c70
dec ebx
cmp byte [ebx], 0x2e
je 0x405c7f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c6f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d2a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405cbc
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 0x405d2a
cmp byte [ebp - 0xd], 0
je 0x405d2a
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 0x405d2a
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