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

Disassembly:
mov eax, dword [0x465dbc]
sub esp, 0x110
test eax, eax
push ebx
push esi
push edi
je 0x4094a8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareRealNetworksGames5spots1
push DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4094a8
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x98]
push edx
push eax
push 0
push 0
mov edi, 0x80
push str.LicenseKey
push ecx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x4094a8
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
lea eax, [esp + 0x98]
push edx
push eax
push 0
push 0
push str.InstallPath
push ecx
mov dword [esp + 0x24], edi
call esi
test eax, eax
jne 0x4094a8
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], ecx
mov al, byte [esp + ecx + 0x97]
cmp al, 0x2f
je 0x409412
cmp al, 0x5c
je 0x409412
mov edi, 0x454af8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x98]
test al, al
je 0x4094a8
mov edi, str.data_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x454aec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x118], 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call fcn.00414dc0
push str.7spots
push eax
call fcn.00414e90
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x110
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret

Function at 0x409570
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
lea eax, [esp + 8]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareRealNetworksGames5spotsii1
push DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4095aa
xor eax, eax
add esp, 0x40c
ret
mov ecx, dword [esp]
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push str.LicenseKey
push ecx
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4095dd
xor eax, eax
add esp, 0x40c
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x40c
ret
Function at 0x409bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x448659
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov byte [esi + 0x18], al
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov cl, byte [esp + 0x30]
mov dword [esp + 0x28], ebx
mov byte [esi + 0x28], cl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dl, byte [esp + 0x30]
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x38], dl
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov eax, dword [esp + 0x30]
mov ecx, esi
push eax
mov byte [esp + 0x2c], 2
mov byte [esi + 0x54], bl
mov byte [esi + 0x55], bl
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
call fcn.0040a430
push ebx
push ebx
mov ecx, esi
call fcn.0040a290
push ebx
push ebx
mov ecx, esi
call fcn.0040a2a0
mov cl, byte [esp + 0x30]
mov edi, 0x45eff8
mov byte [esp + 0x10], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ebx
push ecx
push 0x45eff8
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
call fcn.0040a830
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov byte [esp + 0x2c], 3
call fcn.0040a2c0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 2
cmp eax, ebx
je 0x409cc6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x409cbd
cmp al, 0xff
je 0x409cbd
dec al
mov byte [ecx], al
jmp 0x409cc6
push ecx
call fcn.0043ab43
add esp, 4
push ebx
mov ecx, esi
call fcn.0040a400
push 0xfffffffffffffffe
push 2
mov ecx, esi
call fcn.0040a410
push 1
mov ecx, esi
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x4c], 0xffffffff
mov dword [esi + 0x50], 0xffffffff
call fcn.0040a550
mov eax, dword [0x466364]
push str.button
push eax
call fcn.00416660
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [esi + 0x70], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x40bb50
Capabilities:
Terminate process

Disassembly:
call fcn.0040daa0
call fcn.004091f0
mov eax, dword [0x466314]
push eax
call fcn.00414660
add esp, 4
call fcn.0040be80
call fcn.0040bff0
call fcn.00415d30
call fcn.00414d60
call fcn.004198b0
call fcn.00414910
push 1
call fcn.0043baae
nop
nop
nop
Function at 0x411c70
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push esi
call fcn.00411b60
mov esi, dword [esp + 0x30]
push 0x65
push esi
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 0x411880
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], str.5_spots_2_version_1.0.0
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0
push 1
call esi
push eax
push 0
call esi
push eax
push 0
push 0
push 0x97000000
push str.5_spots_2_version_1.0.0
push str.5_spots_2_version_1.0.0
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x4a50a8], eax
pop esi
jne 0x411d29
add esp, 0x28
ret
push 0
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [0x4a50a8]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [esp + 0x30]
mov eax, dword [0x4a50a8]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4a50a8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0040b910
mov eax, 1
add esp, 0x28
ret

Function at 0x4146d0
Capabilities:
Identify system language via api

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ebp, dword [esp + 0x18]
mov si, ax
and esi, 0x3f
or eax, 0xffffffff
mov dword [esp + 0x10], esi
xor ebx, ebx
mov edi, 0x45972c
cmp word [edi - 4], si
jne 0x41471d
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
cmp ecx, 0xffffffff
je 0x41471d
mov esi, dword [edi]
cmp esi, ecx
jne 0x41470e
mov eax, esi
mov ebp, ebx
mov ecx, dword [edx + 4]
add edx, 4
cmp ecx, 0xffffffff
jne 0x414706
mov esi, dword [esp + 0x10]
add edi, 0x14
inc ebx
cmp edi, 0x4597b8
jl 0x4146f3
cmp eax, 0xffffffff
je 0x41473d
lea ecx, [ebp + ebp*4]
mov edx, dword [ecx*4 + 0x459738]
test edx, edx
jne 0x414742
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x414a70
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret
Function at 0x416b30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4da9d4]
push esi
xor esi, esi
push edi
test eax, eax
je 0x416b54
mov eax, 0x4da9d4
add eax, 0x98
inc esi
cmp eax, 0x507254
jge 0x416b54
cmp dword [eax], 0
jne 0x416b42
mov edx, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x70
jne 0x416b80
push esi
push edx
call fcn.00416da0
add esp, 8
test eax, eax
jne 0x416bbb
push 0xffffffffffffffff
call fcn.0043baae
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
cmp byte [ecx + edx - 1], 0x67
jne 0x416ba8
call fcn.00416c50
add esp, 8
test eax, eax
jne 0x416bbb
push 0xffffffffffffffff
call fcn.0043baae
call fcn.00416f50
add esp, 8
test eax, eax
jne 0x416bbb
push 0xffffffffffffffff
call fcn.0043baae
mov eax, esi
pop edi
pop esi
ret

Function at 0x418c90
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
je 0x418ccc
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
sete al
jmp 0x418cd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 2
mov ecx, dword [ebp + 0x556c]
mov edx, dword [esp + 0x14]
push edi
push eax
push ecx
push edx
call ebx
mov eax, dword [edi + 0x6578]
add esp, 0x10
test eax, eax
je 0x418d02
push edi
push 4
push 0
push 0
call ebx
add esp, 0x10
xor esi, esi
mov eax, dword [edi + 0x657c]
test eax, eax
jne 0x418d18
test esi, esi
je 0x418d18
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x418ca0
push edi
call fcn.00418f90
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41ac90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4ac408]
sub esp, 0x14
push esi
xor esi, esi
cmp eax, esi
jne 0x41accc
push esi
push 0x4ac408
push 0x4493f0
push 0x700
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.DINPUT.dll_DirectInputCreateEx
test eax, eax
jge 0x41acc7
push 0xffffffffffffffff
call fcn.0043baae
mov eax, dword [0x4ac408]
mov ecx, dword [eax]
push esi
push 0x4ac40c
push 0x4493e0
push 0x449390
push eax
call dword [ecx + 0x24]
test eax, eax
jge 0x41aced
push 0xffffffffffffffff
call fcn.0043baae
mov eax, dword [0x4ac40c]
push 0x449410
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
test eax, eax
jge 0x41ad08
push 0xffffffffffffffff
call fcn.0043baae
mov eax, dword [0x4ac40c]
mov edx, dword [esp + 0x1c]
push 5
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
test eax, eax
jge 0x41ad25
push 0xffffffffffffffff
call fcn.0043baae
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, esi
mov dword [0x4ac404], eax
jne 0x41ad3f
push 0xffffffffffffffff
call fcn.0043baae
mov ecx, dword [0x4ac40c]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x30]
test eax, eax
jge 0x41ad57
push 0xffffffffffffffff
call fcn.0043baae
mov eax, 0x10
lea edx, [esp + 4]
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov eax, dword [0x4ac40c]
mov dword [esp + 4], 0x14
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0x18]
test eax, eax
jge 0x41ad91
push 0xffffffffffffffff
call fcn.0043baae
mov eax, dword [0x4ac40c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [0x4a5858]
mov dword [0x4a5840], esi
cdq
sub eax, edx
mov dword [0x4a5850], esi
sar eax, 1
mov dword [0x4a5848], eax
mov dword [0x4a5864], eax
mov dword [0x4a586c], eax
mov eax, dword [0x4a585c]
cdq
sub eax, edx
mov dword [0x4a5878], 0x41ae20
sar eax, 1
mov dword [0x4a5844], eax
mov dword [0x4a5860], eax
mov dword [0x4a5868], eax
mov dword [0x4a5854], 0x41ae00
mov dword [0x4a5880], 0x41afe0
pop esi
add esp, 0x14
ret

Function at 0x41b530
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 0x1c0]
push eax
call edi
mov ecx, dword [esi + 0x1b4]
push ecx
call edi
mov edx, dword [esi + 0x1b8]
push edx
call edi
push esi
push 0
push 0x41b350
call fcn.0043c5d0
add esp, 0xc
mov dword [esi + 0x1bc], eax
pop edi
pop esi
ret
Function at 0x4208a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xca
jne 0x4208e3
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042708b
add esp, 4
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + 0x40]
test eax, eax
je 0x4208d9
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0xcf
mov al, 1
jmp 0x4209fa
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xcb
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcb
jne 0x4209ba
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x190]
xor eax, eax
mov al, byte [edx + 0x10]
test eax, eax
je 0x4209a9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x420921
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
call dword [ecx]
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x190]
call dword [ecx]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x420943
xor al, al
jmp 0x4209fa
cmp dword [ebp - 4], 2
jne 0x42094b
jmp 0x4209a9
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x4209a4
cmp dword [ebp - 4], 3
je 0x420960
cmp dword [ebp - 4], 1
jne 0x4209a4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 8]
jl 0x4209a4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x11c]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov dword [ecx + 8], eax
jmp 0x420909
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
mov dword [edx + 0x84], ecx
jmp 0x4209ee
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0xcc
je 0x4209ee
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ecx + 0x14], 0x14
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
call dword [edx]
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.004209fe
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4209fe
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x420a34
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x180]
call dword [eax]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xcc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x180]
xor edx, edx
mov dl, byte [ecx + 8]
test edx, edx
je 0x420afa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x78]
cmp edx, dword [ecx + 0x60]
jae 0x420ac6
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x420a8e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov dword [edx + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x60]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
call dword [edx]
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 4], ecx
push 0
mov edx, dword [ebp + 8]
add edx, 0x78
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x184]
call dword [edx + 4]
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebp - 4]
jne 0x420ac4
xor al, al
jmp 0x420b16
jmp 0x420a4a
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x180]
call dword [ecx + 4]
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x180]
call dword [ecx]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x78], 0
jmp 0x420a34
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + 0x41]
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 0xcd
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x44193f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x45e430
cmp edx, dword [eax]
je 0x441961
add eax, 8
inc ecx
cmp eax, 0x45e4c0
jl 0x441952
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x45e430]
jne 0x441a8f
mov eax, dword [0x4ac48c]
cmp eax, 1
je 0x441a69
test eax, eax
jne 0x441992
cmp dword [0x45bc94], 1
je 0x441a69
cmp edx, 0xfc
je 0x441a8f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4419c9
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00441ba0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00442a40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x441a0c
lea eax, [ebp - 0x1a4]
push eax
call fcn.00442a40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44a3f0
push edi
call fcn.0043b570
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00441ba0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00441bb0
lea eax, [ebp - 0xa0]
push 0x44a3d0
push eax
call fcn.00441bb0
push dword [esi + 0x45e434]
lea eax, [ebp - 0xa0]
push eax
call fcn.00441bb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00445920
add esp, 0x2c
pop edi
jmp 0x441a8f
lea eax, [ebp + 8]
lea esi, [esi + 0x45e434]
push 0
push eax
push dword [esi]
call fcn.00442a40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000a3c8
push 0x10002ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov edx, 0x1c03fe
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], 4
mov byte [ebp - 0x44], 0x74
mov byte [ebp - 0x43], 0x12
mov byte [ebp - 0x42], 0x6a
xor ecx, ecx
mov byte [ebp - 0x41], cl
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], 0x247114
mov dword [ebp - 0x30], 0xa
mov byte [ebp - 0x2c], 0x53
mov byte [ebp - 0x2b], cl
mov byte [ebp - 0x2a], 0x50
mov byte [ebp - 0x29], cl
mov byte [ebp - 0x28], 0x6c
mov byte [ebp - 0x27], cl
mov byte [ebp - 0x26], 0x75
mov byte [ebp - 0x25], cl
mov byte [ebp - 0x24], 0x73
mov byte [ebp - 0x23], cl
xor eax, eax
lea edi, [ebp - 0x22]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], 1
mov byte [ebp - 0x64], 0xeb
xor eax, eax
lea edi, [ebp - 0x63]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], ecx
xor ebx, ebx
mov dword [ebp - 0x54], ebx
push 2
pop eax
cmp ebx, eax
jae 0x100010e9
lea esi, [ebx + ebx*2]
shl esi, 3
mov edi, dword [ebp + esi - 0x4c]
add edi, dword [ebp + 8]
mov dword [ebp - 0x74], edi
push edi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x100010e9
push dword [ebp + esi - 0x48]
lea eax, [ebp + esi - 0x44]
push eax
push edi
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100010e9
inc ebx
jmp 0x100010ab
push 2
pop eax
cmp ebx, eax
jne 0x1000114a
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov dword [ebp - 0x74], esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x1000114a
lea eax, [ebp - 0x70]
push eax
push 0x40
push dword [ebp - 0x68]
push esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
test eax, eax
je 0x1000114a
push dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x68]
push esi
call edi
mov dword [ebp - 0x50], 1
jmp 0x1000114a
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100013a8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2090
call fcn.10002ae0
and word [ebp - 0x1048], 0
push esi
mov edx, 0x411
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x1046]
and word [ebp - 0x2090], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x208e]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1048]
mov edi, 0x820
push eax
push edi
push 0xd
push dword [ebp + 8]
call esi
test eax, eax
je 0x10001437
lea eax, [ebp - 0x1048]
push 1
push eax
call fcn.1000307f
pop ecx
test eax, eax
pop ecx
jne 0x10001437
push 1
lea eax, [ebp - 0x2090]
push edi
push eax
lea eax, [ebp - 0x1048]
push eax
call fcn.10001452
add esp, 0x10
test eax, eax
jne 0x1000143b
xor eax, eax
jmp 0x1000144e
lea eax, [ebp - 0x2090]
push eax
push 0
push 0xc
push dword [ebp + 8]
call esi
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x100016e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push str.EnableAddrSearch
push str.SoftwareTencentQQToolbarUsers0SearchBox
push 0x80000001
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 1
je 0x10001721
cmp eax, 2
je 0x10001721
xor eax, eax
leave
ret
push 1
pop eax
leave
ret

Function at 0x10001726
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.10004aba
test eax, eax
je 0x10001743
push 1
pop eax
jmp 0x100017b1
push ebx
push esi
mov esi, 0x1000
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x100017ac
push esi
push edi
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x100017a5
mov esi, dword [ebp - 8]
mov dword [ebp - 4], edi
shr esi, 2
je 0x100017a5
mov edi, ebx
push dword [edi]
call section..text
test eax, eax
pop ecx
jne 0x1000179e
inc dword [ebp - 4]
add edi, 4
cmp dword [ebp - 4], esi
jb 0x10001785
jmp 0x100017a5
mov dword [ebp - 0xc], 1
push ebx
call fcn.10002a99
pop ecx
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
pop edi
leave
ret