joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5187b7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x53c074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x48]
mov esi, ecx
push 0
push eax
mov ebx, edx
mov dword [ebp - 0x4c], esi
call fcn.004c6150
add esp, 0xc
mov edx, ebx
mov ecx, esi
call fcn.005188d3
mov edi, eax
mov dword [ebx + 0x50], edi
cmp edi, 0xffffffff
jne 0x5187fc
push 0xfffffffffffffff9
pop eax
jmp 0x5188c4
cmp dword [esi], 1
jl 0x51885d
mov edx, dword [esi + 0x10]
shr edx, 8
and edx, 0xf
mov dword [ebx + 0xd4], edx
mov eax, dword [esi + 0x10]
shr eax, 4
and eax, 0xf
mov dword [ebx + 0xd8], eax
mov eax, dword [esi + 0x10]
and eax, 0xf
mov dword [ebx + 0xdc], eax
mov eax, dword [esi + 0x10]
mov ecx, eax
shr ecx, 0x10
shr eax, 0x14
and ecx, 0xf
movzx eax, al
cmp edi, 1
jne 0x518846
cmp edx, 0xf
jb 0x518848
add edx, eax
mov dword [ebx + 0xe0], edx
shl ecx, 4
add ecx, dword [ebx + 0xd8]
mov dword [ebx + 0xe4], ecx
mov eax, dword [esi + 0x200]
sub eax, 0x8000000
cmp eax, 4
jl 0x5188a6
push 0xc
add esi, 0x220
lea edi, [ebp - 0x48]
pop ecx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
cmp byte [ebp - 0x48], 0x20
jne 0x51888b
inc eax
cmp byte [ebp + eax - 0x48], 0x20
je 0x518883
lea ecx, [ebp - 0x48]
add eax, ecx
push 0x40
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.004cbac0
mov esi, dword [ebp - 0x4c]
add esp, 0xc
mov byte [ebx + 0x40], 0
mov edx, ebx
mov ecx, esi
call fcn.00518a91
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0xf0], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c3717
leave
ret
Function at 0x519319
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x53c074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
and dword [ebp - 0x8c], 0
mov esi, ecx
push edi
push 2
pop ebx
push 9
mov edi, edx
mov dword [ebp - 0xec], ebx
pop edx
push 0xa
pop ecx
push 0xb
pop eax
push 5
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x200]
mov dword [ebp - 0x2c], 0x14
mov dword [ebp - 0x28], 0x3a
mov dword [ebp - 0x24], 0x16
mov dword [ebp - 0x20], 0x37
mov dword [ebp - 0x1c], 0x19
mov dword [ebp - 0x18], 0x3b
mov dword [ebp - 0x14], 0x1e
mov dword [ebp - 0x10], 0x39
mov dword [ebp - 0xc], 0x1f
mov dword [ebp - 8], 0x38
mov dword [ebp - 0xf4], 1
mov dword [ebp - 0xf0], 0x3f
mov dword [ebp - 0xe8], 0x40
mov dword [ebp - 0xe4], 5
mov dword [ebp - 0xe0], 0x41
mov dword [ebp - 0xdc], 6
mov dword [ebp - 0xd8], 0x43
mov dword [ebp - 0xd4], 7
mov dword [ebp - 0xd0], 0x42
mov dword [ebp - 0xcc], 8
mov dword [ebp - 0xc8], 0x44
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc0], 0x45
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], 0x46
mov dword [ebp - 0xb0], 0x53
mov dword [ebp - 0xac], 0xc
mov dword [ebp - 0xa8], 0x48
mov dword [ebp - 0xa4], 0xd
mov dword [ebp - 0xa0], 0x49
mov dword [ebp - 0x9c], 0x10
mov dword [ebp - 0x98], 0x55
mov dword [ebp - 0x94], 0x15
mov dword [ebp - 0x90], 0x56
mov dword [ebp - 0x88], 0x4a
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x80], 0x4b
mov dword [ebp - 0x78], 0x4c
mov dword [ebp - 0x74], 3
mov dword [ebp - 0x70], 0x4d
mov dword [ebp - 0x6c], 4
mov dword [ebp - 0x68], 0x4e
mov dword [ebp - 0x60], 0x4f
mov dword [ebp - 0x5c], 6
mov dword [ebp - 0x58], 0x50
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x50], 0x51
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], 0x5a
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0x5b
mov dword [ebp - 0x38], 0x5c
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x30], 0x5d
pop ebx
mov dword [ebp - 0x64], ebx
cmp eax, reloc.WS2_32.dll_accept
jb 0x519552
push edi
push dword [esi + 0x21c]
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.0051912b
push edi
push dword [esi + 0x218]
lea ecx, [ebp - 0xf4]
push 0xd
pop edx
call fcn.0051912b
mov eax, dword [esi + 0x200]
add esp, 0x10
cmp eax, reloc.WS2_32.dll_getsockopt
jb 0x519576
push edi
push dword [esi + 0x27c]
lea ecx, [ebp - 0x8c]
push 0xc
pop edx
call fcn.0051912b
mov eax, dword [esi + 0x200]
pop ecx
pop ecx
cmp eax, 0x8000001a
jb 0x519597
mov byte [edi + 0x16c], 1
mov eax, dword [esi + 0x3a0]
and eax, 1
inc eax
shl eax, 6
mov dword [edi + 0x168], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c3717
leave
ret
Function at 0x4b5a18
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffe08
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x11f4], ebx
mov dword [ebp - 0x11f8], ebx
mov dword [ebp - 0x11ec], ebx
mov dword [ebp - 0x11f0], ebx
mov dword [ebp - 0x11e8], ebx
mov dword [ebp - 0x1004], ecx
mov dword [ebp - 0x11cc], edx
mov dword [ebp - 0x11d0], eax
lea esi, [ebp - 0x11de]
lea edi, [ebp - 0x11d0]
xor eax, eax
push ebp
push 0x4b5c45
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x11d4], eax
xor eax, eax
mov dword [ebp - 0x11c8], eax
mov eax, dword [edi]
add eax, 0x10
push eax
lea ecx, [ebp - 0x11c4]
mov edx, dword [ebp - 0x1004]
mov eax, dword [ebp - 0x11cc]
call 0x14b26a8
cmp dword [ebp - 0x1084], 0x418
jle 0x4b5ada
lea ecx, [ebp - 0x11e8]
mov edx, dword [ebp - 0x1004]
mov al, 0xb7
call 0x14a932c
mov ecx, dword [ebp - 0x11e8]
mov dl, 1
mov eax, dword [0x40aca8]
call 0x1411a64
call 0x1404a74
lea eax, [ebp - 0x11f0]
lea edx, [ebp - 0x1184]
mov ecx, 0x80
push 0
call 0x14055f4
mov edx, dword [ebp - 0x11f0]
lea ecx, [ebp - 0x11ec]
mov eax, dword [edi]
mov eax, dword [eax]
call 0x14b5374
mov edx, dword [ebp - 0x11ec]
mov eax, dword [edi]
add eax, 0x14
call 0x1406448
lea eax, [ebp - 0x11f8]
lea edx, [ebp - 0x1104]
mov ecx, 0x80
push 0
call 0x14055f4
mov edx, dword [ebp - 0x11f8]
lea ecx, [ebp - 0x11f4]
mov eax, dword [edi]
mov eax, dword [eax]
call 0x14b5374
mov edx, dword [ebp - 0x11f4]
mov eax, dword [edi]
add eax, 0x18
call 0x1406448
lea eax, [ebp - 0x1078]
movzx eax, byte [eax]
mov edx, dword [edi]
mov byte [edx + 0x1d], al
mov ebx, dword [ebp - 0x1080]
test ebx, ebx
jle 0x4b5c06
push ebp
mov eax, esi
mov edx, 0xa
call 0x14b59a0
pop ecx
mov eax, dword [esi + 6]
push eax
mov eax, dword [edi]
mov eax, dword [eax]
mov ecx, dword [esi + 2]
movzx edx, word [esi]
call 0x14b2e5c
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0
jne 0x4b5ba7
push ebp
call 0x14b57f8
pop ecx
xor eax, eax
push ebp
push 0x4b5bd8
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x11e4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x11e4]
add eax, 0x12
call 0x14b59a0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b5bf2
mov edx, dword [ebp - 0x11e4]
mov eax, dword [edi]
call 0x14b2e98
dec ebx
jne 0x4b5b70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5c4c
lea eax, [ebp - 0x11f8]
call 0x140527c
lea eax, [ebp - 0x11f4]
call 0x1406438
lea eax, [ebp - 0x11f0]
call 0x140527c
lea eax, [ebp - 0x11ec]
mov edx, 2
call 0x1406440
ret
Function at 0x40987c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409930
jmp 0x409925
cmp dword [esi + 0x10], 0x1000
jne 0x409911
test byte [esi + 0x15], 1
jne 0x409911
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4098d0
cmp eax, 2
je 0x4098d0
cmp eax, 0x10
je 0x4098d0
cmp eax, 0x20
jne 0x4098e5
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4098e5
mov bl, 1
xor ebp, ebp
jmp 0x4098f6
mov eax, dword [esi]
add eax, ebp
call fcn.00409874
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4098e9
test bl, bl
je 0x409911
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409930
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4098a8
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401000
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, 0x5bfe
mov eax, ecx
mov dword [0x4b4752], eax
mov dword [0x4b4739], 0
mov eax, dword [0x4b4739]
mov dword [0x4b48ef], eax
mov dword [0x4b49c1], 0
mov eax, dword [0x4b49c1]
mov eax, ebx
xor ebx, eax
test dword [0x4b428b], eax
jne 0x401045
mov ebx, 0x19c2
sub eax, ebx
dec eax
shl eax, 1
ror eax, 1
or eax, dword [0x4b43b9]
je 0x401077
sub eax, dword [0x4b47dd]
dec eax
mov ebx, 0x11e8
add eax, ebx
dec eax
or eax, ebx
mov ebx, 0x1dd0
sub eax, ebx
add eax, dword [0x4b4a1d]
xor ebx, eax
sub eax, dword [0x4b46db]
shr eax, 1
add dword [0x4b42db], eax
jmp fcn.00402754
Function at 0x10001aef
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
test edx, edx
je 0x10001b10
cmp word [edx], 0x5a4d
jne 0x10001b10
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x10001b10
mov eax, dword [ecx + 0x50]
ret 4
Function at 0x10002844
Capabilities:
Delete file

Disassembly:
mov eax, 0x10005e50
call fcn.10005bf0
sub esp, 0x164
push ebx
push esi
push edi
push 1
pop edi
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call sub.gdiplus.dll_GdiplusStartup
push dword [ebp + 8]
lea eax, [ebp - 0x170]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x170]
pop ecx
push 0x10008100
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea ecx, [ebp - 0x170]
sub ecx, 3
add eax, ecx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
pop ecx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
push ebx
push ebx
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x170]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10006218
mov dword [ebp - 0x24], ebx
push eax
push dword [ebp - 0x14]
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], ebx
push eax
push str.image_jpeg
call fcn.100029b7
mov dword [ebp - 0x5c], edi
mov esi, 0x10006220
lea edi, [ebp - 0x58]
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
push 1
mov dword [ebp - 0x40], eax
pop esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x44], 4
push dword [ebp - 0x18]
mov dword [ebp - 0x48], esi
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, ebx
je 0x10002974
mov dword [ebp - 0x20], eax
push dword [ebp - 0x14]
call fcn.10005bb6
push dword [ebp - 0x18]
call fcn.10005bb6
pop ecx
mov dword [ebp - 0x28], 0x10006218
pop ecx
push dword [ebp - 0x24]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x2c]
call sub.gdiplus.dll_GdiplusShutdown
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100030d3
Capabilities:
Create thread

Disassembly:
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
push esi
push esi
push 0x10002fc4
push esi
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push esi
push esi
push esi
push 0x1000307b
push esi
push esi
call edi
push eax
call ebx
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x10003270
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100032ad
cmp byte [ebp - 0x190], 2
jne 0x100032a7
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x100032a7
push 1
pop eax
leave
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
leave
ret

Function at 0x10003367
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100033ae
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x100033ae
movsx eax, word [eax + 0xa]
push eax
lea eax, [ebp - 0xc]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x100033b2
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100033d0
xor eax, eax
jmp 0x1000340f
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000340d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x1000340f
mov eax, esi
pop esi
leave
ret
Function at 0x10003648
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x1008f3f0], esi
jne 0x1000367d
push edi
push esi
push esi
push esi
push 0x100039b2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [esp + 0xc], esi
mov edi, eax
je 0x10003675
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
Function at 0x10003dea
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x10003da6
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x1000439c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
jle 0x100043ec
push esi
inc cl
movzx ecx, cl
mov edx, dword [eax + ecx*4 + 8]
mov dword [ebp + 8], ecx
lea esi, [eax + ecx*4 + 8]
mov cl, dl
add cl, bl
movzx ebx, cl
mov ecx, dword [eax + ebx*4 + 8]
mov dword [esi], ecx
mov esi, dword [ebp + 0xc]
add cl, dl
mov dword [eax + ebx*4 + 8], edx
movzx ecx, cl
add esi, edi
mov cl, byte [eax + ecx*4 + 8]
xor byte [esi], cl
mov ecx, dword [ebp + 8]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x100043b1
pop esi
mov dword [eax + 4], ebx
pop edi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc
Function at 0x10004b20
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov esi, 0x104
push edi
push esi
push 0x1008f5fc
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push 0x1008f4f8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x1008f3f4
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, 0x1008f700
push esi
push ebx
push 0
call edi
mov eax, dword [0x1008fa0c]
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
test eax, eax
je 0x10004b7b
push esi
mov esi, 0x1008f908
push esi
push eax
call edi
push esi
call ebp
pop ecx
push ebx
call ebp
push ebx
call fcn.10004b97
push eax
push 0x1008f804
call sub.MSVCRT.dll_strcpy
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10004d09
Capabilities:
Set file attributes

Disassembly:
push 6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x10004d9b
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x58], eax
ret

Function at 0x1000586c
Capabilities:
Accept command line arguments
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, str.ServerMain
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x100058b4
add esi, 0xb
push 0
push esi
call dword [sym.imp.MSVCRT.dll__access]
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x100058b4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1000589b
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100058be
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
leave
ret 8
Function at 0x10005930
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and byte [ebp - 0x10], 0
push edi
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
push dword [ebp + 8]
stosd dword es:[edi], eax
push dword [ebp + 0xc]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
pop edi
jne 0x1000597f
mov eax, dword [ebp + 8]
shr eax, 0x10
test ax, ax
jne 0x10005977
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x100088e0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret 8
Function at 0x1000c50b
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100160c8
push ebx
push esi
call fcn.10015ff4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10015f8a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10016075
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100160c7
push edi
push eax
call fcn.10014d70
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10016095
call fcn.10014d20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100160c6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10015f8a
add esp, 0x20
test eax, eax
jne 0x100160b4
push edi
call fcn.10014d20
jmp 0x100160bc
push ebx
call fcn.10014d20
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10018b00
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.10023ef0
mov eax, dword [0x100be014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10017743
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10018b42
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10018cb9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10023f20
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100bf9e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10019b46
mov ecx, dword [esi*4 + 0x100bf9e8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10018cb2
cmp eax, dword [edi + ecx + 0x24]
jne 0x10018cb2
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10018cb2
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10019b46
add esp, 0x14
cmp edx, esi
jl 0x10018cb2
jg 0x10018c0d
cmp eax, esi
jb 0x10018cb2
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x10018cb2
jl 0x10018c2f
cmp dword [ebp - 0x1008], eax
ja 0x10018cb2
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x10018c54
cmp ebx, esi
je 0x10018c99
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x10018c99
mov al, byte [ecx]
cmp al, 0xd
jne 0x10018c7a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10018c86
cmp byte [ecx + 1], 0xa
jne 0x10018c86
inc ecx
jmp 0x10018c86
movzx eax, al
movsx eax, byte [eax + 0x100be800]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10018c60
cmp edx, ebx
jne 0x10018c60
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x10018cb7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10005873
leave
ret
Function at 0x10018f38
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x10018f52
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x10018f69
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x10018fc1
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.10020371
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x10018fc1
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10018fc1
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10018fc1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x10018fbb
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x10018fbd
xor bl, bl
mov al, bl
jmp 0x10018fc3
xor al, al
pop esi
pop ebx
leave
ret