joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002720
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [ebp + 8], 0
mov eax, ecx
push ebx
push esi
push edi
mov esi, edx
mov dword [esp + 0x14], eax
je 0x10002866
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
lea eax, [eax + eax*2]
shr eax, 2
cmp dword [esi + 0x18], eax
jb 0x10002764
mov eax, dword [esi + 4]
mov ecx, esi
sub eax, dword [esi]
sar eax, 3
add eax, eax
push eax
call fcn.10006e20
mov eax, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
sub ebx, edi
movzx eax, al
xor eax, 0x811c9dc5
sar ebx, 2
imul ecx, eax, 0x1000193
dec ebx
movzx eax, byte [ebp + 9]
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul ecx, ecx, 0x1000193
and ecx, ebx
xor edx, edx
nop dword [eax]
lea eax, [ecx*4]
mov edi, dword [eax + edi]
mov dword [esp + 0xc], eax
test edi, edi
js 0x100027df
mov eax, dword [esi]
lea eax, [eax + edi*8]
mov edi, dword [ebp + 8]
cmp dword [eax], edi
je 0x10002837
mov edi, dword [esi + 0xc]
inc ecx
add ecx, edx
inc edx
and ecx, ebx
cmp edx, ebx
jbe 0x100027b0
xor eax, eax
jmp 0x10002837
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0xc]
sar ecx, 3
mov dword [edx + eax], ecx
xor eax, eax
cmp edi, 0xffffffff
sete al
xor ecx, ecx
add dword [esi + 0x18], eax
xor edx, edx
mov eax, dword [esi + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
cmp eax, dword [esi + 8]
je 0x1000281b
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 4], 8
jmp 0x10002828
lea ecx, [esp + 0xc]
push ecx
push eax
mov ecx, esi
call fcn.10008280
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov dword [eax - 8], ecx
mov eax, dword [esi + 4]
sub eax, 8
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10002849
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
sar ecx, 3
mov dword [eax + 4], ecx
push 0
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
push eax
call fcn.10006230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
mov ecx, eax
call fcn.10006230
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100045e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100045fe
push 0
push 0
push 0
push 0x10004120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x100052b0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f53f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10050080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0
lea ecx, [ebx + 0x70]
mov dword [ebx], 0x100486e4
call fcn.10006d00
mov dword [ebp - 4], 0
lea esi, [ebx + 0x10]
mov eax, dword [ebx]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.100072c0
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], esi
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov ecx, esi
call fcn.10007060
lea eax, [ebx + 0x10]
lea ebx, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea esi, [eax + 8]
mov byte [eax + 0x48], 0
lea edi, [eax + 0x14]
mov byte [eax + 0x3d], 0
lea edx, [eax + 0x24]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x1c]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x10051fb8]
mov dword [eax], 0
mov eax, dword [0x10051fb4]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x14]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x38], 0
mov byte [ebp - 4], 3
cmp dword [ebx + 0x4c], 0
jne 0x10005464
push 0x40
push 1
push dword [ebp + 8]
call fcn.1001a722
add esp, 0xc
test eax, eax
je 0x10005464
push 1
push eax
mov ecx, ebx
call fcn.10006b10
mov eax, dword [ebx + 0x34]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
call fcn.100078b0
add esp, 4
mov ecx, ebx
push eax
call fcn.100069b0
test esi, esi
je 0x1000544d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x1000544d
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x10]
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001d40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10006e20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x10
mov dword [ebp - 4], ecx
cmp eax, edi
jbe 0x10006e3e
add edi, edi
cmp edi, eax
jb 0x10006e38
xor ebx, ebx
mov dword [ebp - 0xc], 0xffffffff
lea esi, [edi - 1]
mov dword [ebp + 8], ebx
xor edx, edx
mov dword [ebp - 0x14], esi
test edi, edi
je 0x10006ef3
cmp edi, 0x3fffffff
ja 0x10006fe6
lea ecx, [edi*4]
test ecx, ecx
je 0x10006eb2
cmp ecx, 0x1000
jb 0x10006ea0
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x10006feb
push eax
call fcn.1001ad9f
add esp, 4
test eax, eax
je 0x10006ff0
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x10006eab
push ecx
call fcn.1001ad9f
add esp, 4
mov ebx, eax
lea ecx, [edi*4]
lea eax, [ecx + ebx]
mov dword [ebp - 0x10], 0
lea esi, [ebp - 0xc]
mov dword [ebp + 8], eax
mov edx, eax
mov eax, dword [esi]
lea esi, [ebp - 0x10]
mov dword [ebp - 8], edx
cmp eax, dword [esi]
jne 0x10006ee1
push ecx
push 0
push ebx
call fcn.1001caf0
mov edx, dword [ebp - 8]
add esp, 0xc
jmp 0x10006ef0
mov ecx, edi
or eax, 0xffffffff
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x20]
add ecx, 0xc
mov dword [ebp - 8], ecx
cmp eax, ecx
je 0x10006f17
mov eax, ebx
mov ebx, dword [ecx]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, edx
mov edx, dword [ecx + 8]
mov dword [ecx + 8], eax
test ebx, ebx
je 0x10006f48
sub edx, ebx
mov eax, ebx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x10006f3e
mov ebx, dword [eax - 4]
add edx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006ff0
push edx
push ebx
call fcn.1001b0e9
add esp, 8
mov ebx, dword [ebp - 4]
xor edi, edi
mov ecx, dword [ebx + 4]
mov eax, ecx
mov edx, dword [ebx]
sub eax, edx
sar eax, 3
test eax, eax
je 0x10006fd5
nop dword [eax]
movzx eax, byte [edx + edi*8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + edi*8 + 1]
xor ecx, eax
movzx eax, byte [edx + edi*8 + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + edi*8 + 3]
mov edx, dword [ebp - 8]
imul ecx, ecx, 0x1000193
mov ebx, dword [edx]
xor ecx, eax
imul eax, ecx, 0x1000193
and eax, esi
xor ecx, ecx
nop
lea edx, [eax*4]
cmp dword [edx + ebx], 0
jl 0x10006fb9
inc eax
add eax, ecx
inc ecx
and eax, esi
cmp ecx, esi
jbe 0x10006fa0
jmp 0x10006fc1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [edx + eax], edi
mov ebx, dword [ebp - 4]
inc edi
mov ecx, dword [ebx + 4]
mov eax, ecx
mov edx, dword [ebx]
sub eax, edx
sar eax, 3
cmp edi, eax
jb 0x10006f60
sub ecx, edx
pop edi
sar ecx, 3
pop esi
mov dword [ebx + 0x18], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10007510
call fcn.100011e0
call fcn.100242d9
int3
Function at 0x10007060
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f6d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10050080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1001ad9f
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1001a39f
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10007000
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10014810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, eax
mov dword [esp + 0xc], ecx
shr esi, 5
mov ebx, eax
push edi
mov edi, edx
inc esi
mov dword [esp + 0x18], edi
mov edx, eax
cmp eax, esi
jb 0x1001485b
nop word [eax + eax]
movzx ecx, byte [edi + edx - 1]
mov eax, ebx
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp edx, esi
jae 0x10014840
mov edx, dword [esp + 0x10]
add edx, 0x10
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edx
mov eax, dword [edx]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x10014919
mov ecx, dword [ebp + 8]
cmp dword [edi + 0xc], ecx
jne 0x100148db
mov edx, dword [esp + 0x18]
lea eax, [edi + 0x10]
mov esi, ecx
sub esi, 4
jb 0x100148a6
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x100148ab
add edx, 4
add eax, 4
sub esi, 4
jae 0x10014895
cmp esi, 0xfffffffc
je 0x100148ee
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x100148d8
cmp esi, 0xfffffffd
je 0x100148ee
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x100148d8
cmp esi, 0xfffffffe
je 0x100148ee
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x100148d8
cmp esi, 0xffffffff
je 0x100148ee
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x100148ee
mov ecx, dword [ebp + 8]
mov edi, dword [edi]
test edi, edi
jne 0x10014882
mov edi, dword [esp + 0x10]
lea eax, [edi + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x1001491d
mov edx, dword [esp + 0x14]
mov al, byte [edi + 5]
mov ecx, dword [edx]
movzx edx, byte [ecx + 0x14]
not edx
movzx ecx, al
and edx, ecx
test dl, 3
je 0x100149b0
xor al, 3
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
mov esi, dword [ebp + 8]
lea eax, [esi + 1]
cmp eax, 0xffffffed
jbe 0x10014936
push str.memory_allocation_error:_block_too_big
push edi
call fcn.1000b160
add esp, 8
lea eax, [esi + 0x11]
xor edx, edx
push eax
push 0
mov ecx, edi
call fcn.1000e9f0
mov edx, dword [esp + 0x1c]
mov edi, eax
push esi
push dword [esp + 0x24]
mov dword [edi + 0xc], esi
lea eax, [edi + 0x10]
mov dword [edi + 8], ebx
mov ecx, dword [edx]
push eax
mov cl, byte [ecx + 0x14]
and cl, 3
mov byte [edi + 4], 4
mov byte [edi + 5], cl
mov byte [edi + 6], 0
call fcn.1001c4f0
mov edx, dword [esp + 0x30]
add esp, 0x14
mov byte [edi + esi + 0x10], 0
mov edx, dword [edx]
mov ecx, dword [edx + 8]
mov eax, dword [edx]
dec ecx
and ecx, ebx
mov eax, dword [eax + ecx*4]
mov dword [edi], eax
mov eax, dword [edx]
mov dword [eax + ecx*4], edi
inc dword [edx + 4]
mov eax, dword [edx + 8]
cmp dword [edx + 4], eax
jbe 0x100149b0
cmp eax, 0x3ffffffe
jg 0x100149b0
mov ecx, dword [esp + 0x10]
lea edx, [eax + eax]
call fcn.10014730
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019e60
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov eax, edx
mov esi, ecx
mov dword [ebp - 0xc], eax
push edi
lea edi, [esi + eax]
mov dword [ebp - 8], edi
cmp eax, 0x10
jb 0x10019f06
lea eax, [edi - 0x10]
mov edx, 0x24234452
push ebx
mov dword [ebp - 4], eax
mov ebx, 0x85ebcaa1
mov edi, 0x2a
mov eax, 0x61c88679
nop dword [eax]
imul ecx, dword [esi], 0x7a143589
sub edx, ecx
imul ecx, dword [esi + 4], 0x7a143589
rol edx, 0xd
imul edx, edx, 0x9e3779b1
sub ebx, ecx
imul ecx, dword [esi + 8], 0x7a143589
rol ebx, 0xd
imul ebx, ebx, 0x9e3779b1
sub edi, ecx
imul ecx, dword [esi + 0xc], 0x7a143589
rol edi, 0xd
add esi, 0x10
imul edi, edi, 0x9e3779b1
sub eax, ecx
rol eax, 0xd
imul eax, eax, 0x9e3779b1
cmp esi, dword [ebp - 4]
jbe 0x10019ea0
rol eax, 0x12
rol edi, 0xc
add eax, edi
rol ebx, 7
mov edi, dword [ebp - 8]
add eax, ebx
rol edx, 1
add eax, edx
pop ebx
jmp 0x10019f0b
mov eax, 0x165667db
add eax, dword [ebp - 0xc]
lea ecx, [esi + 4]
cmp ecx, edi
ja 0x10019f30
imul ecx, dword [esi], 0x3d4d51c3
add esi, 4
sub eax, ecx
lea ecx, [esi + 4]
rol eax, 0x11
imul eax, eax, 0x27d4eb2f
cmp ecx, edi
jbe 0x10019f15
cmp esi, edi
jae 0x10019f4d
movzx ecx, byte [esi]
inc esi
imul ecx, ecx, 0x165667b1
add ecx, eax
rol ecx, 0xb
imul eax, ecx, 0x9e3779b1
cmp esi, edi
jb 0x10019f34
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
imul ecx, ecx, 0x85ebca77
pop edi
pop esi
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002ea0d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002e87e

Function at 0x1002fa2b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10044178
push 0x10044170
push str.FlsAlloc
push 0x1e
call fcn.1002f898
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002fa5f
push dword [ebp + 8]
mov ecx, esi
call dword [0x100401f0]
call esi
jmp 0x1002fa65
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002faa9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10044188
push 0x10044180
push str.FlsGetValue
push 0x20
call fcn.1002f898
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002fae0
push dword [ebp + 8]
mov ecx, esi
call dword [0x100401f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1003021b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001bd80
mov eax, dword [0x10050080]
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.1002a682
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1003025d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100303b9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1003d360
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 + 0x10051b30]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100319e0
mov ecx, dword [esi*4 + 0x10051b30]
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 0x100303b2
cmp eax, dword [edi + ecx + 0x24]
jne 0x100303b2
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 0x100303b2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100319e0
add esp, 0x14
test edx, edx
jl 0x100303b2
jg 0x10030328
test eax, eax
jb 0x100303b2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100303b2
jl 0x10030342
cmp dword [ebp - 0x1008], eax
ja 0x100303b2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10030360
test ebx, ebx
je 0x10030399
cmp ecx, edi
jae 0x10030399
mov al, byte [ecx]
cmp al, 0xd
jne 0x1003037a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10030386
cmp byte [ecx + 1], 0xa
jne 0x10030386
inc ecx
jmp 0x10030386
movzx eax, al
movsx eax, byte [eax + 0x10050340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10030360
cmp edx, ebx
jne 0x10030360
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100303b7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001acac
leave
ret
Function at 0x10030e98
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 + 0x10051b30]
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 0x10030ed8
cmp byte [ebx], 0xa
jne 0x10030ed8
or byte [eax + edi + 0x28], 4
jmp 0x10030edd
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10030fdb
mov al, byte [edx]
cmp al, 0x1a
je 0x10030fbd
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x10030f0c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x10030f31
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x10030f3b
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 0x10030eee
jmp 0x10030fdb
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 0x10030fb8
cmp dword [ebp - 0xc], 0
je 0x10030fb8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10051b30]
test byte [eax + edi + 0x28], 0x48
je 0x10030f92
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10030f7d
mov byte [esi], dl
jmp 0x10030f8e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10051b30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10030fdb
cmp byte [ebp - 1], 0xa
jne 0x10030fa1
cmp esi, ebx
jne 0x10030fa1
mov byte [esi], 0xa
jmp 0x10030fda
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100319fe
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10030fdb
mov byte [esi], 0xd
jmp 0x10030fda
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10051b30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10030fd7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10030fdb
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10030fe4
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 + 0x10051b30]
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 0x10031027
cmp word [esi], dx
jne 0x10031027
or byte [edi + eax + 0x28], 4
jmp 0x1003102c
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 0x10031165
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 0x10031145
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1003106e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100310a4
cmp eax, edx
jae 0x100310b0
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 0x10031046
jmp 0x10031165
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 0x10031141
cmp dword [ebp - 0x14], 0
je 0x10031141
mov eax, dword [ebx*4 + 0x10051b30]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x10031119
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1003115f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10051b30]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10051b30]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10051b30]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x10031162
pop ebx
cmp word [ebp - 4], bx
jne 0x1003112a
cmp esi, dword [ebp + 0xc]
jne 0x1003112a
mov word [esi], bx
jmp 0x10031162
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100319fe
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10031165
push 0xd
jmp 0x1003115e
mov ecx, dword [ebx*4 + 0x10051b30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003115c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10031165
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 0x10034642
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 0x100346df
push ebx
push esi
call fcn.1003460b
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.10033412
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003468c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100346de
push edi
push eax
call fcn.1002d853
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100346ac
call fcn.1002d46f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100346dd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10033412
add esp, 0x20
test eax, eax
jne 0x100346cb
push edi
call fcn.1002d46f
jmp 0x100346d3
push ebx
call fcn.1002d46f
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