joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e3e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x100
push ebx
push ebp
push esi
mov esi, dword [esp + 0x110]
push edi
push eax
mov edi, dword [esi + eax*4 + 0x408]
push esi
call fcn.0040e4a0
mov eax, dword [esp + 0x128]
mov ecx, dword [esp + 0x124]
add esp, 8
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x124]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x40e485
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x40e456
pop edi
pop esi
mov dword [ebx], 0x51
pop ebp
xor eax, eax
pop ebx
add esp, 0x100
ret
lea edx, [esp + 0x10]
push 0x100
push edx
push ebp
call fcn.0043a720
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0040e1d0
mov ecx, dword [esi]
add esp, 0x18
mov dword [ecx + 0xdc4], ebp
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret

Function at 0x40e4a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea esi, [eax + 0x43]
shl esi, 4
add esi, ebx
push edi
mov ebp, dword [ebx + eax*4 + 0x408]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 8]
sub edi, ecx
mov ecx, dword [ebx + 0x5a8]
test byte [ecx + 0x40], 3
je 0x40e55a
cmp dword [ebx + eax*4 + 0x420], 0x40e5a0
jne 0x40e55a
cmp dword [esi], 0
je 0x40e4e9
test edi, edi
je 0x40e55a
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.00437050
add esp, 0x14
cmp eax, 0xffffffff
je 0x40e55a
test al, 1
je 0x40e55a
cmp dword [esi], 0
jne 0x40e52c
mov edx, dword [ebx]
mov eax, dword [edx + 0x930]
shl eax, 1
push eax
mov dword [esi + 4], eax
call dword [0xa05290]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [esi]
test eax, eax
je 0x40e553
mov ebx, dword [esi + 8]
push 0
add eax, ebx
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40e55a
mov ecx, dword [esi + 8]
pop edi
add ecx, eax
mov dword [esi + 8], ecx
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40ea00
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40ea43
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0x2733
mov edx, dword [esp + 0x10]
sete cl
mov eax, ecx
mov dword [edx], 0
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x40fc90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 0x1505
lea ebx, [esi + eax]
cmp esi, ebx
jae 0x40fcc5
mov al, byte [esi]
inc esi
push eax
call fcn.00414be0
mov edx, edi
add esp, 4
movsx ecx, al
shl edx, 5
add edx, edi
xor ecx, edx
cmp esi, ebx
mov edi, ecx
jb 0x40fca7
mov eax, edi
pop edi
pop esi
and eax, 0xff
pop ebx
ret

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

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push esi
mov eax, dword [ebx + 0x2f8]
push edi
cmp eax, 3
jne 0x412ea0
mov eax, dword [ebx + 0x518]
test eax, eax
jne 0x412ea0
mov eax, dword [ebx + 0x580]
test eax, eax
jne 0x412ea0
mov esi, dword [esp + 0x220]
mov ebp, dword [ebx]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x98]
push eax
mov edi, 0x80
push ecx
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x412d6c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0x118]
mov esi, eax
push 0x100
push edx
push esi
call fcn.0043a720
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.0040e1d0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov dword [esp + 0x14], edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x412dc8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0x118]
mov esi, eax
push 0x100
push edx
push esi
call fcn.0043a720
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.0040e1d0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x3a0]
lea esi, [ebx + 0x372]
push eax
push esi
lea edx, [esp + 0xa0]
push ecx
push edx
call fcn.00412c60
add esp, 0x10
test eax, eax
jne 0x412e2e
lea eax, [esp + 0x118]
push 0x100
push eax
call fcn.009d037c
mov ecx, dword [eax]
push ecx
call fcn.0043a720
add esp, 0xc
push eax
call fcn.009d037c
mov edx, dword [eax]
push edx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0040e1d0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
lea edi, [ebx + 0x2c4]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x14]
lea eax, [ebx + 0x3d4]
lea ecx, [ebx + 0x3a4]
push eax
push ecx
lea eax, [esp + 0x20]
push edx
push eax
movsw word es:[edi], word [esi]
call fcn.00412c60
add esp, 0x10
test eax, eax
jne 0x412ea0
lea ecx, [esp + 0x118]
push 0x100
push ecx
call fcn.009d037c
mov edx, dword [eax]
push edx
call fcn.0043a720
add esp, 0xc
push eax
call fcn.009d037c
mov eax, dword [eax]
push eax
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0040e1d0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push ebx
call fcn.00412be0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4135b0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0xa128f0]
push esi
test eax, eax
mov dword [esp + 8], 0x4020
mov dword [esp + 4], 0
mov dword [esp + 0xc], 4
jne 0x413603
push 3
push 2
push eax
push 6
call fcn.004053e0
add esp, 0x10
test eax, eax
je 0x4135f7
mov dword [0xa128f0], 2
pop esi
add esp, 0xc
ret
mov dword [0xa128f0], 1
jmp 0x413608
cmp eax, 2
je 0x41364f
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x413637
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, eax
jg 0x41364f
lea eax, [esp + 8]
push 4
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x413ea0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x104
mov eax, dword [esp + 0x108]
mov edx, dword [esp + 0x10c]
push esi
lea ecx, [esp + 4]
mov esi, dword [eax]
push 4
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x413efa
lea eax, [esp + 8]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0043a720
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0040e110
add esp, 0x18
pop esi
add esp, 0x104
ret

Function at 0x414070
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x45c]
test ecx, ecx
je 0x41408c
push eax
call fcn.004062c0
add esp, 4
test eax, eax
jne 0x4140af
ret
mov eax, dword [eax + 0x408]
cmp eax, 0xffffffff
jne 0x41409a
xor eax, eax
ret
push 2
lea ecx, [esp + 8]
push 1
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4140af
ret
mov eax, 1
ret

Function at 0x4151e0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.009d2048
add esp, 0x18
test eax, eax
je 0x415203
cmp eax, 0xffffffff
jne 0x415205
xor eax, eax
ret
Function at 0x4166e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x1c], 1
call esi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x416716
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x30
ret
xor eax, eax
push 0x7f000001
mov dword [esp + 0x1c], eax
mov word [esp + 0x1c], 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [esp + 0x50]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0xffff
push ebp
mov dword [esp + 0x30], eax
mov word [esp + 0x2e], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x416850
lea edx, [esp + 0x18]
push 0x10
push edx
push ebp
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x416850
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x416850
push 1
push ebp
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x416850
push 0
push 1
push 2
call esi
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x416850
lea edx, [esp + 0x18]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x416850
push 0
push 0
push ebp
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov dword [ebx + 4], eax
je 0x416850
push ebx
push 0xa067a4
lea eax, [esp + 0x30]
push 0xc
push eax
call fcn.00417b40
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edx, dword [ebx]
push eax
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x2c]
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x416850
mov ecx, dword [ebx + 4]
push 0
lea eax, [esp + 0x38]
push 0xc
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x416850
mov ecx, esi
lea edi, [esp + 0x34]
lea esi, [esp + 0x28]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x41686f
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebp
call esi
mov eax, dword [ebx]
push eax
call esi
mov ecx, dword [ebx + 4]
push ecx
call esi
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x30
ret
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
Function at 0x41b210
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x28]
mov ecx, esi
push edi
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0xf0000040
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x14], 0
and ecx, 3
mov dword [esp + 0x10], 0
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x41b305
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x41b2e5
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41b2e5
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x18]
push edx
push eax
push 4
push ecx
call edi
test eax, eax
je 0x41b2e5
cmp esi, dword [esp + 0x14]
jb 0x41b2e5
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x2c]
push 0
push edx
push ebp
push 2
push eax
call edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b2f4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41b305
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x41c890
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 0x41cb60
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
mov esi, 1
push edi
xor ebp, ebp
push esi
push ebp
call dword [0xa05298]
mov edi, eax
add esp, 8
test edi, edi
je 0x41cbb4
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x41cbcc
cmp esi, ebx
je 0x41cbcc
cmp esi, 0x8000
ja 0x41cbcc
cmp esi, ebx
jb 0x41cbc5
push esi
push edi
call dword [0xa05298]
mov edi, eax
add esp, 8
test edi, edi
jne 0x41cb7c
push ebp
call dword [0xa05294]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0xa05294]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x424e90
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 0x424f19
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 0x424f4a
push str.Received_too_short_packet
push edi
call fcn.0040e1d0
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.004250c0
and eax, 0xffff
add esp, 4
mov dword [ebx + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x424f67
jmp dword [eax*4 + 0x4250b0]
cmp dword [ebx + 0x13c], esi
jle case.0x424f67.4
push ebp
call fcn.00424a70
mov cx, word [ebx + 0x30]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x424f67.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.0040e700
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424fd0
push 5
push ebx
call fcn.004241c0
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.0041b680
jmp 0x425079
push ebp
call fcn.00424a70
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.004250e0
add esp, 0xc
cmp eax, esi
jae case.0x424f67.4
push ebp
push str.TFTP_error:__s_n
push edi
call fcn.0040e110
jmp 0x425079
mov ecx, dword [ebx + 0x13c]
mov edx, dword [ebp]
sub ecx, 2
add edx, 2
push ecx
push edx
push ebx
call fcn.00425110
add esp, 0xc
test eax, eax
je case.0x424f67.4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
push str.Internal_error:_Unexpected_packet
push 0xa07d28
push edi
call fcn.0040e1d0
add esp, 0xc
mov eax, dword [esp + 0x9c]
push eax
call fcn.0041b860
add esp, 4
test eax, eax
je 0x424f3d
push 5
push ebx
call fcn.004241c0
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
Function at 0x440aa0
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 0x440ad2
push 0x2e
push esi
call fcn.009c4950
add esp, 8
test eax, eax
je 0x440ad0
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x440b20
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 0x440b49
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.00440c20
lea ecx, [esp + 0x20]
push 8
push ecx
call fcn.00446260
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 0x440bc8
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 0x446310
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 0x44634e
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 0x446d20
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 [0xa05290]
mov edi, eax
add esp, 4
test edi, edi
jne 0x446d43
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 0x446d8e
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 0x446d92
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 0x446df8
mov dword [esp + 0x1c], eax
mov ebp, eax
mov al, byte [ebx]
mov cl, byte [0x9fc07c]
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 [0x9fc07d]
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 0x446db1
cmp ebp, dword [esi + 0x10]
jae 0x446e24
mov eax, dword [edi + 4]
push 1
push 0x9fc07c
push eax
call dword [esi + 4]
mov ecx, dword [edi + 8]
push 1
push 0x9fc07d
push ecx
call dword [esi + 4]
mov eax, dword [esi + 0x10]
add esp, 0x18
inc ebp
cmp ebp, eax
jb 0x446dfd
pop ebp
mov eax, edi
pop ebx
pop edi
pop esi
ret
Function at 0x449bd0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0xa05274]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1000
call fcn.009c638d
push 0x41
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.009c3d60
push 0x1000
push esi
push edi
call fcn.009c3d60
add esp, 0x1c
xor ecx, ecx
nop
mov al, cl
add al, 0x41
mov byte [ebp + ecx - 0x48], al
inc ecx
cmp ecx, 0x1a
jl 0x449c10
xor ecx, ecx
mov al, cl
add al, 0x61
mov byte [ebp + ecx - 0x2e], al
inc ecx
cmp ecx, 0x1a
jl 0x449c20
xor ecx, ecx
mov al, cl
add al, 0x30
mov byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 0xa
jl 0x449c30
mov ebx, dword [ebp + 0xc]
xor edx, edx
mov word [ebp - 0xa], 0x2f2b
test ebx, ebx
je 0x449d6d
mov ecx, dword [ebp + 8]
mov al, byte [ecx]
dec ebx
mov byte [ebp + edx - 0x50], al
inc ecx
mov al, byte [ebp - 0x4e]
inc edx
mov ah, byte [ebp - 0x4f]
mov byte [ebp - 0x4a], al
mov al, byte [ebp - 0x50]
mov dword [ebp + 8], ecx
mov byte [ebp - 0x55], ah
mov byte [ebp - 0x49], al
cmp edx, 3
jne 0x449cc8
mov cl, byte [ebp - 0x49]
shr al, 2
and cl, 3
mov byte [ebp - 0x54], al
mov al, ah
shl cl, 4
shr al, 4
add cl, al
mov al, byte [ebp - 0x4a]
mov byte [ebp - 0x53], cl
mov cl, ah
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, byte [ebp - 0x4a]
and al, 0x3f
mov byte [ebp - 0x52], cl
mov byte [ebp - 0x51], al
xor eax, eax
nop dword [eax]
movzx ecx, byte [ebp + eax - 0x54]
inc eax
mov cl, byte [ebp + ecx - 0x48]
mov byte [esi + edi], cl
inc esi
cmp eax, 4
jl 0x449cb0
mov ecx, dword [ebp + 8]
xor edx, edx
test ebx, ebx
jne 0x449c54
test edx, edx
je 0x449d6d
mov eax, edx
cmp edx, 3
jge 0x449cfa
cmp eax, 3
jae 0x449d80
mov byte [ebp + eax - 0x50], 0
inc eax
cmp eax, 3
jl 0x449cde
mov ah, byte [ebp - 0x4e]
mov cl, byte [ebp - 0x4f]
mov bl, byte [ebp - 0x50]
jmp 0x449d03
mov cl, byte [ebp - 0x55]
mov bl, byte [ebp - 0x49]
mov ah, byte [ebp - 0x4a]
mov al, bl
and bl, 3
shr al, 2
mov byte [ebp - 0x54], al
mov al, cl
shr al, 4
and cl, 0xf
shl bl, 4
add bl, al
shl cl, 2
mov al, ah
mov byte [ebp - 0x53], bl
shr al, 6
lea ebx, [edx + 1]
add cl, al
and ah, 0x3f
mov byte [ebp - 0x52], cl
xor ecx, ecx
mov byte [ebp - 0x51], ah
test ebx, ebx
jle 0x449d52
nop word [eax + eax]
movzx eax, byte [ebp + ecx - 0x54]
inc ecx
mov al, byte [ebp + eax - 0x48]
mov byte [esi + edi], al
inc esi
cmp ecx, ebx
jl 0x449d40
cmp edx, 3
jge 0x449d6d
mov eax, 3
lea ecx, [esi + edi]
sub eax, edx
push eax
push 0x3d
push ecx
call fcn.009c3d60
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009c2cd2
mov esp, ebp
pop ebp
ret
call fcn.009c2bf7
int3