joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bb60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d448
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.00466100
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043b500
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.0046602e
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.004628ef
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.004628ef
push 1
push 0
push 0
mov ecx, esi
call fcn.00462897
push 1
push 0
push 1
mov ecx, esi
call fcn.00462897
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00466172
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43bce0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d468
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.00466100
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043b500
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.0046602e
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 0x43bda4
cmp dword [esp + 0x40], 1
jne 0x43bda2
cmp ecx, eax
jge 0x43bda4
mov eax, ecx
cmp eax, 0xc8
jge 0x43bdb0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043bb60
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.00466172
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43c520
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46d4d3
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.00460d10
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.004663a8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004678c4
test eax, eax
je 0x43c63c
mov ecx, dword [esp + 0x3c]
call fcn.004663d5
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 0x43c600
push edi
mov ecx, esi
call fcn.00463a3d
mov ecx, esi
call fcn.0043c7a0
cmp dword [esp + 0x38], 1
jne 0x43c635
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.00463b78
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 0x43f060
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f093
push esi
call fcn.00442150
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f08c
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 0x43f119
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f102
mov eax, dword [esi + 8]
test eax, eax
je 0x43f0b7
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 0x43f0fe
cmp eax, 2
je 0x43f102
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f0aa
cmp eax, 3
je 0x43f0dd
cmp eax, 1
jne 0x43f0aa
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 0x43f0aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f0aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f140
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f128
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f140
add esp, 4
pop esi
ret
Function at 0x44ba10
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44ba5a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44ba89
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44bacb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x461b05
Capabilities:
Get graphical window text

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

Function at 0x4631f7
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 0x463239
call fcn.00468cb4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463239
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463230
xor eax, eax
jmp 0x463241
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463247
pop edi
pop esi
pop ebx
ret 4

Function at 0x4691e4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x469212
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469230
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046914a
jmp 0x469230
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469230
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046914a
test edi, edi
mov eax, edi
jne 0x46921a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402370
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000020
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4023e3
mov edx, dword [esp + 4]
lea ecx, [esp]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4023e3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4023e3
mov ecx, dword [esp + 0x18]
mov edx, dword [esp]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret 0xc

Function at 0x402690
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41bd50
push 0x40aaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x42ac1c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0xa0], esi
lea eax, [esi + 0x1868]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov ecx, edi
imul ecx, ecx, 0x134
lea ebx, [ecx + esi]
cmp dword [ebx + 0x6c], 0
je 0x40275a
cmp dword [esi + 0x1860], edi
jne 0x40270b
mov dword [esi + 0x1860], 0xffffffff
mov edx, edi
imul edx, edx, 0x3d0
cmp byte [edx + esi + 0x1884], 0
jne 0x40273e
mov eax, dword [ebx + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebx + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebx + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x6c], 0
lea eax, [ebx + 0x58]
push eax
call fcn.004099d0
add ebx, 0x5c
push ebx
call fcn.004099d0
add esp, 8
mov dword [ebp - 4], 0xfffffffe
jmp 0x4027d0
push 0x134
push 0
mov ecx, edi
imul ecx, ecx, 0x134
lea edx, [ecx + esi + 0x50]
push edx
call fcn.0040a210
push 0x3d0
push 0
imul edi, edi, 0x3d0
lea eax, [edi + esi + 0x1884]
push eax
call fcn.0040a210
add esp, 0x18
add esi, 0x1868
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040a1eb
mov esp, ebp
pop ebp
ret 4
Function at 0x402840
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xfffffffffffffffe
push 0x41bd70
push 0x40aaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x42ac1c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x80], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov byte [ebp - 0x19], 0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 0x8c]
cmp edi, ebx
jl 0x4029c9
mov eax, edi
imul eax, eax, 0x3d0
add eax, esi
mov dword [ebp - 0x20], eax
cmp byte [eax + 0x1884], bl
jne 0x4028ce
mov ecx, dword [ebp + 0x90]
push ecx
push edi
lea ecx, [esi + 0x50]
call fcn.00403c90
mov dword [ebp - 4], 0xfffffffe
jmp 0x4029d3
mov edx, edi
imul edx, edx, 0x134
cmp dword [edx + esi + 0x6c], ebx
je 0x4029c9
mov ecx, dword [ebp + 0x90]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], ebx
cmp ebx, dword [eax + 0x1888]
jae 0x402956
imul edi, edi, 0xf4
add edi, ebx
mov edx, dword [esi + edi*4 + 0x1910]
mov dword [ebp - 0x30], edx
push 0
push 0xc
lea eax, [ebp - 0x30]
push eax
push 2
mov ecx, dword [esi + edi*4 + 0x18c0]
push ecx
lea ecx, [esi + 0x2c]
call fcn.00407350
test eax, eax
jl 0x402948
push 0xffffffffffffffff
mov edx, dword [esi + edi*4 + 0x18e8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402948
push 0
mov eax, dword [esi + edi*4 + 0x18e8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
add ebx, 1
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 0x8c]
jmp 0x4028e9
push edi
mov ecx, esi
call fcn.00402690
mov byte [ebp - 0x19], 1
push edi
push str._ExtMod__Extended_module__ld_stopped
call fcn.00409f90
add esp, 8
jmp 0x4029c9
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.0040a1eb
add ebp, 0x84
mov esp, ebp
pop ebp
ret 8
Function at 0x402cb5
Capabilities:
Create thread

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
je 0x402cdb
mov eax, dword [esi + 0x1880]
test eax, eax
je 0x402cd1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret 4
push esi
call fcn.00402ca0
pop esi
ret 4
cmp dword [esi + 0x1880], 0
jne 0x402d01
lea eax, [esp + 8]
push eax
push 0
push esi
push fcn.00402ca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1880], eax
pop esi
ret 4

Function at 0x403570
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x65d4]
push eax
push 0
push esi
push 0x4032b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x65d0], eax
test eax, eax
setne al
pop esi
ret
Function at 0x403ab0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41bdc0
push 0x40aaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x42ac1c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov dword [ebp - 0xa0], ebx
lea eax, [ebx + 0x1818]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov ecx, edi
imul ecx, ecx, 0x134
lea esi, [ecx + ebx]
cmp dword [esi + 0x1c], 0
je 0x403b64
cmp dword [ebx + 0x1810], edi
jne 0x403b2b
mov dword [ebx + 0x1810], 0xffffffff
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi + 8]
push edx
call fcn.004099d0
lea eax, [esi + 0xc]
push eax
call fcn.004099d0
add esp, 8
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x403bda
cmp edi, 0x14
jge 0x403bf7
push 0x134
push 0
imul edi, edi, 0x134
add edi, ebx
push edi
call fcn.0040a210
add esp, 0xc
add ebx, 0x1818
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040a1eb
mov esp, ebp
pop ebp
ret 4
Function at 0x403c90
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41bde0
push 0x40aaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x42ac1c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov dword [ebp - 0xa0], edi
xor al, al
mov esi, dword [ebp + 8]
test esi, esi
jl 0x403e73
lea eax, [edi + 0x1818]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, esi
imul ecx, ecx, 0x134
lea ebx, [ecx + edi]
mov edx, dword [ebx + 8]
push edx
push esi
push str.CModule::StopModule_Stop:__ld__s
call fcn.00409f90
add esp, 0xc
cmp dword [ebx + 0x1c], 0
je 0x403d1e
mov ebx, dword [ebx + 0x24]
test ebx, ebx
je 0x403d1e
call ebx
mov dword [ebp - 4], 0xfffffffe
jmp 0x403d95
lea edx, [edi + 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
imul eax, eax, 0x134
lea ebx, [eax + edi]
cmp dword [ebx + 0x1c], 0
je 0x403e71
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403e69
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
push eax
push esi
push str.CModule::StopModule_Terminate:__ld__s
call fcn.00409f90
add esp, 0xc
push 0
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 4], 0xfffffffe
jmp 0x403e69
push esi
mov ecx, edi
call fcn.00403ab0
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0040a1eb
mov esp, ebp
pop ebp
ret 8
Function at 0x4044d0
Capabilities:
Create thread

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
je 0x4044fb
mov eax, dword [esi + 0x1830]
test eax, eax
je 0x4044f1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
ret 4
push esi
call fcn.00404480
pop esi
ret 4
cmp dword [esi + 0x1830], 0
jne 0x404521
lea eax, [esp + 8]
push eax
push 0
push esi
push fcn.00404480
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1830], eax
pop esi
ret 4

Function at 0x404830
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push ebx
lea eax, [esp + 8]
push eax
push 0xf01ff
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404987
mov edx, dword [esp + 8]
push esi
lea ecx, [esp + 8]
push ecx
push 1
push 0
push 0
push 0xf01ff
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40497f
mov ecx, dword [esp + 8]
push 4
lea eax, [esp + 0x70]
push eax
push 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x404964
push 0x44
lea edx, [esp + 0x24]
push 0
push edx
call fcn.0040a210
mov edx, dword [esp + 0x7c]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push 0x20
push 1
push 0
push 0
push eax
push 0
push ecx
mov dword [esp + 0x4c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x404956
mov eax, dword [esp + 0x74]
test eax, eax
je 0x404903
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov eax, dword [esp + 0x78]
test eax, eax
je 0x404930
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
mov bl, 1
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
mov al, bl
pop ebx
add esp, 0x5c
ret
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
mov bl, 1
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
mov al, bl
pop ebx
add esp, 0x5c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_creating_new_process_as_specified_user___d_
jmp 0x404970
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_updating_token_information___d_
call fcn.00409f90
mov ecx, dword [esp + 0x10]
add esp, 8
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
mov al, bl
pop ebx
add esp, 0x5c
ret
Function at 0x404c30
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404c7e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404c77
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x405750
Capabilities:
Create thread

Disassembly:
mov al, byte [esp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov byte [esi + 8], al
mov eax, dword [esp + 8]
test eax, eax
mov dword [esi], vtable.HiddenWindow.0
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], ecx
jne 0x40577d
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x18]
test al, 2
mov dword [esi + 0x18], edx
mov dword [esi + 0x14], eax
jne 0x40579f
mov ecx, esi
call fcn.00405620
mov eax, esi
pop esi
ret 0x14
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x405730
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x20]
push 0xffffffffffffffff
push ecx
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
ret 0x14