joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403470
Capabilities:
Check os version
Get token membership

Disassembly:
sub esp, 0xf0
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x90
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x28], ebx
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 0x94
call fcn.00451440
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403585
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x403585
cmp dword [esp + 0x24], 6
jb 0x40352b
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push 0x12
push edx
call esi
test eax, eax
je 0x403585
cmp dword [esp + 0x18], 3
jne 0x40352b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x13
push edx
call esi
test eax, eax
je 0x403585
cmp dword [esp + 0xc], ebx
jne 0x403547
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x403585
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xb8]
push eax
push ebx
push 0x1a
mov dword [esp + 0x24], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x403585
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xb8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40358d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4035a2
push eax
call esi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4035b1
push eax
call esi
mov dword [esp + 0xc], ebx
cmp edi, ebx
je 0x4035c8
push 0x48a1dc
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], edi
call fcn.004514ba
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00450c28
add esp, 0xf0
ret
Function at 0x4040a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x46d4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4946c0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
movzx eax, word [esp + 0x48]
push 2
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0x400
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004360b9
mov dword [esp + 0x40], edi
test esi, esi
je 0x40413a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [esp + 0x1c]
call fcn.0043614a
push 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00403f70
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00436187
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.004364bd
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 4
Function at 0x404420
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d4eb
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
mov eax, dword [0x4946c0]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov esi, dword [esp + 0x164]
call fcn.00403470
test eax, eax
je 0x4045e7
call fcn.004035f0
test eax, eax
jne 0x4045e7
push 0x21
push 0xea61
push 0xea66
call fcn.0041a120
add esp, 0xc
cmp eax, 1
jne 0x4045e7
test esi, esi
je 0x4044ca
cmp dword [esi + 0x60], 0
je 0x4044ca
cmp dword [0x496540], 0
jne 0x4044ca
push 0x24
push 0xea61
push 0xea69
call fcn.0041a120
add esp, 0xc
cmp eax, 6
jne 0x4044ca
mov ecx, esi
call fcn.0040b320
mov eax, dword [0x496b68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea ecx, [esp + 0x50]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4045e7
push 0x38
lea edx, [esp + 0x18]
push 0
push edx
mov dword [esp + 0x1c], 0x3c
call fcn.00451440
add esp, 0xc
lea ecx, [esp + 0xc]
call fcn.00401c80
lea eax, [esp + 0x4c]
push 0x47ed45
lea ecx, [esp + 0x10]
mov dword [esp + 0x160], 0
mov dword [esp + 0x20], str.runas
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0x496388
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], 1
call fcn.004043a0
mov esi, 1
cmp dword [0x49b9fc], esi
jl 0x4045a3
mov ecx, dword [0x49ba00]
mov edx, dword [ecx + esi*4]
test edx, edx
jne 0x404571
xor eax, eax
jmp 0x40457f
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404576
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00404260
push 1
push 0x472e7c
lea ecx, [esp + 0x14]
call fcn.00404260
inc esi
cmp esi, dword [0x49b9fc]
jle 0x404560
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x28], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x404612
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esi - 0x10]
mov dword [esp + 0x15c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00450c28
add esp, 0x154
ret
push 0
call fcn.00451b72
int3
Function at 0x405610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405629
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405664
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405660
lea ebx, [ebx]
cmp esi, eax
jae 0x405664
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405650
cmp esi, eax
jb 0x40566a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407830
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0x496388
lea eax, [esp + 8]
push str._sdxwnd.reg
push eax
call fcn.00450b6c
lea ecx, [esp + 0x10]
push 0x47404c
push ecx
call fcn.00452b32
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x407885
push 0x10
push 0xea63
push 0xea82
call fcn.0041a120
add esp, 0xc
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407890
push esi
sub eax, edx
push 1
push eax
push edi
call fcn.004529ec
push esi
push 0x474048
call fcn.0045277b
push esi
call fcn.004526ff
mov ecx, dword [esp + 0x128]
add esp, 0x1c
pop esi
xor ecx, esp
call fcn.00450c28
add esp, 0x10c
ret
Function at 0x407a10
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x120
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebp
mov ebp, dword [esp + 0x12c]
push esi
mov eax, str.title
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.icon
mov dword [esp + 0x14], str.module
mov dword [esp + 0x18], str.opengllib
mov dword [esp + 0x1c], str.monitorid
mov dword [esp + 0x20], str.filterid
mov dword [esp + 0x24], str.renderer
mov dword [esp + 0x28], str.dflag
mov dword [esp + 0x2c], str.dflagb
mov dword [esp + 0x30], str.scanline
mov dword [esp + 0x34], str.initresw
mov dword [esp + 0x38], str.initresh
mov dword [esp + 0x3c], str.fakehddrive
mov dword [esp + 0x40], str.fakecddrive
mov dword [esp + 0x44], str.path
mov dword [esp + 0x48], str.launchpath
mov dword [esp + 0x4c], str.startfolder
mov dword [esp + 0x50], 0x47420c
mov dword [esp + 0x54], str.coord
mov dword [esp + 0x58], str.flag
mov dword [esp + 0x5c], str.flagg
mov dword [esp + 0x60], str.flagh
mov dword [esp + 0x64], str.flagi
mov dword [esp + 0x68], str.flagj
mov dword [esp + 0x6c], str.flagk
mov dword [esp + 0x70], str.flagl
mov dword [esp + 0x74], str.flagm
mov dword [esp + 0x78], str.flagn
mov dword [esp + 0x7c], str.flago
mov dword [esp + 0x80], str.flagp
mov dword [esp + 0x84], str.flagq
mov dword [esp + 0x88], str.tflag
mov dword [esp + 0x8c], str.initx
mov dword [esp + 0x90], str.inity
mov dword [esp + 0x94], str.minx
mov dword [esp + 0x98], str.miny
mov dword [esp + 0x9c], str.maxx
mov dword [esp + 0xa0], str.maxy
mov dword [esp + 0xa4], str.posx
mov dword [esp + 0xa8], str.posy
mov dword [esp + 0xac], str.sizx
mov dword [esp + 0xb0], str.sizy
mov dword [esp + 0xb4], str.maxfps
mov dword [esp + 0xb8], str.swapeffect
mov dword [esp + 0xbc], str.initts
mov dword [esp + 0xc0], str.winver
mov dword [esp + 0xc4], str.maxres
mov dword [esp + 0xc8], str.notes
mov dword [esp + 0xcc], str.registry
mov dword [esp + 0xd0], str.maxddinterface
mov dword [esp + 0xd4], str.slowratio
mov dword [esp + 0xd8], str.fakec
mov dword [esp + 0xdc], str.faked
mov dword [esp + 0xe0], str.fakecd
mov dword [esp + 0xe4], str.fakehd
mov dword [esp + 0xe8], str.fakecdlabel
mov dword [esp + 0xec], str.cdvol
mov dword [esp + 0xf0], str.codepage
mov dword [esp + 0xf4], str.country
mov dword [esp + 0xf8], str.lang
mov dword [esp + 0xfc], str.commitaddress
mov dword [esp + 0x100], str.commitlength
mov dword [esp + 0x104], esi
push ebp
push eax
push str._s_i
lea eax, [esp + 0x114]
push 0x20
push eax
call fcn.00450be9
add esp, 0x14
push edi
push 0
lea ecx, [esp + 0x110]
push ecx
push str.target
call ebx
mov eax, dword [esp + esi*4 + 0x10]
inc esi
test eax, eax
jne 0x407c91
mov ecx, dword [esp + 0x128]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00450c28
add esp, 0x120
ret
Function at 0x407e40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov edi, ecx
call fcn.00423230
test eax, eax
mov eax, str.open
jne 0x407e6b
mov eax, str.explore
push 5
push 0
push 0
push 0x496388
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
jg 0x407ec5
call fcn.00423230
test eax, eax
mov eax, str.open
jne 0x407e99
mov eax, str.explore
push esi
push 0x496388
push eax
lea eax, [esp + 0x14]
push str.ShellExecute___s_____s___failed._nerror_d
push eax
call fcn.00450b6c
add esp, 0x14
push 0
push str.error
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.0042ae63
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.00450c28
add esp, 0x108
ret

Function at 0x407f00
Capabilities:
Create process on windows
Read .ini file

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x2bc], eax
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
mov esi, ecx
call fcn.00451440
add esp, 0xc
push 0x4967c0
push 0x104
lea ecx, [esp + 0x1c0]
push ecx
push str.DbgView.exe
push str.debugview
push str.window
mov dword [esp + 0x30], 0x44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x1b8]
push edx
lea eax, [esp + 0xb4]
push 0x105
push eax
call fcn.004530e6
add esp, 0xc
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0xb0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407f90
sub eax, edx
jne 0x407fb6
mov dx, word [0x474364]
mov al, byte [0x474366]
mov word [esp + 0xb0], dx
mov byte [esp + 0xb2], al
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xb8]
push eax
push 0
push 0x4000000
push 0
push 0
push 0
lea ecx, [esp + 0x1d8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40802b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x60]
push str.Error__d_starting_DebugView
push edx
call fcn.00450b6c
add esp, 0xc
push 0x10
push 0x472b38
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.0042ae63
pop esi
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.00450c28
add esp, 0x2c0
ret
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov ecx, dword [esp + 0x2c0]
pop esi
xor ecx, esp
call fcn.00450c28
add esp, 0x2c0
ret
Function at 0x408060
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
sub esp, 0x1c
push ebp
push esi
xor eax, eax
xor esi, esi
push esi
push 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40809c
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push ebp
mov dword [esp + 0x10], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x408105
push ebx
mov bl, byte [esp + 0x30]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
nop
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x1c], ecx
jne 0x4080f1
mov edx, dword [esp + 0x18]
push edx
push 0
push 2
call edi
mov esi, eax
push esi
test bl, bl
je 0x4080e4
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4080ea
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x4080c0
pop edi
lea esi, [eax + 1]
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret

Function at 0x4083f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x88
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
push esi
push 0x4743b0
push eax
call fcn.00452b32
mov esi, eax
add esp, 8
test esi, esi
je 0x408508
push edi
push esi
call fcn.004536b7
push esi
push 0x2c
mov edi, eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004534fd
add esp, 0x14
cmp eax, 0x2c
jne 0x4084fe
jmp 0x408450
cmp dword [esp + 8], 0x5f476f42
jne 0x408482
cmp dword [esp + 0xc], 0x30392a20
jne 0x408482
cmp dword [esp + 0x10], 0x2126302e
jne 0x408482
cmp dword [esp + 0x14], 0x59202021
jne 0x408482
cmp dword [esp + 0x18], 0x3e79
je 0x4084b6
push 0
add edi, 4
push edi
push esi
call fcn.004531d8
add esp, 0xc
test eax, eax
jne 0x4084fe
push esi
call fcn.004536b7
push esi
push 0x2c
lea ecx, [esp + 0x14]
push 1
push ecx
mov edi, eax
call fcn.004534fd
add esp, 0x14
cmp eax, 0x2c
je 0x408450
jmp 0x4084fe
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test eax, eax
jne 0x4084d2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push edx
push ecx
push eax
lea edx, [esp + 0x44]
push str.Safedisk_version__d._d._d_detected
push edx
call fcn.00450b6c
add esp, 0x14
push 0x40031
push str.DxWnd_hint
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.004526ff
add esp, 4
pop edi
mov ecx, dword [esp + 0x88]
pop esi
xor ecx, esp
call fcn.00450c28
add esp, 0x88
ret
Function at 0x408520
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x484
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x480], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
mov esi, ecx
push Ordinal_3
push esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x408680
mov eax, esi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408572
mov ecx, dword [str..noshim]
push 0
push 0x80
push 2
push 0
push 0
mov dword [eax], ecx
mov edx, dword [0x47441c]
push 0x40000000
push esi
mov dword [eax + 4], edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x408624
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
lea eax, [esp + 0x18]
push str.Creation_of_hidden_copy_of_target_file_with_no_SHIMs_failed_nError_d
push eax
call fcn.00450b6c
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0xc
push 0
push str.Warning
lea ecx, [esp + 0x1c]
push ecx
push 0
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x408680
call esi
push eax
lea edx, [esp + 0x18]
push str.CloseHandle_failed_nError_d
push edx
call fcn.00450b6c
add esp, 0xc
push 0
push 0x472b38
lea eax, [esp + 0x1c]
push eax
push 0
call ebp
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.00450c28
add esp, 0x484
ret
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ebx, [ebx]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x400
lea edx, [esp + 0x98]
push edx
push edi
call ebp
test eax, eax
je 0x408674
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x98]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408674
cmp dword [esp + 0xc], 0x400
je 0x408630
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00450c28
add esp, 0x484
ret

Function at 0x408920
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
mov esi, ecx
call fcn.00451440
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x496388
push 0
push 0x4000000
push 0
push 0
push 0
push str.._blacker.exe
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x408985
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
pop esi
add esp, 0x54
ret
push 0
push str.error
push str.blacker_run_failed
mov ecx, esi
call fcn.0042ae63
pop esi
add esp, 0x54
ret
Function at 0x4089c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
mov ebx, ecx
push esi
mov esi, dword [ebx]
mov dword [esp + 0xc], eax
test esi, esi
je 0x408a16
mov ecx, dword [esp + 0xc]
push ecx
push 0x50
lea edx, [esp + 0x18]
push edx
push 0x47ed45
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebp
lea eax, [esp + 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, dword [ebx + 4]
add ebx, 4
test esi, esi
jne 0x4089e5
mov ecx, dword [esp + 0x64]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00450c28
add esp, 0x5c
ret

Function at 0x408d30
Capabilities:
Read .ini file

Disassembly:
push ebp
push esi
xor esi, esi
mov ebp, ecx
cmp dword [0x492260], esi
je 0x408da8
push ebx
push edi
xor edi, edi
mov eax, dword [edi + 0x49226c]
push 0x4967c0
push 0
push eax
push str.keymapping
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
test ebx, ebx
je 0x408d95
push esi
mov ecx, ebp
call fcn.00403320
push eax
call dword [sym.imp.USER32.dll_UnregisterHotKey]
push ebx
push 7
push esi
mov ecx, ebp
call fcn.00403320
push eax
call dword [sym.imp.USER32.dll_RegisterHotKey]
test eax, eax
jne 0x408d95
mov ecx, dword [edi + 0x49226c]
push ecx
call fcn.00407de0
add esp, 4
inc esi
lea edi, [esi + esi*4]
add edi, edi
add edi, edi
cmp dword [edi + 0x492260], 0
jne 0x408d42
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4094b0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call fcn.0042bfe2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x6c]
call eax
mov ecx, dword [esi + 0x20]
push ecx
mov ebx, eax
call edi
push eax
call fcn.0042bfe2
cmp dword [0x496534], 0
mov dword [0x4966ac], eax
jne 0x4095f3
cmp dword [esi + 0x75b58], 0
jne 0x409602
mov edx, dword [0x496514]
push 0xa
push 1
neg edx
push 0x4719a0
sbb edx, edx
not edx
and edx, str.DxWnd_DirectDraw_windowizer
push edx
push 0
push 0x85
push 0
push 0x4719a0
push 0x800a
lea edi, [esi + 0x75908]
push 0
mov ecx, edi
call fcn.00420080
push 0
test eax, eax
jne 0x409582
push 0xea63
push 0xea78
call fcn.0041a120
add esp, 0xc
cmp dword [0x496530], 0
je 0x409638
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x408220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx + 4]
push 0x801b
push ecx
call dword [sym.imp.USER32.dll_GetMenuState]
xor edx, edx
cmp eax, 8
setne dl
mov ecx, edi
add edx, 0x87
mov eax, edx
push eax
call fcn.00420370
test eax, eax
jne 0x4095c7
push eax
push 0xea63
push 0xea79
call fcn.0041a120
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x4091e0
push 0
push 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x496534], 0
je 0x409602
add esi, 0x75908
mov ecx, esi
call fcn.0041fd00
jmp 0x40960f
add esi, 0x75908
mov ecx, esi
call fcn.004202a0
push 1
push 0
mov ecx, esi
call fcn.00420470
mov edx, dword [0x4966ac]
push edx
mov ecx, esi
call fcn.0041fdd0
mov eax, dword [0x4966ac]
push 0
push eax
call fcn.00420a50
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0xc
ret