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

Disassembly:
push 0x58
push 0x401d08
call fcn.00401b28
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x402368
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4015b5
cmp eax, esi
jne 0x4015a8
xor esi, esi
inc esi
mov edi, esi
jmp 0x4015b8
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x40158c
xor esi, esi
inc esi
cmp dword [0x40236c], esi
jne 0x4015ca
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401604
cmp dword [0x40236c], ebx
jne 0x4015fe
mov dword [0x40236c], esi
push 0x4010c4
push 0x4010b8
call fcn.0040173e
pop ecx
pop ecx
test eax, eax
je 0x401604
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40172e
mov dword [0x402014], esi
cmp dword [0x40236c], esi
jne 0x401627
push 0x4010b4
push 0x4010ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40236c], 2
test edi, edi
jne 0x401634
xor eax, eax
mov ecx, 0x402368
xchg dword [ecx], eax
cmp dword [0x402370], 0
je 0x401660
push 0x402370
call fcn.00401980
pop ecx
test eax, eax
je 0x401660
push ebx
push 2
push ebx
mov esi, dword [0x402370]
mov ecx, esi
call dword [0x4030b8]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x4015ed
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x4016cb
test ax, ax
je 0x40169a
test edx, edx
jne 0x4016cb
test ax, ax
je 0x40169a
cmp ax, si
ja 0x40169a
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x401685
test byte [ebp - 0x3c], 1
je 0x4016a6
movzx eax, word [ebp - 0x38]
jmp 0x4016a9
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x402010], eax
cmp dword [0x402028], 0
jne 0x401713
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x4016dc
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x401674
cmp dword [0x402014], 0
jne 0x401727
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x402010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00401a75
jmp 0x401563

Function at 0x401864
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x401d28
call fcn.00401b28
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4018c4
cmp eax, 0xffffffff
je 0x4018c4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4018bd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x4018bd
cmp edx, 0x10000000
jae 0x4018bd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x4018ba
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401930
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40196e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401966
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401970
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401956
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401a40
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x401a71
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401a71
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x401a71
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401a80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4064a1
mov eax, 0xff
call fcn.00401a80
xor byte [esi], al
inc esi
dec ebx
jne 0x406491
pop esi
pop ebx
ret
Function at 0x10002930
Capabilities:
Create thread
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x11c], esi
jne 0x10002ad7
push 0
push 0
push 0
push 0x10002920
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0xd
call fcn.10002aed
mov esi, eax
mov ecx, 0x10004171
sub ecx, esi
mov dword [ebp - 0x124], ecx
mov ecx, 0x10004181
sub ecx, esi
mov dword [ebp - 0x118], ecx
mov ecx, 0x10004172
sub ecx, esi
mov dword [ebp - 0x10c], ecx
mov ecx, 0x10004182
sub ecx, esi
mov dword [ebp - 0x120], ecx
mov ecx, 0x10004173
sub ecx, esi
mov dword [ebp - 0x114], ecx
mov ecx, 0x10004183
sub ecx, esi
add esp, 4
mov dword [ebp - 0x110], ecx
mov edx, esi
mov ecx, 0xfffffffe
push ebx
sub edx, 0x10004171
lea eax, [esi + 2]
sub ecx, esi
push edi
movzx ebx, byte [ecx + eax + str.Jmg:O_.xB]
xor bl, byte [ecx + eax + str.4_92w]
lea edi, [ecx + eax + 0x10004171]
mov byte [edi + edx], bl
movzx ebx, byte [ecx + eax + 0x10004181]
xor bl, byte [edi]
mov edi, dword [ebp - 0x118]
mov byte [eax - 1], bl
movzx ebx, byte [ecx + eax + 0x10004172]
xor bl, byte [ecx + eax + 0x10004182]
add eax, 6
mov byte [eax - 6], bl
movzx ebx, byte [edi + eax - 6]
mov edi, dword [ebp - 0x124]
xor bl, byte [edi + eax - 6]
mov edi, dword [ebp - 0x120]
mov byte [eax - 5], bl
movzx ebx, byte [edi + eax - 6]
mov edi, dword [ebp - 0x10c]
xor bl, byte [edi + eax - 6]
mov edi, dword [ebp - 0x110]
mov byte [eax - 4], bl
movzx ebx, byte [edi + eax - 6]
mov edi, dword [ebp - 0x114]
xor bl, byte [edi + eax - 6]
lea edi, [ecx + eax]
mov byte [eax - 3], bl
cmp edi, 0xc
jl 0x100029e1
push 0
push esi
push str.__nVersion_Patch_:_1.6.__nStatus_Hack_:_Active___nBypass_:_Auto_On
push 0
mov byte [esi + 0xc], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0
push 0
push section..text
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x11c]
push 0x104
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x108]
push str.dolbi32g.dll
push edx
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
pop edi
pop ebx
test eax, eax
jne 0x10002ad7
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.10002af8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002af8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10002b02
repz ret
jmp fcn.10002e9e
Function at 0x41bedd
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00418d33
mov dword [ebp - 0x14], eax
cmp dword [0x46c304], edi
jne 0x41bfce
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41bf5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41c0ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41c0ae
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c0ae
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x46c304], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46c308], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46c30c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46c314], eax
test eax, eax
je 0x41bfcb
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46c310], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41bff3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41bfe6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41c008
push 4
pop eax
jmp 0x41c0b0
cmp dword [ebp - 0x14], edi
je 0x41c008
push dword [0x46c304]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41bfed
mov eax, dword [0x46c310]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41c066
cmp dword [0x46c314], esi
je 0x41c066
push eax
call ebx
push dword [0x46c314]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41c066
test eax, eax
je 0x41c066
call ecx
test eax, eax
je 0x41c05b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41c05b
test byte [ebp - 8], 1
jne 0x41c066
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41c096
mov eax, dword [0x46c308]
cmp eax, esi
je 0x41c093
push eax
call ebx
test eax, eax
je 0x41c093
call eax
mov edi, eax
test edi, edi
je 0x41c093
mov eax, dword [0x46c30c]
cmp eax, esi
je 0x41c093
push eax
call ebx
test eax, eax
je 0x41c093
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46c304]
call ebx
test eax, eax
je 0x41c0ae
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41c0b0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415e39
leave
ret
Function at 0x404130
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14cc
call fcn.00411950
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x482688]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x48268c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.00404120
mov ecx, dword [str.fxz4]
mov edx, dword [0x482694]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x4041a0
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x489e24]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4041cc
mov dword [0x489e20], 0xedeb2e40
jmp 0x4041e7
cmp eax, 0x3eb
jne 0x4041e7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4898b0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x489e24], 0x9e6
mov dword [0x489e1c], 0xf4ea3dee
jne 0x404222
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x489e24], 0x213
jne 0x4042c2
push 0
lea eax, [ebp - 0x4cc]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0xccc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x14cc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, dword [ebp - 4]
cmp dword [0x489e24], 0xc
jne 0x4042d6
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x4041a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404330
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00411950
mov eax, dword [0x489e24]
mov ecx, dword [0x4898b4]
shr eax, 3
test eax, eax
jbe 0x404452
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x489e24], 0x959
jne 0x404438
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
lea ecx, [ebp - 0xc08]
push ecx
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404130
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a8ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x481470]
jne 0x40a909
repz ret
jmp fcn.004107a3

Function at 0x40be4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407712
and dword [ebp - 4], 0
cmp dword [0x48789c], 0
mov ebx, eax
jne 0x40befd
push 0x4034e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bfae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4034d8
push edi
call esi
test eax, eax
je 0x40bfae
push eax
call fcn.004076a0
mov dword [esp], 0x4034c8
push edi
mov dword [0x48789c], eax
call esi
push eax
call fcn.004076a0
mov dword [esp], 0x4034b4
push edi
mov dword [0x4878a0], eax
call esi
push eax
call fcn.004076a0
mov dword [esp], 0x403498
push edi
mov dword [0x4878a4], eax
call esi
push eax
call fcn.004076a0
pop ecx
mov dword [0x4878ac], eax
test eax, eax
je 0x40befd
push 0x403480
push edi
call esi
push eax
call fcn.004076a0
pop ecx
mov dword [0x4878a8], eax
mov eax, dword [0x4878a8]
cmp eax, ebx
je 0x40bf55
cmp dword [0x4878ac], ebx
je 0x40bf55
push eax
call fcn.0040771b
push dword [0x4878ac]
mov esi, eax
call fcn.0040771b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bf55
test edi, edi
je 0x40bf55
call esi
test eax, eax
je 0x40bf4c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bf4c
test byte [ebp - 0xc], 1
jne 0x40bf55
or dword [ebp + 0x10], 0x200000
jmp 0x40bf8e
mov eax, dword [0x4878a0]
cmp eax, ebx
je 0x40bf8e
push eax
call fcn.0040771b
pop ecx
test eax, eax
je 0x40bf8e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bf8e
mov eax, dword [0x4878a4]
cmp eax, ebx
je 0x40bf8e
push eax
call fcn.0040771b
pop ecx
test eax, eax
je 0x40bf8e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48789c]
call fcn.0040771b
pop ecx
test eax, eax
je 0x40bfae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bfb0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428adc
Capabilities:
Encode data using xor

Disassembly:
cmp bh, 0xf5
ret 0x2236
dec eax
pushal
dec eax
add byte [esi + 0x68], cl
or al, 0x90
add esp, dword [eax + 0x40]
add byte [edi + ecx + 0x25], ch
insb byte es:[edi], dx
loop 0x428a54
inc eax
or al, al
loop 0x428a02
add byte [ecx + 0x3b494221], cl
and dword [ecx], ebp
jo 0x428999
sub dword [eax - 0x6c], esi
pop eax
inc edi
add byte [edx + 0x1000701f], dl
mov esi, 0x7032000f
and byte [ebp - 0x31], ch
imul esp, dword [eax], 0x5583f003
inc eax
add byte [eax], cl
add byte [edx], al
add byte [ecx + ecx*4 + 0x17], cl
push edx
je 0x428a9b
insd dword es:[edi], dx
sbb cl, byte [ebx]
pop ds
adc ah, byte [ebx + 0x6e]
outsb dx, byte [esi]
jno 0x428a2d
or eax, 0x646d652a
inc esi
cmp al, byte [eax]
add ebp, dword [ecx + ebp*2 + 0x73]
jo 0x428abb
das
insb byte es:[edi], dx
retf 0x44
add byte [eax], al
add byte [eax + 0x40efdff], cl
int1
sub eax, 0x84656c64
push cs
insb byte es:[edi], dx
and ah, byte [eax]
inc ebp
add byte [eax + edx + 0x40], bl
add eax, 0x65646e49
clc
add al, byte [eax]
add al, byte [eax - 0x33e1004c]
sub esi, dword [edx + 0x6e]
sub dl, byte [ecx]
insb byte es:[edi], dx
je 0x428b0e
fldenv [0x365676e]
add byte [eax], al
add byte [eax], al
add byte [eax], cl
add byte [ebx], al
or byte [eax], ch
sub byte [ebx], bl
pop es
add byte [eax], al
add byte [ebx + edx*2], al
and edi, esp
and al, byte [edx]
add byte [eax], al
pushfd
adc byte [edx], cl
mov eax, dword [ebp]
sbb al, byte [ecx + 0x49]
outsb dx, byte [esi]
cld
pop eax
cmp eax, dword [edx]
enter 0xffffffffffffdc5d, 0x10
nop
pop ebp
inc edx
add byte [edx + 0x516f0661], cl
push cs
xor al, 2
inc esp
bound eax, qword [eax + 0x58]
dec eax
js 0x428aeb
fmul qword [edx + 0x4c]
dec edx
dec esp
imul eax, dword [0x21123478], 0x63
sbb al, 0x15
xor al, 0x65
jmp 0xd3dacb80
Function at 0x10002100
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Get file version info
Read .ini file
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 1
jne 0x10002281
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push str.Game.dll
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
push esi
call fcn.1000229a
add esp, 4
mov edi, eax
push edi
push esi
push dword [ebp + 0xc]
push str.Game.dll
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
lea eax, [ebp - 4]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push 0x100160fc
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov eax, dword [ebp + 8]
mov ecx, 0x1901
cmp word [eax + 0xc], cx
jne 0x10002274
push ebx
call fcn.10001360
push str..iCCup_Maphack_Bot.ini
push 0
push str.Game_Start_Notifier
push str.iCCup_Maphack_Bot
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 1
jne 0x10002200
mov edi, dword [0x1001937c]
push 0xa
add edi, 0x5c0d81
mov dword [ebp + 0xc], 0
call fcn.1000579a
add esp, 4
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push 0x40
push 5
push edi
call ebx
mov ecx, dword [edi]
mov dword [esi], ecx
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov eax, edi
sub eax, esi
sub eax, 5
mov dword [esi + 5], eax
mov eax, 0x10001340
push 0
push dword [ebp + 0xc]
sub eax, edi
mov byte [edi], 0xe9
push 5
sub eax, 5
push edi
mov dword [edi + 1], eax
call ebx
push str..iCCup_Maphack_Bot.ini
push 0
push str.Instant_Game_Start
push str.iCCup_Maphack_Bot
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x1000224a
mov esi, dword [0x100193ac]
lea eax, [ebp + 0xc]
push eax
push 0x40
push 4
add esi, 0x95fbb4
mov dword [ebp + 0xc], 0
push esi
call ebx
push 0
mov dword [esi], 0x3dcccccd
push dword [ebp + 0xc]
push 4
push esi
call ebx
push 0
push 0
push 0
push 0x100015a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10005c74
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10005cb3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10005cb3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10005cb3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10005cb3
cmp dword [ecx + 0x74], 0xe
jbe 0x10005cb3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100097d7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10009874
push ebx
push esi
call fcn.100097a0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10009734
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10009821
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10009873
push edi
push eax
call fcn.10007d3e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10009841
call fcn.1000676d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10009872
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10009734
add esp, 0x20
test eax, eax
jne 0x10009860
push edi
call fcn.1000676d
jmp 0x10009868
push ebx
call fcn.1000676d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10009ae1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012b00
push 0x10012af8
push str.FlsAlloc
push 0x1f
call fcn.100099fd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009b15
push dword [ebp + 8]
mov ecx, esi
call dword [0x10011154]
call esi
jmp 0x10009b1b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10009b5f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012b10
push 0x10012b08
push str.FlsGetValue
push 0x21
call fcn.100099fd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009b96
push dword [ebp + 8]
mov ecx, esi
call dword [0x10011154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10009b9e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012b18
push 0x10012b10
push str.FlsSetValue
push 0x22
call fcn.100099fd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10009bd8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10011154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]