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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov edi, esp
mov ecx, 5
mov esi, 0x475750
rep movsd dword es:[edi], dword [esi]
cmp ebp, 0x40
jb 0x40e5c0
shr ebp, 6
xor ebx, ebx
mov esi, edx
xor edi, edi
movzx eax, byte [esi + edi]
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 1]
shl ecx, 8
or ecx, eax
mov dword [esp + edi + 0x14], ecx
movzx eax, byte [esi + edi + 2]
shl eax, 0x10
or eax, ecx
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 3]
shl ecx, 0x18
or ecx, eax
mov dword [esp + edi + 0x14], ecx
add edi, 4
cmp edi, 0x40
jne 0x40e56b
mov ecx, esp
lea edx, [esp + 0x14]
call fcn.0040e65a
inc ebx
lea edx, [esi + edi]
cmp ebx, ebp
jne 0x40e567
add esi, edi
mov edx, esi
mov ebp, dword [esp + 0x6c]
xor ebx, ebx
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov esi, ebp
and esi, 0x3f
je 0x40e5f4
xor eax, eax
movzx edi, byte [edx + eax]
mov ecx, ebx
and cl, 0x18
shl edi, cl
mov ecx, eax
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x14], edi
inc eax
add ebx, 8
cmp esi, eax
jne 0x40e5d8
lea ebx, [ebp*8]
mov ecx, ebx
and cl, 0x18
or cl, 7
xor eax, eax
inc eax
shl eax, cl
mov ecx, ebp
and ecx, 0x3c
xor dword [esp + ecx + 0x14], eax
cmp esi, 0x38
jb 0x40e62c
mov ecx, esp
lea edi, [esp + 0x14]
mov edx, edi
call fcn.0040e65a
xor eax, eax
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x70]
lea edx, [esp + 0x14]
mov dword [edx + 0x38], ebx
shr ebp, 0x1d
mov dword [edx + 0x3c], ebp
mov ecx, esp
call fcn.0040e65a
xor eax, eax
mov ecx, dword [esp + eax*4]
mov dword [esi + eax*4], ecx
inc eax
cmp eax, 5
jne 0x40e646
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4167d4
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4168d3
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x4168cc
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebp, esi
sub ebp, eax
xor edx, edx
cmp ebp, 8
mov dword [esp], esi
jb 0x41687d
xor esi, esi
mov eax, esi
movzx edx, byte [ebx + esi]
add edx, edi
add ecx, edx
movzx esi, byte [ebx + esi + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 6]
add edx, esi
add ecx, edx
movzx edi, byte [ebx + eax + 7]
add edi, edx
add ecx, edi
lea esi, [eax + 8]
add eax, 0xf
cmp eax, ebp
jb 0x41681d
mov edx, ebp
and edx, 0x1ff8
add ebx, esi
mov esi, dword [esp]
mov eax, ebp
sub eax, edx
jbe 0x416897
xor edx, edx
movzx esi, byte [ebx + edx]
add edi, esi
add ecx, edi
inc edx
cmp eax, edx
jne 0x416885
add ebx, eax
mov esi, dword [esp]
mov eax, edi
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov eax, ecx
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, ebp
mov ebp, 0x15b0
jne 0x416811
shl ecx, 0x10
or ecx, edi
jmp 0x4168d6
xor ecx, ecx
inc ecx
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x417890
Capabilities:
Compute adler32 checksum

Disassembly:
mov ecx, dword [esp + 4]
mov edx, ecx
cmp ecx, 0xa
jl 0x4178a0
mov edx, 0xa
test ecx, ecx
jns 0x4178a9
mov edx, 6
xor eax, eax
cmp ecx, 4
setl al
shl eax, 0xe
or eax, dword [edx*4 + 0x475df0]
cmp dword [esp + 8], 0
jle 0x4178c7
or eax, 0x1000
test ecx, ecx
je 0x4178e2
mov ecx, dword [esp + 0xc]
dec ecx
cmp ecx, 3
ja case.default.0x4178d5
jmp dword [ecx*4 + 0x477660]
or eax, 0x20000
ret
or eax, 0x80000
ret
and eax, 0xfffff000
ret
or eax, 0x10000
ret
or eax, 0x40000
ret
Function at 0x420909
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push esi
call fcn.0045dca8
add esp, 4
test edi, edi
js 0x42093d
mov ecx, dword [esp + 0x10]
xor eax, ecx
xor edx, edi
or edx, eax
je 0x420941
push 0
push edi
push ecx
push esi
call fcn.0045d963
add esp, 0x10
test eax, eax
je 0x420941
xor eax, eax
jmp 0x420954
push esi
push dword [esp + 0x20]
push 1
push dword [esp + 0x24]
call fcn.00460919
add esp, 0x10
pop esi
pop edi
ret
Function at 0x422283
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x468
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x422389
mov esi, dword [ebp + 0xc]
mov eax, 0xfffffff6
cmp dword [ebx + 0x10], esi
jbe 0x4223a1
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx]
test eax, eax
je 0x42238e
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + esi*4]
lea edi, [eax + ecx]
add edi, 0x2e
movzx edx, word [edi - 0x12]
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4222ea
push eax
mov dword [esp + 8], edx
call fcn.00460b1c
mov edx, dword [esp + 8]
add esp, 4
mov dword [ebx + 0x5c], 0
mov ecx, edi
call fcn.004223a9
mov dword [ebx + 0x5c], eax
test eax, eax
je 0x422395
lea eax, [esp + 8]
push eax
push esi
push ebx
call fcn.0041cc0b
add esp, 0xc
test eax, eax
je 0x42239c
mov dword [ebx + 0x58], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x6c], ecx
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 0xa4], ecx
mov dword [ebx + 0xa0], eax
movzx eax, word [esp + 0x1e]
mov word [ebx + 0xa8], ax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x4e008], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x4e014], eax
mov dword [ebx + 0x4e010], ecx
xor eax, eax
jmp 0x4223a1
xor eax, eax
dec eax
jmp 0x4223a1
mov eax, 0xfffffff5
jmp 0x4223a1
mov eax, 0xfffffffe
jmp 0x4223a1
mov eax, 0xfffffffd
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42b52c
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x20]
mov eax, 0xffffffe6
cmp ebx, 0x1000
ja 0x42b56c
mov edi, edx
mov esi, ecx
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push ecx
call fcn.0045d963
add esp, 0x10
mov ebp, 0xffffffe5
test eax, eax
je 0x42b571
push esi
call fcn.004600ee
add esp, 4
mov eax, ebp
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
push ebx
push 1
push dword [esp + 0x30]
call fcn.00460919
add esp, 0x10
cmp eax, ebx
jne 0x42b5b8
push 0
push dword [esp + 0x18]
push edi
push esi
call fcn.0045d963
add esp, 0x10
test eax, eax
jne 0x42b561
push esi
push ebx
push 1
push dword [esp + 0x30]
call fcn.00460b37
add esp, 0x10
mov ecx, eax
mov ebp, 0xffffffe3
mov eax, ebx
cmp ecx, ebx
jne 0x42b561
jmp 0x42b56c
mov eax, ebx
jmp 0x42b56c

Function at 0x42b871
Capabilities:
Create directory

Disassembly:
push edi
push esi
call fcn.0042addb
mov esi, eax
push eax
call fcn.0045f79e
add esp, 4
mov edi, eax
push esi
call fcn.00460b1c
add esp, 4
mov eax, edi
pop esi
pop edi
ret
Function at 0x42d766
Capabilities:
Get disk information

Disassembly:
push esi
push eax
xor eax, eax
mov esi, esp
mov dword [esi], eax
push eax
push eax
push eax
push eax
push esi
push eax
push eax
push 0x4777ce
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esi]
add esp, 4
pop esi
ret

Function at 0x42df6a
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push eax
mov eax, 0x400
mov edi, esp
mov dword [edi], eax
push eax
call fcn.00460ec4
add esp, 4
mov esi, eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, esi
add esp, 4
pop esi
pop edi
ret

Function at 0x43a8cf
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Decompress data using ucl
Encode data using base64
Get disk information
Parse credit card information
Parse pe header
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push eax
mov dword [esp], 0xd84d8ba6
mov eax, 0xd84d8ba6
cmp eax, 0xd84d8ba6
jne 0x43a8dc
call fcn.0040ce18
call fcn.00427792
pop eax
jmp fcn.00430114
Function at 0x44dfc9
Capabilities:
Parse pe header

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

Function at 0x45ccf5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045cf4c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x45ce6d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x45ce6d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x45ce1c
jg 0x45cd4e
test eax, eax
je 0x45ce12
push 1
push 0x1000
call fcn.00465ccd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x45cd74
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x45ce09
push 0x8000
push ebx
call fcn.0045f0f8
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x45cda0
jg 0x45cd9b
cmp ecx, 0x1000
jb 0x45cda0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00466f71
add esp, 0x10
cmp eax, 0xffffffff
je 0x45cde5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x45cd9b
jl 0x45cdcc
test ecx, ecx
jne 0x45cd8d
push dword [ebp - 0xc]
push ebx
call fcn.0045f0f8
push esi
call fcn.00464254
add esp, 0xc
xor edi, edi
jmp 0x45ce7e
cmp byte [edi + 0x24], 0
je 0x45cdfc
cmp dword [edi + 0x20], 5
jne 0x45cdfc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x45ce07
mov edi, dword [edi + 0x18]
jmp 0x45ce09
xor edi, edi
push esi
call fcn.00464254
pop ecx
jmp 0x45ce7e
test ecx, ecx
jg 0x45cdde
jl 0x45ce1c
test eax, eax
jae 0x45cdde
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00467a67
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45ce3f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x45cdde
jmp 0x45ce76
push ebx
call fcn.00466b06
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45cdde
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x45ce7e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x45ce7b
mov edi, dword [edi + 0x18]
jmp 0x45ce7e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00467a67
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45dd3a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0044d9b0
mov eax, dword [0x484ae0]
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.0045d902
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x45dd7c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x45ded8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00469370
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 + 0x485f40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00467ad0
mov ecx, dword [esi*4 + 0x485f40]
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 0x45ded1
cmp eax, dword [edi + ecx + 0x24]
jne 0x45ded1
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 0x45ded1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00467ad0
add esp, 0x14
test edx, edx
jl 0x45ded1
jg 0x45de47
test eax, eax
jb 0x45ded1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x45ded1
jl 0x45de61
cmp dword [ebp - 0x1008], eax
ja 0x45ded1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45de7f
test ebx, ebx
je 0x45deb8
cmp ecx, edi
jae 0x45deb8
mov al, byte [ecx]
cmp al, 0xd
jne 0x45de99
lea eax, [edi - 1]
cmp ecx, eax
jae 0x45dea5
cmp byte [ecx + 1], 0xa
jne 0x45dea5
inc ecx
jmp 0x45dea5
movzx eax, al
movsx eax, byte [eax + 0x485260]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45de7f
cmp edx, ebx
jne 0x45de7f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x45ded6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044e418
leave
ret
Function at 0x45fafa
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x484ae0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x479584
push esi
call fcn.00468291
pop ecx
pop ecx
test eax, eax
jne 0x45fb28
xor al, al
jmp 0x45fba5
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0045f88b
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x45fb62
push dword [ebp - 0x210]
call fcn.00460b1c
xor al, al
jmp 0x45fba3
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x45fb68
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x45fb88
push edx
call fcn.0045fa4b
pop ecx
test al, al
je 0x45fb53
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x45fb96
mov bl, 1
push dword [ebp - 0x210]
call fcn.00460b1c
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044e418
leave
ret

Function at 0x4629b0
Capabilities:
Parse pe header

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

Function at 0x462d2d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x47a554
push str.FlsAlloc
push 0x1e
call fcn.00463010
mov esi, eax
add esp, 0x10
test esi, esi
je 0x462d61
push dword [ebp + 8]
mov ecx, esi
call dword [0x47faec]
call esi
jmp 0x462d67
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x462dab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x47a578
push str.FlsGetValue
push 0x20
call fcn.00463010
mov esi, eax
add esp, 0x10
test esi, esi
je 0x462de2
push dword [ebp + 8]
mov ecx, esi
call dword [0x47faec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x468b45
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x484ae0]
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 0x468b90
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00468cbb
test al, al
jne 0x468b8a
sub edx, 2
cmp edx, edi
jne 0x468b70
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x468bb2
lea eax, [edi + 2]
cmp edx, eax
je 0x468bb2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00468a91
add esp, 0x10
jmp 0x468cac
push esi
lea ecx, [ebp - 0x255]
call fcn.00468cbb
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 0x468bf5
push dword [ebp - 0x25c]
jmp 0x468ba2
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 0x468c32
cmp word [ebp - 0x226], 0
je 0x468c53
cmp word [ebp - 0x226], ax
jne 0x468c32
cmp word [ebp - 0x224], 0
je 0x468c53
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00468a91
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x468c9f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x468c0c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x468c87
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x468cac
push 0x468cdf
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00471440
add esp, 0x10
jmp 0x468c7c
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.0044e418
leave
ret
Function at 0x469a9f
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 + 0x485f40]
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 0x469adf
cmp byte [ebx], 0xa
jne 0x469adf
or byte [eax + edi + 0x28], 4
jmp 0x469ae4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x469be2
mov al, byte [edx]
cmp al, 0x1a
je 0x469bc4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x469b13
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x469b38
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x469b42
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 0x469af5
jmp 0x469be2
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 0x469bbf
cmp dword [ebp - 0xc], 0
je 0x469bbf
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x485f40]
test byte [eax + edi + 0x28], 0x48
je 0x469b99
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x469b84
mov byte [esi], dl
jmp 0x469b95
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x485f40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x469be2
cmp byte [ebp - 1], 0xa
jne 0x469ba8
cmp esi, ebx
jne 0x469ba8
mov byte [esi], 0xa
jmp 0x469be1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00467a67
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x469be2
mov byte [esi], 0xd
jmp 0x469be1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x485f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x469bde
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x469be2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x469beb
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 + 0x485f40]
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 0x469c2e
cmp word [esi], dx
jne 0x469c2e
or byte [edi + eax + 0x28], 4
jmp 0x469c33
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 0x469d86
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 0x469d66
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x469c75
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x469cab
cmp eax, edx
jae 0x469cb7
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 0x469c4d
jmp 0x469d86
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 0x469d62
cmp dword [ebp - 0x14], 0
je 0x469d62
mov eax, dword [ebx*4 + 0x485f40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x469d3a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x469d03
mov word [esi], cx
jmp 0x469d36
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x485f40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x485f40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x485f40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x469d86
pop ebx
cmp word [ebp - 4], bx
jne 0x469d4b
cmp esi, dword [ebp + 0xc]
jne 0x469d4b
mov word [esi], bx
jmp 0x469d83
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00467a67
add esp, 0x10
cmp word [ebp - 4], bx
je 0x469d86
push 0xd
jmp 0x469d7f
mov ecx, dword [ebx*4 + 0x485f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x469d7d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x469d86
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 0x469e4a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x469e5b
pop esi
ret
push ebx
push edi
push esi
call fcn.00469e98
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00464b9f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x469e83
push ebx
push esi
push edi
call fcn.00450060
add esp, 0xc
push 0
call fcn.00464254
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x469ecf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00469eda

Function at 0x46d533
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046d53e