joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001fc80
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
movzx eax, byte [edi + 4]
mov byte [esi + 4], al
movzx eax, byte [edi + 5]
mov byte [esi + 5], al
movzx eax, byte [edi + 6]
mov byte [esi + 6], al
movzx eax, byte [edi + 7]
mov byte [esi + 7], al
movzx eax, byte [edi + 8]
mov byte [esi + 8], al
movzx eax, byte [edi + 9]
mov byte [esi + 9], al
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
lea ecx, [esi + 0x2c]
movzx eax, byte [edi + 0x28]
mov byte [esi + 0x28], al
movzx eax, byte [edi + 0x29]
mov byte [esi + 0x29], al
movzx eax, byte [edi + 0x2a]
mov byte [esi + 0x2a], al
lea eax, [edi + 0x2c]
push eax
call fcn.1001fb20
lea eax, [edi + 0x38]
lea ecx, [esi + 0x38]
cmp ecx, eax
je 0x1001fd18
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 2
push eax
push edx
call fcn.1001d090
lea eax, [edi + 0x44]
lea ecx, [esi + 0x44]
cmp ecx, eax
je 0x1001fd34
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x1001fd2d
mov eax, dword [eax]
push edx
push eax
call fcn.10021fa0
lea eax, [edi + 0x5c]
lea ecx, [esi + 0x5c]
cmp ecx, eax
je 0x1001fd50
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x1001fd49
mov eax, dword [eax]
push edx
push eax
call fcn.10021fa0
mov eax, dword [edi + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [edi + 0x78]
mov dword [esi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x10023690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b259d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10147364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.10056fcd
mov edi, eax
add esp, 4
test edi, edi
je 0x1002372d
push 1
mov dword [ebp - 4], 0
call fcn.10039f8b
add esp, 4
mov dword [edi + 4], eax
jmp 0x1002372f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.1001e580
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x1002378a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x1002378a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x100237a6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x100237c9
cmp byte [ebp + 0xc], 0
je 0x100237b5
push esi
call fcn.1003a611
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x100237d5
mov esi, str.ios_base::badbit_set
jmp 0x100237e5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.10023c90
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.1001f0c0
push 0x1014256c
lea eax, [ebp - 0x28]
push eax
call fcn.10059110
int3

Function at 0x10024f70
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
pop ebp
ret 4
Function at 0x10027c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
mov edi, ecx
mov eax, dword [esi]
mov dword [edi], eax
movzx eax, byte [esi + 4]
mov byte [edi + 4], al
movzx eax, byte [esi + 5]
mov byte [edi + 5], al
movzx eax, byte [esi + 6]
mov byte [edi + 6], al
movzx eax, byte [esi + 7]
mov byte [edi + 7], al
movzx eax, byte [esi + 8]
mov byte [edi + 8], al
movzx eax, byte [esi + 9]
mov byte [edi + 9], al
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
movzx eax, byte [esi + 0x28]
mov byte [edi + 0x28], al
movzx eax, byte [esi + 0x29]
mov byte [edi + 0x29], al
movzx eax, byte [esi + 0x2a]
mov byte [edi + 0x2a], al
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], edx
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x40], edx
movups xmmword [edi + 0x44], xmm0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
movups xmm0, xmmword [esi + 0x44]
movups xmmword [edi + 0x44], xmm0
movq xmm0, qword [esi + 0x54]
movq qword [edi + 0x54], xmm0
xorps xmm0, xmm0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0xf
mov byte [esi + 0x44], 0
movups xmmword [edi + 0x5c], xmm0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
movups xmm0, xmmword [esi + 0x5c]
movups xmmword [edi + 0x5c], xmm0
movq xmm0, qword [esi + 0x6c]
movq qword [edi + 0x6c], xmm0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0xf
mov byte [esi + 0x5c], 0
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 0x78], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x1002ceb0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov al, byte [esi + 0xc]
lea edx, [edi + 0x430]
mov dword [ebp - 0xc], edx
test al, 3
je 0x1002ceea
movzx eax, al
and eax, 3
mov ecx, dword [eax*8 + 0x100c16e0]
or dword [edx], ecx
mov eax, dword [eax*8 + 0x100c16e4]
or dword [edx + 4], eax
jmp 0x1002ceed
mov dword [ebp - 0xc], edx
mov al, byte [esi + 0xc]
test al, 0xc
je 0x1002cf10
movzx ecx, al
shr ecx, 2
and ecx, 3
mov eax, dword [ecx*8 + 0x100c1700]
or dword [edx], eax
mov eax, dword [ecx*8 + 0x100c1704]
or dword [edx + 4], eax
mov al, byte [esi + 0xc]
test al, 0x30
je 0x1002cf33
movzx ecx, al
shr ecx, 4
and ecx, 3
mov eax, dword [ecx*8 + 0x100c1720]
or dword [edx], eax
mov eax, dword [ecx*8 + 0x100c1724]
or dword [edx + 4], eax
mov eax, dword [edi + 0xc]
jmp dword [eax*4 + 0x1002d2b4]

Function at 0x1003c549
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 0x1003c56a
jl 0x1003c561
test edi, edi
jne 0x1003c56a
xor eax, eax
xor edx, edx
jmp 0x1003c62b
cmp dword [ebx + 0x38], 0
je 0x1003c57f
push eax
push edi
push dword [ebp + 8]
call fcn.10024bc0
jmp 0x1003c62b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1003c5c6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1003c5c6
cmp eax, edi
jb 0x1003c5a0
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10059610
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 0x1003c5cc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1003c620
mov ecx, ebx
call fcn.1003ba2d
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1003c60b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.100877b5
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 0x1003c620
jmp 0x1003c5de
test edx, edx
je 0x1003c620
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.100877b5
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 0x1005671b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.100851c2
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x1005675a
sub eax, 1
je 0x10056755
sub eax, 1
je 0x10056751
xor eax, eax
leave
ret
push 3
jmp 0x1005675c
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x10097b1d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10136234
push 0x1013622c
push str.FlsAlloc
push 0x1e
call fcn.100977ed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10097b51
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b71a8]
call esi
jmp 0x10097b57
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10097b9b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10136244
push 0x1013623c
push str.FlsGetValue
push 0x20
call fcn.100977ed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10097bd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x100b71a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1009cb58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009c73f

Function at 0x1009d086
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10058d40
mov eax, dword [0x10147364]
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.100986ed
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1009d0c8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1009d224
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100b0300
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 + 0x1014a428]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1009e1e8
mov ecx, dword [esi*4 + 0x1014a428]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1009d21d
cmp eax, dword [edi + ecx + 0x24]
jne 0x1009d21d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009d21d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1009e1e8
add esp, 0x14
test edx, edx
jl 0x1009d21d
jg 0x1009d193
test eax, eax
jb 0x1009d21d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1009d21d
jl 0x1009d1ad
cmp dword [ebp - 0x1008], eax
ja 0x1009d21d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1009d1cb
test ebx, ebx
je 0x1009d204
cmp ecx, edi
jae 0x1009d204
mov al, byte [ecx]
cmp al, 0xd
jne 0x1009d1e5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1009d1f1
cmp byte [ecx + 1], 0xa
jne 0x1009d1f1
inc ecx
jmp 0x1009d1f1
movzx eax, al
movsx eax, byte [eax + 0x101475f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1009d1cb
cmp edx, ebx
jne 0x1009d1cb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1009d222
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100573a2
leave
ret
Function at 0x1009d371
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x1014a428]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1009d3b1
cmp byte [ebx], 0xa
jne 0x1009d3b1
or byte [eax + edi + 0x28], 4
jmp 0x1009d3b6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1009d4b4
mov al, byte [edx]
cmp al, 0x1a
je 0x1009d496
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1009d3e5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1009d40a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1009d414
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1009d3c7
jmp 0x1009d4b4
push 0
lea eax, [ebp - 0xc]
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 0x1009d491
cmp dword [ebp - 0xc], 0
je 0x1009d491
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1014a428]
test byte [eax + edi + 0x28], 0x48
je 0x1009d46b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1009d456
mov byte [esi], dl
jmp 0x1009d467
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1014a428]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1009d4b4
cmp byte [ebp - 1], 0xa
jne 0x1009d47a
cmp esi, ebx
jne 0x1009d47a
mov byte [esi], 0xa
jmp 0x1009d4b3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1009e206
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1009d4b4
mov byte [esi], 0xd
jmp 0x1009d4b3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1014a428]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009d4b0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1009d4b4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1009d4bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1014a428]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1009d500
cmp word [esi], dx
jne 0x1009d500
or byte [edi + eax + 0x28], 4
jmp 0x1009d505
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1009d658
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1009d638
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1009d547
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1009d57d
cmp eax, edx
jae 0x1009d589
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1009d51f
jmp 0x1009d658
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009d634
cmp dword [ebp - 0x14], 0
je 0x1009d634
mov eax, dword [ebx*4 + 0x1014a428]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1009d60c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1009d5d5
mov word [esi], cx
jmp 0x1009d608
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1014a428]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1014a428]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1014a428]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1009d658
pop ebx
cmp word [ebp - 4], bx
jne 0x1009d61d
cmp esi, dword [ebp + 0xc]
jne 0x1009d61d
mov word [esi], bx
jmp 0x1009d655
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1009e206
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1009d658
push 0xd
jmp 0x1009d651
mov ecx, dword [ebx*4 + 0x1014a428]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009d64f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1009d658
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100a1a23
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10147364]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x100a1a6e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.100a1dfd
test al, al
jne 0x100a1a68
sub edx, 2
cmp edx, edi
jne 0x100a1a4e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x100a1a90
lea eax, [edi + 2]
cmp edx, eax
je 0x100a1a90
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.100a16ea
add esp, 0x10
jmp 0x100a1b8a
push esi
lea ecx, [ebp - 0x255]
call fcn.100a1dfd
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100a1ad3
push dword [ebp - 0x25c]
jmp 0x100a1a80
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x100a1b10
cmp word [ebp - 0x226], 0
je 0x100a1b31
cmp word [ebp - 0x226], ax
jne 0x100a1b10
cmp word [ebp - 0x224], 0
je 0x100a1b31
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.100a16ea
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x100a1b7d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x100a1aea
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x100a1b65
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x100a1b8a
push 0x100a1209
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.100acae0
add esp, 0x10
jmp 0x100a1b5a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100573a2
leave
ret
Function at 0x100a2f77
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 0x100a3014
push ebx
push esi
call fcn.100a2f33
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.100a00a7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100a2fc1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a3013
push edi
push eax
call fcn.100982ce
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100a2fe1
call fcn.10098294
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100a3012
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100a00a7
add esp, 0x20
test eax, eax
jne 0x100a3000
push edi
call fcn.10098294
jmp 0x100a3008
push ebx
call fcn.10098294
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 0x100a3017
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100a3028
pop esi
ret
push ebx
push edi
push esi
call fcn.100a2f33
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100982ce
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100a3050
push ebx
push esi
push edi
call fcn.10059610
add esp, 0xc
push 0
call fcn.10098294
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100a3931
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a32c3

Function at 0x100aee2b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100aecff

Function at 0x100b02c0
Capabilities:
Parse pe header

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