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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4515c5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x46b080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, edx
cmp dword [edx + 0x14], 0xf
jbe 0x4119f7
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x411a15
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x411a03
push esi
push edx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00411930
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x411a46
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
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
cmp dword [ebx + 8], 0x71c71c7
je 0x411b9f
lea eax, [ebx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x1c], 0
call fcn.0042ae5d
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.00405520
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x45dde0]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x45dde0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x411b41
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.0044a500
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.0044c4c0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x411b25
cmp eax, 0x200
jae 0x411b23
shl eax, 3
cmp eax, ecx
jae 0x411b25
mov eax, ecx
push eax
mov ecx, ebx
call fcn.00411f20
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00411930
mov edx, dword [eax]
jmp 0x411b44
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x411b6c
mov dword [ecx + eax*8], edi
jmp 0x411b7e
cmp esi, edx
jne 0x411b75
mov dword [ecx + eax*8], edi
jmp 0x411b82
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x411b82
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
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
push str.unordered_map_set_too_long
call fcn.00429b6c
int3
Function at 0x413c20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
and ecx, eax
mov eax, dword [esi + 0xc]
lea edx, [eax + ecx*8]
mov eax, dword [edx + 4]
cmp eax, dword [esi + 4]
je 0x413c93
mov ecx, dword [edi]
mov edx, dword [edx]
pop edi
pop esi
cmp ecx, dword [eax + 8]
je 0x413c8c
nop word [eax + eax]
cmp eax, edx
je 0x413c93
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
jne 0x413c80
add eax, 0xc
pop ebp
ret 4
push str.invalid_unordered_map_K__T__key
call fcn.00429b8c
int3
Function at 0x417010
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451d55
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x46b080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, edx
cmp dword [edx + 0x14], 0xf
jbe 0x417047
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x417065
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x417053
push esi
push edx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00411930
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x417096
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
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
cmp dword [ebx + 8], 0x6666666
je 0x4171f0
lea eax, [ebx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x28
mov dword [ebp - 0x1c], 0
call fcn.0042ae5d
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.00405520
xorps xmm0, xmm0
movsd qword [edi + 0x20], xmm0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x45dde0]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x45dde0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x417192
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.0044a500
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.0044c4c0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x417176
cmp eax, 0x200
jae 0x417174
shl eax, 3
cmp eax, ecx
jae 0x417176
mov eax, ecx
push eax
mov ecx, ebx
call fcn.00411f20
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00411930
mov edx, dword [eax]
jmp 0x417195
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x4171bd
mov dword [ecx + eax*8], edi
jmp 0x4171cf
cmp esi, edx
jne 0x4171c6
mov dword [ecx + eax*8], edi
jmp 0x4171d3
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x4171d3
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
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
push str.unordered_map_set_too_long
call fcn.00429b6c
int3
Function at 0x41ffa0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 4], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x4200fa
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00402820
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x4200cd
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 8], edx
cmp edi, esi
jne 0x420053
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x4200c3
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x42008d
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x420085
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x4200c0
cmp edi, edx
je 0x42009d
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x4200d6
cmp edi, edx
jne 0x420091
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jne 0x420002
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x4200c0
push str.invalid_hash_bucket_count
call fcn.00429b6c
int3
Function at 0x424190
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452e57
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x46b080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
mov dword [edi], 0
mov dword [ebp - 4], 0
add edi, 4
mov eax, dword [esi]
mov dword [edi], eax
lea ecx, [edi + 0x18]
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
movzx eax, byte [esi + 0x14]
mov byte [edi + 0x14], al
lea eax, [esi + 0x18]
push eax
call fcn.00405520
movzx eax, byte [esi + 0x30]
mov byte [edi + 0x30], al
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
movzx eax, byte [esi + 0x38]
mov byte [edi + 0x38], al
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x44]
push 4
push str.hann
mov dword [edi], 0x467a0000
lea ecx, [esi + 0x1c]
mov dword [esi + 8], 0x41200000
mov dword [esi + 0xc], 0x41c80000
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
call fcn.00406ec0
mov byte [esi + 0x34], 0
xorps xmm0, xmm0
mov byte [esi + 0x3c], 0
mov eax, dword [str.slaney]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], eax
mov ax, word [0x45c94c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x42c80000
mov dword [ebp - 0x30], 0xc3fa0000
mov word [ebp - 0x2c], 0
mov dword [ebp - 0x18], 6
mov dword [ebp - 0x14], 0xf
mov word [ebp - 0x24], ax
mov byte [ebp - 0x22], 0
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x40]
push 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x2a], 1
call fcn.0042ae5d
mov esi, eax
add esp, 4
mov dword [ebp - 0x48], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push edi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
mov word [esi + 0xc], 0
call fcn.004252a0
mov edi, dword [ebp - 0x44]
mov eax, dword [edi]
mov dword [ebp - 0x44], eax
mov dword [edi], esi
test eax, eax
je 0x42431b
mov ecx, eax
call fcn.0040aa20
push 0x10
push dword [ebp - 0x44]
call fcn.0042ae8d
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x42434b
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x424341
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42436a
push ecx
push edx
call fcn.0042ae8d
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ae4f
mov esp, ebp
pop ebp
ret 4
call fcn.00432a40
int3
Function at 0x42bd35
Capabilities:
Parse pe header

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

Function at 0x43c3d5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x457cb0
push 0x457ca8
push str.FlsAlloc
push 0x1e
call fcn.0043c242
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43c409
push dword [ebp + 8]
mov ecx, esi
call dword [0x454140]
call esi
jmp 0x43c40f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43c453
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x457cc0
push 0x457cb8
push str.FlsGetValue
push 0x20
call fcn.0043c242
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43c48a
push dword [ebp + 8]
mov ecx, esi
call dword [0x454140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43fdc7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043fc38

Function at 0x4401c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042bea0
mov eax, dword [0x46b080]
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.0043d8f9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x440203
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44035f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044c130
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 + 0x46cc00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00440fa2
mov ecx, dword [esi*4 + 0x46cc00]
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 0x440358
cmp eax, dword [edi + ecx + 0x24]
jne 0x440358
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 0x440358
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00440fa2
add esp, 0x14
test edx, edx
jl 0x440358
jg 0x4402ce
test eax, eax
jb 0x440358
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x440358
jl 0x4402e8
cmp dword [ebp - 0x1008], eax
ja 0x440358
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x440306
test ebx, ebx
je 0x44033f
cmp ecx, edi
jae 0x44033f
mov al, byte [ecx]
cmp al, 0xd
jne 0x440320
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44032c
cmp byte [ecx + 1], 0xa
jne 0x44032c
inc ecx
jmp 0x44032c
movzx eax, al
movsx eax, byte [eax + 0x46b348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x440306
cmp edx, ebx
jne 0x440306
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44035d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042ae4f
leave
ret
Function at 0x44045a
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 + 0x46cc00]
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 0x44049a
cmp byte [ebx], 0xa
jne 0x44049a
or byte [eax + edi + 0x28], 4
jmp 0x44049f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44059d
mov al, byte [edx]
cmp al, 0x1a
je 0x44057f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4404ce
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4404f3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4404fd
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 0x4404b0
jmp 0x44059d
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 0x44057a
cmp dword [ebp - 0xc], 0
je 0x44057a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46cc00]
test byte [eax + edi + 0x28], 0x48
je 0x440554
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44053f
mov byte [esi], dl
jmp 0x440550
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46cc00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44059d
cmp byte [ebp - 1], 0xa
jne 0x440563
cmp esi, ebx
jne 0x440563
mov byte [esi], 0xa
jmp 0x44059c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00440fc0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44059d
mov byte [esi], 0xd
jmp 0x44059c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46cc00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x440599
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44059d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4405a6
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 + 0x46cc00]
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 0x4405e9
cmp word [esi], dx
jne 0x4405e9
or byte [edi + eax + 0x28], 4
jmp 0x4405ee
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 0x440727
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 0x440707
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x440630
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x440666
cmp eax, edx
jae 0x440672
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 0x440608
jmp 0x440727
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 0x440703
cmp dword [ebp - 0x14], 0
je 0x440703
mov eax, dword [ebx*4 + 0x46cc00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4406db
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x440721
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46cc00]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x46cc00]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46cc00]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x440724
pop ebx
cmp word [ebp - 4], bx
jne 0x4406ec
cmp esi, dword [ebp + 0xc]
jne 0x4406ec
mov word [esi], bx
jmp 0x440724
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00440fc0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x440727
push 0xd
jmp 0x440720
mov ecx, dword [ebx*4 + 0x46cc00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44071e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x440727
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 0x443a1d
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 0x443aba
push ebx
push esi
call fcn.004439e6
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.0044266b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x443a67
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x443ab9
push edi
push eax
call fcn.0043ca08
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x443a87
call fcn.0043bf67
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x443ab8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044266b
add esp, 0x20
test eax, eax
jne 0x443aa6
push edi
call fcn.0043bf67
jmp 0x443aae
push ebx
call fcn.0043bf67
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