joyce8/EMBER2024-capa huggingface dataset:
Function at 0x86abf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [esp + 0x8c]
push ebx
push ebp
push esi
mov ebx, dword [eax + 0x780]
push edi
mov edi, dword [eax]
mov dword [esp + 0x10], 0x80
mov edx, dword [ebx + 0x144]
lea eax, [esp + 0x10]
lea ebp, [ebx + 0x14c]
lea ecx, [esp + 0x18]
push eax
push ecx
mov eax, dword [ebp]
mov ecx, dword [ebx + 0x14]
add edx, 4
push 0
push edx
push eax
push ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebx + 0x13c], eax
mov eax, dword [ebx + 0x138]
test eax, eax
jne 0x86ac79
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x18]
mov edx, ecx
lea edi, [ebx + 0xb8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [ebx + 0x138], eax
mov eax, dword [ebx + 0x13c]
mov esi, 4
cmp eax, esi
jge 0x86acaa
push str.Received_too_short_packet
push edi
call fcn.00853f30
add esp, 8
mov dword [ebx + 0xc], 7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret
push ebp
call fcn.0086ae20
and eax, 0xffff
add esp, 4
mov dword [ebx + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x86acc7
jmp dword [eax*4 + 0x86ae10]
cmp dword [ebx + 0x13c], esi
jle case.0x86acc7.4
push ebp
call fcn.0086a7d0
mov cx, word [ebx + 0x30]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x86acc7.4
mov edx, dword [ebx + 0x13c]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x9c]
sub edx, esi
add eax, esi
push edx
push eax
push 1
push ecx
call fcn.00854460
mov esi, eax
add esp, 0x10
test esi, esi
je 0x86ad30
push 5
push ebx
call fcn.00869f20
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, dword [ebx + 0x13c]
mov ecx, dword [edi + 0x98]
sub eax, 4
cdq
add ecx, eax
mov dword [edi + 0x98], ecx
mov ebp, dword [edi + 0x9c]
adc ebp, edx
mov dword [edi + 0x9c], ebp
mov eax, dword [edi + 0x98]
mov edx, ebp
push edx
push eax
push edi
call fcn.008613f0
jmp 0x86add9
push ebp
call fcn.0086a7d0
mov ebp, dword [ebp]
and eax, 0xffff
add ebp, esi
mov esi, dword [ebx + 0x13c]
sub esi, 4
mov dword [ebx + 8], eax
push esi
push ebp
call fcn.0086ae40
add esp, 0xc
cmp eax, esi
jae case.0x86acc7.4
push ebp
push str.TFTP_error:__s_n
push edi
call fcn.00853e70
jmp 0x86add9
mov ecx, dword [ebx + 0x13c]
mov edx, dword [ebp]
sub ecx, 2
add edx, 2
push ecx
push edx
push ebx
call fcn.0086ae70
add esp, 0xc
test eax, eax
je case.0x86acc7.4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
push str.Internal_error:_Unexpected_packet
push 0x8c83b0
push edi
call fcn.00853f30
add esp, 0xc
mov eax, dword [esp + 0x9c]
push eax
call fcn.008615d0
add esp, 4
test eax, eax
je 0x86ac9d
push 5
push ebx
call fcn.00869f20
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
Function at 0x86d010
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x86d049
mov ecx, dword [esp + 0x194]
push eax
push str.WSAStartup_failed___d_
push ecx
call fcn.00853f30
add esp, 0xc
mov eax, 2
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ax, word [esp]
cmp al, 2
jne 0x86d069
xor edx, edx
mov dl, ah
test dl, dl
jne 0x86d069
xor eax, eax
add esp, 0x190
ret
mov eax, dword [esp + 0x194]
push str.insufficient_winsock_version_to_support_telnet
push eax
call fcn.00853f30
add esp, 8
mov eax, 2
add esp, 0x190
ret

Function at 0x86d1f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov al, byte [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
lea ecx, [esp + 0x14]
mov edx, dword [esi + 0x408]
mov edi, dword [esi]
push 3
push ecx
push edx
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], al
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x86d23d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00853f30
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esi]
push eax
push ebx
push str.SENT
push ecx
call fcn.0086d260
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x86e3e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push edi
mov eax, dword [eax]
mov dword [esp + 8], eax
mov edi, dword [eax + 0x128]
mov eax, dword [esp + 0x14]
cmp eax, 0x1f
jne 0x86e549
push ebp
push esi
lea ebp, [edi + 0x1cb0]
lea esi, [edi + 0x1eb0]
cmp ebp, esi
mov dword [esi], ebp
jae 0x86e41d
mov byte [ebp], 0xff
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x86e42b
mov byte [eax], 0xfa
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x86e439
mov byte [eax], 0x1f
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov cx, word [edi + 0x1ca8]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push ecx
call ebx
mov dx, word [edi + 0x1caa]
mov dword [esp + 0x1c], eax
push edx
call ebx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x86e468
mov dl, byte [esp + 0x1c]
mov byte [ecx], dl
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x86e479
mov dl, byte [esp + 0x1d]
mov byte [ecx], dl
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x86e486
mov byte [ecx], al
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x86e493
mov byte [ecx], ah
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x86e4a1
mov byte [eax], 0xff
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x86e4af
mov byte [eax], 0xf0
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
mov ebx, dword [esp + 0x10]
mov ecx, eax
lea edx, [edi + 0x1cb2]
sub ecx, ebp
mov dword [edi + 0x1eb4], eax
sub ecx, 2
mov dword [esi], ebp
push ecx
push edx
push 0x3e
push ebx
call fcn.0086e0d0
add esp, 0x10
mov esi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 0x408]
push eax
call esi
test eax, eax
jge 0x86e508
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00853f30
add esp, 0xc
lea ecx, [edi + 0x1cb3]
push 4
push ecx
push ebp
call fcn.0086e550
mov edx, dword [ebp + 0x408]
add esp, 0xc
add edi, 0x1cb7
push 0
push 2
push edi
push edx
call esi
pop esi
pop ebp
test eax, eax
jge 0x86e549
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00853f30
add esp, 0xc
pop edi
pop ebx
pop ecx
ret
Function at 0x870b10
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
shr eax, 0x1f
mov ebx, dword [edi]
add edx, eax
cmp edx, 2
je 0x870b4c
push str.Couldnt_set_desired_mode
push ebx
call fcn.00853f30
add esp, 8
mov eax, 0x11
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x870b63
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.00853e70
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, 0x13
jne 0x870b7b
push edi
call fcn.0086f4d0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x870b8f
push edi
call fcn.00870bc0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x870ba3
push edi
call fcn.00870cd0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x870bb3
push edi
call fcn.00870cf0
add esp, 4
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x871300
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov ebp, dword [ebx + 0x40c]
mov esi, dword [ebx]
lea eax, [esp + 0x20]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
push ebp
or edi, 0xffffffff
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x87134e
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
push ebp
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebp
push ebx
call fcn.00859e20
add esp, 8
cmp edi, 0xffffffff
jne 0x871378
push str.Error_accept__ing_server_connect
push esi
call fcn.00853f30
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push str.Connection_accepted_from_server_n
push esi
call fcn.00853e70
push 1
push edi
mov dword [ebx + 0x544], 0
mov dword [ebx + 0x40c], edi
call fcn.0087e630
mov dword [ebx + 0x85c], 1
mov eax, dword [esi + 0x600]
add esp, 0x10
test eax, eax
je 0x8713f1
push 1
push esi
call fcn.00853e10
mov ecx, dword [esi + 0x604]
push 1
push edi
push ecx
call dword [esi + 0x600]
push 0
push esi
mov edi, eax
call fcn.00853e10
add esp, 0x1c
test edi, edi
je 0x8713f1
push ebx
call fcn.0086fe10
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x87c370
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push 0
push 0
push 0x4004747b
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x87c3b2
lea edx, [esp + 0xc]
push 4
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
pop ecx
ret

Function at 0x87ccb0
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
je 0x87ccca
cmp dword [eax], 0
jne 0x87cce4
test ebx, ebx
je 0x87ccd3
cmp dword [ebx], 0
jne 0x87cce4
test esi, esi
je 0x87cd78
cmp dword [esi], 0
je 0x87cd78
mov ecx, dword [esp + 0x24]
push ebp
test ecx, ecx
lea ebp, [esp + 0xc]
jge 0x87ccf5
xor ebp, ebp
jmp 0x87cd38
jle 0x87cd2c
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x1c]
shl edx, 3
mov dword [esp + 0x10], edx
jmp 0x87cd38
test ecx, ecx
jne 0x87cd38
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x87cd45
cmp dword [esi], 0
je 0x87cd45
mov edx, esi
jmp 0x87cd47
xor edx, edx
test ebx, ebx
je 0x87cd54
cmp dword [ebx], 0
je 0x87cd54
mov ecx, ebx
jmp 0x87cd56
xor ecx, ecx
test eax, eax
je 0x87cd5f
cmp dword [eax], 0
jne 0x87cd61
xor eax, eax
push ebp
push edx
push ecx
push eax
mov eax, dword [esp + 0x28]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop ebp
pop esi
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0087cc80
add esp, 4
pop esi
pop ebx
add esp, 8
ret
Function at 0x881c40
Capabilities:
Move file

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0085c290
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 1
push ebx
push ebp
mov esi, eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x881ca1
push edi
push esi
call fcn.0085c290
push edx
push eax
call fcn.0085c330
add esp, 0x10
test edx, edx
jl 0x881ca8
jg 0x881c7e
test eax, eax
jb 0x881ca8
test edx, edx
jg 0x881ca8
jl 0x881c8b
cmp eax, 0x3e8
ja 0x881ca8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x881c63
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x8867e0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
mov byte [esi + edi - 1], 0
jne 0x886812
push 0x2e
push esi
call fcn.00846c90
add esp, 8
test eax, eax
je 0x886810
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x886860
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x20
push 0xf0000040
push 1
push 0
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x18], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x886889
add esp, 0x20
ret
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x10], ecx
push edx
mov dword [esp + 0x18], ecx
push eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x14], 8
mov dword [esp + 0x24], ecx
mov byte [esp + 0x15], 2
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.00886960
lea ecx, [esp + 0x20]
push 8
push ecx
call fcn.0088bf90
mov ecx, dword [esp + 0x10]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push 0
push 0
push 0x14
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x886908
mov edx, dword [esp]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0x20
ret
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 4]
mov dword [eax + 4], ecx
lea ecx, [esp + 4]
push edx
mov edx, dword [esp + 0xc]
push ecx
push eax
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
add esp, 0x20
ret
Function at 0x88c040
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 0xf0000040
push 1
lea edi, [esi + 4]
push 0
push 0
push esi
mov dword [esi], 0
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x88c07e
mov eax, dword [esi]
push edi
push 0
push 0
push 0x8002
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
ret

Function at 0x88c090
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
ret

Function at 0x88ca70
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push eax
call dword [0x8c5930]
mov edi, eax
add esp, 4
test edi, edi
jne 0x88ca93
pop edi
pop esi
ret
lea eax, [edi + 0xc]
push ebx
mov dword [edi], esi
mov dword [edi + 4], eax
mov ebx, dword [esi + 0xc]
mov edx, eax
add edx, ebx
mov ebx, dword [esp + 0x18]
mov dword [edi + 8], edx
mov ecx, dword [esi + 0x10]
cmp ebx, ecx
push ebp
jbe 0x88cade
push eax
call dword [esi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
push ebx
push eax
push ecx
call dword [esi + 4]
mov ebx, dword [edi + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [edi + 4]
add ebx, eax
push edx
push ebx
call dword [esi + 8]
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x1c], eax
jmp 0x88cae2
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 4]
push ecx
call dword [esi]
mov edx, dword [edi + 8]
push edx
call dword [esi]
mov eax, dword [esp + 0x24]
add esp, 8
xor ebp, ebp
test eax, eax
jbe 0x88cb48
mov dword [esp + 0x1c], eax
mov ebp, eax
mov al, byte [ebx]
mov cl, byte [0x8c015c]
xor al, cl
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
mov edx, dword [edi + 4]
push 1
push ecx
push edx
call dword [esi + 4]
mov al, byte [ebx]
mov dl, byte [0x8c015d]
xor al, dl
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
mov edx, dword [edi + 8]
push 1
push ecx
push edx
inc ebx
call dword [esi + 4]
mov eax, dword [esp + 0x34]
add esp, 0x18
dec eax
mov dword [esp + 0x1c], eax
jne 0x88cb01
cmp ebp, dword [esi + 0x10]
jae 0x88cb74
mov eax, dword [edi + 4]
push 1
push 0x8c015c
push eax
call dword [esi + 4]
mov ecx, dword [edi + 8]
push 1
push 0x8c015d
push ecx
call dword [esi + 4]
mov eax, dword [esi + 0x10]
add esp, 0x18
inc ebp
cmp ebp, eax
jb 0x88cb4d
pop ebp
mov eax, edi
pop ebx
pop edi
pop esi
ret

Function at 0x88ef25
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x88ef45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.008416d5
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x88ef68
test byte [esp + 8], 2
je 0x88ef68
call fcn.00841748
mov dword [eax], 0xd
call fcn.00841751
mov dword [eax], 5
jmp 0x88ef41
xor eax, eax
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40b15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40b168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40b14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40b145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40b145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret
Function at 0x10001050
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1ff
lea eax, [ebp - 0x203]
push 0
mov dword [ebp - 0x208], 0
push eax
mov byte [ebp - 0x204], 0
call fcn.1000f770
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 0
push 0x10023110
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 0x208]
push edx
lea eax, [ebp - 0x204]
push str..mailslotmailslot_xok
push eax
call fcn.100093bc
lea eax, [ebp - 0x204]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
add esp, 0xc
mov byte [esi], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100010e0
sub eax, edx
push eax
lea ecx, [ebp - 0x204]
push ecx
mov ecx, esi
call fcn.10001ef0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.100093ad
mov esp, ebp
pop ebp
ret
Function at 0x10001420
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ea58
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x30], esp
mov byte [ebp - 4], 2
push 0xffffffffffffffff
mov dword [ecx + 0x14], eax
push ebx
lea eax, [ebp + 8]
mov dword [ecx + 0x10], ebx
push eax
lea esi, [ebp - 0x44]
mov byte [ecx], bl
call fcn.10001c30
mov ecx, esi
call fcn.10001250
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0x1c
add eax, edx
je 0x1000157b
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x34]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10001c30
cmp dword [ebp - 0x18], 0x10
mov edx, dword [ebp - 0x2c]
jae 0x100014d8
lea edx, [ebp - 0x2c]
mov eax, edx
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100014f0
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x68]
call fcn.10001ef0
mov eax, dword [ebp - 0x68]
xor edi, edi
cmp dword [ebp - 0x54], 0x10
jae 0x10001511
lea eax, [ebp - 0x68]
push ebx
push ebx
push 3
push ebx
push 1
push 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001539
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x54], esi
jb 0x1000154f
mov edx, dword [ebp - 0x68]
push edx
call fcn.100093a2
add esp, 4
cmp edi, dword [ebp + 0x24]
jne 0x10001568
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x1000155f
lea eax, [ebp - 0x2c]
push eax
call fcn.10009921
add esp, 4
add dword [ebp - 0x34], 0x1c
dec dword [ebp - 0x30]
jne 0x100014bd
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
cmp esi, ebx
je 0x100015b4
cmp dword [ebp - 0x44], edi
je 0x100015a8
cmp dword [esi + 0x14], 0x10
jb 0x10001595
mov eax, dword [esi]
push eax
call fcn.100093a2
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
add esi, 0x1c
cmp esi, edi
jne 0x10001584
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.100093a2
add esp, 4
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x100015ca
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100093a2
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp + 0x1c], esi
jb 0x100015e8
mov eax, dword [ebp + 8]
push eax
call fcn.100093a2
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100093ad
mov esp, ebp
pop ebp
ret
Function at 0x10001610
Capabilities:
Create mailslot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100274a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp - 0x20]
call fcn.10001050
mov esi, 0x10
cmp dword [eax + 0x14], esi
jb 0x10001637
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp dword [ebp - 0xc], esi
jb 0x10001663
mov eax, dword [ebp - 0x20]
push eax
call fcn.100093a2
add esp, 4
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
cmp edi, 0xffffffff
jne 0x100016c3
lea esi, [ebp - 0x3c]
call fcn.10001050
cmp dword [eax + 0x14], 0x10
jb 0x10001685
mov eax, dword [eax]
push ebx
push 0xffffffffffffffff
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
cmp dword [ebp - 0x28], 0x10
mov esi, eax
jb 0x100016a4
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.100093a2
add esp, 4
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
cmp esi, 0xffffffff
je 0x100016bb
call fcn.10005530
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.100093ad
mov esp, ebp
pop ebp
ret