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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
xor edx, edx
mov dword [ebp - 0x10], edx
cmp dword [ebp + 0xc], eax
jle 0x571588
push ebx
push esi
push edi
nop dword [eax]
mov esi, eax
mov dword [ebp - 4], edx
or ecx, 0xffffffff
and esi, 0xff00ff
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
and eax, 0xff00ff00
mov dword [ebp - 0x14], esi
nop
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + ebx*4]
mov ebx, edx
and ebx, 0xff00
mov ecx, edx
and ecx, 0xffff00ff
sub ebx, eax
sub ecx, esi
sub ebx, 0xff01
add ecx, 0xff00
and edx, 0xff00ff00
xor ebx, ecx
sub edx, eax
add edx, 0xff00ff
and ebx, 0xff00ff
xor ebx, edx
mov ecx, ebx
movzx edx, bl
shr ecx, 8
movzx edi, cl
mov ecx, ebx
shr ecx, 0x10
movzx esi, cl
mov ecx, 0x100
sub ecx, edi
shr ebx, 0x18
cmp edi, 0x80
cmova edi, ecx
mov ecx, 0x100
sub ecx, edx
cmp edx, 0x80
cmova edx, ecx
mov ecx, 0x100
add edi, edx
sub ecx, esi
cmp esi, 0x80
cmova esi, ecx
mov ecx, 0x100
add edi, esi
sub ecx, ebx
mov esi, dword [ebp - 0xc]
cmp ebx, 0x80
cmova ebx, ecx
lea edx, [edi + edi*8]
add edx, ebx
mov ebx, dword [ebp - 8]
cmp esi, edx
mov edi, ebx
cmovbe edi, dword [ebp - 4]
inc ebx
cmp esi, edx
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
cmovbe edx, esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
cmp ebx, dword [ebp + 0xc]
jl 0x5714a0
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + edi*4]
mov ecx, dword [ebx + edx*4]
mov dword [ebx + edi*4], ecx
mov dword [ebx + edx*4], eax
inc edx
mov dword [ebp - 0x10], edx
cmp edx, dword [ebp + 0xc]
jl 0x571480
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x572710
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6ab100]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
movzx eax, cx
shr ecx, 0x10
mov byte [ebp - 0x18], al
mov byte [ebp - 0x16], cl
shr eax, 8
sar ecx, 8
mov byte [ebp - 0x17], al
mov byte [ebp - 0x15], cl
mov ecx, dword [ebp + 0x10]
movzx eax, cx
mov byte [ebp - 0xc], al
shr eax, 8
push edx
mov byte [ebp - 0xb], al
lea eax, [ebp - 0x1c]
shr ecx, 0x10
mov byte [ebp - 0xa], cl
push 0x15
sar ecx, 8
push eax
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x1c], 0x46464952
mov dword [ebp - 0x14], 0x50424557
mov dword [ebp - 0x10], 0x4c385056
mov byte [ebp - 8], 0x2f
mov byte [ebp - 9], cl
call eax
mov ecx, dword [ebp - 4]
add esp, 0xc
neg eax
sbb eax, eax
xor ecx, ebp
and eax, 0xfffffff8
add eax, 8
call fcn.005e8cbe
mov esp, ebp
pop ebp
ret
Function at 0x5881a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6ab100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
movaps xmm0, xmmword [0x6a3e70]
push ebx
mov ebx, 1
mov dword [ebp - 0x28], edx
mov edx, dword [edx + 0x18]
mov ecx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
movups xmmword [ebp - 0x14], xmm0
cmp edx, 4
jge 0x5881e1
cmp edx, ebx
jle 0x5882f8
jmp 0x5881e8
mov dword [ebp - 0x1c], 4
mov edx, dword [ebp - 0x28]
push esi
push edi
lea edi, [edx + 0x480]
mov eax, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], eax
jmp 0x588203
mov edx, dword [ebp - 0x28]
xor esi, esi
test ebx, ebx
jle 0x588240
lea edi, [edx + 0x198]
nop
push edi
push eax
call fcn.00587d60
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x24]
jne 0x588234
inc esi
add edi, 0x2e8
cmp esi, ebx
jl 0x588210
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
jmp 0x588242
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov dword [ebp + ecx*4 - 0x14], esi
jmp 0x588268
xor esi, esi
lea edx, [ebp - 0x14]
mov dword [edx + ecx*4], esi
lea edx, [edx + ecx*4]
cmp ebx, ecx
je 0x58825e
mov ecx, 0xba
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
inc ebx
add edi, 0x2e8
mov dword [ebp - 0x20], edi
mov edx, dword [ebp - 0x1c]
inc ecx
add eax, 0x2e8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], eax
cmp ecx, edx
jl 0x588200
cmp ebx, edx
jge 0x5882f6
mov edi, dword [ebp - 0x28]
mov esi, dword [edi + 0x2c]
imul esi, dword [edi + 0x28]
test esi, esi
jle 0x5882bc
nop dword [eax]
mov eax, dword [edi + 0x588c]
dec esi
mov ecx, dword [eax + esi*8]
lea edx, [eax + esi*8]
mov eax, ecx
shr eax, 5
and eax, 3
mov eax, dword [ebp + eax*4 - 0x14]
shl eax, 5
xor eax, ecx
and eax, 0x60
xor eax, ecx
mov dword [edx], eax
test esi, esi
jg 0x588290
mov edx, dword [ebp - 0x1c]
imul eax, ebx, 0x2e8
lea esi, [edi - 0x150]
mov dword [edi + 0x18], ebx
add esi, eax
add eax, 0x198
add eax, edi
mov dword [ebp - 0x1c], esi
sub edx, ebx
nop dword [eax]
mov edi, eax
mov ecx, 0xba
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
add eax, 0x2e8
sub edx, 1
jne 0x5882e0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005e8cbe
mov esp, ebp
pop ebp
ret
Function at 0x589680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebx]
lea eax, [eax + esi*2]
add eax, esi
imul ecx, eax, 0x2c
mov eax, dword [ebx + 4]
add ecx, dword [ebx + 0x14]
test eax, eax
jns 0x5896c0
mov eax, dword [ecx]
cmp eax, 0xfffe0000
jb 0x5896b1
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, eax
jg 0x589824
push edi
mov edi, 2
nop
mov eax, dword [ecx]
cmp eax, 0xfffe0000
jb 0x5896e1
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10001
mov dword [ecx], eax
mov eax, dword [ebx + 8]
movsx edx, word [eax + esi*2]
test edx, edx
jne 0x589729
mov eax, dword [ecx + 4]
inc esi
cmp eax, 0xfffe0000
jb 0x589706
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
mov dword [ecx + 4], eax
movzx eax, byte [esi + 0x669ca0]
imul ecx, eax, 0x84
mov eax, dword [ebx + 8]
movsx edx, word [eax + esi*2]
add ecx, dword [ebx + 0x14]
test edx, edx
je 0x5896f3
mov eax, dword [ecx + 4]
inc esi
mov dword [ebp - 4], esi
cmp eax, 0xfffe0000
jb 0x58973f
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10001
mov dword [ecx + 4], eax
lea eax, [edx + 1]
cmp edi, eax
mov eax, dword [ecx + 8]
sbb edi, edi
neg edi
cmp eax, 0xfffe0000
jb 0x589762
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
add eax, edi
mov dword [ecx + 8], eax
lea eax, [edx + 1]
cmp eax, 2
ja 0x58978c
movzx eax, byte [esi + 0x669ca0]
imul ecx, eax, 0x84
add ecx, 0x2c
add ecx, dword [ebx + 0x14]
jmp 0x589815
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, 0x43
cmp eax, 0x43
cmovg eax, edx
xor edi, edi
movzx ebx, word [eax*4 + 0x66c2cc]
shr ebx, 1
movzx edx, word [eax*4 + 0x66c2ce]
mov dword [ebp + 8], edx
je 0x5897fd
mov esi, dword [ebp + 8]
lea edx, [ecx + 0xc]
nop dword [eax]
test bl, 1
je 0x5897f2
mov ecx, edi
mov eax, 2
shl eax, cl
mov ecx, dword [edx]
and eax, esi
neg eax
sbb eax, eax
neg eax
cmp ecx, 0xfffe0000
jb 0x5897e9
inc ecx
shr ecx, 1
and ecx, 0x7fff7fff
add eax, 0x10000
add eax, ecx
mov dword [edx], eax
inc edi
add edx, 4
sar ebx, 1
jne 0x5897c0
mov esi, dword [ebp - 4]
movzx eax, byte [esi + 0x669ca0]
mov ebx, dword [ebp + 0xc]
imul ecx, eax, 0x84
mov eax, dword [ebx + 0x14]
add eax, 0x58
add ecx, eax
mov edi, 2
cmp esi, dword [ebx + 4]
jle 0x5896d0
pop edi
cmp esi, 0x10
jge 0x589841
mov eax, dword [ecx]
cmp eax, 0xfffe0000
jb 0x58983a
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
mov dword [ecx], eax
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5cb720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push ebx
movzx ebx, word [eax]
mov ecx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp ecx, eax
jb 0x5cb743
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
sub eax, ecx
push esi
mov esi, dword [ebp + 0x14]
cmp esi, eax
cmova esi, eax
xor edx, edx
mov dword [ebp + 0x14], esi
test esi, esi
je 0x5cb794
push edi
mov edi, dword [ebp + 0x10]
sub ecx, edi
mov dword [ebp + 0xc], esi
mov esi, ecx
movzx eax, byte [esi + edi]
lea edi, [edi + 1]
mov edx, ebx
mov ecx, 0x58bf
shr edx, 8
xor edx, eax
add eax, ebx
imul eax, eax, 0x3193
mov byte [edi - 1], dl
sub ecx, eax
sub dword [ebp + 0xc], 1
movzx ebx, cx
jne 0x5cb762
mov esi, dword [ebp + 0x14]
mov edx, esi
mov ecx, dword [ebp - 8]
pop edi
mov eax, dword [ebp + 8]
add ecx, esi
pop esi
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov word [eax], bx
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5de5f0
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
shr ecx, 0x10
xor ecx, dword [ebp + 8]
imul ecx, ecx, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop ebp
ret
Function at 0x5e9d42
Capabilities:
Parse pe header

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

Function at 0x5f91f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005e93e0
mov eax, dword [0x6ab100]
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.00602d07
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5f9238
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5f9394
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005e9a60
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 + 0x6db820]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.006061d8
mov ecx, dword [esi*4 + 0x6db820]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x5f938d
cmp eax, dword [ecx + edi + 0x24]
jne 0x5f938d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5f938d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006061d8
add esp, 0x14
test edx, edx
jl 0x5f938d
jg 0x5f9303
test eax, eax
jb 0x5f938d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5f938d
jl 0x5f931d
cmp dword [ebp - 0x1008], eax
ja 0x5f938d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5f933b
test ebx, ebx
je 0x5f9374
cmp ecx, edi
jae 0x5f9374
mov al, byte [ecx]
cmp al, 0xd
jne 0x5f9355
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5f9361
cmp byte [ecx + 1], 0xa
jne 0x5f9361
inc ecx
jmp 0x5f9361
movzx eax, al
movsx eax, byte [eax + 0x6ab320]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5f933b
cmp edx, ebx
jne 0x5f933b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5f9392
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005e8cbe
leave
ret
Function at 0x5fc097
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6ab100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5fc0da
call fcn.005fabbb
mov dword [eax], 0xf
call fcn.005fabce
mov dword [eax], 0xd
call fcn.005f131d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e8cbe
leave
ret
test eax, eax
jne 0x5fc0e1
inc eax
jmp 0x5fc0ce
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5fc0cc
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5fc0ce

Function at 0x5fcbc5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6ab100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x687f00
push esi
call fcn.00607e39
pop ecx
pop ecx
test eax, eax
jne 0x5fcbf3
xor al, al
jmp 0x5fcc70
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.005fc906
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5fcc2d
push dword [ebp - 0x210]
call fcn.005f10dd
xor al, al
jmp 0x5fcc6e
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5fcc33
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5fcc53
push edx
call fcn.005fcafc
pop ecx
test al, al
je 0x5fcc1e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5fcc61
mov bl, 1
push dword [ebp - 0x210]
call fcn.005f10dd
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005e8cbe
leave
ret

Function at 0x603bf1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6890a4
push 0x68909c
push str.FlsAlloc
push 0x1f
call fcn.00603a70
mov esi, eax
add esp, 0x10
test esi, esi
je 0x603c25
push dword [ebp + 8]
mov ecx, esi
call dword [0x6124a4]
call esi
jmp 0x603c2b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x603c6f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6890b4
push 0x6890ac
push str.FlsGetValue
push 0x21
call fcn.00603a70
mov esi, eax
add esp, 0x10
test esi, esi
je 0x603ca6
push dword [ebp + 8]
mov ecx, esi
call dword [0x6124a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x603cae
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6890bc
push 0x6890b4
push str.FlsSetValue
push 0x22
call fcn.00603a70
mov esi, eax
add esp, 0x10
test esi, esi
je 0x603ce8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x6124a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x604778
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x6db820]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6047b8
cmp byte [ebx], 0xa
jne 0x6047b8
or byte [edi + eax + 0x28], 4
jmp 0x6047bd
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x6048bc
mov dl, byte [eax]
cmp dl, 0x1a
je 0x60489f
inc eax
cmp dl, 0xd
je 0x6047e9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x60480f
cmp eax, ecx
jae 0x60481d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x6047d1
jmp 0x6048bc
push 0
lea eax, [ebp - 0x10]
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 0x60489a
cmp dword [ebp - 0x10], 0
je 0x60489a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x6db820]
test byte [eax + edi + 0x28], 0x48
je 0x604874
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x60485f
mov byte [esi], dl
jmp 0x604870
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6db820]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x6048bc
cmp byte [ebp - 1], 0xa
jne 0x604883
cmp esi, ebx
jne 0x604883
mov byte [esi], 0xa
jmp 0x6048bb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.006061f6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x6048bc
mov byte [esi], 0xd
jmp 0x6048bb
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x6db820]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6048b9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6048bc
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6048c5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x6db820]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x60490b
cmp word [ebx], dx
jne 0x60490b
or byte [eax + edi + 0x28], 4
jmp 0x604910
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x604a73
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x604a53
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x604951
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x604987
cmp eax, edx
jae 0x604995
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x60492c
jmp 0x604a73
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x604a4e
cmp dword [ebp - 0x18], 0
je 0x604a4e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x6db820]
test byte [eax + edi + 0x28], 0x48
je 0x604a24
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x6049e8
mov word [esi], cx
jmp 0x604a1f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x6db820]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x6db820]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x6db820]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x604a73
pop eax
cmp word [ebp - 4], ax
jne 0x604a34
cmp esi, ebx
jne 0x604a34
mov word [esi], ax
jmp 0x604a70
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.006061f6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x604a73
push 0xd
pop eax
jmp 0x604a2f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6db820]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x604a6d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x604a73
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x609b8e
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 0x609c2b
push ebx
push esi
call fcn.00609b57
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.006038d1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x609bd8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x609c2a
push edi
push eax
call fcn.00601afd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x609bf8
call fcn.00601ac3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x609c29
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.006038d1
add esp, 0x20
test eax, eax
jne 0x609c17
push edi
call fcn.00601ac3
jmp 0x609c1f
push ebx
call fcn.00601ac3
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 0x609c2e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x609c3f
pop esi
ret
push ebx
push edi
push esi
call fcn.00609b57
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00601afd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x609c67
push ebx
push esi
push edi
call fcn.005ea470
add esp, 0xc
push 0
call fcn.00601ac3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x60a3c1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00609edc
Function at 0x60b315
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0060b291
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x60b484
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x60b484
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x60b439
jg 0x60b371
test eax, eax
je 0x60b42f
push 1
push 0x1000
call fcn.0060444c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x60b394
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x60b426
push 0x8000
push ebx
call fcn.005ffc25
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x60b3bd
jg 0x60b3b8
cmp ecx, 0x1000
jb 0x60b3bd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00605b7c
add esp, 0x10
cmp eax, 0xffffffff
je 0x60b402
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 0x60b3b8
jl 0x60b3e9
test ecx, ecx
jne 0x60b3aa
push dword [ebp - 0xc]
push ebx
call fcn.005ffc25
push esi
call fcn.00601ac3
add esp, 0xc
xor ebx, ebx
jmp 0x60b492
cmp byte [edi + 0x24], 0
je 0x60b419
cmp dword [edi + 0x20], 5
jne 0x60b419
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x60b424
mov ebx, dword [edi + 0x18]
jmp 0x60b426
xor ebx, ebx
push esi
call fcn.00601ac3
pop ecx
jmp 0x60b492
test ecx, ecx
jg 0x60b3fb
jl 0x60b439
test eax, eax
jae 0x60b3fb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006061f6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x60b459
cmp byte [edi + 0x1c], 0
je 0x60b3fb
jmp 0x60b48a
push ebx
call fcn.006083ce
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x60b3fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x60b492
cmp byte [edi + 0x1c], 0
je 0x60b48f
mov ebx, dword [edi + 0x18]
jmp 0x60b492
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.006061f6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x610d90
Capabilities:
Parse pe header

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