joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443250
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x443280
push str.Couldnt_set_desired_mode
push esi
call fcn.00423e10
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x443297
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push esi
call fcn.00423ed0
add esp, 0xc
mov eax, dword [esp + 0x18]
push ebp
cmp eax, 0x13
jne 0x4432b2
push ebx
push esi
call fcn.00443150
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x4433c3
mov edi, dword [esi + 0xc]
xor ebx, ebx
cmp dword [esi + 0x500], 2
mov dword [esp + 0x18], edi
jne 0x443331
mov eax, dword [esi + 0x134]
mov eax, dword [eax]
test eax, eax
je 0x443331
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
push esi
call fcn.0043b940
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4433f0
push 0x2f
push dword [esp + 0x18]
call fcn.00460910
add esp, 8
test eax, eax
je 0x443320
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x44332d
push dword [esp + 0x14]
call dword [0x4a204c]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x544]
test ecx, ecx
jne 0x44334f
cmp byte [esi + 0xd05], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x49d36b
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x486658
cmove eax, edx
push eax
push ecx
push 0x4891ec
call fcn.004283c0
push ebx
mov ebp, eax
call dword [0x4a204c]
add esp, 0x14
test ebp, ebp
jne 0x44338c
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x48d804
lea eax, [edi + 0x428]
push eax
push esi
call fcn.00459010
push ebp
mov edi, eax
call dword [0x4a204c]
add esp, 0x14
test edi, edi
jne 0x4433f0
mov eax, dword [esi + 0xc]
pop ebp
mov dword [eax + 0x4ac], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x4433dc
push 0xd
push 1
push esi
call fcn.00442cd0
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x4433f0
push 0xe
push 1
push esi
call fcn.00442cd0
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x449430
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0xc]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x148]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x44947c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00423e10
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.00449040
add esp, 0x10
pop esi
pop ebx
ret

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

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx + 0x134]
mov dword [esp + 8], eax
jne 0x44971f
push esi
push edi
lea eax, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], eax
cmp eax, edi
jae 0x44961d
mov byte [eax], 0xff
inc eax
mov dword [edi], eax
cmp eax, edi
jae 0x44961d
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44961d
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x449687
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x449687
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x449687
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x449687
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x449687
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x449687
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1eb8], eax
lea esi, [ebp + 0x1cb4]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.00449140
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x148]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4496df
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00423e10
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.004494a0
add esp, 0xc
lea eax, [ebp + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x148]
call edi
test eax, eax
jns 0x44971d
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00423e10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x44ab70
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x4a2074]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x428]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi + 0x13c]
push 0
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x44abf6
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.0045f210
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x44ac31
push str.Received_too_short_packet
push ebx
call fcn.00423e10
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d9c6
add esp, 0x88
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x44ac50.1
jmp dword [ecx*4 + 0x44ad5c]
cmp esi, 4
jle case.0x44ac50.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x44ac50.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebx
call fcn.00423d60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44acab
push 5
push edi
call fcn.0044b680
add esp, 8
mov eax, esi
jmp 0x44ac18
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.00433990
jmp 0x44ad31
movzx ecx, byte [edx + 2]
lea ebp, [edx + 4]
movzx eax, byte [edx + 3]
add esi, 0xfffffffc
shl ecx, 8
or ecx, eax
push esi
push ebp
mov dword [edi + 8], ecx
call fcn.0044b6f0
add esp, 8
cmp eax, esi
jae case.0x44ac50.4
push ebp
push str.TFTP_error:__s_n
push ebx
call fcn.00423ed0
jmp 0x44ad31
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.0044a900
add esp, 0xc
test eax, eax
je case.0x44ac50.4
jmp 0x44ac18
push str.Internal_error:_Unexpected_packet
push 0x48d804
push ebx
call fcn.00423e10
add esp, 0xc
push ebx
call fcn.00433d90
add esp, 4
test eax, eax
je 0x44ac16
push 5
push edi
call fcn.0044b680
add esp, 8
mov eax, 0x2a
jmp 0x44ac18
Function at 0x455420
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4a2074]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.00473b9a
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x45549f
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00410af0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.00423e10
push esi
call dword [0x4a204c]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x4555ff
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x4554f9
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00410af0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.00423e10
push 0
mov esi, 0x4d
call dword [0x4a204c]
add esp, 0x20
jmp 0x4555f1
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x455539
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00410af0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.00423e10
add esp, 0x1c
mov esi, 0x4d
jmp 0x4555dd
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x455567
jg 0x45554d
cmp edi, 0x100000
jbe 0x455567
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.00423e10
add esp, 0xc
mov esi, 0x4d
jmp 0x4555dd
lea eax, [edi + 1]
push eax
call dword [0x4a2048]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45557f
lea esi, [eax + 0x1b]
jmp 0x4555dd
test edi, edi
je 0x4555c4
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45561c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x455618
add esi, eax
cmp esi, edi
jb 0x455590
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00455220
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x4a204c]
add esp, 4
push dword [esp + 0x20]
call fcn.004659f3
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d9c6
add esp, 0x120
ret
mov edi, esi
jmp 0x4555c4
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00410af0
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.00423e10
add esp, 0x1c
mov esi, 0x4d
jmp 0x4555dd
Function at 0x45be10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4a2048]
mov edi, eax
add esp, 4
test edi, edi
jne 0x45be37
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x45be82
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x45be86
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x45bee6
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x45bea5
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x45bf17
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x492568
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x492569
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x45bef0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x45bf20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x20]
call fcn.00426600
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x4a2048]
mov edi, eax
add esp, 8
test edi, edi
je 0x45c088
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x45bf9c
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push ebp
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x18]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x45c001
mov dword [esp + 0x18], eax
mov ebx, eax
nop dword [eax + eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x45bfc0
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esi + 0x10]
jae 0x45c02d
mov eax, dword [esi + 4]
push 1
push 0x492568
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x492569
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x45c006
push dword [esp + 0x28]
call fcn.00426600
mov ecx, dword [edi]
push eax
push dword [esp + 0x2c]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x45c058
mov esi, dword [ebx + 0xc]
add esi, dword [edi + 8]
push dword [edi + 4]
mov eax, dword [ebx + 8]
push esi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push esi
push dword [edi + 8]
call eax
push dword [edi + 8]
mov eax, dword [ebx + 8]
push esi
call eax
push edi
call dword [0x4a204c]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
pop ecx
ret
Function at 0x4765d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00476447

Function at 0x47d8c0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047d413

Function at 0x43cf69
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43ccda
pop esi
mov ebx, 0xfb060384
add edx, edx
call fcn.0043cfaa
sub edx, ebx
xor dword [ecx], esi
and ebx, edx
add ecx, 1
dec ebx
mov ebx, 0xe8e54239
cmp ecx, edi
jne fcn.0043cf69
sub edx, ebx
dec ebx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebx, dword [eax]
fsubp st(4)
adc al, 0xe8
test al, 2
inc ecx
add byte [ebx + 0x40dc100d], cl
add byte [ebx + 0x51], dl
cmp eax, ecx
push edi
jge 0x403a7a
mov esi, dword [ebp + 8]
xor ecx, dword [esi + 0x3d]
push es
mov dword [esi + 0xc], ebx
cmp ebx, dword [esi + 0x1a]
pop esi
adc byte [ecx + 0x8249e], cl
add byte [ecx + 0x820a1], cl
movsd dword es:[edi], dword [esi]
mov dword [esi + 0x828], ebx
adc dword [esi + 0x66], ebx
invalid
pop edi
pop esi
pop ebx
test al, 0xed
pop ebp
inc edx
imul edx, dword [eax - 0x6ff06f70], 0x90a4904c

Function at 0x406840
Capabilities:
Connect socket

Disassembly:
inc ebx
or byte [eax - 0x20], ch
inc ax
add byte [esi - 0x75], dl
or al, 0x50
or bl, byte [ebx]
out dx, al
invalid
push ebp
mov ebp, esp
sub dword [edi], 0xde0210
mov edx, dword fs:[0x8b575608]
inc ebx
pop ebp
push ebx
clc
inc dword [ebp - 0x7c]
insb byte es:[edi], dx
add dword [eax], eax
add byte [ebx - 0x361aefb5], cl
je 0x94069c5
je 0x4068dd
xchg edx, eax
mov ecx, dword [esi + 0x2b]
std
push esi
sub byte [ecx + 0x52], dl
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
movsb byte es:[edi], byte [esi]
test esi, eax
add dword [eax], eax
add dl, bh
cli
xor eax, sym.imp.WSOCK32.dll_WSAGetLastError
call esi
test eax, eax
in eax, dx
test cl, bh
add byte [eax], al
add bh, bh
salc
js 0x406815
cld
or al, byte [eax]
sal dword [ebx + 0xf000b23], cl
test dword [ecx + 1], edx
add byte [eax], al
mov edi, dword [ebx + 0x20]
mov esi, dword [ebx + 0x24]
sub bh, al
or eax, esi
mov ch, 0xe
enter 0x435b, 0xffffffffffffffb4
and ecx, dword [ebx]
and bl, byte [ebx - 0x75]
cmp al, 0x5d
ret 8
inc dword [ecx + 0x7f]
push edi
jl 0x4068e7
sbb bh, bh
jae 0x4068eb
xor eax, eax
jmp 0x406910
push 0
push 0x5e4240
push esi
push edi
call 0x11cb530
push 0x1a
aam 0x40
inc edx
jo 0x406900
mov dword [edi - 0x77], edx
inc ebp
clc
call 0xf7b747
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
out 0x8d, eax
push esi
invalid

Function at 0x409340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
enter 0xfc4, 0xffffffffffffff85
mov edi, 0x90ffffff
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x10001550
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x1000156b
mov eax, 1
jmp 0x10001638
push 8
push 1
push 0x10045ca0
push 0x10045cf8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100015a4
push 0
push 1
push 0x10045d10
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100015c2
push 0x20
push 1
push 0x10045d68
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100015e0
push 0x28
push 1
push 0x10045dc0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001601
push 0
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001628
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10001626
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10001635
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10003d50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10051070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0x3a8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10003d91
mov dword [ebp - 0x1c], 0
jmp 0x10003e01
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 5], cl
add dword [ebp - 0xc], 1
cmp byte [ebp - 5], 0
jne 0x10003da0
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x10003dd6
mov dword [ebp - 0x18], 0
jmp 0x10003dfb
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.1000bbe0
mov dword [ebp - 0x30], esp
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.100038a0
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x10003e32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10003e32
mov dword [ebp - 0x20], 0
jmp 0x10003e39
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000afc9
mov esp, ebp
pop ebp
ret