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

Disassembly:
push 0xffffffffffffffff
push 0x101471e3
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.1013960e
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.1013ecc0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.10140316
test eax, eax
je 0x100fe3cc
mov ecx, dword [esp + 0x3c]
call fcn.1013eced
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 0x100fe390
push edi
mov ecx, esi
call fcn.1013c33e
mov ecx, esi
call fcn.100fe530
cmp dword [esp + 0x38], 1
jne 0x100fe3c5
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.1013c479
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 0x10100df0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10100e23
push esi
call fcn.1010f000
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x10100e1c
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 0x10100ea9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10100e92
mov eax, dword [esi + 8]
test eax, eax
je 0x10100e47
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 0x10100e8e
cmp eax, 2
je 0x10100e92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10100e3a
cmp eax, 3
je 0x10100e6d
cmp eax, 1
jne 0x10100e3a
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 0x10100e3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x10100e3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10100ed0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10100eb8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10100ed0
add esp, 4
pop esi
ret

Function at 0x10101740
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x10101761
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x10101761
mov eax, dword [eax + 0x44]
test eax, eax
je 0x10101761
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10101bb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x10101bbb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x10101cbe
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x10191420]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10191420]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10191420]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10191420]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10191420]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x10191420]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x10191420]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10191420]
xor eax, edx
inc ecx
dec edi
jne 0x10101bd6
pop edi
test esi, esi
je 0x10101ce0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10191420]
xor eax, edx
inc ecx
dec esi
jne 0x10101cc2
pop esi
pop ebx
not eax
ret
Function at 0x1011c850
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x1011c8f3
test eax, eax
jbe 0x1011c8f3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x1011c8f3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x1011c89e
xor esi, esi
jmp 0x1011c8a4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x1011c8cf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.100b43b0
add esi, eax
push esi
mov ebx, esi
call fcn.100b43b0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x1011c8b0
pop ebp
test edi, edi
pop edi
jne 0x1011c8f3
test ebx, ebx
je 0x1011c8f3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.10128bd0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x1011ca10
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1011cb2d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1011cb2d
mov eax, dword [esi + 0x3c]
push eax
call fcn.10139a60
mov esi, eax
test esi, esi
je 0x1011cb2d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x1011cb2d
mov ecx, esi
call fcn.1011c9a0
cmp edi, eax
jge 0x1011cb2d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x1011cab3
mov dword [esp + 0x34], 1
jmp 0x1011cb0e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x1011cb2d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.1011bf30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x10121a70
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 0x10121aba
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x10121ae9
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 0x10121b2b
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 0x1013a403
Capabilities:
Get graphical window text

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

Function at 0x1013baf8
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 0x1013bb3a
call fcn.10141cd3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1013bb3a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1013bb31
xor eax, eax
jmp 0x1013bb42
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1013bb48
pop edi
pop esi
pop ebx
ret 4
Function at 0x401950
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4019b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40539c]
test esi, esi
jle 0x401ab0
mov eax, dword [0x4053a0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4019e0
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a5f
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4019d0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401ad7
mov eax, dword [0x4053a0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4053a0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ab7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a58
sub eax, 4
and eax, 0xfffffffb
jne 0x401a66
add dword [0x40539c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4053a0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x4019ea
mov eax, dword [0x4053a0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x401f90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4053b0]
sub esp, 4
test ebx, ebx
je 0x401fe5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401fde
test esi, esi
je 0x401fde
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fc0
mov dword [esp], 0x4053b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405a3d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.shell32.dll_ShellExecuteExW]
ret 4

Function at 0x405b23
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x405b32
pop dword [ebp - 0x44]
mov eax, 0xa7fa8bc8
sub eax, 0xa7ba3096
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xfb47d6cd
add dword [ebp - 0x54], 0x530a6e7e
mov dword [ebp - 0x50], 0x9b1e5adf
sub dword [ebp - 0x50], 0x68eb0e9a
mov dword [ebp - 0x4c], 0x7f89e963
add dword [ebp - 0x4c], 0xccc25acb
mov dword [ebp - 0x48], 0xfbbe7e63
sub dword [ebp - 0x48], 0xfbbe7e63
lea eax, [ebp - 0x54]
push eax
mov eax, 0x98c2fbde
sub eax, 0x98827b66
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x8ffc5c4e
sub dword [ebp - 0x54], 0x1b89f2f8
mov dword [ebp - 0x50], 0x8322eb98
sub dword [ebp - 0x50], 0x41b68a23
mov dword [ebp - 0x4c], 0xf6247d68
sub dword [ebp - 0x4c], 0x92b510fc
mov dword [ebp - 0x48], 0x9a0d874e
sub dword [ebp - 0x48], 0x9a0d874e
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x7805a909
sub eax, 0x77c5288d
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3a730
push 0
call eax
mov ecx, 0x7fd08265
add ecx, 0x802fd35d
mov edx, eax
mov ebx, 0x722786a7
add ebx, 0x8e1e0b59
add ebx, dword [ebp - 0x44]
mov esi, 0xaef984c
sub esi, 0xaa1d4847
add dword [ebp - 0x38], 0xc30b6e29
mov edi, dword [ebx]
sub dword [ebp - 0xc], edi
xor edi, esi
xor dword [ebp - 0xc], edi
mov dword [edx], edi
add dword [ebp - 0x34], ebx
add edx, 0x1eb64da2
sub edx, 0x1eb64d9e
add ebx, 0x7a170f4
sub ebx, 0x7a170f0
loop 0x405c54
add eax, 0x2e5b0ca
add eax, 0xfd1b9911
xor ebx, ebx
add ebx, eax
add eax, 0x6e4977d2
sub eax, 0x6e4977cd
mov ecx, 0x13839ab4
add ecx, 0xecbc654c
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x405dee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa70
push esi
call fcn.00406411
push esi
call fcn.00405d91
mov edi, eax
test edi, edi
jne 0x405e0f
xor eax, eax
jmp 0x405e67
push edi
call fcn.004066c0
test byte [0x434f1c], 0x80
je 0x405e2c
mov ax, word [edi]
test ax, ax
je 0x405e0b
cmp ax, 0x5c
je 0x405e0b
sub edi, esi
sar edi, 1
jmp 0x405e46
call fcn.0040676f
test eax, eax
je 0x405e40
test byte [eax], 0x10
je 0x405e0b
push esi
call fcn.00405d32
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e32
call fcn.00405ce6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405ee2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f01
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4
Function at 0x401390
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x425a2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [0x431608]
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea esi, [ebx + 4]
mov dword [esp + 0x10], ebx
mov dword [esi], eax
mov ecx, dword [0x431608]
lea edi, [ebx + 8]
xor ebp, ebp
mov dword [esp + 0x120], ebp
mov dword [edi], ecx
mov eax, dword [esp + 0x12c]
lea edx, [esp + 0x14]
push ebp
push edx
push 0x104
push eax
mov byte [esp + 0x130], 1
mov dword [ebx], 0x4275bc
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov ecx, dword [esp + 0x128]
push ecx
mov ecx, esi
call fcn.0041a576
lea edx, [esp + 0x14]
mov ecx, edi
push edx
call fcn.0041a576
mov dword [ebx + 0x10], ebp
mov ecx, dword [0x435550]
cmp ecx, ebp
jne 0x401508
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebp
je 0x4014fe
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenSCManagerA
push esi
call edi
push str.CloseServiceHandle
push esi
mov dword [0x435550], eax
call edi
push str.CreateServiceA
push esi
mov dword [0x435554], eax
call edi
push str.OpenServiceA
push esi
mov dword [0x435558], eax
call edi
push str.DeleteService
push esi
mov dword [0x43555c], eax
call edi
push str.StartServiceA
push esi
mov dword [0x435560], eax
call edi
push str.ControlService
push esi
mov dword [0x435564], eax
call edi
mov ecx, dword [0x435550]
mov dword [0x435568], eax
cmp ecx, ebp
je 0x4014d2
cmp dword [0x435554], ebp
je 0x4014d2
cmp dword [0x435558], ebp
je 0x4014d2
cmp dword [0x43555c], ebp
je 0x4014d2
cmp dword [0x435560], ebp
je 0x4014d2
cmp dword [0x435564], ebp
je 0x4014d2
cmp eax, ebp
jne 0x401504
mov dword [0x435550], ebp
mov dword [0x435554], ebp
mov dword [0x435558], ebp
mov dword [0x43555c], ebp
mov dword [0x435560], ebp
mov dword [0x435564], ebp
mov dword [0x435568], ebp
jmp 0x401514
mov ecx, dword [0x435550]
cmp ecx, ebp
je 0x401514
push 0xf003f
push ebp
push ebp
call ecx
mov dword [ebx + 0x10], eax
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 8
Function at 0x402680
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x425b71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x468
push esi
push edi
push str.IP_InitClt..._n
call fcn.00401a20
mov eax, dword [0x431608]
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x478], 0
mov dword [esp + 8], eax
push 0x8012
lea ecx, [esp + 0x10]
mov byte [esp + 0x47c], 1
call fcn.0041c07b
push 0x8013
lea ecx, [esp + 0xc]
call fcn.0041c07b
mov eax, dword [esp + 0xc]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
lea ecx, [esp + 0x18]
call fcn.00403920
mov ecx, dword [esp + 8]
push 0
push str.Channel_Number
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x484], 2
call fcn.004039b0
cmp eax, 1
jae 0x40271f
xor esi, esi
jmp 0x40272c
cmp eax, 0x18
lea esi, [eax - 1]
jbe 0x40272c
mov esi, 0x17
lea ecx, [esp + 0x10]
mov byte [esp + 0x478], 1
call fcn.004039a0
lea ecx, [esp + 8]
mov byte [esp + 0x478], 0
call fcn.0041a3ed
lea ecx, [esp + 0xc]
mov dword [esp + 0x478], 0xffffffff
call fcn.0041a3ed
mov edx, dword [0x435570]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], 0x44
push esi
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x78]
push str._sNCClt.dll__Student__Channel__d
push eax
call fcn.0040c2e6
add esp, 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x70]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
je 0x4027e3
push str.IP_InitClt_OK_n
call fcn.00401a20
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [0x435650], ecx
mov dword [0x43565c], edx
mov dword [0x435654], eax
jmp 0x4027ed
push str.IP_InitClt_Error_n
call fcn.00401a20
mov ecx, dword [esp + 0x46c]
add esp, 4
mov dword fs:[0], ecx
add esp, 0x474
ret
Function at 0x403330
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425be1
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
mov esi, dword [esp + 0x128]
xor ebx, ebx
cmp esi, 1
jne 0x40337e
mov eax, dword [esp + 0x124]
cmp eax, ebx
je 0x403378
lea edx, [esp + 0x10]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40336c
jmp 0x403394
mov byte [esp + 0x10], bl
jmp 0x403394
mov ecx, dword [esp + 0x124]
lea eax, [esp + 0x10]
push esi
push eax
push ecx
call fcn.00403120
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
push edx
call fcn.0041a45b
mov dword [esp + 0x11c], ebx
call fcn.00403810
test eax, eax
je 0x40340b
cmp esi, 1
jne 0x4033d5
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push str.Local_
push ecx
call fcn.0041a6f6
mov byte [esp + 0x11c], 1
jmp 0x4033f1
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push str.Global_
push eax
call fcn.0041a6f6
mov byte [esp + 0x11c], 2
lea ecx, [esp + 8]
push eax
call fcn.0041a526
lea ecx, [esp + 0xc]
mov byte [esp + 0x11c], bl
call fcn.0041a3ed
mov ecx, dword [esp + 8]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403459
cmp eax, 5
je 0x403459
lea ecx, [esp + 8]
mov dword [esp + 0x11c], 0xffffffff
call fcn.0041a3ed
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
add esp, 0x118
ret
cmp esi, ebx
je 0x403464
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0x11c], 0xffffffff
call fcn.0041a3ed
mov ecx, dword [esp + 0x114]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x403580
Capabilities:
Resume thread

Disassembly:
push esi
push 0
push 0
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0xc]
push 0
push 4
push 0
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
push esi
push 0x403610
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
call fcn.0041ab67
mov dword [esi + 0x10], eax
mov dword [eax + 0x24], 0
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
ret 8

Function at 0x4035d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x403607
mov eax, dword [eax + 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4035f9
mov ecx, dword [esi + 0x10]
push 0
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x403607
mov eax, dword [ecx]
push 1
call dword [eax + 4]
pop esi
ret