joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100014e4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b8
mov esi, ecx
lea edi, [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10006860
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x1c4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x100015c3
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 0
push 4
call fcn.10006b33
add esp, 4
mov ebx, dword [ebp - 0x20]
mov dword [ebx + 0x10], eax
mov dword [eax], 0
lea esi, [ebp - 0x30]
mov word [esi - 4], 2
lea edi, [ebp + 8]
movzx eax, word [edi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi - 2], ax
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10001587
mov eax, dword [edi]
push esi
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x34]
push 0x10
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
mov edx, ebx
setne bl
je 0x100015c5
xor eax, eax
inc eax
lea ecx, [ebp - 0x24]
mov dword [ecx], eax
push 4
push ecx
push eax
push 6
push dword [edx + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x100015c5
xor ebx, ebx
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x100015d9
inc eax
push eax
push dword [edi]
call fcn.10001f58
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c

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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov eax, dword [0x100312b8]
xor eax, esp
mov dword [esp + 8], eax
mov dword [esp], 0
xor edi, edi
mov ebp, dword [sym.imp.WS2_32.dll_recv]
cmp edi, 3
jg 0x10001d46
mov eax, 4
sub eax, edi
lea ecx, [esp + edi]
push 0
push eax
push ecx
push dword [esi + 0xc]
call ebp
add edi, eax
cmp eax, 0xffffffff
jne 0x10001d23
xor ebx, ebx
jmp 0x10001d7c
lea eax, [esp + 4]
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 4]
call fcn.100024f0
xor edi, edi
mov eax, dword [esp]
sub eax, edi
setle bl
jle 0x10001d7c
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
add ecx, edi
push 0
push eax
push ecx
push dword [esi + 0xc]
call ebp
add edi, eax
cmp eax, 0xffffffff
jne 0x10001d5a
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.10006b9e
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x1000302e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x100068f0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.10006f74
mov dword [edi + 4], ebx
mov byte [edi + 8], bl
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov dword [edi + 0x14], ebx
mov word [edi + 0x18], bx
mov dword [edi + 0x1c], ebx
mov word [edi + 0x20], bx
mov dword [edi + 0x24], ebx
mov byte [edi + 0x28], bl
mov dword [edi + 0x2c], ebx
mov byte [edi + 0x30], bl
test esi, esi
mov dword [ebp - 0x20], edi
je 0x100030bd
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.100070b4
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], 0
push str.bad_locale_name
call fcn.100076e2
add esp, 4
nop
push ebp
sub esp, 8
add ebp, 0xc
mov eax, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x100030ee
push eax
call fcn.1001164c
add esp, 4
mov eax, esi
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10003107
push eax
call fcn.1001164c
add esp, 4
mov eax, esi
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10003120
push eax
call fcn.1001164c
add esp, 4
mov eax, esi
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10003139
push eax
call fcn.1001164c
add esp, 4
mov eax, esi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10003152
push eax
call fcn.1001164c
add esp, 4
mov eax, esi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000316b
push eax
call fcn.1001164c
add esp, 4
mov ecx, esi
mov dword [esi + 4], 0
call fcn.10006fa5
add esp, 8
pop ebp
ret
Function at 0x10005cd6
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10006a00
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov ebx, 0x811c9dc5
xor eax, eax
movzx edx, byte [esi + eax]
xor edx, ebx
imul ebx, edx, 0x1000193
inc eax
cmp eax, 4
jne 0x10005d0c
lea edi, [ebp - 0x40]
push ebx
push esi
push edi
mov dword [ebp - 0x24], ebx
mov ebx, ecx
call fcn.10005e56
mov eax, dword [edi + 4]
test eax, eax
je 0x10005d43
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov byte [ecx + 4], 0
jmp 0x10005e18
cmp dword [ebx + 8], 0xfffffff
mov dword [ebp - 0x10], 0xffffffff
je 0x10005e2e
lea edi, [ebp - 0x38]
mov dword [edi], esi
lea eax, [ebx + 4]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x2c]
push edx
push edi
push 0x100267d4
push eax
call fcn.10005ea2
mov eax, dword [ebx + 8]
inc eax
movq xmm0, qword [0x10026048]
movd xmm1, eax
por xmm1, xmm0
subsd xmm1, xmm0
cvtsd2ss xmm1, xmm1
movss xmm2, dword [ebx + 0x1c]
orpd xmm2, xmm0
subsd xmm2, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm2
divss xmm1, xmm0
ucomiss xmm1, dword [ebx]
jbe 0x10005de3
mov dword [ebp - 0x10], 0
mov ecx, ebx
mov dword [ebp - 0x30], ebx
call fcn.10005f38
mov eax, dword [ebp - 0x28]
add eax, 8
mov ebx, dword [ebp - 0x30]
mov ecx, ebx
mov esi, dword [ebp - 0x24]
push esi
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10005e56
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
jmp 0x10005de9
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov ecx, ebx
push edx
push eax
push esi
call fcn.10005fca
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov byte [ecx + 4], 1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10005e18
push 0x10
push eax
call fcn.10006b68
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.100076a2
push ebp
sub esp, 0x10
add ebp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10005e51
push 0x10
push eax
call fcn.10006b68
add esp, 8
add esp, 0x10
pop ebp
ret
Function at 0x1000601a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x24]
cmp eax, 0x10000001
jae 0x10006164
mov edi, ecx
dec eax
or eax, 1
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor esi, esi
inc esi
shl esi, cl
lea eax, [edi + 0xc]
mov ebx, dword [edi + 4]
mov edx, 2
shl edx, cl
mov ecx, eax
push ebx
push edx
call fcn.1000616e
lea eax, [esi - 1]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], esi
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp eax, ebx
je 0x1000615a
mov dword [esp + 4], edi
mov dword [esp], ebx
mov ecx, eax
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ebp, 0x811c9dc5
mov edx, 8
movzx esi, byte [ecx + edx]
xor esi, ebp
imul ebp, esi, 0x1000193
inc edx
cmp edx, 0xc
jne 0x10006088
and ebp, dword [edi + 0x18]
mov edx, dword [edi + 0xc]
mov eax, edi
mov edi, ebp
add edi, ebp
lea esi, [ebp + 1]
add esi, ebp
mov ebp, dword [edx + ebp*8]
cmp ebp, ebx
je 0x100060f2
mov dword [esp + 8], edi
mov edi, dword [edx + esi*4]
mov ebx, dword [ecx + 8]
cmp ebx, dword [edi + 8]
jne 0x10006100
mov edi, dword [edi]
cmp edi, ecx
mov eax, dword [esp + 0xc]
je 0x10006148
mov ebx, dword [ecx + 4]
mov dword [esp + 8], ebx
mov dword [ebx], eax
mov ebp, dword [eax + 4]
mov dword [ebp], edi
mov ebx, dword [edi + 4]
mov dword [ebx], ecx
mov dword [edi + 4], ebp
mov edi, dword [esp + 8]
mov dword [eax + 4], edi
mov dword [ecx + 4], ebx
jmp 0x10006148
mov dword [edx + edi*4], ecx
mov dword [edx + esi*4], ecx
mov edi, eax
mov eax, dword [esp + 0xc]
jmp 0x10006152
mov eax, dword [esp + 0xc]
cmp ebp, edi
je 0x1000612c
mov edi, dword [edi + 4]
cmp ebx, dword [edi + 8]
jne 0x10006104
mov edx, dword [edi]
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edi, dword [eax + 4]
mov dword [edi], edx
mov ebx, dword [edx + 4]
mov dword [ebx], ecx
mov dword [edx + 4], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
jmp 0x1000614b
mov esi, dword [ecx + 4]
mov dword [esi], eax
mov edi, dword [eax + 4]
mov dword [edi], ebp
mov ebx, dword [ebp + 4]
mov dword [ebx], ecx
mov dword [ebp + 4], edi
mov dword [eax + 4], esi
mov dword [ecx + 4], ebx
mov esi, dword [esp + 8]
mov dword [edx + esi*4], ecx
mov edi, dword [esp + 4]
mov ebx, dword [esp]
cmp eax, ebx
jne 0x10006076
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.100076a2

Function at 0x1000623a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov edi, ecx
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x100312b8]
xor ecx, esp
mov dword [esp + 8], ecx
mov edx, 0x811c9dc5
xor ecx, ecx
movzx ebx, byte [eax + ecx]
xor ebx, edx
imul edx, ebx, 0x1000193
inc ecx
cmp ecx, 4
jne 0x1000625d
mov ebx, esp
mov ecx, edi
push edx
push eax
push ebx
call fcn.10005e56
mov eax, dword [ebx + 4]
test eax, eax
jne 0x10006285
mov eax, dword [edi + 4]
mov dword [esi], eax
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.10006b9e
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
ret 8
Function at 0x100065a8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10006a30
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
push 8
call fcn.10006b33
add esp, 4
mov edi, eax
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
lea eax, [esi + 4]
xor ebx, ebx
mov dword [ebp - 0x24], eax
push eax
push ebx
push edi
push 0x1000664c
push ebx
push ebx
call fcn.1000f1d1
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x10006622
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x24]
mov dword [eax], ebx
mov dword [ebp - 0x10], ebx
push 6
call fcn.100075a5
add esp, 4
nop
push ebp
sub esp, 0x18
add ebp, 0xc
push dword [ebp - 0x20]
call fcn.10006b63
add esp, 0x1c
pop ebp
ret

Function at 0x100066bc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10006a50
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
push 4
call fcn.10006b33
add esp, 4
mov edi, eax
mov dword [eax], ebx
lea eax, [esi + 4]
xor ebx, ebx
mov dword [ebp - 0x24], eax
push eax
push ebx
push edi
push 0x10006758
push ebx
push ebx
call fcn.1000f1d1
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x1000672e
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x24]
mov dword [eax], ebx
mov dword [ebp - 0x10], ebx
push 6
call fcn.100075a5
add esp, 4
nop
push ebp
sub esp, 0x18
add ebp, 0xc
push dword [ebp - 0x20]
call fcn.10006b63
add esp, 0x1c
pop ebp
ret
Function at 0x10008338
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10008359
jl 0x10008350
test edi, edi
jne 0x10008359
xor eax, eax
xor edx, edx
jmp 0x1000841a
cmp dword [ebx + 0x38], 0
je 0x1000836e
push eax
push edi
push dword [ebp + 8]
call fcn.10007ace
jmp 0x1000841a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100083b5
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x100083b5
cmp eax, edi
jb 0x1000838f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1000c220
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x100083bb
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1000840f
mov ecx, ebx
call fcn.10008853
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x100083fa
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10011456
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1000840f
jmp 0x100083cd
test edx, edx
je 0x1000840f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10011456
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x1000f4a6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000f4e5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f4e5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f4e5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000f4e5
cmp dword [ecx + 0x74], 0xe
jbe 0x1000f4e5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10013a80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10013aad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10013aad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10015ff1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028d0c
push 0x10028d04
push str.FlsAlloc
push 0x1f
call fcn.100164b1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016025
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1001602b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1001606f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028d1c
push 0x10028d14
push str.FlsGetValue
push 0x21
call fcn.100164b1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100160a6
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100160ae
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028d24
push 0x10028d1c
push str.FlsSetValue
push 0x22
call fcn.100164b1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100160e8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10019769
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10009d50
mov eax, dword [0x100312b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10018bb7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100197ab
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10019907
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10006bb0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10032c78]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10019511
mov ecx, dword [esi*4 + 0x10032c78]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10019900
cmp eax, dword [ecx + edi + 0x24]
jne 0x10019900
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019900
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10019511
add esp, 0x14
test edx, edx
jl 0x10019900
jg 0x10019876
test eax, eax
jb 0x10019900
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10019900
jl 0x10019890
cmp dword [ebp - 0x1008], eax
ja 0x10019900
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100198ae
test ebx, ebx
je 0x100198e7
cmp ecx, edi
jae 0x100198e7
mov al, byte [ecx]
cmp al, 0xd
jne 0x100198c8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100198d4
cmp byte [ecx + 1], 0xa
jne 0x100198d4
inc ecx
jmp 0x100198d4
movzx eax, al
movsx eax, byte [eax + 0x10031bd8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100198ae
cmp edx, ebx
jne 0x100198ae
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10019905
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10006b9e
leave
ret
Function at 0x10019d0f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10019dac
push ebx
push esi
call fcn.10019daf
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10013e81
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10019d59
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10019dab
push edi
push eax
call fcn.10013d71
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10019d79
call fcn.10013d37
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10019daa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10013e81
add esp, 0x20
test eax, eax
jne 0x10019d98
push edi
call fcn.10013d37
jmp 0x10019da0
push ebx
call fcn.10013d37
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1001be6e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10032c78]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001beae
cmp byte [ebx], 0xa
jne 0x1001beae
or byte [edi + eax + 0x28], 4
jmp 0x1001beb3
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1001bfb2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001bf95
inc eax
cmp dl, 0xd
je 0x1001bedf
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001bf05
cmp eax, ecx
jae 0x1001bf13
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1001bec7
jmp 0x1001bfb2
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001bf90
cmp dword [ebp - 0x10], 0
je 0x1001bf90
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10032c78]
test byte [eax + edi + 0x28], 0x48
je 0x1001bf6a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001bf55
mov byte [esi], dl
jmp 0x1001bf66
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10032c78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001bfb2
cmp byte [ebp - 1], 0xa
jne 0x1001bf79
cmp esi, ebx
jne 0x1001bf79
mov byte [esi], 0xa
jmp 0x1001bfb1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100194b3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001bfb2
mov byte [esi], 0xd
jmp 0x1001bfb1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10032c78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001bfaf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001bfb2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001bfbb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10032c78]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001c001
cmp word [ebx], dx
jne 0x1001c001
or byte [eax + edi + 0x28], 4
jmp 0x1001c006
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001c169
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001c149
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001c047
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001c07d
cmp eax, edx
jae 0x1001c08b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1001c022
jmp 0x1001c169
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001c144
cmp dword [ebp - 0x18], 0
je 0x1001c144
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10032c78]
test byte [eax + edi + 0x28], 0x48
je 0x1001c11a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1001c0de
mov word [esi], cx
jmp 0x1001c115
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10032c78]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10032c78]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10032c78]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001c169
pop eax
cmp word [ebp - 4], ax
jne 0x1001c12a
cmp esi, ebx
jne 0x1001c12a
mov word [esi], ax
jmp 0x1001c166
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100194b3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001c169
push 0xd
pop eax
jmp 0x1001c125
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10032c78]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001c163
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001c169
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret