joyce8/EMBER2024-capa huggingface dataset:
Function at 0x23d958
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x14]
xor eax, eax
push ebp
push 0x23db11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x3fffffff
call fcn.00222c54
mov edi, eax
add edi, 0x12e499d
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov ecx, edi
mov edx, dword [ebp - 0xc]
call fcn.0023d3e0
mov eax, dword [ebp - 0x10]
call fcn.002251b4
add eax, 0x48
push eax
mov eax, esi
mov ecx, 1
mov edx, dword [0x225d70]
call fcn.00225390
add esp, 4
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
call fcn.002251b4
add eax, 0x48
mov edx, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
call fcn.002251b4
add edi, 0x48
add eax, edi
mov edx, dword [ebx]
mov dword [edx + 8], eax
mov eax, dword [ebx]
mov eax, dword [eax]
mov edx, dword [ebx]
add eax, dword [edx + 8]
mov ecx, 7
cdq
idiv ecx
lea ecx, [eax + eax*2]
mov eax, dword [ebx]
mov dword [eax + 4], ecx
add ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x18], ecx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [edx + 0x14], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, 0x989680
mov edx, dword [ebx]
mov dword [edx + 0x1c], eax
call fcn.0023cce8
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0022ab7c
push edx
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov ecx, dword [ebx]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, 0x3fffffff
call fcn.00222c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x10]
call fcn.002251b4
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
add eax, 0x48
call fcn.0022b55c
mov eax, 0x3fffffff
call fcn.00222c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x40], eax
adc dword [ecx + 0x44], edx
mov eax, 0x3fffffff
call fcn.00222c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x38], eax
adc dword [ecx + 0x3c], edx
mov eax, 0x3fffffff
call fcn.00222c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x30], eax
adc dword [ecx + 0x34], edx
mov eax, 0x3fffffff
call fcn.00222c54
mov edx, dword [ebx]
add eax, dword [edx + 4]
cdq
mov ecx, dword [ebx]
add dword [ecx + 0x28], eax
adc dword [ecx + 0x2c], edx
mov eax, 0x3fffffff
call fcn.00222c54
mov edx, dword [ebx]
add dword [edx + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x23db18
lea eax, [ebp - 0x10]
mov edx, dword [0x225d70]
call fcn.0022539c
ret
Function at 0x23f5c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x23f6f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, ebx
call fcn.002240c8
mov eax, dword [esi]
call fcn.00224344
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x23f6e2
mov eax, edi
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, edi
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, edi
shr eax, 8
mov byte [ebp - 0xe], al
mov eax, edi
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0
jl 0x23f6ce
mov dword [ebp - 8], eax
mov eax, esi
call fcn.0022459c
mov edx, dword [esi]
mov dl, byte [edx]
mov cl, byte [ebp - 0xf]
add dl, cl
mov byte [eax], dl
mov edi, dword [ebp - 0xc]
sub edi, 2
jl 0x23f67a
inc edi
mov ebx, 2
mov eax, esi
call fcn.0022459c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 2]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
add dl, cl
mov cl, byte [ebp - 0xd]
xor dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x23f658
mov eax, esi
call fcn.0022459c
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov cl, byte [ecx + ebx - 1]
mov bl, byte [ebp - 0x10]
add cl, bl
mov byte [eax + edx - 1], cl
mov ebx, dword [ebp - 0xc]
dec ebx
cmp ebx, 1
jl 0x23f6c1
mov eax, esi
call fcn.0022459c
mov edx, dword [esi]
mov dl, byte [edx + ebx]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
add dl, cl
mov cl, byte [ebp - 0xe]
xor dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x23f69f
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x23f638
lea edx, [ebp - 0x14]
mov eax, dword [esi]
call fcn.0023cc98
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.002240c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x23f6ff
lea eax, [ebp - 0x14]
call fcn.00224074
ret
Function at 0x23f708
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
mov esi, dword [ebp + 8]
mov edx, esi
mov eax, edi
call fcn.0023cca0
mov eax, dword [esi]
call fcn.00224344
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x23f7f4
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xe], al
mov byte [ebp - 0xd], bl
mov eax, dword [ebp - 4]
dec eax
cmp eax, 0
jl 0x23f7f4
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jle 0x23f78f
mov ebx, 1
mov eax, esi
call fcn.0022459c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xe]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx]
sub dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x23f770
mov eax, esi
call fcn.0022459c
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0xc]
mov cl, byte [ecx + ebx - 1]
mov bl, byte [ebp - 0x10]
sub cl, bl
mov byte [eax + edx - 1], cl
mov ebx, dword [ebp - 0xc]
cmp ebx, 2
jl 0x23f7d5
mov eax, esi
call fcn.0022459c
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, byte [ebp - 0xd]
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 2]
sub dl, cl
mov byte [eax + ebx - 1], dl
dec ebx
cmp ebx, 1
jne 0x23f7b3
mov eax, esi
call fcn.0022459c
mov edx, dword [esi]
mov dl, byte [edx]
mov cl, byte [ebp - 0xf]
sub dl, cl
mov byte [eax], dl
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x23f763
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403720
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13c4
call fcn.00407fb0
mov eax, dword [0x434010]
xor eax, esp
mov dword [esp + 0x13bc], eax
push ebx
push ebp
push esi
push edi
push 0x3e
mov esi, ecx
mov dword [esp + 0x3c], 0
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
push str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
lea ecx, [esp + 0x30]
movups xmmword [esp + 0x30], xmm0
call fcn.00404380
call fcn.00406c85
mov edx, eax
mov dword [esp + 0x13c4], 0xffffffff
mov dword [esp + 0x44], edx
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [esp + ecx*4 + 0x44], edx
inc ecx
cmp ecx, 0x270
jb 0x403781
mov ebp, dword [esp + 0x38]
lea eax, [esp + 0x40]
mov ebx, dword [esp + 0x28]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
dec ebp
mov dword [esi + 0x14], 0xf
mov edi, 0xa
mov dword [esp + 0x40], 0x270
mov byte [esi], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x18]
cmp ebp, 0xffffffff
jne 0x4037f2
call fcn.00404ef0
jmp 0x4037fb
lea eax, [ebp + 1]
push eax
call fcn.004050b0
cmp dword [esp + 0x3c], 0x10
mov ecx, eax
mov edx, dword [esi + 0x14]
lea eax, [esp + 0x28]
cmovae eax, ebx
mov bl, byte [ecx + eax]
mov ecx, dword [esi + 0x10]
mov byte [esp + 0x24], bl
cmp ecx, edx
jae 0x403833
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x403829
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x403849
push dword [esp + 0x24]
mov byte [esp + 0x18], 0
mov ecx, esi
push dword [esp + 0x18]
push 1
call fcn.00404410
mov ebx, dword [esp + 0x28]
sub edi, 1
jne 0x4037e2
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x403884
lea ecx, [eax + 1]
mov edx, ebx
mov eax, edx
cmp ecx, 0x1000
jb 0x40387a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40389f
push ecx
push edx
call fcn.00407451
add esp, 8
mov ecx, dword [esp + 0x13cc]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407413
add esp, 0x13c4
ret
call fcn.0040df74
int3

Function at 0x403ed0
Capabilities:
Create thread

Disassembly:
sub esp, 8
mov eax, dword [0x434010]
xor eax, esp
mov dword [esp + 4], eax
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push 0
push 0x4038b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
xor eax, eax
xor ecx, esp
call fcn.00407413
add esp, 8
ret
Function at 0x404ef0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov eax, ecx
xor edx, edx
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
push edi
mov ecx, dword [eax + 4]
dec ecx
shl edx, cl
add edx, edx
mov dword [esp + 0x18], edx
nop
mov edi, dword [eax]
mov eax, dword [edi]
cmp eax, 0x270
jne 0x404f63
lea eax, [edi + 8]
mov esi, 0x270
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x404f23
mov eax, dword [edi]
jmp 0x405045
cmp eax, 0x4e0
jb 0x405045
mov eax, dword [edi + 0x9c4]
lea ebx, [edi + 0x9c4]
mov ebp, 0xe3
nop
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x404f80
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop word [eax + eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x404fd0
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [eax + 8]
ja 0x404f10
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add ebx, dword [eax + 4]
or edx, ecx
mov dword [esp + 0x10], ebx
cmp ebx, 0x20
jb 0x404f03
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0xc
ret
Function at 0x4050b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov ebx, ecx
mov dword [esp + 0x14], ebx
dec edi
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x10], eax
test edi, edi
je 0x405282
mov ecx, dword [ebx + 4]
dec ecx
shl ebp, cl
add ebp, ebp
mov dword [esp + 0x18], ebp
nop
mov edi, dword [ebx]
mov eax, dword [edi]
cmp eax, 0x270
jne 0x405133
lea eax, [edi + 8]
mov esi, 0x270
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x4050f3
mov eax, dword [edi]
jmp 0x405219
cmp eax, 0x4e0
jb 0x405219
mov eax, dword [edi + 0x9c4]
lea ebx, [edi + 0x9c4]
mov ebp, 0xe3
nop
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x405150
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop word [eax + eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x4051a0
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
mov ebx, dword [esp + 0x14]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [ebx + 8]
cmp eax, edx
ja 0x4050e0
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
or ebp, eax
mov eax, dword [esp + 0x10]
dec ecx
shl eax, cl
mov ecx, dword [esp + 0x20]
add eax, eax
or eax, edx
mov dword [esp + 0x10], eax
lea edi, [ecx - 1]
cmp eax, edi
jb 0x4050d2
jmp 0x405286
mov ecx, dword [esp + 0x20]
xor edx, edx
div ecx
mov ecx, eax
mov esi, edx
xor edx, edx
mov eax, ebp
div dword [esp + 0x20]
cmp eax, ecx
jb 0x4052a2
cmp esi, edi
jne 0x4050c2
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0xc
ret 4
Function at 0x407c11
Capabilities:
Parse pe header

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

Function at 0x41454f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4299d4
push 0x4299cc
push str.FlsAlloc
push 0x1e
call fcn.004143bc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414583
push dword [ebp + 8]
mov ecx, esi
call dword [0x426140]
call esi
jmp 0x414589
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4145cd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4299e4
push 0x4299dc
push str.FlsGetValue
push 0x20
call fcn.004143bc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414604
push dword [ebp + 8]
mov ecx, esi
call dword [0x426140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4180df
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417d81

Function at 0x4180ea
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417f10

Function at 0x41865f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407fb0
mov eax, dword [0x434010]
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.00414bc2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4186a1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4187fd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424c60
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 + 0x435ac8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418a85
mov ecx, dword [esi*4 + 0x435ac8]
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 0x4187f6
cmp eax, dword [edi + ecx + 0x24]
jne 0x4187f6
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 0x4187f6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418a85
add esp, 0x14
test edx, edx
jl 0x4187f6
jg 0x41876c
test eax, eax
jb 0x4187f6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4187f6
jl 0x418786
cmp dword [ebp - 0x1008], eax
ja 0x4187f6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4187a4
test ebx, ebx
je 0x4187dd
cmp ecx, edi
jae 0x4187dd
mov al, byte [ecx]
cmp al, 0xd
jne 0x4187be
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4187ca
cmp byte [ecx + 1], 0xa
jne 0x4187ca
inc ecx
jmp 0x4187ca
movzx eax, al
movsx eax, byte [eax + 0x434950]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4187a4
cmp edx, ebx
jne 0x4187a4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4187fb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407413
leave
ret
Function at 0x41c42d
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 0x41c4ca
push ebx
push esi
call fcn.0041c3f6
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.0041b07b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c477
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c4c9
push edi
push eax
call fcn.00415416
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c497
call fcn.004140e1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c4c8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b07b
add esp, 0x20
test eax, eax
jne 0x41c4b6
push edi
call fcn.004140e1
jmp 0x41c4be
push ebx
call fcn.004140e1
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 0x421c46
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 + 0x435ac8]
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 0x421c86
cmp byte [ebx], 0xa
jne 0x421c86
or byte [eax + edi + 0x28], 4
jmp 0x421c8b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x421d89
mov al, byte [edx]
cmp al, 0x1a
je 0x421d6b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x421cba
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x421cdf
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x421ce9
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 0x421c9c
jmp 0x421d89
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 0x421d66
cmp dword [ebp - 0xc], 0
je 0x421d66
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x435ac8]
test byte [eax + edi + 0x28], 0x48
je 0x421d40
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x421d2b
mov byte [esi], dl
jmp 0x421d3c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x435ac8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421d89
cmp byte [ebp - 1], 0xa
jne 0x421d4f
cmp esi, ebx
jne 0x421d4f
mov byte [esi], 0xa
jmp 0x421d88
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418aa3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421d89
mov byte [esi], 0xd
jmp 0x421d88
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x435ac8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421d85
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421d89
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421d92
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 + 0x435ac8]
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 0x421dd5
cmp word [esi], dx
jne 0x421dd5
or byte [edi + eax + 0x28], 4
jmp 0x421dda
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 0x421f2d
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 0x421f0d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x421e1c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x421e52
cmp eax, edx
jae 0x421e5e
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 0x421df4
jmp 0x421f2d
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 0x421f09
cmp dword [ebp - 0x14], 0
je 0x421f09
mov eax, dword [ebx*4 + 0x435ac8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x421ee1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x421eaa
mov word [esi], cx
jmp 0x421edd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x435ac8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x435ac8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x435ac8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x421f2d
pop ebx
cmp word [ebp - 4], bx
jne 0x421ef2
cmp esi, dword [ebp + 0xc]
jne 0x421ef2
mov word [esi], bx
jmp 0x421f2a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418aa3
add esp, 0x10
cmp word [ebp - 4], bx
je 0x421f2d
push 0xd
jmp 0x421f26
mov ecx, dword [ebx*4 + 0x435ac8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421f24
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421f2d
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