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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x9d3230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov ebx, dword [eax + 0x4e8]
lea ecx, [ebp - 0x8c]
push ecx
mov dword [ebp - 0x8c], 0x80
mov eax, dword [ebx + 0x13c]
mov ecx, dword [ebx + 0x148]
lea edx, [ebp - 0x84]
push edx
mov edx, dword [ebx + 0x14]
push 0
add eax, 4
push eax
push ecx
push edx
mov dword [ebp - 0x88], esi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [ebx + 0x130], 0
mov dword [ebx + 0x134], eax
jne 0x96c2d4
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebx + 0xb0]
push edx
call fcn.009341c0
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [ebx + 0x130], eax
mov edx, dword [ebx + 0x134]
cmp edx, 4
jge 0x96c307
push str.Received_too_short_packet
push esi
call fcn.00955740
add esp, 8
mov dword [ebx + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00939240
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x148]
call fcn.0096aed0
movzx eax, ax
mov dword [ebx + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x96c324
jmp dword [eax*4 + 0x96c474]
cmp edx, 4
jle case.0x96c324.4
lea eax, [ebx + 0x148]
call fcn.0096aee0
movzx ecx, word [ebx + 0x144]
inc ecx
cmp cx, ax
jne case.0x96c324.4
add edx, 0xfffffffc
push edx
mov edx, dword [ebx + 0x148]
add edx, 4
push edx
push 1
push esi
call fcn.00955aa0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x96c38e
mov ecx, 5
mov eax, ebx
call fcn.0096c1c0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00939240
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x134]
sub eax, 4
cdq
add dword [esi + 0x90], eax
mov ecx, dword [esi + 0x90]
adc dword [esi + 0x94], edx
mov eax, dword [esi + 0x94]
push eax
push ecx
push esi
call fcn.00965480
add esp, 0xc
jmp case.0x96c324.4
mov esi, dword [ebx + 0x148]
lea eax, [ebx + 0x148]
add esi, 4
add edx, 0xfffffffc
call fcn.0096aee0
movzx eax, ax
mov edi, edx
mov dword [ebx + 8], eax
call fcn.0096aef0
cmp eax, edi
jae 0x96c3fa
mov ecx, dword [ebp - 0x88]
push esi
push str.TFTP_error:__s
push ecx
call fcn.009556d0
add esp, 0xc
mov esi, dword [ebp - 0x88]
push esi
call fcn.00965da0
add esp, 4
test eax, eax
je 0x96c2f4
mov ecx, 5
mov eax, ebx
call fcn.0096c1c0
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00939240
mov esp, ebp
pop ebp
ret
add edx, 0xfffffffe
push edx
mov edx, dword [ebx + 0x148]
add edx, 2
push edx
push ebx
call fcn.0096af70
add esp, 0xc
test eax, eax
je case.0x96c324.4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00939240
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x9bc9d8
push esi
call fcn.00955740
add esp, 0xc
jmp case.0x96c324.4
Function at 0x96c810
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [ebp + 8]
push ebx
push esi
push 0
mov ebx, eax
mov eax, dword [edi + 0xc]
push 3
lea edx, [ebp - 4]
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], cl
mov byte [ebp - 2], bl
mov eax, dword [eax + 0x148]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x96c856
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00955740
add esp, 0xc
mov esi, dword [ebp + 8]
mov eax, ebx
mov ebx, str.SENT
mov ecx, edi
call fcn.0096c710
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x96d5f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x134]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
jne 0x96d74f
push esi
push edi
lea esi, [ebx + 0x1cb4]
lea edi, [ebx + 0x1eb4]
mov dword [edi], esi
cmp esi, edi
jae 0x96d627
mov byte [esi], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x96d632
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x96d63d
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebx + 0x1ca8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [ebp + 0xc], edx
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x96d66f
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x96d67c
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x96d686
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x96d690
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x96d69b
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x96d6a6
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov dword [ebx + 0x1eb8], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov esi, dword [ebp + 8]
push eax
lea ecx, [ebx + 0x1cb6]
mov eax, 0x3e
call fcn.0096cb80
mov edi, dword [ebp - 4]
mov edx, dword [edi + 0x148]
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 4
push 0
push 3
lea eax, [ebx + 0x1cb4]
push eax
push edx
call esi
test eax, eax
jns 0x96d705
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push str.Sending_data_failed___d_
push eax
call fcn.00955740
add esp, 0xc
mov edx, dword [ebp + 8]
lea ecx, [ebx + 0x1cb7]
push ecx
push edx
mov eax, 4
call fcn.0096d440
mov eax, dword [edi + 0x148]
add esp, 8
push 0
push 2
add ebx, 0x1cbb
push ebx
push eax
call esi
pop edi
pop esi
test eax, eax
jns 0x96d74f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 8]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.00955740
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x973000
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x9d3230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [edi + 0xc]
mov eax, dword [esi + 0x14c]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x973056
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push eax
push esi
push edi
call fcn.0095c380
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x97308c
push str.Error_accept__ing_server_connect
push edi
call fcn.00955740
add esp, 8
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00939240
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.009556d0
push 1
push ebx
mov dword [esi + 0x2c0], 0
mov dword [esi + 0x14c], ebx
call fcn.00987ed0
add esp, 0x10
mov dword [esi + 0x30c], 1
cmp dword [edi + 0x1d8], 0
je 0x97310e
push 1
push edi
call fcn.00953270
mov ecx, dword [edi + 0x1dc]
mov edx, dword [edi + 0x1d8]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.00953270
add esp, 0x1c
test ebx, ebx
je 0x97310e
push edi
call fcn.00972f60
add esp, 4
pop esi
mov eax, 0x2a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00939240
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00939240
mov esp, ebp
pop ebp
ret
Function at 0x976890
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx + 0xc]
cmp eax, 2
je 0x9768c9
push str.Couldnt_set_desired_mode
push ebx
call fcn.00955740
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x9768e0
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push ebx
call fcn.009556d0
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x9768f9
push edi
push ebx
call fcn.00976810
add esp, 8
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x97690a
call fcn.00973cb0
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x97691d
mov eax, ebx
call fcn.00976870
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x97692b
mov eax, ebx
call fcn.00976880
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x97e9c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
test ebx, ebx
je 0x97e9d2
cmp dword [ebx], 0
jne 0x97e9e4
test edi, edi
je 0x97e9db
cmp dword [edi], 0
jne 0x97e9e4
test esi, esi
je 0x97ea47
cmp dword [esi], 0
je 0x97ea47
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 8]
push edx
call fcn.009903b0
add esp, 0xc
test esi, esi
je 0x97ea01
cmp dword [esi], 0
jne 0x97ea03
xor esi, esi
test edi, edi
je 0x97ea10
cmp dword [edi], 0
je 0x97ea10
mov edx, edi
jmp 0x97ea12
xor edx, edx
test ebx, ebx
je 0x97ea31
cmp dword [ebx], 0
je 0x97ea31
push eax
mov eax, dword [ebp + 8]
push esi
push edx
mov ecx, ebx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
mov esp, ebp
pop ebp
ret
push eax
mov eax, dword [ebp + 8]
push esi
push edx
xor ecx, ecx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call fcn.0097e970
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x986a10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00960e30
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp + 8]
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
call fcn.00966440
mov ecx, dword [ebp + 0xc]
push ecx
mov esi, eax
call fcn.00966440
add esp, 0xc
push 1
push eax
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x986ac8
jmp 0x986a60
lea edx, [ebp - 0x24]
push edx
call fcn.00960e30
mov edx, dword [ebp - 0xc]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edx
mov edx, dword [ebp - 8]
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00960ed0
add esp, 0x20
test edx, edx
ja 0x986aee
jb 0x986aaf
cmp eax, 0x3e8
ja 0x986aee
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x986a60
test esi, esi
je 0x986ad5
push esi
call fcn.009345b5
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x986ae5
push eax
call fcn.009345b5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x986afb
push esi
call fcn.009345b5
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x986b0b
push eax
call fcn.009345b5
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x98b280
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x9d3230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
push edi
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x108], ecx
xor ebx, ebx
xor esi, esi
call fcn.00966440
add esp, 4
mov dword [ebp - 0x118], eax
test eax, eax
jne 0x98b2fa
push 0x100
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00985a70
push eax
mov eax, dword [ebp - 0x108]
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push eax
call fcn.00955740
add esp, 0x1c
lea esi, [ebx + 0x4d]
jmp 0x98b463
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10c], eax
cmp eax, 0xffffffff
jne 0x98b356
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00985a70
mov edx, dword [ebp - 0x108]
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push edx
call fcn.00955740
add esp, 0x1c
mov esi, 0x4d
jmp 0x98b463
lea ecx, [ebp - 0x124]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x98b3a0
push 0x100
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00985a70
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov eax, dword [ebp - 0x108]
push eax
call fcn.00955740
add esp, 0x1c
mov esi, 0x4d
jmp 0x98b456
mov edi, dword [ebp - 0x124]
cmp dword [ebp - 0x120], ebx
jl 0x98b3d8
jg 0x98b3b8
cmp edi, 0x100000
jbe 0x98b3d8
mov ecx, dword [ebp - 0x108]
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ecx
call fcn.00955740
mov esi, 0x4d
jmp 0x98b453
lea edx, [edi + 1]
push edx
call dword [0x9d433c]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x98b3f0
lea esi, [eax + 0x1b]
jmp 0x98b456
test edi, edi
je 0x98b431
push 0
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 0x10c]
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
mov dword [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x98b497
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x98b493
add esi, eax
cmp esi, edi
jb 0x98b3f4
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x11c]
push ecx
push ebx
push edx
mov edx, dword [ebp - 0x110]
mov ecx, edi
mov byte [edi + ebx], 0
call fcn.0098b010
mov esi, eax
add esp, 0xc
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x9d4340]
mov eax, dword [ebp - 0x118]
add esp, 4
test eax, eax
je 0x98b480
push eax
call fcn.009345b5
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00939240
mov esp, ebp
pop ebp
ret
mov edi, esi
jmp 0x98b431
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00985a70
mov edx, dword [ebp - 0x110]
push eax
push edx
push str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x98b387
Function at 0x98be50
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x9d3230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0x1c]
mov esi, 8
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x98bee1
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0xc]
mov eax, ebx
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
call fcn.0098bdc0
mov ecx, esi
push 8
push ecx
call fcn.009914c0
mov ecx, dword [ebp - 0x1c]
add esp, 8
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x98bef2
mov edx, dword [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00939240
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x24]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00939240
mov esp, ebp
pop ebp
ret

Function at 0x98d9a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x98d9d3
push 0x2e
push esi
call fcn.00939350
add esp, 8
test eax, eax
je 0x98d9d1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x991510
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
push esi
mov dword [esi], 0
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x991549
mov eax, dword [esi]
push edi
push 0
push 0
push 0x8002
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
ret
Function at 0x9929d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x9d433c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x9929fb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x992a42
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x992a45
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x992aa6
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x992a70
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x992adf
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x9c80aa
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x9c80ab
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x992ab0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x992bb0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x992be3
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x55740680
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x58d874bf
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x43b641
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
sub edx, 0x63a7b5f6
call fcn.0043b673
sub ebx, 0x9acea85f
xor dword [eax], ecx
inc edx
inc eax
add edx, edx
cmp eax, edi
jne fcn.0043b641
push 0xcd6a8bc8
pop edx
ret
Function at 0x4064b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596393
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x60e070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.005431f0
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x406569
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x406569
call fcn.00405330
mov edi, eax
jmp 0x406685
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40658c
call fcn.00405330
jmp 0x406678
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x4065aa
call fcn.00405330
jmp 0x406678
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4065cb
mov edi, 0x8007000e
jmp 0x40667a
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4066c0
jb 0x4065e9
cmp eax, 0xffffffff
ja 0x4066c0
cmp eax, 0x400
jbe 0x4065fe
push eax
lea ecx, [ebp - 0x424]
call fcn.00409de0
jmp 0x406624
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x406624
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x40663b
mov edi, 0x8007000e
jmp 0x40667a
push edi
push dword [ebp - 0x424]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40665b
call fcn.00405330
jmp 0x406678
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.004077c0
mov edi, eax
test esi, esi
je 0x406685
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4066a0
lea ecx, [ebp - 0x424]
call fcn.00409ba0
nop
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053f5d9
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00405180
int3