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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0xb04008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x378]
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x8c], 0x80
lea eax, [ebp - 0x88]
push eax
mov eax, dword [edi + 0x13c]
lea esi, [edi + 0x148]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0xa83bed
push dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.00a9d650
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov edx, dword [edi + 0x134]
cmp edx, 4
jge 0xa83c20
push str.Received_too_short_packet
push ebx
call fcn.00a61a30
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00a828a0
movzx eax, ax
mov dword [edi + 0xc], eax
dec eax
cmp eax, 5
ja case.0xa83c37.1
jmp dword [eax*4 + 0xa83d7c]
cmp edx, 4
jle case.0xa83c37.4
mov ecx, esi
call fcn.00a828c0
movzx ecx, word [edi + 0x144]
inc ecx
cmp cx, ax
jne case.0xa83c37.4
lea eax, [edx - 4]
mov ecx, ebx
push eax
mov eax, dword [esi]
mov edx, 1
add eax, 4
push eax
call fcn.00a57c10
mov esi, eax
add esp, 8
test esi, esi
je 0xa83c9d
mov edx, 5
mov ecx, edi
call fcn.00a83850
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
mov ecx, ebx
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
call fcn.00a6d260
add esp, 8
jmp case.0xa83c37.4
mov eax, dword [esi]
lea ecx, [edi + 0x148]
add eax, 4
lea esi, [edx - 4]
mov dword [ebp - 0x90], eax
call fcn.00a828c0
mov ecx, dword [ebp - 0x90]
mov edx, esi
movzx eax, ax
mov dword [edi + 8], eax
call fcn.00a828e0
cmp eax, esi
jae case.0xa83c37.4
push dword [ebp - 0x90]
push str.TFTP_error:__s
push ebx
call fcn.00a61af0
jmp 0xa83d46
lea eax, [edx - 2]
mov ecx, edi
mov edx, dword [esi]
push eax
add edx, 2
call fcn.00a82960
add esp, 4
test eax, eax
je case.0xa83c37.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0xad4b7c
push ebx
call fcn.00a61a30
add esp, 0xc
mov ecx, ebx
call fcn.00a6dbb0
test eax, eax
je 0xa83c0d
mov edx, 5
mov ecx, edi
call fcn.00a83850
mov ecx, dword [ebp - 4]
mov eax, 0x2a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
Function at 0xa85a60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0xb04008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
push eax
mov ebx, dword [edi + 0xc]
mov esi, dword [ebx + 0x124]
push esi
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0xa85b7a
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
mov dword [ebp - 0x90], esi
cmp esi, 0xffffffff
je 0xa85b7a
push str.Connection_accepted_from_server
push edi
call fcn.00a61af0
add esp, 8
mov byte [ebx + 0x1cd], 0
mov edx, 1
mov ecx, esi
call fcn.00a986b0
lea eax, [ebp - 0x90]
mov edx, ebx
push eax
push ecx
mov ecx, edi
call fcn.00a77050
add esp, 8
test eax, eax
jne 0xa85b8d
cmp dword [edi + 0x1ac], eax
je 0xa85b67
mov dl, 1
mov ecx, edi
call fcn.00a57880
mov eax, dword [edi + 0x1ac]
push 1
push dword [ebp - 0x90]
push dword [edi + 0x1b0]
call eax
add esp, 0xc
xor dl, dl
mov ecx, edi
mov esi, eax
call fcn.00a57880
test esi, esi
je 0xa85b67
mov edx, ebx
call fcn.00a859a0
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
push str.Error_accept__ing_server_connect
push edi
call fcn.00a61a30
add esp, 8
mov eax, 0x1e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
Function at 0xa87d60
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
lea eax, [edx - 0xc8]
push edi
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0xa87d8e
push str.Couldnt_set_desired_mode
push esi
call fcn.00a61a30
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp edx, 0xc8
je 0xa87da5
push edx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00a61af0
add esp, 0xc
mov al, byte [ebp + 8]
cmp al, 0x13
jne 0xa87dbc
mov edx, ebx
mov ecx, esi
call fcn.00a86d20
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0xa87dce
mov ecx, esi
call fcn.00a86d70
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0xa87de0
mov ecx, esi
call fcn.00a86e80
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0xa87ded
mov ecx, esi
call fcn.00a86e90
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov byte [ebp - 4], 0xff
mov ecx, dword [ebp + 8]
mov ebx, edx
push 0
mov byte [ebp - 2], cl
lea ecx, [ebp - 4]
mov eax, dword [esi + 0xc]
push 3
push ecx
mov byte [ebp - 3], bl
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0xa8a907
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00a61a30
add esp, 0xc
push dword [ebp + 8]
mov edx, str.SENT
mov ecx, esi
push ebx
call fcn.00a8a7c0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov eax, dword [edi + 0x124]
mov ecx, dword [eax + esi*4 + 8]
sub ecx, 0
je 0xa8ac04
sub ecx, 2
je 0xa8abb4
sub ecx, 1
jne 0xa8abe4
mov ecx, dword [eax + esi*4 + 0x408]
sub ecx, 0
je 0xa8aba8
sub ecx, 1
jne 0xa8abe4
mov dword [eax + esi*4 + 8], 1
mov dword [eax + esi*4 + 0x408], ecx
pop edi
pop esi
pop ebx
ret
mov dword [eax + esi*4 + 8], 0
pop edi
pop esi
pop ebx
ret
mov ecx, dword [eax + esi*4 + 0x408]
sub ecx, 0
je 0xa8abe8
sub ecx, 1
jne 0xa8abe4
mov dword [eax + esi*4 + 8], 3
mov dword [eax + esi*4 + 0x1008], ecx
push esi
mov edx, 0xfc
mov ecx, edi
call fcn.00a8a8c0
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [eax + esi*4 + 0x1808], 1
mov dword [eax + esi*4 + 8], 1
jne 0xa8abe4
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.00a8b620
cmp dword [eax + esi*4 + 0x808], 1
lea ebx, [eax + esi*4]
jne 0xa8ac3e
push esi
mov edx, 0xfb
mov dword [eax + esi*4 + 8], 1
mov ecx, edi
call fcn.00a8a8c0
add esp, 4
cmp dword [ebx + 0x1808], 1
jne 0xa8abe4
mov edx, esi
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.00a8b620
cmp dword [ebx + 0x1808], 1
jne 0xa8abd4
push esi
mov edx, 0xfb
mov dword [eax + esi*4 + 8], 1
mov ecx, edi
call fcn.00a8a8c0
add esp, 4
mov ecx, edi
mov edx, esi
pop edi
pop esi
pop ebx
jmp fcn.00a8b620
Function at 0xa8b3a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0xb04008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov edx, 0x3c
push esi
push edi
mov dword [ebp - 0x810], ebx
mov edi, dword [ebx + 0x124]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x80c], eax
mov eax, dword [edi + 0x1eb8]
sub eax, dword [edi + 0x1eb4]
add eax, 2
push eax
lea eax, [edi + 0x1cb4]
push eax
call fcn.00a8ad00
mov eax, dword [edi + 0x1eb4]
add esp, 8
mov cl, byte [eax]
inc eax
mov dword [edi + 0x1eb4], eax
cmp cl, 0x18
je 0xa8b568
cmp cl, 0x23
je 0xa8b541
cmp cl, 0x27
jne 0xa8b600
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x808]
push 0x800
push eax
call fcn.00a64e30
mov edi, dword [edi + 0x1cb0]
add esp, 0x1c
mov esi, 4
test edi, edi
je 0xa8b4db
mov edx, dword [edi]
mov eax, edx
lea ebx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xa8b460
sub eax, ebx
inc eax
add eax, esi
cmp eax, 0x7fa
jae 0xa8b4ce
push 0x2c
push edx
call fcn.00a9fc60
mov edx, eax
mov ebx, 0x800
lea eax, [ebp - 0x808]
add esp, 8
sub ebx, esi
add eax, esi
test edx, edx
jne 0xa8b4a7
push dword [edi]
push edx
push str._c_s
push ebx
push eax
call fcn.00a64e30
add esp, 0x14
jmp 0xa8b4cc
mov ecx, dword [edi]
lea eax, [edx + 1]
push eax
push 1
push ecx
sub edx, ecx
lea eax, [ebp - 0x808]
push edx
push 0
push str._c_.s_c_s
add eax, esi
push ebx
push eax
call fcn.00a64e30
add esp, 0x20
add esi, eax
mov edi, dword [edi + 4]
test edi, edi
jne 0xa8b455
mov ebx, dword [ebp - 0x810]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, esi
push str._c_c
push eax
lea eax, [ebp - 0x808]
add eax, esi
push eax
call fcn.00a64e30
add esp, 0x14
lea eax, [esi + 2]
push 0
push eax
lea eax, [ebp - 0x808]
push eax
mov eax, dword [ebp - 0x80c]
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0xa8b53b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00a61a30
add esp, 0xc
push esi
jmp 0xa8b5ea
add edi, 0x1c28
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xa8b550
push 0xf0
push 0xff
push edi
push 0
push 0x23
jmp 0xa8b589
add edi, 0x1c08
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xa8b573
push 0xf0
push 0xff
push edi
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, edx
lea eax, [ebp - 0x808]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.00a64e30
add esp, 0x28
lea eax, [ebp - 0x808]
push 0
push esi
push eax
mov eax, dword [ebp - 0x80c]
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0xa8b5e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00a61a30
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x806]
mov edx, 0x3e
push eax
mov ecx, ebx
call fcn.00a8ad00
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
Function at 0xa8c560
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0xa8c6cd
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0xa8c6b9
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0xa8c5b0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xa8c5a2
sub eax, edx
lea ecx, [eax + 1]
jmp 0xa8c5b2
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
cmp eax, 2
jne 0xa8c5c4
mov eax, 0x10
jmp 0xa8c5d2
cmp eax, 0x17
jne 0xa8c677
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0xa8c677
mov edx, dword [esi + 0x10]
test edx, edx
je 0xa8c677
cmp edx, eax
jb 0xa8c677
add ecx, 0x20
add eax, ecx
push eax
call dword [0xb0497c]
mov edi, eax
add esp, 4
test edi, edi
je 0xa8c6ae
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.00a9d650
mov edx, dword [ebp - 8]
add esp, 0xc
test edx, edx
je 0xa8c665
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.00a9d650
add esp, 0xc
mov eax, dword [ebp - 0xc]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0xa8c674
mov dword [eax + 0x1c], edi
mov dword [ebp - 0xc], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0xa8c598
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop edi
test eax, eax
je 0xa8c694
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0xa8c6b5
mov ecx, ebx
call fcn.00a8c540
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
jmp 0xa8c685
test ebx, ebx
jne 0xa8c6c5
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xa90fa0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push edx
push 0xa61eb0
push 0
push 0
call fcn.00aa1333
add esp, 0x18
test eax, eax
je 0xa90fbf
cmp eax, 0xffffffff
jne 0xa90fc1
xor eax, eax
ret
Function at 0xa93e80
Capabilities:
Create udp socket

Disassembly:
cmp byte [edx + 0x452], 2
je fcn.00a6bb30
mov al, 1
ret

Function at 0xa99da0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, ecx
push 0x401
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + 0x400], 0
test eax, eax
jne 0xa99dd1
push 0x2e
push esi
call fcn.00a9fc60
add esp, 8
test eax, eax
je 0xa99dcf
mov byte [eax], 0
xor eax, eax
pop esi
ret

Function at 0xa99e70
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 [0xb04008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push edi
push 0xf0000040
push 1
push 0
push 0
push eax
mov esi, edx
mov dword [ebp - 0x20], 8
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa99efd
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x208
lea edx, [ebp - 0xc]
movlpd qword [ebp - 0xc], xmm0
mov ecx, ebx
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.00a99de0
mov ecx, edx
call fcn.00a9b3c0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0xa99f10
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9b573
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a9b573
mov esp, ebp
pop ebp
ret

Function at 0xa9a140
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa9a17f
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0xa9a187
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x1b
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0xa9a5b0
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 0xa9a5e2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret
Function at 0xa9a6a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0xb0497c]
mov edi, eax
add esp, 4
test edi, edi
jne 0xa9a6d3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x10]
jbe 0xa9a71a
mov eax, dword [esi]
push ecx
call eax
push dword [ebp + 8]
mov eax, dword [esi + 4]
push ebx
push dword [edi + 4]
call eax
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
mov eax, dword [esi + 8]
push ebx
mov dword [ebp - 8], ebx
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 8]
add esp, 8
xor ebx, ebx
test eax, eax
je 0xa9a773
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 8], 1
jne 0xa9a738
mov ebx, dword [ebp - 0xc]
cmp ebx, dword [esi + 0x10]
jae 0xa9a7a7
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0xad123b
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0xad123a
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0xa9a780
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

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

Function at 0xab4ed9
Capabilities:
Set environment variable

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

Function at 0xabc1f9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00abc078
Function at 0xb25058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb251a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb2507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2506a
add dl, dl
jne 0xb25089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb250dc
xor eax, eax
add dl, dl
jne 0xb25096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb2517d
add dl, dl
jne 0xb250a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb250b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb250bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb250c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb250d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb25075
mov eax, 1
add dl, dl
jne 0xb250ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb250f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb250e1
sub eax, ebx
mov ebx, 1
jne 0xb25128
mov ecx, 1
add dl, dl
jne 0xb2510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb25119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb25105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb25075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb2513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb2514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb25136
cmp eax, 0x7d00
jae 0xb2516d
cmp eax, 0x500
jb 0xb25168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb25075
cmp eax, 0x7f
ja 0xb25170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb25075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb2519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb25075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x403203
pop dword [ebp - 0x44]
mov eax, 0x1115bcee
add eax, 0xef2a7515
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xf0382dc6
sub dword [ebp - 0x54], 0xa1e5e87b
mov dword [ebp - 0x50], 0xb3ce1713
sub dword [ebp - 0x50], 0x819acace
mov dword [ebp - 0x4c], 0x84441cb4
sub dword [ebp - 0x4c], 0x37f7d886
mov dword [ebp - 0x48], 0x876faf18
add dword [ebp - 0x48], 0x789050e8
lea eax, [ebp - 0x54]
push eax
mov eax, 0xda473255
sub eax, 0xda06c1f1
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x9ca3563b
sub dword [ebp - 0x54], 0x2830ece5
mov dword [ebp - 0x50], 0x34289a5b
sub dword [ebp - 0x50], 0xf2bc38e6
mov dword [ebp - 0x4c], 0xce4715a4
add dword [ebp - 0x4c], 0x952856c8
mov dword [ebp - 0x48], 0x2e469f32
sub dword [ebp - 0x48], 0x2e469f32
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x8272b332
sub eax, 0x8232428a
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x373c5
push 0
call eax
mov ecx, 0x9625c27f
sub ecx, 0x962577ee
xor esi, esi
add esi, eax
mov edx, 0xa083ad50
add edx, 0x5fbd52b0
add edx, dword [ebp - 0x44]
mov edi, 0x600727ff
xor dword [ebp - 0x34], ebx
mov ebx, dword [edx]
mov dword [ebp - 0x10], 0xae9e46dc
xor ebx, edi
add dword [ebp - 0x40], esi
mov dword [esi], ebx
xor dword [ebp - 0x38], 0x2c9ba098
add esi, 0xbe52ed70
add esi, 0x41ad1294
add edx, 0xdf1e536e
sub edx, 0xdf1e536a
loop 0x403321
add eax, 0x5253fa01
sub eax, 0x5252dcea
mov ebx, eax
add eax, 0x644101ee
add eax, 0x9bbefe17
mov ecx, 0x4bd1d4d8
sub ecx, 0x4b91d4d8
add ecx, dword [ebp - 0x44]
call ebx
leave
ret