joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001b00
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x10001c]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x100010], edi
jle 0x10001b59
lea ebx, [esi + 0x80010]
mov eax, dword [esi + 0x100010]
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 0x10001b69
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x10001b29
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10001ba1
mov eax, dword [esi + 0x100010]
push eax
lea ecx, [edi + esi + 0x80010]
push ecx
push ebx
call fcn.10012b40
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100
push 0
push 0x1013df38
call fcn.10014a00
add esp, 0xc
xor eax, eax
jmp 0x10001bc0
mov cl, byte [eax + 0x10029d40]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1013df38], cl
inc eax
cmp eax, 0x100
jb 0x10001bc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1013df38
push 0
mov ecx, 0x101328a0
call fcn.10004f30
add esp, 0xc
call fcn.10001650
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002340
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x1013df38
call fcn.10014a00
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_jc]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1013df38], cl
inc eax
cmp eax, 0x100
jb 0x10002360
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x1013df38
push 0
mov ecx, 0x101328a0
call fcn.10004f30
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x10138bec], ecx
mov dword [ebp - 8], 0
jbe 0x10002545
mov edi, dword [0x10132858]
lea eax, [esi + 0xa]
mov esi, dword [0x10132854]
mov dword [ebp - 4], eax
cmp eax, edi
jae 0x1000248d
cmp esi, eax
ja 0x1000248d
mov ecx, eax
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp edi, dword [0x1013285c]
jne 0x10002466
mov ecx, edi
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x38e38e2
ja 0x10002556
mov edx, dword [0x1013285c]
sub edx, esi
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002466
mov edx, eax
shr edx, 1
mov esi, 0x38e38e3
sub esi, edx
cmp esi, eax
jae 0x10002447
xor eax, eax
jmp 0x10002449
add eax, edx
cmp eax, ecx
jae 0x1000244f
mov eax, ecx
push eax
mov ecx, 0x10132854
call fcn.100031b0
mov edi, dword [0x10132858]
mov esi, dword [0x10132854]
lea edx, [ebx + ebx*8]
lea eax, [esi + edx*8]
test edi, edi
je 0x10002485
mov ecx, 0x12
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x10132858]
mov esi, dword [0x10132854]
mov eax, dword [ebp - 4]
jmp 0x10002520
mov ebx, dword [0x1013285c]
cmp edi, ebx
jne 0x10002507
mov ecx, edi
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x38e38e2
ja 0x10002556
mov edx, ebx
sub edx, esi
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002504
mov edx, eax
shr edx, 1
mov esi, 0x38e38e3
sub esi, edx
cmp esi, eax
jae 0x100024e5
xor eax, eax
jmp 0x100024e7
add eax, edx
cmp eax, ecx
jae 0x100024ed
mov eax, ecx
push eax
mov ecx, 0x10132854
call fcn.100031b0
mov edi, dword [0x10132858]
mov esi, dword [0x10132854]
mov eax, dword [ebp - 4]
test edi, edi
je 0x10002520
mov ecx, 0x12
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x10132858]
mov esi, dword [0x10132854]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add edi, 0x48
mov dword [0x10132858], edi
movzx edx, byte [edx + 8]
inc ecx
add eax, 0x48
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp ecx, edx
jl 0x100023c8
pop edi
pop esi
mov dword [0x10138bdc], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.1001193d
int3
Function at 0x10002570
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x1013df38
call fcn.10014a00
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + 0x1002af40]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1013df38], cl
inc eax
cmp eax, 0x100
jb 0x10002590
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x1013df38
push 0
mov ecx, 0x101328a0
call fcn.10004f30
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x10138bf0], ecx
mov dword [ebp - 8], 0
jbe 0x10002769
mov ebx, dword [0x10132868]
lea ecx, [esi + 0xa]
mov esi, dword [0x10132864]
mov dword [ebp - 4], ecx
cmp ecx, ebx
jae 0x100026a8
cmp esi, ecx
ja 0x100026a8
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [0x1013286c]
jne 0x10002694
mov ecx, ebx
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xf83e0e
ja 0x1000277a
mov edx, dword [0x1013286c]
sub edx, esi
mov eax, 0x3e0f83e1
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002694
mov edx, eax
shr edx, 1
mov esi, 0xf83e0f
sub esi, edx
cmp esi, eax
jae 0x10002675
xor eax, eax
jmp 0x10002677
add eax, edx
cmp eax, ecx
jae 0x1000267d
mov eax, ecx
push eax
mov ecx, 0x10132864
call fcn.100032a0
mov ebx, dword [0x10132868]
mov esi, dword [0x10132864]
imul edi, edi, 0x108
add edi, esi
test ebx, ebx
je 0x1000273b
mov esi, edi
jmp 0x10002726
mov edi, dword [0x1013286c]
cmp ebx, edi
jne 0x1000271f
mov ecx, ebx
sub ecx, esi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xf83e0e
ja 0x1000277a
mov edx, edi
sub edx, esi
mov eax, 0x3e0f83e1
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x1000271f
mov edx, eax
shr edx, 1
mov esi, 0xf83e0f
sub esi, edx
cmp esi, eax
jae 0x10002700
xor eax, eax
jmp 0x10002702
add eax, edx
cmp eax, ecx
jae 0x10002708
mov eax, ecx
push eax
mov ecx, 0x10132864
call fcn.100032a0
mov ebx, dword [0x10132868]
mov esi, dword [0x10132864]
test ebx, ebx
je 0x1000273b
mov esi, dword [ebp - 4]
mov edi, ebx
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [0x10132868]
mov esi, dword [0x10132864]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ebx, 0x108
mov dword [0x10132868], ebx
movzx edx, byte [edx + 8]
inc eax
add ecx, 0x108
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, edx
jl 0x100025f8
pop edi
pop esi
mov dword [0x10138be0], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.1001193d
int3
Function at 0x10002790
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x1013df38
call fcn.10014a00
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_j_]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1013df38], cl
inc eax
cmp eax, 0x100
jb 0x100027b0
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x1013df38
push 0
mov ecx, 0x101328a0
call fcn.10004f30
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x10138bf4], ecx
mov dword [ebp - 8], 0
jbe 0x1000298a
mov ebx, dword [0x10132878]
lea ecx, [esi + 0xa]
mov esi, dword [0x10132874]
mov dword [ebp - 4], ecx
cmp ecx, ebx
jae 0x100028c8
cmp esi, ecx
ja 0x100028c8
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [0x1013287c]
jne 0x100028b4
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xfb1884
ja 0x1000299b
mov edx, dword [0x1013287c]
sub edx, esi
mov eax, 0x7d8c42b3
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x100028b4
mov edx, eax
shr edx, 1
mov esi, 0xfb1885
sub esi, edx
cmp esi, eax
jae 0x10002895
xor eax, eax
jmp 0x10002897
add eax, edx
cmp eax, ecx
jae 0x1000289d
mov eax, ecx
push eax
mov ecx, 0x10132874
call fcn.10003390
mov ebx, dword [0x10132878]
mov esi, dword [0x10132874]
imul edi, edi, 0x105
add edi, esi
test ebx, ebx
je 0x1000295c
mov esi, edi
jmp 0x10002946
mov edi, dword [0x1013287c]
cmp ebx, edi
jne 0x1000293f
mov ecx, ebx
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0xfb1884
ja 0x1000299b
mov edx, edi
sub edx, esi
mov eax, 0x7d8c42b3
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x1000293f
mov edx, eax
shr edx, 1
mov esi, 0xfb1885
sub esi, edx
cmp esi, eax
jae 0x10002920
xor eax, eax
jmp 0x10002922
add eax, edx
cmp eax, ecx
jae 0x10002928
mov eax, ecx
push eax
mov ecx, 0x10132874
call fcn.10003390
mov ebx, dword [0x10132878]
mov esi, dword [0x10132874]
test ebx, ebx
je 0x1000295c
mov esi, dword [ebp - 4]
mov edi, ebx
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, dword [0x10132878]
mov esi, dword [0x10132874]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ebx, 0x105
mov dword [0x10132878], ebx
movzx edx, byte [edx + 8]
inc eax
add ecx, 0x105
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp eax, edx
jl 0x10002818
pop edi
pop esi
mov dword [0x10138be4], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.1001193d
int3
Function at 0x100029b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x1013df38
call fcn.10014a00
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_jv]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1013df38], cl
inc eax
cmp eax, 0x100
jb 0x100029d0
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x1013df38
push 0
mov ecx, 0x101328a0
call fcn.10004f30
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x10138bf8], ecx
mov dword [ebp - 8], 0
jbe 0x10002bba
mov edi, dword [0x10132888]
lea eax, [esi + 0xa]
mov esi, dword [0x10132884]
mov dword [ebp - 4], eax
cmp eax, edi
jae 0x10002b01
cmp esi, eax
ja 0x10002b01
mov ecx, eax
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp edi, dword [0x1013288c]
jne 0x10002ad6
mov ecx, edi
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x3f03f02
ja 0x10002bcb
mov edx, dword [0x1013288c]
sub edx, esi
mov eax, 0x7e07e07f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002ad6
mov edx, eax
shr edx, 1
mov esi, 0x3f03f03
sub esi, edx
cmp esi, eax
jae 0x10002ab7
xor eax, eax
jmp 0x10002ab9
add eax, edx
cmp eax, ecx
jae 0x10002abf
mov eax, ecx
push eax
mov ecx, 0x10132884
call fcn.10003480
mov edi, dword [0x10132888]
mov esi, dword [0x10132884]
mov eax, ebx
shl eax, 6
add eax, esi
add eax, ebx
test edi, edi
je 0x10002af9
mov ecx, 0x10
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x10132888]
mov esi, dword [0x10132884]
mov eax, dword [ebp - 4]
jmp 0x10002b95
mov ebx, dword [0x1013288c]
cmp edi, ebx
jne 0x10002b7b
mov ecx, edi
sub ecx, esi
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x3f03f02
ja 0x10002bcb
mov edx, ebx
sub edx, esi
mov eax, 0x7e07e07f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ecx
add eax, edx
cmp ecx, eax
jbe 0x10002b78
mov edx, eax
shr edx, 1
mov esi, 0x3f03f03
sub esi, edx
cmp esi, eax
jae 0x10002b59
xor eax, eax
jmp 0x10002b5b
add eax, edx
cmp eax, ecx
jae 0x10002b61
mov eax, ecx
push eax
mov ecx, 0x10132884
call fcn.10003480
mov edi, dword [0x10132888]
mov esi, dword [0x10132884]
mov eax, dword [ebp - 4]
test edi, edi
je 0x10002b95
mov ecx, 0x10
mov esi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x10132888]
mov esi, dword [0x10132884]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add edi, 0x41
mov dword [0x10132888], edi
movzx edx, byte [edx + 8]
inc ecx
add eax, 0x41
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp ecx, edx
jl 0x10002a38
pop edi
pop esi
mov dword [0x10138be8], 1
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.1001193d
int3
Function at 0x10002be0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push 0x100
push 0
push 0x1013df38
call fcn.10014a00
add esp, 0xc
xor eax, eax
jmp 0x10002c00
mov cl, byte [eax + str.r_jj]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1013df38], cl
inc eax
cmp eax, 0x100
jb 0x10002c00
movzx edx, byte [esi + 4]
push edx
push 0x1013df38
push 0
mov ecx, 0x101328a0
call fcn.10004f30
movzx eax, byte [esi + 4]
add esp, 0xc
cmp eax, 0xa
ja case.default.0x10002c3c
jmp dword [eax*4 + 0x10002cac]
mov ecx, 0xe
jmp 0x10002c8e
mov ecx, 0xf
jmp 0x10002c8e
mov ecx, 0x10
jmp 0x10002c8e
mov ecx, 0x11
jmp 0x10002c8e
mov ecx, 0x12
jmp 0x10002c8e
mov ecx, 0x13
jmp 0x10002c8e
mov ecx, 0x14
jmp 0x10002c8e
mov ecx, 0x16
jmp 0x10002c8e
mov ecx, 0x18
jmp 0x10002c8e
mov ecx, 0x19
jmp 0x10002c8e
mov ecx, 0x15
push 0x1388
call fcn.10005430
push eax
push 2
mov eax, 0x10137bb8
call fcn.1000e680
add esp, 0xc
pop ecx
ret

Function at 0x10002ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10031440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
cmp dword [0x10138c10], 1
push edi
je 0x10002d88
mov ecx, dword [0x10132854]
mov dword [0x10138bd8], ebx
mov dword [0x10138bdc], ebx
mov dword [0x10138be0], ebx
mov dword [0x10138be4], ebx
mov dword [0x10138be8], ebx
mov dword [0x10138bec], ebx
mov dword [0x10138bf0], ebx
mov dword [0x10138bf4], ebx
mov dword [0x10138bf8], ebx
cmp ecx, dword [0x10132858]
je 0x10002d4c
mov dword [0x10132858], ecx
mov ecx, dword [0x10132864]
cmp ecx, dword [0x10132868]
je 0x10002d60
mov dword [0x10132868], ecx
mov ecx, dword [0x10132874]
cmp ecx, dword [0x10132878]
je 0x10002d74
mov dword [0x10132878], ecx
mov ecx, dword [0x10132884]
cmp ecx, dword [0x10132888]
je 0x10002d88
mov dword [0x10132888], ecx
mov dword [0x1013791c], ebx
mov dword [0x10137924], ebx
mov word [ebp - 0x3c], 0x38c1
call fcn.10012ef2
and eax, 0x800000ff
jns 0x10002dad
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x1013790c]
mov edx, dword [str.1.7.0]
mov byte [ebp - 0x3a], al
mov eax, dword [0x10138c10]
mov dword [ebp - 0x38], eax
mov eax, dword [0x1002c56c]
mov byte [ebp - 0x39], bl
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
call fcn.1000e830
push 0x100
mov esi, eax
push ebx
mov ecx, 9
lea edi, [ebp - 0x28]
push 0x1013df38
rep movsd dword es:[edi], dword [esi]
call fcn.10014a00
add esp, 0xc
xor eax, eax
jmp 0x10002e00
mov cl, byte [eax + 0x1002b240]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1013df38], cl
inc eax
cmp eax, 0x100
jb 0x10002e00
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
push ecx
push edx
push 0x1013df38
push ebx
mov ecx, 0x101328a0
call fcn.10004f30
movzx ecx, byte [ebp - 0x3b]
add esp, 0x18
lea edx, [ebp - 0x3c]
call fcn.10001900
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100123ca
mov esp, ebp
pop ebp
ret
Function at 0x10003970
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x10138b64]
test eax, eax
je 0x100039e3
mov ecx, dword [eax]
cmp ecx, dword [0x10138b78]
jne 0x1000398f
mov dl, byte [0x10138b7c]
cmp dl, byte [eax + 4]
je 0x100039e3
push 0x100
push 0
push 0x1013df38
call fcn.10014a00
add esp, 0xc
xor eax, eax
jmp 0x100039b0
mov cl, byte [eax + 0x1002a240]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1013df38], cl
inc eax
cmp eax, 0x100
jb 0x100039b0
push 0x1013df38
push 0
mov ecx, 0x101328a0
call fcn.10004f30
add esp, 8
call fcn.1000e2a0
mov eax, dword [0x10138b60]
test eax, eax
je 0x10003a53
mov edx, dword [eax]
cmp edx, dword [0x10138b70]
jne 0x10003a01
mov cl, byte [0x10138b74]
cmp cl, byte [eax + 4]
je 0x10003a53
push 0x100
push 0
push 0x1013df38
call fcn.10014a00
add esp, 0xc
xor eax, eax
jmp 0x10003a20
mov dl, byte [eax + 0x1002a340]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x1013df38], dl
inc eax
cmp eax, 0x100
jb 0x10003a20
push 0x1013df38
push 0
mov ecx, 0x101328a0
call fcn.10004f30
add esp, 8
call fcn.1000e2a0
mov eax, dword [0x10138b5c]
test eax, eax
je 0x10003a90
mov ecx, dword [eax]
cmp ecx, dword [0x10138b68]
jne 0x10003a71
mov dl, byte [0x10138b6c]
cmp dl, byte [eax + 4]
je 0x10003a90
mov eax, 0x11
call fcn.1000e8f0
push eax
push 0
mov ecx, 0x101328a0
call fcn.10004f30
add esp, 8
call fcn.1000e2a0
pop ecx
ret
Function at 0x10004b80
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10031440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0xc]
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 0x10004bd3
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10004be6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100123ca
mov esp, ebp
pop ebp
ret 8
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 0x10004c1d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100123ca
mov esp, ebp
pop ebp
ret 8
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 0x10004c5b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004c54
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004c54
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x10004c7b
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
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100123ca
mov esp, ebp
pop ebp
ret 8
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
xor ecx, ebp
mov al, 1
pop esi
call fcn.100123ca
mov esp, ebp
pop ebp
ret 8
Function at 0x10004e10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10031440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10132ab8]
push ebx
push esi
push edi
test eax, eax
js 0x10004f1c
cmp eax, 1
jge 0x10004f1c
mov esi, eax
imul esi, esi, 0x214
add esi, 0x101328a4
push str.MHP_LOG
inc eax
lea ebx, [esi + 4]
push 0x100
mov dword [0x10132ab8], eax
push ebx
mov dword [esi], 1
call fcn.10013174
add esp, 0xc
cmp dword [esi], 0
je 0x10004f1c
push 0
push ebx
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 ebx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.log
push edi
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 edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x10004ef7
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100123ca
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 0x10004f1c
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.100123ca
mov esp, ebp
pop ebp
ret
Function at 0x10004f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x10031440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x10005127
cmp eax, dword [ecx + 0x218]
jge 0x10005127
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x10005127
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 0x10004fb6
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x10004fb6
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x10005073
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.log
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 0x1000503d
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100123ca
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 0x10005073
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.100123ca
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call fcn.10014a00
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.10013314
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call fcn.10014a00
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 esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005100
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.100123ca
mov esp, ebp
pop ebp
ret