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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x101c10e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x4a8]
mov ebx, dword [eax]
lea esi, [edi + 0x15c]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x154]
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 + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x1003ecd3
push dword [ebp - 0x90]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.1005ec70
mov eax, dword [ebp - 0x90]
add esp, 0xc
mov dword [edi + 0x148], eax
mov edx, dword [edi + 0x14c]
cmp edx, 4
jge 0x1003ed06
push str.Received_too_short_packet
push ebx
call fcn.10022090
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.1005cef4
mov esp, ebp
pop ebp
ret
push esi
call fcn.1003e840
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x1003ed21
jmp dword [eax*4 + 0x1003ee78]
cmp edx, 4
jle case.0x1003ed21.4
push esi
call fcn.1003e820
movzx ecx, word [edi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x1003ed21.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
mov esi, dword [ebp - 0x88]
add eax, 4
push eax
push 1
push esi
call fcn.10021fe0
add esp, 0x10
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x1003ed8f
push 5
push edi
call fcn.1003f610
mov eax, dword [ebp - 0x8c]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0xb0], eax
adc dword [ebx + 0xb4], edx
push dword [ebx + 0xb4]
push dword [ebx + 0xb0]
push ebx
call fcn.10045560
add esp, 0xc
jmp 0x1003ee46
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x15c]
push eax
call fcn.1003e820
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.1003e7f0
add esp, 0xc
cmp eax, esi
jae case.0x1003ed21.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s_n
push ebx
call fcn.10022170
jmp 0x1003ee3d
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.1003e9f0
add esp, 0xc
test eax, eax
je case.0x1003ed21.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x1015a5f0
push ebx
call fcn.10022090
add esp, 0xc
mov esi, dword [ebp - 0x88]
push esi
call fcn.10045810
add esp, 4
test eax, eax
je 0x1003ecf3
push 5
push edi
call fcn.1003f610
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.1005cef4
mov esp, ebp
pop ebp
ret
Function at 0x1003f610
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x1003f622
jmp dword [edx*4 + 0x1003f678]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.1003f0e0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.1003ee90
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.1003f820
push str.TFTP_finished
push 0x101589e8
push eax
call fcn.10022170
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x1015a5f0
push eax
call fcn.10022090
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x100407d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101c10e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.10071eed
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x10040834
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x10040834
lea eax, [ebp - 0x108]
push eax
call dword [0x101c106c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret

Function at 0x10040850
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100407d0
Function at 0x10049d50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x101c10e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x101ca1c4], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x158], ebx
jne 0x10049d86
call fcn.1004ca70
test al, al
je 0x10049d97
mov byte [0x101ca1c4], 1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xa2c]
test eax, eax
je 0x10049db8
push 0x400
push eax
call fcn.100b7800
add esp, 8
call fcn.1004ca70
test al, al
jne 0x10049d86
push esi
push edi
nop word [eax + eax]
mov ebx, 2
mov dword [ebp - 0x150], 4
lea eax, [ebp - 0x44]
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x14c], eax
nop
lea eax, [ebp - 0x188]
push eax
call fcn.1002baa0
push 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x178], xmm0
movups xmmword [ebp - 0x168], xmm0
call fcn.10029220
lea eax, [ebp - 0x198]
push eax
call fcn.1002baa0
mov esi, dword [eax + 8]
lea eax, [ebp - 0x1a8]
push eax
call fcn.1002baa0
add esp, 0x10
mov ecx, eax
mov eax, esi
inc ebx
cdq
mov dword [ebp - 0x154], ebx
add eax, dword [ecx]
push 0
adc edx, dword [ecx + 4]
push ebx
push edx
push eax
call fcn.1005d4a0
movups xmm1, xmmword [ebp - 0x178]
mov esi, dword [ebp - 0x148]
mov edi, eax
mov ebx, edx
dec esi
movaps xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd ecx, xmm0
shld ebx, edi, 8
push ecx
push eax
push 0
push esi
shl edi, 8
call fcn.1005d4a0
xor edi, eax
xor ebx, edx
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x168], edi
push eax
mov dword [ebp - 0x164], ebx
call fcn.1002baa0
lea esi, [eax + 8]
lea eax, [ebp - 0x1c8]
push eax
call fcn.1002baa0
mov edx, dword [ebp - 0x148]
add esp, 8
mov ebx, dword [ebp - 0x154]
mov dword [ebp - 0x148], ebx
mov ecx, dword [eax]
add ecx, dword [esi]
lea eax, [edx + 2]
imul edx, dword [ebp - 0x160]
imul ecx, eax
mov eax, dword [ebp - 0x14c]
shl ecx, 0x10
xor ecx, edx
mov dword [ebp - 0x160], ecx
movups xmm0, xmmword [ebp - 0x168]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [ebp - 0x150], 1
mov dword [ebp - 0x14c], eax
jne 0x10049de0
movsd xmm0, qword [0x10160b38]
lea eax, [ebp - 0x44]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.100b7410
add esp, 0x10
call fcn.1004ca70
test al, al
je 0x10049dc0
lea eax, [ebp - 0x144]
mov byte [ebp - 0x144], 0
push 0x100
push eax
call fcn.100b7650
add esp, 8
cmp byte [ebp - 0x144], 0
pop edi
pop esi
je 0x10049f64
lea eax, [ebp - 0x144]
push 0x400
push eax
call fcn.100b7800
add esp, 8
call fcn.1004ca70
test al, al
jne 0x10049d86
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [ebp - 0x158]
call fcn.10022170
add esp, 8
call fcn.1004ca70
xor edx, edx
mov ecx, 0x23
test al, al
pop ebx
cmovne ecx, edx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret
Function at 0x100509b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x10161e5c
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x100509d0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x10161e78
push esi
mov dword [ebp - 8], ebx
call fcn.10072415
add esp, 8
test eax, eax
je 0x10050a1c
test ebx, ebx
je 0x10050a0c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10050a45
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10050a45
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x10050af0
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050a61
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x101c1060]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10050ae6
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10050ae6
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050a92
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050ab0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10050ac0
mov eax, dword [ebp - 8]
test eax, eax
je 0x10050add
push 8
push 0
push ebx
call eax
jmp 0x10050ae4
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x101c1064]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100531f0
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 0x10053223
push 0x2e
push edi
call fcn.10060cf0
add esp, 8
test eax, eax
je 0x10053221
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x100566c0
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 [0x101c1060]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100566ed
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 0x10056737
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 ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x1005673d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
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 0x1005679b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [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 0x10056760
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x100567c7
mov eax, dword [esi + 4]
push 1
push str.6_
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x10162617
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x100567a0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005a730
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005a740
Function at 0x1007b67a
Capabilities:
Read file on windows

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

Function at 0x1007d8b5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007d575
Function at 0x100a6a20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xac
call fcn.1005d3c0
mov eax, dword [0x101c10e0]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb0]
push ebx
push ebp
mov dword [esp + 0x2c], eax
xor ebp, ebp
mov eax, dword [esp + 0xbc]
push esi
push edi
mov edi, dword [esp + 0xc8]
mov esi, dword [eax + 8]
mov dword [esp + 0x1c], esi
sub esi, edi
mov dword [esp + 0x10], esi
cmp dword [eax + 0xc], edi
jae 0x100a6a80
push 0x4c7
push 0x10174554
push str.assertion_failed:_rec__orig_len___md_size
call fcn.100c1260
add esp, 0xc
cmp edi, 0x40
jbe 0x100a6a9c
push 0x4c8
push 0x10174554
push str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.100c1260
add esp, 0xc
lea eax, [esp + 0x38]
neg eax
lea ebx, [esp + 0x38]
and eax, 0x3f
add ebx, eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax + 0xc]
lea eax, [edi + 0x100]
mov dword [esp + 0x20], ecx
cmp ecx, eax
jbe 0x100a6ad1
mov ebp, ecx
sub ebp, edi
sub ebp, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [esp + 0x3c], esi
call fcn.1005e5b0
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0x20]
jae 0x100a6ba8
mov ecx, dword [esp + 0x1c]
mov esi, ebx
mov edx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x1f
sub ebp, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc4]
shr edx, 0x1f
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x14]
add eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
lea ebx, [ecx + ebp]
shr ebx, 0x1f
lea ecx, [edi + ebp]
shr ecx, 0x1f
xor cl, dl
xor dl, bl
or cl, dl
mov edx, ebp
xor cl, bl
shr edx, 0x1f
xor dl, byte [esp + 0x14]
dec cl
mov dword [esp + 0x2c], ecx
mov cl, byte [eax + ebp]
mov al, bl
xor al, byte [esp + 0x14]
inc ebp
or dl, al
xor dl, bl
mov ebx, dword [esp + 0x18]
neg dl
and dl, cl
and dl, byte [esp + 0x2c]
or byte [ebx + esi], dl
inc ebx
mov edx, dword [esp + 0x10]
mov ecx, ebx
sub ecx, edi
mov eax, ebx
xor ecx, edi
xor eax, edi
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
and ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
lea eax, [ecx + ebp]
cmp eax, dword [esp + 0x20]
jb 0x100a6b31
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
xor edx, edx
test edi, edi
je 0x100a6bdc
mov ebp, dword [esp + 0x34]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x100a6bb2
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005cef4
add esp, 0xac
ret
Function at 0x100a7720
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.1005d3c0
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x34], 1
je 0x100a77aa
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x100a77ae
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0xb0]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.100855a0
push eax
call fcn.100ad260
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x100a77b7
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x100a7762
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x14], eax
test eax, eax
je 0x100a7834
mov eax, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr eax, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x10]
lea edi, [edi - 1]
mov edx, esi
mov ecx, ebp
sub edx, ebp
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc ebp
movzx ecx, byte [esp + 0x2c]
or dl, al
movzx eax, byte [edi + 1]
dec dl
movzx edx, dl
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
cmp ebp, dword [esp + 0x14]
jb 0x100a77f5
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov eax, ecx
pop ebx
mov dword [edi + 8], esi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret
Function at 0x100ace50
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.100e0d10
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.10060cf0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x100aceef
push 0x4a
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.100b9ee0
push 0x10172b64
push esi
push 0x10177e6c
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.100b9430
call fcn.10062b02
mov edx, 2
mov ecx, dword [eax]
xor eax, eax
cmp ecx, 2
setne al
lea eax, [eax*2 + 0x4d]
push eax
push str.crypto_bio_bss_file.c
mov eax, 0x80
cmovne eax, edx
push eax
push 0x6d
push 0x20
call fcn.100b9ee0
add esp, 0x40
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x10177e1c
call fcn.100ad440
mov esi, eax
add esp, 4
test esi, esi
jne 0x100acf11
push edi
call fcn.1006d7f9
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.100ad010
push edi
push ebx
push 0x6a
push esi
call fcn.100ad040
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x100b7650
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.1005d3c0
mov eax, dword [0x101c10e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 1
push edi
push edi
push str.RANDFILE
mov dword [ebp - 8], str.RANDFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, dword [ebp + 8]
mov esi, eax
test esi, esi
jne 0x100b76e1
push edi
push edi
push str.HOME
mov dword [ebp - 8], str.HOME
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x100b76e1
push eax
push eax
push str.USERPROFILE
mov dword [ebp - 8], str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jne 0x100b76e1
push eax
push eax
push str.SYSTEMROOT
mov dword [ebp - 8], str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x100b7759
lea eax, [esi + esi]
call fcn.1005d8a0
mov eax, esp
push esi
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
jae 0x100b7747
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 8], eax
test eax, eax
je 0x100b7747
call fcn.1005d8a0
mov esi, esp
push 0
push 0
push dword [ebp - 8]
push esi
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
neg edi
sbb edi, edi
and edi, esi
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x100b7762
test edi, edi
jne 0x100b7766
mov edi, 0x10179430
jmp 0x100b776b
mov edx, edi
mov edi, 0x10179430
jmp 0x100b776b
test edi, edi
je 0x100b77d8
cmp byte [edi], 0
je 0x100b77d8
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100b7770
sub ecx, esi
mov esi, dword [ebp + 0xc]
test edx, edx
je 0x100b77ac
lea eax, [ecx + 1]
cmp eax, esi
jae 0x100b77ac
push esi
push edi
push ebx
call fcn.100c11b0
add esp, 0xc
cmp eax, esi
jb 0x100b77db
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 6]
cmp eax, esi
jae 0x100b77db
push esi
push edi
push ebx
call fcn.100c11b0
push esi
push 0x1015876c
push ebx
call fcn.100c1150
push esi
push str..rnd
push ebx
call fcn.100c1150
add esp, 0x24
jmp 0x100b77db
mov byte [ebx], 0
mov eax, ebx
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret
Function at 0x100b7800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.1005d3c0
mov eax, dword [0x101c10e0]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x44], edi
test eax, eax
je 0x100b7962
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100b7962
push 0x10158608
push eax
call fcn.100e0d10
mov ebx, eax
add esp, 8
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x100b794b
push 0x30
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.1005e5b0
add esp, 0xc
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.10076d74
add esp, 4
push eax
call fcn.1006ebf9
add esp, 8
test eax, eax
js 0x100b7942
lea eax, [edi + 8]
call fcn.1005d3c0
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.100b7410
add esp, 0x10
test dword [esp + 0x4e], 0x2000
je 0x100b78c6
mov eax, 0x800
cmp esi, 0xffffffff
push edi
push ebx
cmove esi, eax
call fcn.10151ddf
add esp, 8
mov edi, 0x400
test esi, esi
jle 0x100b78d4
cmp esi, edi
cmovl edi, esi
push ebx
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.1006d443
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x100b7928
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.1005d3c0
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push ebx
push eax
call fcn.100b7410
add dword [esp + 0x54], ebx
add esp, 0x10
mov ebx, dword [esp + 0x40]
test esi, esi
jle 0x100b78c6
sub esi, edi
test esi, esi
jg 0x100b78c6
lea eax, [esp + 0x78]
push 0x400
push eax
call fcn.100c8320
mov ebx, dword [esp + 0x48]
add esp, 8
mov edi, dword [esp + 0x44]
push ebx
call fcn.1006d7f9
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x47c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005cef4
mov esp, ebp
pop ebp
ret