joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da68
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x124
mov eax, 0x452ab5
call fcn.00414724
mov edi, dword [ebp + 8]
push 0x40
pop esi
push esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
mov dword [ebp - 0x114], esi
xor eax, eax
mov dword [ebp - 0x12c], eax
xorps xmm0, xmm0
mov dword [ebp - 4], eax
movlpd qword [ebp - 0x128], xmm0
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x110]
push str.SOFTWAREOrbis_SoftwareTaskCentre
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x11c]
push eax
push 0x454ca4
push 1
push 0
push 0x4546ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40dbbf
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x110]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40db32
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x130]
push eax
push 0
push str.LicData
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40db52
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40dbbf
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x128]
jmp 0x40dbb6
mov esi, dword [ebp - 0x11c]
lea ecx, [ebp - 0x124]
push str.urg7897r7hvjh
call fcn.004037f5
mov ecx, dword [esi]
lea edx, [ebp - 0x114]
push edx
lea edx, [ebp - 0x118]
mov byte [ebp - 4], 2
push edx
push dword [eax]
push dword [ebp - 0x114]
push ebx
push esi
call dword [ecx + 0x10]
push dword [ebp - 0x124]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
js 0x40dbbf
cmp dword [ebp - 0x114], 8
je 0x40dbab
mov esi, 0x80004005
jmp 0x40dbbf
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test edi, edi
je 0x40dbbf
mov dword [edi], ecx
mov dword [edi + 4], eax
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
je 0x40dbcc
push ebx
call edi
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40dbd9
push eax
call edi
mov eax, dword [ebp - 0x11c]
mov byte [ebp - 4], 0
test eax, eax
je 0x40dbed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
call fcn.004146d3
ret 4
Function at 0x40dbff
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x224
mov eax, 0x452b10
call fcn.00414724
mov dword [ebp - 0x22c], ecx
xor edi, edi
mov dword [ebp - 0x21c], edi
mov esi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], edi
push str.SOFTWAREOrbis_SoftwareTaskCentre
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x21c]
push eax
push 0x454c94
push 1
push edi
push 0x4546ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x40dd79
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x110]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40dc9d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x40dd79
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x100
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x230]
push eax
push edi
push str.LicKey
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40dc8a
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00401276
mov edi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x228]
push str.4789234721AA_111
call fcn.004037f5
mov ecx, dword [edi]
lea edx, [ebp - 0x218]
mov esi, dword [ebp - 0x214]
push edx
push dword [eax]
mov byte [ebp - 4], 3
push esi
push edi
call dword [ecx + 0x28]
push dword [ebp - 0x228]
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x40dd79
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x40dd45
push eax
call fcn.00422b62
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x40dd49
xor eax, eax
jmp 0x40dd64
lea edi, [eax + eax]
mov eax, edi
call fcn.004147d0
mov eax, esp
push 3
push edi
push dword [ebp - 0x214]
push eax
call fcn.00401393
push eax
mov eax, dword [ebp - 0x22c]
push 0xcb
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push dword [ebp - 0x218]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push esi
call edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x40dd9e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
lea esp, [ebp - 0x240]
call fcn.004146d3
ret
Function at 0x40eb0f
Capabilities:
Set registry value

Disassembly:
push 0x11c
mov eax, 0x452bfe
call fcn.00414724
push 0x40
pop eax
push eax
mov dword [ebp - 0x11c], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
xor ebx, ebx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x118], ebx
push str.SOFTWAREOrbis_SoftwareTaskCentre
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x120], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x118]
push eax
push 0x454ca4
push 1
push ebx
push 0x4546ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x40ec1c
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x110]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40ec0e
mov esi, dword [ebp - 0x118]
lea ecx, [ebp - 0x124]
push str.urg7897r7hvjh
call fcn.004037f5
mov ecx, dword [esi]
lea edx, [ebp - 0x11c]
push edx
lea edx, [ebp - 0x114]
mov byte [ebp - 4], 2
push edx
push dword [eax]
lea eax, [ebp + 8]
push 8
push eax
push esi
call dword [ecx + 0xc]
push dword [ebp - 0x124]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
js 0x40ec1c
push dword [ebp - 0x11c]
push dword [ebp - 0x114]
push 3
push ebx
push str.LicData
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40ec1c
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 0x114], 0
je 0x40ec31
push dword [ebp - 0x114]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x118]
mov byte [ebp - 4], bl
test eax, eax
je 0x40ec44
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
call fcn.004146d3
ret 8
Function at 0x40ec55
Capabilities:
Set registry value

Disassembly:
push 0x218
mov eax, 0x452c59
call fcn.00414724
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x218], ebx
mov esi, ebx
mov dword [ebp - 0x214], esi
push str.SOFTWAREOrbis_SoftwareTaskCentre
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x21c]
push eax
push 0x454c94
push 1
push ebx
push 0x4546ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x40edbf
lea eax, [ebp - 0x214]
push eax
push 0xcb
lea ecx, [edi + 4]
call fcn.0040a45c
mov edi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x224]
push str.4789234721AA_111
call fcn.004037f5
mov ecx, dword [edi]
lea edx, [ebp - 0x218]
mov esi, dword [ebp - 0x214]
push edx
push dword [eax]
mov byte [ebp - 4], 3
push esi
push edi
call dword [ecx + 0x24]
push dword [ebp - 0x224]
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x40edbf
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40edb1
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x40ed55
push eax
call fcn.00422b62
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x40ed59
xor eax, eax
jmp 0x40ed74
lea edi, [eax + eax]
mov eax, edi
call fcn.004147d0
mov eax, esp
push 3
push edi
push dword [ebp - 0x214]
push eax
call fcn.00401393
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push str.LicKey
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40edbf
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x218]
call esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x40ede4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
lea esp, [ebp - 0x234]
call fcn.004146d3
ret
Function at 0x411ac7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x452df6
call fcn.00414790
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x411ce8
push eax
call fcn.00422b62
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.00403747
add esp, 0x10
test eax, eax
js 0x411ce2
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x411b6a
push edi
call fcn.00404c42
pop ecx
test al, al
je 0x411b6a
mov eax, edi
call fcn.004147d0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x411b7c
push edi
lea ecx, [ebp - 0x424]
call fcn.0040393c
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.00401393
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x411ce2
push 0x60
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x411bd6
push 2
push ebx
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x411bd6
call fcn.00403a53
mov ebx, eax
jmp 0x411cb2
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x411bfd
call fcn.00403a53
jmp 0x411ca5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x411bf3
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x411c30
mov ebx, 0x8007000e
jmp 0x411ca7
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004101f6
jmp 0x411c56
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x411c29
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.0040f203
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.0041189a
mov ebx, eax
test edi, edi
je 0x411cb2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x411ccb
lea ecx, [ebp - 0x418]
call fcn.004110fe
test esi, esi
je 0x411cde
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.00422b5d
pop ecx
test edi, edi
jne 0x411ccf
mov eax, ebx
jmp 0x411d15
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x411cfd
lea ecx, [ebp - 0x418]
call fcn.004110fe
test esi, esi
je 0x411d10
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.00422b5d
pop ecx
test edi, edi
jne 0x411d01
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.004146e2
ret 0x10
Function at 0x41282a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], ecx
jne 0x41283c
push 0xd
pop eax
jmp 0x41286c
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
push ebx
call fcn.00422d70
inc eax
add ebx, eax
add edi, eax
pop ecx
cmp eax, 1
jne 0x412843
mov eax, dword [ebp - 4]
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
leave
ret 8

Function at 0x412904
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x34], eax
test eax, eax
jne 0x412923
xor al, al
jmp 0x41293b
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x411299
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
setne al
pop edi
pop esi
leave
ret
Function at 0x4131ed
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
mov esi, eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x455d88
push dword [ebp + 8]
mov ecx, 0x4696d8
push 0x469714
call fcn.004111ba
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x469708], eax
xor ebx, ebx
mov ax, word [0x4564ac]
xor edi, edi
mov word [ebp - 4], ax
inc edi
mov al, byte [0x4564ae]
mov byte [ebp - 2], al
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp + 8], ebx
call fcn.004110b4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41328b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call ebx
test eax, eax
je 0x4132fc
push str.RegServer
push esi
call ebx
test eax, eax
je 0x4132da
lea eax, [ebp - 4]
push eax
push esi
call fcn.004110b4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41325a
mov ebx, dword [ebp + 8]
xor esi, esi
test edi, edi
mov edi, 0x4696d8
je 0x413368
mov ecx, edi
call fcn.00412904
push 1
push 4
mov ecx, edi
call fcn.00411a85
lea ecx, [ebp - 0x44]
call fcn.00406889
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
lea ecx, [ebp - 0x44]
call fcn.00410f9f
push 1
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x413344
xor esi, esi
mov edi, 0x4696d8
push esi
push 1
push 0x64
push edi
call fcn.00412b28
push esi
push 1
mov ecx, edi
call fcn.00411d51
mov ebx, eax
mov edi, esi
jmp 0x41328d
xor esi, esi
mov edi, 0x4696d8
push esi
push esi
push 0x64
push edi
call fcn.00412b28
push esi
push 1
mov ecx, edi
call fcn.00412ab6
jmp 0x4132f6
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x41333e
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x413319
mov ecx, edi
call fcn.004127f2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x44]
call fcn.00407188
mov ecx, edi
call fcn.00412a38
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x4157f3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x415832
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x415832
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415832
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x415832
cmp dword [ecx + 0x74], 0xe
jbe 0x415832
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4424b6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00441c90

Function at 0x4424c1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00441ecb
Function at 0x4430ee
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00442e75

Function at 0x451220
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45124d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45124d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4014f5
Capabilities:
Contain obfuscated stackstrings
Execute command
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x230
call sym.___main
mov dword [esp + 0x21d], 0x39353433
mov dword [esp + 0x221], 0x33323038
mov dword [esp + 0x225], 0x39383734
mov word [esp + 0x229], 0x302e
mov byte [esp + 0x22b], 0
mov dword [esp], str.TEMP
call sym._getenv
mov dword [esp + 0x22c], eax
cmp dword [esp + 0x22c], 0
jne 0x401569
mov dword [esp], str.Failed_to_get_temp_directory
call sym._puts
mov eax, 1
jmp 0x4015e5
mov eax, dword [esp + 0x22c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._speter.exe
mov dword [esp + 4], 0x104
lea eax, [esp + 0x119]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [esp + 0x119]
mov dword [esp + 4], eax
lea eax, [esp + 0x21d]
mov dword [esp], eax
call dbg.encryptDecrypt
mov eax, dword [esp + 0x22c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._speter.exe__nogui
mov dword [esp + 4], 0x104
lea eax, [esp + 0x15]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [esp + 0x15]
mov dword [esp], eax
call sym._system
mov eax, 0
leave
ret
Function at 0x401c30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x401c7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401c74
test esi, esi
je 0x401c74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401c50
mov dword [esp], 0x40e044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401e60
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401f88
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401eee
cmp eax, 4
jne 0x401f10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401efe
cmp edx, 4
je 0x401efe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401e60
Function at 0x10001270
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x204
mov eax, dword [0x1001dfd0]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
mov ebx, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x210]
push edi
push esi
call dword [sym.imp.hpqddcmn.dll_GetDeviceInfoProductClass]
push esi
mov edi, eax
call dword [sym.imp.hpqddcmn.dll_GetDeviceInfoDatFile]
mov esi, eax
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call sub.MSVCR90.dll_memset
add esp, 0x14
push esi
push 0x100
lea edx, [esp + 0x14]
push edx
push 0x10015488
push str.Baseline
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1000131b
mov eax, dword [esp + 0x21c]
push eax
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.hpqddcmn.dll_ExpandContextStrings]
add esp, 0x10
test eax, eax
je 0x1000131b
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.10012a16
add esp, 0x204
ret
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10012a16
add esp, 0x204
ret
Function at 0x10003160
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10013731
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x1001dfd0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov dword [esp + 0x14], ebx
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
call fcn.100021b0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], 1
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100031c0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.10002390
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.100021b0
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp eax, 8
jb 0x1000321f
inc eax
push eax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x100032e0
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ecx, ecx
push edi
mov eax, esi
mov edx, 2
xor edi, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100129b2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10003364
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.hpqddcmn.dll_GetDeviceInfoDatFile]
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
mov eax, dword [esp + 0x20]
push esi
push ebx
push 0x10015488
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x14]
push edx
push ebx
push edi
sub esp, 0x200
mov ecx, 0x80
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10003240
push ebx
mov esi, eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 0x214
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebx
ret