joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ca80
Capabilities:
Get hostname
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026083
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
push ebx
push esi
push edi
lea edi, [ebp - 0x368]
mov ecx, 0xd7
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10032420]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
movzx eax, byte [0x1003241b]
cmp eax, 1
jne 0x1001cc71
mov byte [0x1003241b], 0
mov esi, esp
push str.._Config.txt
push 0xff
push 0x100349b8
push 0
push 0x1002ab90
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, esp
call fcn.10021dc0
mov dword [ebp - 0x148], 0x20
mov esi, esp
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp esi, esp
call fcn.10021dc0
lea ecx, [ebp + 8]
call fcn.10002410
mov esi, esp
push eax
lea eax, [ebp - 0x35c]
push eax
call fcn.1001c8d0
add esp, 4
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x364]
mov dword [ebp - 0x368], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x368]
call fcn.10002410
push eax
push str.Hacking_PC_Name_:__s_Msg_:__s_n
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.MSVCR100D.dll_sprintf]
add esp, 0x10
cmp esi, esp
call fcn.10021dc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x35c]
call fcn.10002320
mov ecx, 0x10034ea0
call fcn.1001c250
movzx eax, al
cmp eax, 1
jne 0x1001cc71
lea ecx, [ebp + 8]
call fcn.10002450
cmp eax, 4
jbe 0x1001cbfa
mov ecx, 0x10034ea0
call fcn.1001c250
movzx eax, al
test eax, eax
je 0x1001cbfa
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x334], esp
lea eax, [ebp - 0x250]
push eax
call fcn.10002270
mov dword [ebp - 0x364], eax
mov ecx, 0x10034ea0
call fcn.1001b300
mov byte [0x1003241b], 1
jmp 0x1001cc71
lea ecx, [ebp + 8]
call fcn.10002450
test eax, eax
jne 0x1001cc59
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x328], esp
push str.Hacking
call fcn.10002270
mov dword [ebp - 0x364], eax
mov ecx, 0x10034ea0
call fcn.1001b300
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x31c], esp
push str.nll_sendded
call fcn.10002270
mov dword [ebp - 0x364], eax
mov ecx, 0x10034ea0
call fcn.1001b300
mov byte [0x1003241b], 1
jmp 0x1001cc71
mov ecx, 0x10034ea0
call fcn.1001c250
movzx eax, al
test eax, eax
jne 0x1001cc71
mov byte [0x1003241b], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002320
push edx
mov ecx, ebp
push eax
lea edx, [0x1001ccbc]
call fcn.10021df0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10021fe0
add esp, 0x368
cmp ebp, esp
call fcn.10021dc0
mov esp, ebp
pop ebp
ret
Function at 0x1001d520
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100261e3
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
push ebx
push esi
push edi
lea edi, [ebp - 0x548]
mov ecx, 0x14f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10032420]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0x20
mov esi, esp
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp esi, esp
call fcn.10021dc0
lea ecx, [ebp + 8]
call fcn.10002410
mov esi, esp
push eax
lea eax, [ebp - 0x530]
push eax
call fcn.1001c8d0
add esp, 4
mov dword [ebp - 0x544], eax
mov ecx, dword [ebp - 0x544]
mov dword [ebp - 0x548], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x548]
call fcn.10002410
push eax
push str.Hacking_PC_Name_:__s_Msg_:__s_n
lea edx, [ebp - 0x448]
push edx
call dword [sym.imp.MSVCR100D.dll_sprintf]
add esp, 0x10
cmp esi, esp
call fcn.10021dc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x530]
call fcn.10002320
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x53c], esp
lea eax, [ebp - 0x448]
push eax
call fcn.10002270
mov dword [ebp - 0x544], eax
mov ecx, 0x10034ea0
call fcn.1001b300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002320
push edx
mov ecx, ebp
push eax
lea edx, [0x1001d65c]
call fcn.10021df0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10021fe0
add esp, 0x548
cmp ebp, esp
call fcn.10021dc0
mov esp, ebp
pop ebp
ret
Function at 0x1001e450
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026457
mov eax, dword fs:[0]
push eax
sub esp, 0x294
push ebx
push esi
push edi
lea edi, [ebp - 0x2a0]
mov ecx, 0xa5
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10032420]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x29c], 0
push 0x10028b6b
lea ecx, [ebp - 0x34]
call fcn.10002270
mov dword [ebp - 4], 1
mov dword [ebp - 0xd4], 0x20
mov esi, esp
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp esi, esp
call fcn.10021dc0
mov esi, esp
lea eax, [ebp - 0x1d0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileW]
cmp esi, esp
call fcn.10021dc0
mov esi, esp
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0xc8]
push ecx
push str._ls____ls
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.MSVCR100D.dll_sprintf]
add esp, 0x10
cmp esi, esp
call fcn.10021dc0
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp + 8]
call fcn.10002270
mov ecx, dword [ebp - 0x29c]
or ecx, 1
mov dword [ebp - 0x29c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.10002320
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x1001e580]
call fcn.10021df0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10021fe0
add esp, 0x2a0
cmp ebp, esp
call fcn.10021dc0
mov esp, ebp
pop ebp
ret
Function at 0x1001e600
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026493
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
push ebx
push esi
push edi
lea edi, [ebp - 0x2bc]
mov ecx, 0xac
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x10032420]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [0x1003241d], 0
mov ecx, 0x10034ea0
call fcn.1001c250
movzx eax, al
test eax, eax
jne 0x1001e665
mov eax, 1
test eax, eax
je 0x1001e833
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x2b4], esp
push str._HardWarIDLogger
call fcn.10002270
mov dword [ebp - 0x2bc], eax
call fcn.1001ca80
add esp, 0x20
mov esi, esp
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.10021dc0
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x10034ea0
call fcn.1001b970
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.10002450
add eax, 1
push eax
call fcn.1001f890
add esp, 4
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x34]
call fcn.10002410
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.MSVCR100D.dll_strcpy
add esp, 8
mov esi, esp
lea eax, [ebp - 0x1a8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileW]
cmp esi, esp
call fcn.10021dc0
mov esi, esp
lea eax, [ebp - 0x1a4]
push eax
push 0x10028734
lea ecx, [ebp - 0xac]
push ecx
call dword [sym.imp.MSVCR100D.dll_sprintf]
add esp, 0xc
cmp esi, esp
call fcn.10021dc0
lea eax, [ebp - 0x1d0]
push eax
call fcn.1001e450
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1d0]
call fcn.10002410
mov esi, esp
push eax
push str.Hacking_opened_Blocked_HWID_:__ls_connection_refused
push 0x10034ab8
call dword [sym.imp.MSVCR100D.dll_sprintf]
add esp, 0xc
cmp esi, esp
call fcn.10021dc0
lea ecx, [ebp - 0x34]
call fcn.1000eba0
cmp eax, 3
jbe 0x1001e815
lea ecx, [ebp - 0x34]
call fcn.10002410
mov esi, esp
push eax
lea ecx, [ebp - 0x1d0]
call fcn.10002410
push eax
call dword [sym.imp.MSVCR100D.dll_strstr]
add esp, 8
cmp esi, esp
call fcn.10021dc0
test eax, eax
jne 0x1001e7b9
push 0
lea ecx, [ebp - 0x1d0]
call fcn.10002410
push eax
lea ecx, [ebp - 0x34]
call fcn.100024e0
cmp eax, dword [0x100286dc]
je 0x1001e815
push 0x1d
push str.XeonansePlayerAreaBitFunction
push 0x513146
call fcn.1001c780
add esp, 0xc
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x29c], esp
push 0x10034ab8
call fcn.10002270
mov dword [ebp - 0x2bc], eax
call fcn.1001ca80
add esp, 0x20
push 0x1d
push str.XeonansePlayerAreaBitFunction
push 0x513146
call fcn.1001c780
add esp, 0xc
mov esi, esp
push 0
call dword [sym.imp.MSVCR100D.dll_exit]
cmp esi, esp
call fcn.10021dc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d0]
call fcn.10002320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10002320
push edx
mov ecx, ebp
push eax
lea edx, [0x1001e870]
call fcn.10021df0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10021fe0
add esp, 0x2bc
cmp ebp, esp
call fcn.10021dc0
mov esp, ebp
pop ebp
ret
Function at 0x1001fdd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002aee8
push 0x10022b92
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x1001fe36
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3d]
jmp 0x1001febf
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x1001fe5d
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3e]
jmp 0x1001febf
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0xd8]
cmp dword [ebp + 0xc], eax
jb 0x1001fe98
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0xd8]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 0xdc]
cmp dword [ebp + 0xc], edx
jae 0x1001fe98
mov byte [ebp - 0x3f], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3f]
jmp 0x1001febf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x40]
jmp 0x1001febf
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001ffa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10035310]
mov dword [ebp - 4], eax
jmp 0x1001ffb9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1001ffd6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1001ffb0
mov esp, ebp
pop ebp
ret
Function at 0x10020000
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10035320], eax
je 0x1002001e
mov eax, 0x10dd
jmp 0x10020100
mov eax, dword [0x10035330]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002009d
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
xor eax, eax
mov al, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x1002007b
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x1002007b
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.10020170
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.MSVCR100D.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x10020026
mov dword [0x10035330], 0
call fcn.10020110
mov ecx, dword [0x1003532c]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x100200ea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MSVCR100D.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x100200b5
mov dword [0x1003532c], 0
mov dword [0x10035320], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10020670
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10020685
xor eax, eax
jmp 0x100206fa
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 0x10000
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x100206b2
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x38d
jae 0x100206f5
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 0x40], 0
je 0x100206f3
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x100206ef
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x100206f3
xor eax, eax
jmp 0x100206fa
jmp 0x100206a9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100207b0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10035324], 0
je 0x100207c9
mov eax, dword [0x10035324]
jmp 0x10020869
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x100207db
xor eax, eax
jmp 0x10020869
push 8
call sub.MSVCR100D.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10020831
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1002081a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100D.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10035324], eax
mov dword [0x10035328], 0
mov eax, dword [ebp - 8]
jmp 0x10020869
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1002084b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100207fb
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1003532c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1003532c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100210b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10021180
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1002116c
cmp dword [ebp - 4], 0x50000000
jb 0x100210ec
cmp dword [ebp - 4], 0x80000000
ja 0x100210ec
mov dword [ebp - 4], 0x80010000
jmp 0x100210c5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR100D.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10021112
jmp 0x1002116c
cmp dword [ebp - 0x10], 0x10000
jne 0x10021155
cmp dword [ebp - 0x14], 0x10000
jb 0x10021155
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10021148
mov eax, dword [ebp - 0x24]
jmp 0x1002116e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10021167
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10021180
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100210c5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100211c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10021290
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10021284
cmp dword [ebp - 4], 0x50000000
jb 0x10021201
cmp dword [ebp - 4], 0x80000000
ja 0x10021201
mov dword [ebp - 4], 0x4fff0000
jmp 0x100211da
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR100D.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10021227
jmp 0x10021284
cmp dword [ebp - 0x10], 0x10000
jne 0x1002126a
cmp dword [ebp - 0x14], 0x10000
jb 0x1002126a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1002125d
mov eax, dword [ebp - 0x24]
jmp 0x10021286
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002127f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10021290
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100211da
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10021fe0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10032420]
jne 0x10021fea
repz ret
jmp fcn.100233b0
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00409c90
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00409c90
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00409c90
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00409c90
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00409c90
mov dword [0x41203c], eax
call fcn.00409c90
test eax, eax
jge 0x402550
push 8
call fcn.00409c90
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00409c90
pop ecx
push 1
call fcn.00409c90
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00409c90
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00409c90
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00409c90
jmp 0x402495

Function at 0x409c90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x409c9f
pop dword [ebp - 0x3c]
mov eax, 0x2003a094
add eax, 0xe03cfc0b
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x37faa
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x431f
mov edx, eax
mov ebx, 0xff53dd16
add ebx, 0xed5eae
add ebx, dword [ebp - 0x3c]
mov esi, 0x80110757
sub dword [ebp - 0x30], 0x9fdcd56d
mov edi, dword [ebx]
sub dword [ebp - 0x20], ecx
xor edi, esi
sub dword [ebp - 0x1c], 0x62bb6a3e
mov dword [edx], edi
mov dword [ebp - 8], 0x90e80457
add edx, 0x8d88f3d1
sub edx, 0x8d88f3cd
add ebx, 0x9ae66f94
add ebx, 0x65199070
loop 0x409ced
add eax, 0xd453c858
add eax, 0x2bad36f7
mov ebx, eax
add eax, 5
mov ecx, 0xd84ac31b
add ecx, 0x27f53ce5
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1002aaee
pop dword [ebp - 0x24]
mov eax, 0x1002aaee
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x9e9604c
add dword [ebp - 0x34], 0x4468e4ff
mov dword [ebp - 0x30], 0x48d4d729
sub dword [ebp - 0x30], 0x16a18ae4
mov dword [ebp - 0x2c], 0xab751c26
sub dword [ebp - 0x2c], 0x5f28d7f8
mov dword [ebp - 0x28], 0x594c260
sub dword [ebp - 0x28], 0x594c260
lea eax, [ebp - 0x34]
push eax
mov eax, 0xf0017837
add eax, 0x20014801
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xbaad3f9e
add dword [ebp - 0x34], 0xb9c529b8
mov dword [ebp - 0x30], 0x1492fcfc
sub dword [ebp - 0x30], 0xd3269b87
mov dword [ebp - 0x2c], 0xad04fe2a
add dword [ebp - 0x2c], 0xb66a6e42
mov dword [ebp - 0x28], 0x9cf283ad
sub dword [ebp - 0x28], 0x9cf283ad
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xd9ce417a
add eax, 0x36347eae
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x37444
push 0
call eax
mov ecx, 0x95d0001b
sub ecx, 0x95cfb4e9
mov esi, eax
mov edx, 0xe6a71a5c
add edx, 0x295c7ba4
add edx, dword [ebp - 0x24]
mov edi, 0x4151959e
mov dword [ebp - 4], 0x99b7eefe
mov ebx, dword [edx]
add dword [ebp - 0x14], 0xf766bc18
xor ebx, edi
mov dword [esi], ebx
xor dword [ebp - 0x14], ecx
add esi, 4
add edx, 4
loop 0x1002ac05
add eax, 0x8d289483
add eax, 0x72d88b18
mov ebx, eax
add eax, 0xd6fc41fd
add eax, 0x2903be08
mov ecx, 0x10000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x42fb71
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x43757a
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43c770
mov dword [esi + 4], 0x43c758
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004028e9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov byte [esi + 0x4d], bl
mov dword [esi], 0x43c73c
mov dword [esi + 4], 0x43c724
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x43196e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x43197d
pop dword [ebp - 0x24]
mov eax, 0xc9ea659a
add eax, 0x3658b3e3
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3f134
push 0
mov eax, 0x19bcbf8b
sub eax, 0x19793f5b
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x5978
xor ebx, ebx
add ebx, eax
mov esi, 0x44c600
add esi, dword [ebp - 0x24]
mov edi, 0x10192290
sub edi, 0x3585b2d
xor dword [ebp - 0x14], 0x33317674
mov edx, dword [esi]
add dword [ebp - 4], eax
sub edx, edi
xor dword [ebp - 0x18], 0xa7ed0799
mov dword [ebx], edx
add dword [ebp - 4], eax
add ebx, 4
add esi, 4
loop 0x4319d2
add eax, 0x6e546abb
sub eax, 0x6e531208
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe57cdf87
add ecx, 0x1ac32079
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x433770
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x433799
xor eax, eax
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4337a8
mov eax, 1
ret 4