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

Disassembly:
push 0x58
push 0x1003680
call fcn.01002c54
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1004394
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x100285e
cmp eax, esi
jne 0x1002851
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1002861
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002838
xor esi, esi
inc esi
mov eax, dword [0x1004390]
cmp eax, esi
jne 0x1002874
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10028a3
mov eax, dword [0x1004390]
test eax, eax
jne 0x100289d
mov dword [0x1004390], esi
push 0x100114c
push 0x1001140
call fcn.0100279d
pop ecx
pop ecx
test eax, eax
je 0x10028a3
jmp 0x10029cb
mov dword [0x1004048], esi
mov eax, dword [0x1004390]
cmp eax, esi
jne 0x10028c7
push 0x100113c
push 0x1001134
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004390], 2
test ebx, ebx
jne 0x10028d3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004398], 0
je 0x10028f7
push 0x1004398
call fcn.01002bc9
pop ecx
test eax, eax
je 0x10028f7
push 0
push 2
push 0
call dword [0x1004398]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1002953
test al, al
je 0x1002911
cmp dword [ebp - 0x1c], 0
jne 0x1002953
mov al, byte [esi]
test al, al
je 0x1002921
cmp al, 0x20
ja 0x1002921
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1002911
test byte [ebp - 0x3c], 1
je 0x100292d
movzx eax, word [ebp - 0x38]
jmp 0x1002930
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1004044], eax
cmp dword [0x1004038], 0
jne 0x10029a7
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1002962
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1002975
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10028fe
cmp dword [0x1004048], 0
jne 0x10029b6
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004044]
jmp 0x10029d7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002c99
ret
call fcn.01002da1
jmp 0x10027fe
Function at 0x401750
Capabilities:
Execute command

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.OllyDbg
call edi
mov esi, dword [sym.imp.MSVCR100.dll_system]
test eax, eax
je 0x401783
push str._echo_Off
call esi
push str.shutdown__r__f__t_00
call esi
add esp, 8
mov eax, 0
call eax
push 0
push 0x46d7f8
call edi
test eax, eax
je 0x4017a8
push str._echo_Off
call esi
push str.shutdown__r__f__t_00
call esi
add esp, 8
mov eax, 0
call eax
call fcn.004017c0
call fcn.00401820
call fcn.004018b0
pop edi
pop esi
jmp fcn.00401930

Function at 0x4017c0
Capabilities:
Execute command

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.ida64
call edi
mov esi, dword [sym.imp.MSVCR100.dll_system]
test eax, eax
je 0x4017f3
push str._echo_Off
call esi
push str.shutdown__r__f__t_00
call esi
add esp, 8
mov eax, 0
call eax
push 0
push str.idaq
call edi
test eax, eax
je 0x401818
push str._echo_Off
call esi
push str.shutdown__r__f__t_00
call esi
add esp, 8
mov eax, 0
call eax
pop edi
pop esi
ret

Function at 0x401a00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f3af
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x476018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
xor ebx, ebx
mov word [edi + 0xe], ax
mov dword [ebp - 4], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], 0x400
mov byte [ebp - 4], 1
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
cmp dword [edi + 0x10], ebx
jne 0x401a91
push 0xc
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x401a89
mov esi, eax
call fcn.00401af0
jmp 0x401a8b
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x476018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x406e38
cmp byte [edi + 0x49], 0
je 0x406e38
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x406e2c
lea esi, [ebp - 0x2c]
call fcn.00407430
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp edx, 0x10
jae 0x406da3
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x406dcb
dec eax
je 0x406dcf
sub eax, 2
lea esi, [ebp - 0x2c]
jne 0x406e27
jmp 0x406e33
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x406ddf
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x406e09
cmp edx, 0x10
jae 0x406dee
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x406e24
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x406e30
test esi, esi
jne 0x406d97
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00401120
jmp 0x406d91
lea esi, [ebp - 0x2c]
call fcn.00401080
xor al, al
jmp 0x406e3a
lea esi, [ebp - 0x2c]
call fcn.00401080
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret
Function at 0x407520
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x407530
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x40753c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x407546
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x407550
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x40755a
or eax, 8
shr ecx, 1
test cl, 1
je 0x407564
or eax, 4
shr ecx, 1
test cl, 1
je 0x40756e
or eax, 2
test cl, 2
je 0x407576
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x407630
test al, 1
je 0x40763d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x407630
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x407524
pop edi
pop ebx
ret

Function at 0x407660
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x46d790
lea eax, [ebp - 4]
push str..Datainfo.xtm
push eax
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x407696
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x4076c4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 4]
push edx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x407723
push ebx
mov edi, edi
mov ecx, eax
mov edx, edi
test eax, eax
je 0x407709
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x4076e8
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x4076e0
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
mov edx, dword [esi]
add esp, 8
not edx
mov dword [esi], edx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x407c80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0xffff
xor esi, esi
push esi
push edi
call sub.MSVCR100.dll_memset
mov ebx, dword [sym.imp.WS2_32.dll_recv]
add esp, 0xc
lea ecx, [ecx]
mov ecx, dword [ebp + 8]
push 0
push 1
lea eax, [ebp - 1]
push eax
push ecx
call ebx
test eax, eax
jle 0x407cc5
mov al, byte [ebp - 1]
mov byte [esi + edi], al
cmp al, 0xa
je 0x407cc5
inc esi
cmp esi, 0xfffe
jl 0x407ca0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a120
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
imul ecx, ecx, 0x6c
mov dword [ecx + 0x47acd0], eax
movzx eax, byte [ebp + 8]
dec eax
cmp eax, 0xa5
ja case.0x40a14a.2
movzx edx, byte [eax + 0x40a1f4]
jmp dword [edx*4 + 0x40a1d0]
mov ecx, ebx
mov eax, esi
pop ebx
pop ebp
jmp fcn.0040a6f0
mov ecx, ebx
mov edx, esi
pop ebx
pop ebp
jmp fcn.0040a770
cmp dword [0x4febe4], esi
jne 0x40a175
push ebx
call fcn.00414750
pop ebx
pop ebp
ret
push esi
call fcn.00411ff0
pop ebx
pop ebp
ret
mov ecx, ebx
mov edx, esi
pop ebx
pop ebp
jmp fcn.0040a2a0
cmp esi, dword [0x4febe4]
jne 0x40a175
push ebx
call fcn.00414d00
pop ebx
pop ebp
ret
push esi
mov ecx, ebx
call fcn.0040d8c0
pop ebx
pop ebp
ret
push ebx
call fcn.0040dee0
pop ebx
pop ebp
ret
push str.Wrong_Packet
push 1
call fcn.00417090
add esp, 8
mov eax, esi
mov ecx, 0x505d20
pop ebx
pop ebp
jmp fcn.004168d0
Function at 0x40cfa0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x476018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4799a0]
push ebx
push esi
push edi
test eax, eax
js 0x40d0a9
cmp eax, 3
jge 0x40d0a9
mov esi, eax
imul esi, esi, 0x214
push ecx
add esi, 0x479364
inc eax
lea edi, [esi + 4]
push 0x100
mov dword [0x4799a0], eax
push edi
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x40d0a9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push edi
lea ebx, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push ebx
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x40d084
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40d0a9
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004183ef
mov esp, ebp
pop ebp
ret
Function at 0x40d0c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x476018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x40d2b7
cmp eax, dword [ecx + 0x640]
jge 0x40d2b7
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x40d2b7
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x40d146
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x40d146
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x40d203
mov ecx, dword [esi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x812]
movzx ecx, word [ebp - 0x816]
movzx edx, word [ebp - 0x818]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x40d1cd
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40d203
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call sub.MSVCR100.dll_memset
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
lea eax, [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x810]
push ecx
push edx
push eax
lea ecx, [ebp - 0x408]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x408]
add esp, 0x40
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d290
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x81c]
push edx
push eax
lea eax, [ebp - 0x408]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004183ef
mov esp, ebp
pop ebp
ret
Function at 0x40d310
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x476018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push ebx
push edi
mov ebx, ecx
test eax, eax
je 0x40d33f
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 4], 0
push ebx
push 0x46eff0
lea edx, [ebp - 0x108]
call fcn.0040d740
add esp, 8
push 0
push 0x20
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d381
push ebx
push str._s_file_not_found
call fcn.00417010
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 8], eax
call fcn.004183e4
add esp, 4
mov dword [esi + 4], eax
cmp eax, ebx
je 0x40d3c3
mov edx, dword [esi + 8]
push ebx
lea ecx, [ebp - 0x10c]
push ecx
push edx
push eax
push edi
mov dword [ebp - 0x10c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x40d3d7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
je 0x40d407
xor eax, eax
cmp dword [esi + 8], ebx
jbe 0x40d407
lea esp, [esp]
mov ecx, dword [esi + 4]
add byte [ecx + eax], 0x95
mov edx, dword [esi + 4]
xor byte [eax + edx], 0xca
lea ecx, [eax + edx]
inc eax
cmp eax, dword [esi + 8]
jb 0x40d3f0
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x7c], eax
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004183ef
mov esp, ebp
pop ebp
ret 4
Function at 0x40e460
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.0045ed00
mov eax, dword [0x476018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [0x479b6c], ebx
je 0x40e60b
push ebx
lea eax, [ebp - 0x110]
push eax
push 0x104
push str.HackDetect.dll
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x40e4b7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1220]
push ecx
push 0x1000
lea edx, [ebp - 0x1218]
push edx
mov dword [ebp - 0x1220], ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40e4a4
mov eax, dword [ebp - 0x1220]
shr eax, 2
mov dword [ebp - 0x121c], ebx
mov dword [ebp - 0x1224], eax
cmp eax, ebx
jle 0x40e60b
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ecx]
mov esi, dword [ebp + ebx*4 - 0x1218]
test esi, esi
je 0x40e5f2
call fcn.0040e980
test al, al
je 0x40e5f2
mov eax, dword [ebp + ebx*4 - 0x1218]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40e5f2
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
test eax, eax
je 0x40e5ef
mov ecx, str.GameServer.exe
lea eax, [ebp - 0x218]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40e583
test dl, dl
je 0x40e57f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e583
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e563
xor eax, eax
jmp 0x40e588
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40e5ef
lea edx, [ebp - 0x110]
push edx
mov ebx, esi
call fcn.0040e620
test al, al
jne 0x40e5ef
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e5a7
sub eax, edx
lea ecx, [ebp - 0x110]
push ecx
mov ebx, eax
call fcn.0040e700
test al, al
mov eax, dword [ebp - 0x121c]
mov ecx, dword [ebp + eax*4 - 0x1218]
lea edx, [ebp - 0x218]
push edx
push ecx
jne 0x40e5e0
push str._ProcessManager___d___s__Could_not_initialize_process_
push 1
jmp 0x40e5e7
push str._ProcessManager___d___s__Initialization_successful_
push 3
call fcn.00417090
add esp, 0x10
push esi
call edi
mov ebx, dword [ebp - 0x121c]
inc ebx
mov dword [ebp - 0x121c], ebx
cmp ebx, dword [ebp - 0x1224]
jl 0x40e500
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004183ef
mov esp, ebp
pop ebp
ret
Function at 0x40e620
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.0045ed00
mov eax, dword [0x476018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10c]
push eax
push 0x1000
lea ecx, [ebp - 0x110c]
push ecx
xor esi, esi
push ebx
mov dword [ebp - 0x10c], esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x40e671
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [ebp - 0x10c]
shr edi, 2
test edi, edi
jle 0x40e6d6
nop
mov eax, dword [ebp + esi*4 - 0x110c]
push 0x104
lea edx, [ebp - 0x108]
push edx
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x40e6d1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40e6c8
test dl, dl
je 0x40e6c4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40e6c8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40e6a8
xor eax, eax
jmp 0x40e6cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e6ea
inc esi
cmp esi, edi
jl 0x40e680
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004183ef
mov esp, ebp
pop ebp
ret 4
Function at 0x40e700
Capabilities:
Check mutex on windows
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x476018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push 4
push 0x1000
push ebx
push 0
push esi
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x40e74f
mov ecx, dword [ebp - 0x48]
push 0
push ebx
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40e762
push 0x8000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret 4
push 0x46f6e0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x40e741
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
lea edx, [ebp - 0x44]
push str.XTMPID_d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40e741
mov ecx, dword [ebp - 0x4c]
push 0
push 0
push edi
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x40e7f2
push 0x8000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret 4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push edi
push esi
test eax, eax
je 0x40e82a
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004183ef
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.004183ef
mov esp, ebp
pop ebp
ret 4