joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Hide thread from debugger

Disassembly:
push ebp
mov ebp, esp
push esi
push str.NtSetInformationThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x10001026
xor al, al
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
push 0
push 0
push 0x11
test eax, eax
jne 0x10001039
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
test eax, eax
sete al
pop esi
pop ebp
ret

Function at 0x10001050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x1000107c
push ebx
push edi
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [ecx + edi*4]
inc esi
dec edx
jne 0x10001063
pop edi
pop ebx
not eax
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x10040a9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x10014604
push eax
lea eax, [ebp - 0x408]
push eax
mov dword [ebp - 0x40c], ecx
or esi, 0xffffffff
mov dword [ebp - 0x408], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x100010e8
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f795
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
lea ebx, [ebx]
mov ecx, dword [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov ecx, eax
lea edx, [ebp - 0x404]
test eax, eax
je 0x1000113d
lea ebx, [ebx]
movzx ebx, byte [edx]
mov edi, esi
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp - 0x40c]
shr esi, 8
xor esi, dword [ebx + edi*4]
inc edx
dec ecx
jne 0x10001120
cmp eax, 0x400
je 0x100010f0
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop ebx
xor ecx, ebp
not eax
pop esi
call fcn.1000f795
mov esp, ebp
pop ebp
ret 4
Function at 0x10001170
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 0x1001460c
mov dword [ebp - 4], ecx
push eax
lea ecx, [ebp + 0xc]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp + 0xc], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x100011ab
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
test edi, edi
jne 0x100011db
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
push eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001231
mov ecx, eax
mov edx, edi
test eax, eax
je 0x1000121c
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp - 4]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x100011f8
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x100011f0
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
add esp, 8
pop edi
not eax
mov dword [esi], eax
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001260
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 0x10014604
mov dword [ebp - 4], ecx
push eax
lea ecx, [ebp + 0xc]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp + 0xc], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x1000129b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
test edi, edi
jne 0x100012cb
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
push eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001321
mov ecx, eax
mov edx, edi
test eax, eax
je 0x1000130c
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp - 4]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x100012e8
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x100012e0
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
add esp, 8
pop edi
not eax
mov dword [esi], eax
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001350
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor edx, edx
xor eax, eax
test dl, 1
je 0x10001363
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x1000136f
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10001379
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10001383
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x1000138d
or eax, 8
shr ecx, 1
test cl, 1
je 0x10001397
or eax, 4
shr ecx, 1
test cl, 1
je 0x100013a1
or eax, 2
test cl, 2
je 0x100013a9
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]
mov edi, edi
test al, 1
je 0x1000146d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10001460
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10001357
pop edi
pop esi
pop ebx
ret

Function at 0x100014a0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10040a9c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x194]
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100014df
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f795
mov esp, ebp
pop ebp
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x100014cc
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 8], eax
test eax, eax
je 0x100014cc
mov ecx, dword [ebp + 8]
mov dword [esi + 0x4014], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.1000f795
mov esp, ebp
pop ebp
ret 4
Function at 0x100015b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x200c]
xor ebx, ebx
push ebx
mov ecx, 0x2000
sub ecx, eax
push ecx
lea edx, [eax + esi + 0xc]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10001603
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100015f4
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10001520
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0x200c], eax
cmp dword [esi + 0x200c], 4
jl 0x100015ec
push edi
lea ecx, [esi + 0xc]
lea eax, [ecx + ebx]
mov dword [ebp - 8], eax
mov al, byte [eax]
cmp al, 0xc1
jne 0x10001629
movzx edi, byte [ebx + esi + 0xd]
jmp 0x10001644
cmp al, 0xc2
jne 0x10001701
movzx edx, byte [ebx + esi + 0xd]
shl dx, 8
movzx edi, dx
movzx edx, byte [ebx + esi + 0xe]
or edi, edx
cmp edi, 4
jl 0x10001701
cmp edi, 0x2000
jg 0x10001701
cmp edi, dword [esi + 0x200c]
jg 0x100016cf
cmp al, 0xc1
jne 0x1000167f
movzx ecx, byte [ebx + esi + 0xe]
push ecx
lea edx, [edi - 3]
lea eax, [ebx + esi + 0xf]
push edx
push eax
call fcn.1000e170
mov al, byte [ebx + esi + 0xf]
jmp 0x10001697
movzx ecx, byte [ebx + esi + 0xf]
push ecx
lea edx, [edi - 4]
lea eax, [ebx + esi + 0x10]
push edx
push eax
call fcn.1000e170
mov al, byte [ebx + esi + 0x10]
mov ecx, dword [ebp - 8]
add esp, 0xc
mov byte [ebp - 4], al
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x4014]
push edi
push ecx
push edx
call eax
sub dword [esi + 0x200c], edi
add esp, 0xc
add ebx, edi
cmp dword [esi + 0x200c], 0
jg 0x10001613
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jle 0x100016f8
mov eax, dword [esi + 0x200c]
test eax, eax
jle 0x100016f8
mov edx, 0x2000
sub edx, ebx
cmp eax, edx
jg 0x100016f8
push eax
lea eax, [ebx + esi + 0xc]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10001520
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001720
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.1000f7b0
mov eax, dword [0x10040a9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x4018]
mov ecx, ebx
mov dword [ebp - 0x200c], eax
mov dword [ebp - 0x2008], ebx
call fcn.10001c10
cmp dword [esi + 4], 0xffffffff
je 0x10001766
cmp byte [esi + 0x4038], 0
jne 0x10001781
mov ecx, ebx
call fcn.10001c20
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f795
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x200c]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ecx
lea edx, [ebp - 0x2004]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp byte [ebp - 0x2004], 0xc1
jne 0x100017b6
mov eax, dword [ebp - 0x2002]
lea ecx, [edi - 3]
lea edx, [ebp - 0x2001]
jmp 0x100017c5
mov eax, dword [ebp - 0x2001]
lea ecx, [edi - 4]
lea edx, [ebp - 0x2000]
push eax
push ecx
push edx
call fcn.1000e1a0
mov eax, dword [esi + 0x4010]
add esp, 0xc
test eax, eax
jle 0x1000182a
lea ecx, [eax + edi]
cmp ecx, 0x2000
jle 0x10001808
mov ecx, esi
call fcn.10001520
mov ecx, ebx
call fcn.10001c20
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f795
mov esp, ebp
pop ebp
ret 8
push edi
lea edx, [ebp - 0x2004]
push edx
lea eax, [eax + esi + 0x2010]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + 0x4010], edi
mov ecx, ebx
jmp 0x10001858
xor ebx, ebx
test edi, edi
jle 0x10001852
mov edx, dword [esi + 4]
push 0
push edi
lea ecx, [ebp + ebx - 0x2004]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10001872
sub edi, eax
add ebx, eax
test edi, edi
jg 0x10001830
mov ecx, dword [ebp - 0x2008]
call fcn.10001c20
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f795
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100018b1
mov eax, dword [esi + 0x4010]
lea ecx, [eax + edi]
cmp ecx, 0x2000
jg 0x100018b1
push edi
lea edx, [ebp + ebx - 0x2004]
push edx
lea eax, [eax + esi + 0x2010]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + 0x4010], edi
jmp 0x10001852
mov ecx, esi
call fcn.10001520
mov ecx, dword [ebp - 0x2008]
call fcn.10001c20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1000f795
mov esp, ebp
pop ebp
ret 8
Function at 0x100018e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x4018]
push edi
mov ecx, ebx
mov dword [ebp - 4], ebx
call fcn.10001c10
xor edi, edi
cmp dword [esi + 0x4010], edi
jle 0x10001940
lea ebx, [esi + 0x2010]
lea esp, [esp]
mov eax, dword [esi + 0x4010]
mov edx, dword [esi + 4]
push 0
push eax
lea ecx, [ebx + edi]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10001950
sub dword [esi + 0x4010], eax
add edi, eax
cmp dword [esi + 0x4010], 0
jg 0x10001910
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.10001c20
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10001987
mov eax, dword [esi + 0x4010]
push eax
lea ecx, [edi + esi + 0x2010]
push ecx
push ebx
call dword [sym.imp.MSVCR100.dll_memmove]
mov ecx, dword [ebp - 4]
add esp, 0xc
call fcn.10001c20
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10001520
mov ecx, dword [ebp - 4]
call fcn.10001c20
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001a60
Capabilities:
Connect socket
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10040a9c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
push edi
mov edi, dword [ebp + 8]
je 0x10001aee
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x10001ac5
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10001ac5
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [ebp - 0x10]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ecx, dword [esi + 4]
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10001b02
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10001b02
mov ecx, esi
call fcn.10001520
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f795
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push 0x23
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10001ae7
push 0x2000
lea ecx, [esi + 0xc]
push 0
push ecx
call sub.MSVCR100.dll_memset
push 0x2000
lea edx, [esi + 0x2010]
push 0
push edx
mov dword [esi + 0x200c], 0
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x10040a14
push 0
push esi
push 0x100019a0
push 0
push 0
mov dword [esi + 0x4010], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x4034], eax
mov al, 1
pop edi
mov byte [esi + 0x4038], al
xor ecx, ebp
pop esi
call fcn.1000f795
mov esp, ebp
pop ebp
ret 8
Function at 0x10002030
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x10040a9c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10040b1c], 0
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2a0], eax
jne 0x100021bc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.MSVCR100.dll_rand]
mov dword [0x10040b1c], eax
mov word [ebp - 0x29c], 0x5c1
call edi
and eax, 0x800000ff
jns 0x10002089
dec eax
or eax, 0xffffff00
inc eax
mov bl, byte [ebp + 8]
mov ecx, 0x10032108
mov byte [ebp - 0x29a], al
mov byte [ebp - 0x299], 0xd2
mov byte [ebp - 0x298], bl
call fcn.10001590
test al, al
jne 0x100020cd
lea ecx, [ebp - 0x29c]
push ecx
call fcn.10001f00
add esp, 4
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f795
mov esp, ebp
pop ebp
ret
mov word [ebp - 0x294], 0x85c1
call edi
and eax, 0x800000ff
jns 0x100020e6
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x292], al
mov byte [ebp - 0x291], 0xd2
mov byte [ebp - 0x290], bl
test esi, esi
jne 0x10002111
push 0x40
lea edx, [ebp - 0x28f]
push esi
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x1000211e
mov ecx, 0x10
lea edi, [ebp - 0x28f]
rep movsd dword es:[edi], dword [esi]
push 0x40
lea eax, [ebp - 0x24f]
push 0
push eax
call sub.MSVCR100.dll_memset
mov esi, dword [ebp - 0x2a0]
add esp, 0xc
test esi, esi
je 0x100021a1
push 0x40
lea ecx, [ebp - 0x24f]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100021a1
push 0x104
lea edx, [ebp - 0x20c]
push edx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1000219a
lea eax, [ebp - 0x20c]
push eax
call fcn.1000e110
push eax
lea ecx, [ebp - 0x24f]
push 0x10014650
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, byte [ebp - 0x293]
push edx
lea eax, [ebp - 0x294]
push eax
mov ecx, 0x10032108
call fcn.10001720
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000f795
mov esp, ebp
pop ebp
ret

Function at 0x100032b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
test esi, esi
jle 0x100032d8
mov ecx, dword [ebp + 8]
mov dl, byte [eax + ecx]
xor dl, byte [0x10040b3e]
inc eax
sub dl, byte [0x10040b3d]
mov byte [eax + ecx - 1], dl
cmp eax, esi
jl 0x100032c0
pop esi
pop ebp
ret
Function at 0x10003fa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10003fc6
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push sym.MHPClient.dll_EntryProc
push 0
push 0
mov dword [0x10040b6c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10004100
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10040a9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push 0
push 0
push 3
push 0
push 1
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0x18]
push connect
push eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000415d
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10004171
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f795
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push 0
push eax
push ecx
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x100041a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f795
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x100041e7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100041e0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100041e0
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x10004208
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f795
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp - 0x44]
mov dword [ebx], esi
mov dword [edx], edi
mov edx, dword [ebp - 0x3c]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1000f795
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10004260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10040a9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x10036364]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
xor al, al
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x25], al
cmp edi, dword [0x10036368]
je 0x10004396
mov ebx, dword [ebp - 0x30]
mov ecx, 4
lea edx, [ebp - 0x24]
sub ecx, edx
mov dword [ebp - 0x40], ecx
lea esp, [esp]
cmp byte [edi], 0
jne 0x10004367
test al, al
jne 0x100042e8
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.10004100
test al, al
je 0x10004396
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 0x25], 1
mov esi, dword [edi + 4]
mov eax, dword [ebx + 0x34]
mov edx, esi
sub edx, eax
push edx
push eax
push ebx
call dword [sym.imp.dbghelp.dll_ImageRvaToSection]
test eax, eax
je 0x10004364
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0xc]
push 0
sub ecx, dword [ebx + 0x34]
push 0
add ecx, esi
mov esi, dword [ebp - 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10004364
push 0
lea edx, [ebp - 0x48]
push edx
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004364
mov edx, dword [ebp - 0x40]
mov ecx, 0x20
lea eax, [ebp - 0x24]
lea edx, [edx + edi + 4]
jmp 0x10004350
cmp ecx, 4
jb 0x100043ab
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x10004364
sub ecx, 4
add eax, 4
jmp 0x10004350
mov al, byte [ebp - 0x25]
add edi, 0x48
cmp edi, dword [0x10036368]
jne 0x100042b0
test al, al
je 0x10004396
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f795
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x38]
lea esi, [edi + 0x28]
mov edi, dword [ebp - 0x44]
mov ecx, 8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1000f795
mov esp, ebp
pop ebp
ret 8