joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ad10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45ba3c]
jne 0x411b1a
repz ret
jmp 0x41ad10
push edi
pop edi
push ebp
push esp
pop ebp
sub esp, 0x328
mov dword [0x45ddf8], eax
mov dword [0x45ddf4], ecx
mov dword [0x45ddf0], edx
mov dword [0x45ddec], ebx
mov dword [0x45dde8], esi
mov dword [0x45dde4], edi
mov word [0x45de10], ss
mov word [0x45de04], cs
mov word [0x45dde0], ds
mov word [0x45dddc], es
mov word [0x45ddd8], fs
mov word [0x45ddd4], gs
pushfd
pop dword [0x45de08]
mov eax, dword [ebp]
mov dword [0x45ddfc], eax
mov eax, dword [ebp + 4]
mov dword [0x45de00], eax
lea eax, [ebp + 8]
mov dword [0x45de0c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x45dd48], 0x10001
mov eax, dword [0x45de00]
mov dword [0x45dcfc], eax
mov dword [0x45dcf0], 0xc0000409
mov dword [0x45dcf4], 1
mov ecx, dword [0x45ba3c]
mov dword [ebp - 0x328], ecx
mov edx, dword [0x45ba40]
mov dword [ebp - 0x324], edx
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x45dd40], eax
push 1
call fcn.00416a00
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x454730
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x45dd40], 0
jne 0x41ae08
push 1
call fcn.00416a00
add esp, 4
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebp
pop esp
pop ebp
ret
Function at 0x41d6f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
push 0xfffffffffffffffe
push 0x459f20
push 0x40e260
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x45ba3c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0x80
jg 0x41d745
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
and edx, 0xff
movsx eax, dl
mov dword [ebp - 0x24], eax
jmp 0x41d74e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
call fcn.0040aa10
add eax, 0x90
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp - 0x28]
mov dword [eax], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x14]
je 0x41d80f
cmp dword [ebp - 0x1c], 0xffffffff
jle 0x41d794
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edx + 4]
jge 0x41d794
jmp 0x41d799
call fcn.0040e870
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + eax*8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x1c]
cmp dword [eax + ecx*8 + 4], 0
je 0x41d7e4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [edx + 8], eax
push 0x103
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + ecx*8 + 4]
push edx
call fcn.0041eab0
mov dword [ebp - 4], 0
jmp 0x41d804
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
jmp 0x41d775
mov dword [ebp - 4], 0xfffffffe
call fcn.0041d81d
jmp 0x41d846
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp + 0x14]
jne 0x41d850
jmp 0x41d855
call fcn.0040e870
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x433900
Capabilities:
Get geographical location

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
sub esp, 8
push esi
movzx eax, word [ebp + 8]
and eax, 0x3ff
movzx ecx, ax
or ecx, 0x400
movzx edx, cx
mov dword [ebp - 4], edx
push 2
lea eax, [ebp - 8]
push eax
push 0x20000001
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
jne 0x43393e
xor eax, eax
jmp 0x433977
mov edx, dword [ebp + 8]
cmp edx, dword [ebp - 8]
je 0x433972
cmp dword [ebp + 0xc], 0
je 0x433972
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.00433a00
add esp, 4
push eax
pop esi
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call fcn.00408980
add esp, 4
cmp esi, eax
jne 0x433972
sub eax, eax
jmp 0x433977
push 1
pop eax
pushal
popal
pop esi
push ebp
pop esp
pop ebp
ret
Function at 0x10004ba0
Capabilities:
Get common file path
Inspect section memory permissions
Print debug messages

Disassembly:
mov eax, dword [esi + 4]
push eax
call fcn.10019dc0
mov ecx, dword [esi + 4]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
push str._s:_Flags_x__s_
call fcn.10025250
add esp, 0x14
test byte [esi + 4], 0x20
je 0x10004bd7
mov eax, dword [esi + 0x14]
push eax
push str._BackBufferCount_d
call fcn.10025250
add esp, 8
test byte [esi + 4], 4
je 0x10004bee
mov ecx, dword [esi + 0xc]
push ecx
push str._Width_d
call fcn.10025250
add esp, 8
test byte [esi + 4], 2
je 0x10004c05
mov edx, dword [esi + 8]
push edx
push str._Height_d
call fcn.10025250
add esp, 8
test byte [esi + 4], 1
je 0x10004c26
mov eax, dword [esi + 0x68]
push eax
call fcn.1001a250
mov ecx, dword [esi + 0x68]
push eax
push ecx
push str._Caps_x__s_
call fcn.10025250
add esp, 0x10
test dword [esi + 4], 0x4000
je 0x10004c44
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
push edx
push eax
push str._CKDestBlt__x__x_
call fcn.10025250
add esp, 0xc
test dword [esi + 4], 0x2000
je 0x10004c62
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push ecx
push edx
push str._CKDestOverlay__x__x_
call fcn.10025250
add esp, 0xc
test dword [esi + 4], 0x10000
je 0x10004c80
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
push eax
push ecx
push str._CKSrcBlt__x__x_
call fcn.10025250
add esp, 0xc
test dword [esi + 4], 0x8000
je 0x10004c9e
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
push edx
push eax
push str._CKSrcOverlay__x__x_
call fcn.10025250
add esp, 0xc
test dword [esi + 4], 0x1000
je 0x10004cc8
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x5c]
push ecx
mov ecx, dword [esi + 0x58]
push edx
mov edx, dword [esi + 0x54]
push eax
push ecx
push edx
push str._PixelFormat_BPP_d_RGBA__x__x__x__x_
call fcn.10025250
add esp, 0x18
mov dword [esp + 4], 0x1005f108
jmp fcn.10025250
Function at 0x100139d0
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
test dword [0x10087430], 0x40000000
jne 0x100139e6
test byte [0x10087440], 0x80
je 0x100139fe
cmp dword [0x10084568], 0
jne 0x100139fe
call fcn.100098e0
mov dword [0x10084568], 1
test dword [0x10087438], 0x4000000
je 0x10013a28
mov eax, dword [esp + 8]
push str.ddraw.dll
push 0x10080150
push eax
call fcn.10026ec0
add esp, 0xc
mov eax, 1
pop ecx
ret
test dword [0x10087444], 0x100
push esi
mov esi, dword [esp + 0x10]
je 0x10013a47
push esi
push str.HookDirectDraw_version_d_n
call fcn.10025250
add esp, 8
push ebx
push edi
cmp esi, 7
ja case.0x10013a52.4
jmp dword [esi*4 + 0x10013be4]
mov ecx, dword [esp + 0x14]
push str.ddraw.dll
push 0x10080150
push ecx
call fcn.10026ec0
add esp, 0xc
jmp case.0x10013a52.4
mov ebx, dword [esp + 0x14]
push str.ddraw.dll
push 0x10080150
push ebx
call fcn.10026ec0
add esp, 0xc
cmp dword [0x1008410c], 0
jne 0x10013acf
push str.ddraw.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.DirectDrawCreate
push esi
call edi
push str.DirectDrawEnumerateA
push esi
mov dword [0x1008410c], eax
call edi
cmp dword [0x1008410c], 0
mov dword [0x10084114], eax
je 0x10013bca
push str.ddraw.dll
push 0x10080150
push ebx
call fcn.10026ec0
add esp, 0xc
push 0
lea edx, [esp + 0x10]
push edx
push 0
call fcn.100131f0
mov esi, eax
test esi, esi
je 0x10013b0b
push esi
call fcn.100240b0
push eax
push esi
push str.DirectDrawCreate:_ERROR_res_x__s__n
call fcn.10025250
add esp, 0x10
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp case.0x10013a52.4
mov eax, dword [esp + 0x14]
push str.ddraw.dll
push 0x10080150
push eax
call fcn.10026ec0
add esp, 0xc
cmp dword [0x1008410c], 0
jne 0x10013b8c
push str.ddraw.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.DirectDrawEnumerateA
push esi
call edi
push str.DirectDrawEnumerateExA
push esi
mov dword [0x10084114], eax
call edi
push str.DirectDrawCreate
push esi
mov dword [0x10084118], eax
call edi
push str.DirectDrawCreateEx
push esi
mov dword [0x1008410c], eax
call edi
cmp dword [0x1008410c], 0
mov dword [0x10084110], eax
je 0x10013bca
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
call fcn.100131f0
mov esi, eax
test esi, esi
je 0x10013bb5
push esi
call fcn.100240b0
push eax
push esi
push str.DirectDrawCreate:_ERROR_res_x__s__n
call fcn.10025250
add esp, 0x10
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp dword [0x1008410c], 0
jne 0x10013bda
cmp dword [0x10084110], 0
jne 0x10013bda
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
pop edi
pop ebx
mov eax, 1
pop esi
pop ecx
ret
Function at 0x10013fd0
Capabilities:
Hash data using rshash

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
mov ecx, 0xf8c9
test edi, edi
jne 0x10013fec
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
cdq
idiv edi
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x1001404c
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov dword [esp + 0x14], edx
mov edx, ebx
test edi, edi
jle 0x1001403f
mov dword [esp + 0x10], edi
nop
test eax, eax
jle 0x10014038
mov edi, eax
jmp 0x10014020
movzx ebp, byte [edx]
imul esi, ecx
imul ecx, ecx, 0x5c6b7
add esi, ebp
inc edx
sub edi, 1
jne 0x10014020
mov edi, dword [esp + 0x24]
sub dword [esp + 0x10], 1
jne 0x10014010
add ebx, dword [esp + 0x20]
sub dword [esp + 0x14], 1
jne 0x10014005
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x10015f60
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
sub esp, 0x20
cmp dword [0x10084730], 0
push esi
jne 0x10015fb6
push 0x1005e5e7
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.Button
push 0
push eax
mov dword [0x10084730], eax
call esi
mov dword [0x1008472c], eax
test eax, eax
jne 0x10015fb6
push str.Start
push str.Button
push eax
call dword [0x10087134]
push eax
call esi
mov dword [0x1008472c], eax
push 0
lea eax, [esp + 8]
push eax
push 0
push 0x30
call dword [0x100871d8]
mov edx, dword [0x10084730]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [0x10087158]
cmp dword [esp + 0x28], 0
push 0
je 0x1001601d
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
lea ecx, [esp + 8]
add dword [esp + 0x14], eax
push ecx
push 0
push 0x2f
call dword [0x100871d8]
mov edx, dword [0x10084730]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
call esi
mov eax, dword [0x1008472c]
push 0
push eax
call esi
pop esi
add esp, 0x20
ret
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x24]
lea edx, [esp + 8]
add dword [esp + 0x14], ecx
push edx
push 0
push 0x2f
call dword [0x100871d8]
mov eax, dword [0x10084730]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call esi
mov ecx, dword [0x1008472c]
push 5
push ecx
call esi
pop esi
add esp, 0x20
ret
Function at 0x10025010
Capabilities:
Get file attributes

Disassembly:
cmp dword [0x10080690], 0
je 0x10025061
push 0x1005e604
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0x104
push 0x10087930
push str.dxwnd
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x10087930
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10025048
sub eax, edx
mov byte [eax + 0x10087927], cl
mov dword [0x10080690], 0
mov eax, 0x10087930
ret

Function at 0x10025250
Capabilities:
Get common file path
Print debug messages

Disassembly:
mov eax, 0x100c
call fcn.10049a70
mov eax, dword [0x10082594]
xor eax, esp
mov dword [esp + 0x1008], eax
mov eax, dword [0x10087444]
test eax, 0x40000001
je 0x10025421
push ebx
push esi
mov dword [esp + 8], eax
mov eax, dword [0x10087cdc]
push 0xffffffffffffffff
xor ebx, ebx
push eax
mov dword [0x10087444], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x10087b3c], ebx
jne 0x10025385
test dword [esp + 8], 0x80000000
mov esi, 0x1006d260
jne 0x100252b4
mov esi, 0x1006d25c
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x10087a38
push 0x104
mov dword [0x10087a34], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, 0x10087a38
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x100252d6
mov edx, dword [str.dxwnd.log]
mov ecx, dword [0x1006d254]
mov dword [eax], edx
mov dx, word [0x1006d258]
mov dword [eax + 4], ecx
mov cl, byte [0x1006d25a]
push esi
mov word [eax + 8], dx
push 0x10087a38
mov byte [eax + 0xa], cl
call fcn.10047a23
add esp, 8
mov dword [0x10087b3c], eax
cmp eax, ebx
jne 0x1002537c
call fcn.10025010
mov edx, 0x10087a38
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x10025324
mov eax, 0x10087a38
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10025334
mov edx, dword [str.dxwnd.log]
mov ecx, dword [0x1006d254]
mov dword [eax], edx
mov dx, word [0x1006d258]
mov dword [eax + 4], ecx
mov cl, byte [0x1006d25a]
push esi
mov word [eax + 8], dx
push 0x10087a38
mov byte [eax + 0xa], cl
call fcn.10047a23
add esp, 8
mov dword [0x10087b3c], eax
cmp eax, ebx
je 0x1002541f
push edi
mov edi, eax
call fcn.10025070
pop edi
mov eax, dword [esp + 0x1018]
lea edx, [esp + 0x101c]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x1000
push ecx
call fcn.10049a51
mov byte [esp + 0x101c], bl
mov ebx, dword [esp + 0x18]
add esp, 0x10
test bl, 1
je 0x100253f9
test ebx, 0x20000000
je 0x100253da
call dword [0x10087a34]
mov edx, dword [0x10087b3c]
push eax
push str._08.8d:
push edx
call fcn.100494ec
add esp, 0xc
mov eax, dword [0x10087b3c]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.100497ee
mov edx, dword [0x10087b3c]
push edx
call fcn.10049792
add esp, 0xc
test ebx, 0x40000000
je 0x1002540c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x10087cdc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [0x10087444], ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.10047cbc
add esp, 0x100c
ret
Function at 0x100295c0
Capabilities:
Get graphical window text

Disassembly:
push edi
call dword [0x10087074]
mov edi, eax
sub eax, dword [0x1008080c]
cmp eax, 0x3e8
jbe 0x10029674
call sym.dxwnd.dll_GetHookInfo
mov ecx, dword [0x10087c34]
mov dword [eax + 0x3c], ecx
test dword [0x10087430], 0x4000
je 0x10029662
cmp esi, dword [0x10087c30]
je 0x10029610
push 0x50
push 0x10087bd0
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [0x10087c30], esi
push 0x1006e790
push 0x10087bd0
call fcn.10049cb0
add esp, 8
test eax, eax
jne 0x1002963f
mov eax, 0x10087bd0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10029630
sub eax, edx
lea eax, [eax + 0x10087bd0]
mov edx, dword [0x10087c34]
push edx
push str.____d_FPS_
push 0xf
push eax
call fcn.10047c9e
add esp, 0x10
push 0x10087bd0
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [0x1008080c], edi
mov dword [0x10087c34], 0
pop edi
ret
inc dword [0x10087c34]
test dword [0x10087444], 0x100
je 0x1002969b
mov ecx, dword [0x10087c34]
push ecx
push eax
push str.FPS:_Delta_x_FPSCount_d_n
call fcn.10025250
add esp, 0xc
pop edi
ret

Function at 0x1002b100
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x10082594]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x1005e604
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1002b12c
test al, 0x10
je 0x1002b1d7
push 0x104
lea eax, [esp + 4]
push eax
push str.dxwnd
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002b150
mov ecx, dword [str.dxwnd.ini]
sub eax, edx
mov edx, dword [0x1005e5f4]
lea eax, [esp + eax - 9]
mov dword [eax], ecx
mov cx, word [0x1005e5f8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [eax + 4], edx
mov word [eax + 8], cx
mov dword [0x10087b6c], 0
mov esi, 1
mov ecx, dword [esi*4 + 0x100807bc]
xor eax, eax
cmp esi, 9
setne al
lea edx, [esp + 8]
push edx
dec eax
and eax, 0x73
push eax
push ecx
push str.keymapping
call edi
mov edx, dword [esi*4 + 0x100807bc]
push eax
push edx
push esi
push str.keymapping__d___s__x_n
mov dword [esi*4 + 0x10087b6c], eax
call fcn.10025250
inc esi
add esp, 0x10
cmp esi, 0xc
jl 0x1002b190
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10047cbc
add esp, 0x108
ret
Function at 0x1002b810
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x10082594]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
push str.dxwnd
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002b846
sub eax, edx
mov byte [esp + eax - 9], cl
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1002b857
mov ecx, dword [str.dxwnd.ini]
mov edx, dword [0x1005e5f4]
mov dword [eax], ecx
mov cx, word [0x1005e5f8]
mov dword [eax + 4], edx
lea edx, [esp]
push edx
push 0
push str.multiprocesshook
push str.window
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10047cbc
add esp, 0x108
ret
Function at 0x100446b0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10044ab0
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x1004477b
mov dword [ebp - 4], 0
jmp 0x1004470c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x1004477b
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.1004ab83
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10044779
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.1004ab83
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10044790
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1004ab83
jmp 0x10044703
pop esi
add esp, 8
cmp ebp, esp
call fcn.1004ab83
mov esp, ebp
pop ebp
ret
Function at 0x10044ab0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
lea edi, [ebp - 0x2c]
mov ecx, 0xb
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x10044c22
mov dword [ebp - 0x24], 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10044c0f
cmp dword [ebp - 0x24], 0x10
jb 0x10044bf3
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.1004ab83
cmp dword [ebp - 0x18], eax
jne 0x10044bf3
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.1004ab83
cmp dword [ebp - 0x1c], eax
je 0x10044bf3
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10044b7a
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
mov esi, esp
push edx
push 0
mov eax, dword [0x10088e90]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.1004ab83
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10044b78
jmp 0x10044c0f
jmp 0x10044bd3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x10044bd3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
mov esi, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x10088e90]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp esi, esp
call fcn.1004ab83
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10044bbd
jmp 0x10044c0f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x24], 0x1c
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10044af9
mov esi, esp
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1004ab83
push edx
mov ecx, ebp
push eax
lea edx, [0x10044c44]
call fcn.1004aba6
pop eax
pop edx
pop edi
pop esi
add esp, 0x2c
cmp ebp, esp
call fcn.1004ab83
mov esp, ebp
pop ebp
ret
Function at 0x10044c60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x10044d0b
mov dword [ebp - 4], 0
jmp 0x10044c93
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jae 0x10044cee
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov esi, esp
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.1004ab83
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10044cec
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.1004ab83
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1004ab83
jmp 0x10044c8a
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x10088e90]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.1004ab83
pop esi
add esp, 8
cmp ebp, esp
call fcn.1004ab83
mov esp, ebp
pop ebp
ret