joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100013e0
Capabilities:
Connect socket
Create thread
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10016018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x10016294], 0xffffffff
push esi
mov esi, ecx
jne 0x10001453
push 0x100
push 0
push 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x100105f0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025060], cl
inc eax
cmp eax, 0x100
jb 0x10001412
push 0x10025060
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000d9eb
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov edx, 2
push eax
mov word [ebp - 0x18], dx
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x1000149b
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000149b
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [0x10016294]
push 0x10
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x100014fb
call esi
cmp eax, 0x2733
je 0x100014fb
call esi
push eax
mov eax, 2
call fcn.1000ad70
push eax
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 0xc
mov esi, 0x10016290
call fcn.100015a0
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000d9eb
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x10016298]
mov edx, dword [0x10016294]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10001520
call esi
push eax
mov eax, 3
jmp 0x100014c9
push 0x2000
push 0
push 0x1001629c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x2000
push 0
push 0x100182a0
mov dword [0x1001829c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x10024d1c
push 0
push 0x10016290
push 0x10001b30
push 0
push 0
mov dword [0x1001a2a0], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [0x1001a2c4], eax
xor ecx, ebp
mov byte [0x1001a2c8], 1
mov al, 1
pop esi
call fcn.1000d9eb
mov esp, ebp
pop ebp
ret 4

Function at 0x100015a0
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x4034], ebx
je 0x100015d6
mov dword [0x10024d1c], 0xffffffff
mov eax, dword [esi + 0x4034]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x4034]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x4034], ebx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x100015ec
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100015fd
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], ebx
mov byte [esi + 0x4038], bl
pop ebx
ret
Function at 0x10001630
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x200c]
xor edi, edi
push edi
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 0x100016b7
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x100017e5
push 0x100
push 0
push 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x100108f0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025060], cl
inc eax
cmp eax, 0x100
jb 0x10001690
call edi
push eax
push 0x10025060
jmp 0x10001830
add dword [esi + 0x200c], eax
mov eax, dword [esi + 0x200c]
cmp eax, 4
jl 0x100017e5
lea esp, [esp]
mov al, byte [esi + edi + 0xc]
lea edx, [esi + 0xc]
cmp al, 0xc1
jne 0x100016e6
movzx ebx, byte [edi + esi + 0xd]
mov cl, byte [edi + esi + 0xf]
jmp 0x10001705
cmp al, 0xc2
jne 0x1000181f
movzx ecx, byte [edi + esi + 0xd]
shl cx, 8
movzx ebx, cx
movzx ecx, byte [edi + esi + 0xe]
or ebx, ecx
mov cl, byte [edi + esi + 0x10]
cmp ebx, 4
jl 0x100017ee
cmp ebx, 0x2000
jg 0x100017ee
cmp ebx, dword [esi + 0x200c]
jg 0x100017bc
cmp al, 0xc1
jne 0x10001758
mov dl, byte [edi + esi + 0xe]
mov byte [ebp - 4], dl
lea edx, [ebx - 3]
xor eax, eax
lea ecx, [edi + esi + 0xf]
test edx, edx
jle 0x10001784
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0xf]
xor dl, 0xa0
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 3]
cmp eax, edx
jl 0x1000173e
jmp 0x10001784
mov cl, byte [edi + esi + 0xf]
lea edx, [ebx - 4]
xor eax, eax
mov byte [ebp - 4], cl
lea ecx, [edi + esi + 0x10]
test edx, edx
jle 0x10001784
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0x10]
xor dl, 0xa0
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 4]
cmp eax, edx
jl 0x1000176c
mov al, byte [ecx]
mov edx, dword [esi + 0x4014]
mov byte [ebp - 8], al
mov ecx, dword [ebp - 8]
push ebx
lea eax, [esi + edi + 0xc]
push eax
push ecx
call edx
sub dword [esi + 0x200c], ebx
add esp, 0xc
add edi, ebx
cmp dword [esi + 0x200c], 0
jg 0x100016d0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x100017e5
mov eax, dword [esi + 0x200c]
test eax, eax
jle 0x100017e5
mov ecx, 0x2000
sub ecx, edi
cmp eax, ecx
jg 0x100017e5
push eax
lea eax, [edi + esi + 0xc]
push eax
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, cl
push ecx
movzx edx, al
push ebx
push edx
mov eax, 6
call fcn.1000ad70
push eax
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 0x14
call fcn.100015a0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + esi + 0xc]
push eax
mov eax, 5
call fcn.1000ad70
push eax
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 0xc
call fcn.100015a0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001850
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.1000e3a0
mov eax, dword [0x10016018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1001a2ac
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10016294], 0xffffffff
je 0x10001945
cmp byte [0x1001a2c8], 0
je 0x10001945
push esi
lea eax, [ebp - 0x2008]
push edi
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x2008], 0xc1
jne 0x100018da
mov cl, byte [ebp - 0x2006]
lea edi, [esi - 3]
test edi, edi
jle 0x10001908
lea esp, [esp]
mov dl, byte [ebp + eax - 0x2005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x2005], dl
inc eax
cmp eax, edi
jl 0x100018c0
jmp 0x10001908
mov cl, byte [ebp - 0x2005]
lea edi, [esi - 4]
test edi, edi
jle 0x10001908
jmp 0x100018f0
mov dl, byte [ebp + eax - 0x2004]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x2004], dl
inc eax
cmp eax, edi
jl 0x100018f0
mov eax, dword [0x1001a2a0]
test eax, eax
jle 0x1000199e
lea ecx, [eax + esi]
cmp ecx, 0x2000
jle 0x10001963
mov eax, 7
push ecx
call fcn.1000ad70
push eax
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 0xc
mov esi, 0x10016290
call fcn.100015a0
push 0x1001a2ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9eb
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x2008]
push ecx
lea edx, [eax + 0x100182a0]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [0x1001a2a0], esi
push 0x1001a2ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1000d9eb
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10001980
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [0x10016294]
push 0
push esi
lea eax, [ebp + edi - 0x2008]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x100019cd
sub esi, eax
add edi, eax
test esi, esi
jg 0x100019aa
jmp 0x10001980
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10001a0b
mov eax, dword [0x1001a2a0]
lea ecx, [eax + esi]
cmp ecx, 0x2000
jle 0x100019f6
mov eax, 8
jmp 0x10001925
push esi
lea edx, [ebp + edi - 0x2008]
push edx
lea eax, [eax + 0x100182a0]
push eax
jmp 0x10001972
call ebx
push eax
mov eax, 9
jmp 0x10001926
Function at 0x10001a20
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 + 0x401c]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x4010], edi
jle 0x10001a79
lea ebx, [esi + 0x2010]
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 0x10001a89
sub dword [esi + 0x4010], eax
add edi, eax
cmp dword [esi + 0x4010], 0
jg 0x10001a49
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 0x10001ac2
mov eax, dword [esi + 0x4010]
push eax
lea ecx, [edi + esi + 0x2010]
push ecx
push ebx
call dword [sym.imp.MSVCR100.dll_memmove]
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 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10001ae0
mov cl, byte [eax + 0x10010ef0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025060], cl
inc eax
cmp eax, 0x100
jb 0x10001ae0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x10025060
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 0xc
call fcn.100015a0
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 0x10001e90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001ef0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x10001ed6
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.1000d9e0
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x10001ef7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
je 0x10001eea
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10002da0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push 0x100
push 0
push 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10002dc0
mov cl, byte [eax + str.r_jj]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025060], cl
inc eax
cmp eax, 0x100
jb 0x10002dc0
movzx edx, byte [esi + 4]
push edx
push 0x10025060
push 0
mov ecx, 0x1001a440
call fcn.10005210
movzx eax, byte [esi + 4]
add esp, 0xc
cmp eax, 0xa
ja case.default.0x10002dfc
jmp dword [eax*4 + 0x10002e6c]
mov ecx, 0xe
jmp 0x10002e4e
mov ecx, 0xf
jmp 0x10002e4e
mov ecx, 0x10
jmp 0x10002e4e
mov ecx, 0x11
jmp 0x10002e4e
mov ecx, 0x12
jmp 0x10002e4e
mov ecx, 0x13
jmp 0x10002e4e
mov ecx, 0x14
jmp 0x10002e4e
mov ecx, 0x16
jmp 0x10002e4e
mov ecx, 0x18
jmp 0x10002e4e
mov ecx, 0x19
jmp 0x10002e4e
mov ecx, 0x15
push 0x1388
call fcn.10005970
push eax
push 2
mov eax, 0x1001f700
call fcn.1000ab00
add esp, 0xc
pop ecx
ret

Function at 0x10002ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10016018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
cmp dword [0x1001fc74], 1
push edi
je 0x10002f48
mov ecx, dword [0x1001a3f4]
mov dword [0x1001fc3c], ebx
mov dword [0x1001fc40], ebx
mov dword [0x1001fc44], ebx
mov dword [0x1001fc48], ebx
mov dword [0x1001fc4c], ebx
mov dword [0x1001fc50], ebx
mov dword [0x1001fc54], ebx
mov dword [0x1001fc58], ebx
mov dword [0x1001fc5c], ebx
cmp ecx, dword [0x1001a3f8]
je 0x10002f0c
mov dword [0x1001a3f8], ecx
mov ecx, dword [0x1001a404]
cmp ecx, dword [0x1001a408]
je 0x10002f20
mov dword [0x1001a408], ecx
mov ecx, dword [0x1001a414]
cmp ecx, dword [0x1001a418]
je 0x10002f34
mov dword [0x1001a418], ecx
mov ecx, dword [0x1001a424]
cmp ecx, dword [0x1001a428]
je 0x10002f48
mov dword [0x1001a428], ecx
mov word [ebp - 0x3c], 0x38c1
call dword [sym.imp.MSVCR100.dll_rand]
and eax, 0x800000ff
jns 0x10002f62
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x1001f4ac]
mov edx, dword [str.PREMIUM]
mov byte [ebp - 0x3a], al
mov eax, dword [0x1001fc74]
mov dword [ebp - 0x38], eax
mov eax, dword [0x10013728]
mov byte [ebp - 0x39], bl
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
call fcn.1000acb0
push 0x100
mov esi, eax
push ebx
mov ecx, 9
lea edi, [ebp - 0x28]
push 0x10025060
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x100123f0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025060], cl
inc eax
cmp eax, 0x100
jb 0x10002fb0
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 0x10025060
push ebx
mov ecx, 0x1001a440
call fcn.10005210
movzx ecx, byte [ebp - 0x3b]
add esp, 0x18
lea edx, [ebp - 0x3c]
call fcn.10001850
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d9eb
mov esp, ebp
pop ebp
ret
Function at 0x10003ad0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x1001fbcc]
test eax, eax
je 0x10003b43
mov ecx, dword [eax]
cmp ecx, dword [0x1001fbe0]
jne 0x10003aef
mov dl, byte [0x1001fbe4]
cmp dl, byte [eax + 4]
je 0x10003b43
push 0x100
push 0
push 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10003b10
mov cl, byte [eax + 0x100113f0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10025060], cl
inc eax
cmp eax, 0x100
jb 0x10003b10
push 0x10025060
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 8
call fcn.1000a6e0
mov eax, dword [0x1001fbc8]
test eax, eax
je 0x10003bb3
mov edx, dword [eax]
cmp edx, dword [0x1001fbd8]
jne 0x10003b61
mov cl, byte [0x1001fbdc]
cmp cl, byte [eax + 4]
je 0x10003bb3
push 0x100
push 0
push 0x10025060
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10003b80
mov dl, byte [eax + 0x100114f0]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10025060], dl
inc eax
cmp eax, 0x100
jb 0x10003b80
push 0x10025060
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 8
call fcn.1000a6e0
mov eax, dword [0x1001fbc4]
test eax, eax
je 0x10003bf0
mov ecx, dword [eax]
cmp ecx, dword [0x1001fbd0]
jne 0x10003bd1
mov dl, byte [0x1001fbd4]
cmp dl, byte [eax + 4]
je 0x10003bf0
mov eax, 0x11
call fcn.1000ad70
push eax
push 0
mov ecx, 0x1001a440
call fcn.10005210
add esp, 8
call fcn.1000a6e0
pop ecx
ret
Function at 0x10004ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10016018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x1001a3f4]
mov dword [ebp - 0x48], eax
xor al, al
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x25], al
cmp edi, dword [0x1001a3f8]
je 0x10004dfe
mov ebx, dword [ebp - 0x38]
mov ecx, 4
lea edx, [ebp - 0x24]
sub ecx, edx
mov dword [ebp - 0x44], ecx
cmp byte [edi], 0
jne 0x10004dcf
test al, al
jne 0x10004d55
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
push ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x30]
lea ebx, [ebp - 0x2c]
call fcn.10004e60
test al, al
je 0x10004dfe
mov ebx, dword [ebp - 0x38]
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 0x10004dcc
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 0x10004dcc
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004dcc
mov edx, dword [ebp - 0x44]
mov ecx, 0x20
lea eax, [ebp - 0x24]
lea edx, [edx + edi + 4]
cmp ecx, 4
jb 0x10004e13
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x10004dcc
sub ecx, 4
add eax, 4
jmp 0x10004db8
mov al, byte [ebp - 0x25]
add edi, 0x48
cmp edi, dword [0x1001a3f8]
jne 0x10004d23
test al, al
je 0x10004dfe
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
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.1000d9eb
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x34]
lea esi, [edi + 0x28]
mov edi, dword [ebp - 0x40]
mov ecx, 8
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x30]
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.1000d9eb
mov esp, ebp
pop ebp
ret 4
Function at 0x10004e60
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10016018]
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 closesocket
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 0x10004eb3
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10004ec6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9eb
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 0x10004efd
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.1000d9eb
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 0x10004f3b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004f34
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004f34
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x10004f5b
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.1000d9eb
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.1000d9eb
mov esp, ebp
pop ebp
ret 8
Function at 0x100050f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10016018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1001a658]
push ebx
push esi
push edi
test eax, eax
js 0x100051fd
cmp eax, 1
jge 0x100051fd
mov esi, eax
imul esi, esi, 0x214
add esi, 0x1001a444
push str.MHP_LOG
inc eax
lea ebx, [esi + 4]
push 0x100
mov dword [0x1001a658], eax
push ebx
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x100051fd
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 0x100051d8
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d9eb
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 0x100051fd
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.1000d9eb
mov esp, ebp
pop ebp
ret