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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x300]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x14c]
lea esi, [edi + 0x158]
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 + 0x140], 0
mov dword [edi + 0x144], eax
jne 0x4ca7be
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xc0]
push eax
call fcn.005e0220
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x140], eax
mov edx, dword [edi + 0x144]
cmp edx, 4
jge 0x4ca7f1
push str.Received_too_short_packet
push ebx
call fcn.004addd0
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
push esi
call fcn.004ca320
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4ca80c
jmp dword [eax*4 + 0x4ca94c]
cmp edx, 4
jle case.0x4ca80c.4
push esi
call fcn.004ca300
movzx ecx, word [edi + 0x154]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x4ca80c.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push ebx
call fcn.004add10
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4ca86f
push 5
push edi
call fcn.004cb1c0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x144]
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.004b9c30
jmp 0x4ca917
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x158]
push eax
call fcn.004ca300
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.004cb2d0
add esp, 0xc
cmp eax, esi
jae case.0x4ca80c.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s_n
push ebx
call fcn.004ade90
jmp 0x4ca917
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.004ca4e0
add esp, 0xc
test eax, eax
je case.0x4ca80c.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x693664
push ebx
call fcn.004addd0
add esp, 0xc
push ebx
call fcn.004b9f20
add esp, 4
test eax, eax
je 0x4ca7de
push 5
push edi
call fcn.004cb1c0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
Function at 0x4cb1c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x4cb1d0
jmp dword [edx*4 + 0x4cb224]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004cac30
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004ca960
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004cb400
push str.TFTP_finished
push 0x616b60
push ecx
call fcn.004ade90
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x693664
push ecx
call fcn.004addd0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x4d1ca0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x84]
or esi, 0xffffffff
push ecx
mov ebx, dword [edi + 0xc]
mov eax, dword [ebx + 0x14c]
push eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4d1d14
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 0x8c]
push ebx
push edi
call fcn.004ae700
add esp, 0xc
cmp esi, 0xffffffff
jne 0x4d1d4d
push str.Error_accept__ing_server_connect
push edi
call fcn.004addd0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push edi
call fcn.004ade90
push 1
push esi
mov byte [ebx + 0x24e], 0
mov dword [ebx + 0x14c], esi
call fcn.004b9ab0
add esp, 0x10
mov byte [ebx + 0x261], 1
cmp dword [edi + 0x1b8], 0
je 0x4d1dca
push 1
push edi
call fcn.0049fa50
mov eax, dword [edi + 0x1b8]
push 1
push esi
push dword [edi + 0x1bc]
call eax
push 0
push edi
mov esi, eax
call fcn.0049fa50
add esp, 0x1c
test esi, esi
je 0x4d1dca
push ebx
push edi
call fcn.004d2210
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret

Function at 0x4d41d0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x4d4202
push str.Couldnt_set_desired_mode
push esi
call fcn.004addd0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x4d4219
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push esi
call fcn.004ade90
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x4d4232
push ebx
push esi
call fcn.004d3e90
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x4d4247
push esi
call fcn.004d2ec0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x4d425c
push esi
call fcn.004d3e70
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x4d426c
push esi
call fcn.004d40b0
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4dfa70
Capabilities:
Get hostname

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

Function at 0x4e0dd0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x6ba08c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e0dfd
pop edi
pop esi
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
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4e0e44
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4e0e4a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4e0eab
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
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 + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4e0e70
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4e0ed7
mov eax, dword [esi + 4]
push 1
push 0x620f48
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x620f49
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4e0eb0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50ca00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
push ebx
mov eax, dword [ecx + 8]
mov ebx, dword [ebp + 0x10]
sub eax, ebx
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x98], eax
xor eax, eax
mov dword [ebp - 0x88], eax
cmp ecx, ebx
jb 0x50cbaa
cmp ebx, 0x40
ja 0x50cbaa
lea eax, [ebp - 0x84]
neg eax
push esi
push edi
and eax, 0x3f
lea edi, [ebp - 0x84]
add edi, eax
lea eax, [ebx + 0x100]
mov dword [ebp - 0x9c], edi
cmp ecx, eax
jbe 0x50ca7e
mov eax, ecx
sub eax, ebx
sub eax, 0x100
mov dword [ebp - 0x88], eax
push ebx
xor esi, esi
mov dword [ebp - 0x8c], 0
push esi
push edi
call fcn.005e1720
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x90], esi
cmp ecx, dword [eax + 0xc]
jae 0x50cb5e
mov edx, ecx
sub edx, dword [eax + 8]
mov dword [ebp - 0x94], edx
nop dword [eax + eax]
mov ebx, dword [ebp + 0xc]
mov eax, ecx
xor eax, dword [ebp - 0x98]
lea edi, [eax - 1]
not eax
shr eax, 0x1f
shr edi, 0x1f
and edi, eax
mov eax, dword [ebp + 0xc]
neg edi
xor edx, dword [eax + 8]
mov eax, ecx
xor eax, dword [ebx + 8]
or edx, eax
mov eax, dword [ebx + 0x14]
xor edx, ecx
mov ebx, dword [ebp + 0x10]
shr edx, 0x1f
neg edx
mov cl, byte [eax + ecx]
mov eax, edi
or eax, dword [ebp - 0x8c]
and eax, edx
mov edx, dword [ebp - 0x90]
and edi, edx
mov dword [ebp - 0x8c], eax
and al, cl
or esi, edi
mov edi, dword [ebp - 0x9c]
or byte [edx + edi], al
inc edx
mov ecx, edx
mov eax, edx
sub ecx, ebx
xor eax, ebx
xor ecx, ebx
or ecx, eax
mov eax, dword [ebp + 0xc]
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x90], edx
inc ecx
mov edx, dword [ebp - 0x94]
inc edx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x94], edx
cmp ecx, dword [eax + 0xc]
jb 0x50cac0
xor edx, edx
test ebx, ebx
je 0x50cb94
mov ecx, dword [ebp - 0xa0]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + edi]
movzx eax, byte [esi + edi]
inc esi
mov byte [ecx + edx], al
mov ecx, esi
sub ecx, ebx
mov eax, esi
xor ecx, ebx
xor eax, ebx
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, ebx
jb 0x50cb64
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
Function at 0x50dbe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
mov eax, dword [eax + 4]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax + 0x64]
mov edi, dword [ebp + 0x14]
inc edi
test byte [eax + 0x30], 1
je 0x50dc23
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 8]
lea eax, [edi + ecx]
cmp eax, edx
jbe 0x50dc13
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [esi + 0x14], ecx
sub edx, ecx
add dword [esi + 0x18], ecx
sub dword [esi + 0xc], ecx
mov dword [esi + 8], edx
jmp 0x50dc28
cmp edi, dword [esi + 8]
ja 0x50dc0b
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x14]
push ebx
mov al, byte [ecx + eax - 1]
movzx ebx, al
mov byte [ebp + 0x17], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [eax + 0x3cc]
call fcn.004311e0
push eax
call fcn.00533650
add esp, 8
test eax, 0x200000
je 0x50dc6e
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 8], eax
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 8]
lea ecx, [ebx + edi]
mov ebx, edx
mov dword [ebp + 8], edx
sub ebx, ecx
mov eax, edx
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, edx
shr ebx, 0x1f
dec ebx
cmp edx, eax
cmovb eax, edx
xor edi, edi
mov dword [ebp - 8], eax
test eax, eax
je 0x50dcec
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 4]
mov edx, ecx
mov esi, dword [ebp + 8]
shr edx, 0x1f
dec esi
mov dword [ebp - 0xc], edx
add esi, eax
sub ecx, edi
lea esi, [esi - 1]
shr ecx, 0x1f
mov eax, edi
shr eax, 0x1f
inc edi
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [esi + 1]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [ebp + 0x17]
xor ecx, eax
and edx, ecx
mov ecx, dword [ebp - 4]
not edx
and ebx, edx
mov edx, dword [ebp - 0xc]
cmp edi, dword [ebp - 8]
jb 0x50dcb0
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
not ebx
movzx eax, bl
pop ebx
pop edi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov eax, dword [ebp - 4]
neg ecx
inc eax
and eax, ecx
sub edx, eax
mov dword [esi + 8], edx
mov dword [ebp + 8], ecx
not ecx
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
and ecx, 1
or eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x51a090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
je 0x51a0bc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x51a0bc
push dword [eax + 0x24]
push 1
push dword [ebp + 0x10]
push ecx
call fcn.005f2439
add esp, 0x10
test eax, eax
cmovne eax, dword [ebp + 0x10]
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x51a550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call fcn.00552db0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.005e1540
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x51a609
push 0x45
push str.....crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.005288a0
push 0x6239f4
push esi
push 0x62e10c
push dword [ebp + 8]
push str.fopen_
push 5
call fcn.00528180
add esp, 0x2c
call fcn.005f074c
cmp dword [eax], 2
je 0x51a5ea
call fcn.005f074c
cmp dword [eax], 6
je 0x51a5ea
push 0x4e
push str.....crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.005288a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x4c
push str.....crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.005288a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0051a690
push eax
call fcn.0051aae0
mov esi, eax
add esp, 4
test esi, esi
jne 0x51a62d
push edi
call fcn.005e4e6d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push esi
call fcn.0051a750
push edi
push ebx
push 0x6a
push esi
call fcn.0051a790
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x51cdb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
cmp edx, ebx
je 0x51cf2c
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
push esi
lea esi, [eax - 1]
not eax
shr eax, 0x1f
shr esi, 0x1f
and esi, eax
mov eax, dword [ebx + 4]
xor eax, ecx
dec esi
and eax, esi
mov dword [ebp - 8], esi
xor ecx, eax
mov dword [edx + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, esi
and eax, esi
pshufd xmm3, xmm0, 0
xor ecx, eax
mov dword [edx + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [edx + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, esi
mov esi, dword [ebp + 0x14]
and eax, 4
xor ecx, eax
mov dword [edx + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
test esi, esi
jle 0x51cf2b
push edi
cmp esi, 8
jb 0x51cf02
mov edi, dword [edx]
lea edx, [esi - 1]
mov ecx, dword [ebx]
lea edx, [ecx + edx*4]
mov dword [ebp + 0x10], edx
lea edx, [esi - 1]
lea edx, [edi + edx*4]
cmp ecx, edx
mov edx, dword [ebp + 0xc]
ja 0x51ce56
cmp dword [ebp + 0x10], edi
jae 0x51cf02
cmp ecx, ebx
ja 0x51ce63
cmp dword [ebp + 0x10], ebx
jae 0x51cf02
cmp ecx, edx
ja 0x51ce70
cmp dword [ebp + 0x10], edx
jae 0x51cf02
lea ecx, [esi - 1]
lea ecx, [edi + ecx*4]
cmp edi, ebx
ja 0x51ce82
cmp ecx, ebx
jae 0x51cf02
cmp edi, edx
ja 0x51ce8a
cmp ecx, edx
jae 0x51cf02
mov ecx, esi
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x51ce99
dec ecx
or ecx, 0xfffffff8
inc ecx
mov dword [ebp + 0x10], esi
sub dword [ebp + 0x10], ecx
mov ecx, dword [ebx]
movups xmm1, xmmword [edi + eax*4]
movups xmm0, xmmword [ecx + eax*4]
movaps xmm2, xmm1
pxor xmm2, xmm0
pand xmm2, xmm3
movaps xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [edi + eax*4], xmm0
movups xmm0, xmmword [ecx + eax*4]
pxor xmm2, xmm0
movups xmmword [ecx + eax*4], xmm2
movups xmm1, xmmword [edi + eax*4 + 0x10]
movups xmm0, xmmword [ecx + eax*4 + 0x10]
movaps xmm2, xmm1
pxor xmm2, xmm0
pand xmm2, xmm3
movaps xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [edi + eax*4 + 0x10], xmm0
movups xmm0, xmmword [ecx + eax*4 + 0x10]
pxor xmm2, xmm0
movups xmmword [ecx + eax*4 + 0x10], xmm2
add eax, 8
cmp eax, dword [ebp + 0x10]
jl 0x51cea1
cmp eax, esi
jge 0x51cf2a
mov ecx, dword [edx]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [ebp - 8]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
mov edx, dword [ebp + 0xc]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [ebp + 0x14]
jl 0x51cf06
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51d910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor edx, edx
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], 0
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
dec esi
mov dword [ebp + 8], edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test ebx, ebx
jle 0x51d98a
mov ecx, dword [ecx]
mov dword [ebp - 0xc], ecx
push edi
push dword [ecx]
xor eax, esi
lea ebx, [eax - 1]
not eax
shr ebx, 0x1f
shr eax, 0x1f
and ebx, eax
neg ebx
mov edi, ebx
or edi, dword [ebp - 4]
call fcn.0051d270
mov ecx, dword [ebp - 0xc]
mov edx, edi
not edx
mov dword [ebp - 4], edi
and edx, 0x20
and eax, ebx
add edx, dword [ebp + 8]
add ecx, 4
add edx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 8]
add esp, 4
inc eax
mov dword [ebp + 8], edx
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
jl 0x51d940
pop edi
not esi
lea eax, [esi - 1]
not esi
shr eax, 0x1f
shr esi, 0x1f
and eax, esi
dec eax
pop esi
and eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5267e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, str.RANDFILE
push 0
push 0
push ebx
mov dword [ebp - 8], 1
call edi
mov esi, eax
test esi, esi
jne 0x526849
push eax
push eax
mov ebx, str.HOME
mov dword [ebp - 8], eax
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x526849
push eax
push eax
mov ebx, str.USERPROFILE
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x526849
push eax
push eax
mov ebx, str.SYSTEMROOT
push ebx
call edi
mov esi, eax
test esi, esi
je 0x526971
lea eax, [esi + esi]
call fcn.0060b1b0
mov eax, esp
push esi
push eax
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp eax, esi
jae 0x526971
mov ebx, dword [ebp - 0xc]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x526971
call fcn.0060b1b0
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x526971
test esi, esi
je 0x526971
cmp byte [esi], 0
je 0x526971
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5268c3
sub ecx, edx
cmp dword [ebp - 8], 0
je 0x526908
lea eax, [ecx + 1]
cmp eax, dword [ebp + 0xc]
jae 0x526971
mov ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x5268e5
mov eax, ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 6]
cmp eax, dword [ebp + 0xc]
jae 0x526971
mov ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x526917
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x526927
mov ax, word [0x696624]
lea edx, [ebx - 1]
mov word [edi], ax
nop dword [eax]
mov al, byte [edx + 1]
lea edx, [edx + 1]
test al, al
jne 0x526940
mov ecx, dword [str..rnd]
mov eax, ebx
mov dword [edx], ecx
mov cl, byte [0x62f740]
mov byte [edx + 4], cl
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
Function at 0x526990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x538], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x53c], edi
test esi, esi
jne 0x5269cd
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
push ebx
push 0x693620
push edi
call fcn.00552db0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x5269fa
push 0x62
push str.....crypto_rand_randfile.c
push 0x79
push 0x6f
push 0x24
call fcn.005288a0
push edi
jmp 0x526b3f
lea eax, [ebp - 0x534]
push eax
push ebx
call fcn.005f21db
add esp, 4
push eax
call fcn.005fbc35
add esp, 8
test eax, eax
jns 0x526a53
push 0x69
push str.....crypto_rand_randfile.c
push 0x71
push 0x6f
push 0x24
call fcn.005288a0
push edi
push str.Filename
push 2
call fcn.00528180
push ebx
call fcn.005e4e6d
add esp, 0x24
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
test esi, esi
jns 0x526a6d
test dword [ebp - 0x52e], 0x8000
mov esi, 0x100
cmovne esi, dword [ebp - 0x520]
push 0
push ebx
call fcn.005fc47a
add esp, 8
test esi, esi
jle 0x526a8c
cmp esi, 0x500
mov eax, 0x400
cmovle eax, esi
jmp 0x526a91
mov eax, 0x500
push ebx
push eax
lea eax, [ebp - 0x504]
push 1
push eax
call fcn.005edd57
push ebx
mov edi, eax
call fcn.005e4dcc
add esp, 0x14
test eax, eax
je 0x526ac9
call fcn.005f074c
cmp dword [eax], 4
jne 0x526ac9
push ebx
call fcn.005fc3ca
add esp, 4
test edi, edi
je 0x526a78
jmp 0x526acd
test edi, edi
je 0x526b01
movd xmm0, edi
lea eax, [ebp - 0x504]
cvtdq2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push edi
push eax
call fcn.00525ca0
add dword [ebp - 0x538], edi
add esp, 0x10
test esi, esi
jle 0x526a8c
sub esi, edi
test esi, esi
jg 0x526a7c
lea eax, [ebp - 0x504]
push 0x500
push eax
call fcn.00537800
push ebx
call fcn.005e4e6d
add esp, 0xc
call fcn.00525e50
test eax, eax
jne 0x526b62
push 0xa6
push str.....crypto_rand_randfile.c
push 0x76
push 0x6f
push 0x24
call fcn.005288a0
push dword [ebp - 0x53c]
push str.Filename
push 2
call fcn.00528180
add esp, 0x20
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x538]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.0049a6a7
mov esp, ebp
pop ebp
ret