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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5ccd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6510e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
mov dword [ebp - 0x10], edi
call fcn.0056d28f
add esp, 4
test eax, eax
jne 0x538ca4
mov eax, dword [edi + 0x2c]
cmp eax, 0x7fffffff
je 0x538cab
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [ebp + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 0x30]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004a4bb0
mov eax, dword [eax + 4]
test eax, eax
jne 0x538bd2
mov eax, dword [edi + 0x34]
cmp eax, dword [edi + 0x34]
je case.0x538c5e.2
mov dx, word [ebp + 0xc]
lea esi, [eax + 0xc]
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, esi
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00538eb0
mov ebx, dword [eax + 4]
test ebx, ebx
je case.0x538c5e.2
cmp ebx, dword [esi + 4]
je case.0x538c5e.2
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], 0x61c9d8
movzx eax, byte [edx + 4]
mov esi, dword [edx + 8]
mov ecx, dword [edx + 0x14]
mov byte [ebp - 0x38], al
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2c], eax
movzx eax, byte [edx + 0x18]
mov byte [ebp - 0x24], al
movzx eax, byte [edx + 0x19]
mov byte [ebp - 0x23], al
movzx eax, byte [edx + 0x1a]
mov dword [ebp - 0x34], esi
dec esi
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x22], al
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebx + 0x10]
cmp esi, 5
ja case.0x538c5e.2
or al, 0x89
inc ebp
ror byte [ebx - 0x17cefb5], 1
add eax, 0x24ff2977
jmp dword [esi*4 + 0x538cb8]
jmp dword [esi*4 + 0x538cb8]
push ecx
add ecx, 0x10
jmp 0x538c7e
push ecx
add ecx, 0x20
jmp 0x538c7e
push ecx
add ecx, 0x30
jmp 0x538c7e
push ecx
jmp 0x538c7e
push ecx
add ecx, 0x40
lea eax, [ebp - 0x3c]
push eax
call fcn.00538d20
push edi
call fcn.0056d2a0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 5
call fcn.0056cdd5
dec eax
push 6
mov dword [edi + 0x2c], eax
call fcn.0056cdd5
nop
jp 0x538c46
push ebx
add byte [edi + 0x7700538c], al
mov word [ebx], ss
jno 0x538c52
push ebx
add byte [ebp - 0x74], ah
push ebx
add byte [ebx - 0x74], ch
push ebx
add byte [ebx - 0x75], dl
push ebx
mov ebx, ecx
push edi
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov dword [eax], 0
mov edi, dword [edx]
test edi, edi
je 0x538d02
push esi
mov esi, dword [edi]
lea ecx, [edi + 0xc]
call fcn.00538f20
push 0x2c
push edi
call fcn.005815c4
add esp, 8
mov edi, esi
test esi, esi
jne 0x538ce6
pop esi
push 0x2c
push dword [ebx]
call fcn.005815c4
add esp, 8
pop edi
pop ebx
ret
Function at 0x539340
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
je 0x53935a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x53935a
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x53935a
push 1
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x552374
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x552382
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and al, 1
pop ebp
ret

Function at 0x5523cd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x5523db
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x552c8f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x552cb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x552cb5
xor al, al
jmp 0x552cc9
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x553e0e
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x5c637a
call fcn.00581c69
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x553e2e
mov al, 1
jmp 0x553e76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x553e3f
xor al, al
jmp 0x553e76
lea ecx, [ebp - 0x44]
call fcn.00553f74
lea ecx, [ebp - 0x1c]
call fcn.005534e9
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0055407d
test al, al
je 0x553e6b
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.005815f5
pop ecx
mov al, bl
call fcn.00581c37
ret

Function at 0x553ed0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x5545e4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret
Function at 0x555250
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi + 0x14]
cmp eax, 0xca
jne 0x555284
push esi
call fcn.005589b0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x55527b
pop edi
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
jmp 0x55528b
cmp eax, 0xcb
jne 0x555303
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x5552ee
mov eax, dword [esi + 8]
test eax, eax
je 0x5552a6
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x5552e9
cmp eax, 2
je 0x5552ee
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x555297
cmp eax, 3
je 0x5552ce
cmp eax, 1
jne 0x555297
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x555297
mov eax, dword [esi + 0x11c]
add eax, edi
mov dword [edx + 8], eax
jmp 0x555297
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00555340
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x555325
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.00555340
add esp, 4
pop edi
pop esi
ret

Function at 0x555340
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
cmp dword [esi + 0x14], 0xcc
lea ebx, [esi + 0x78]
je 0x55536f
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [ebx], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
je 0x5553f2
nop dword [eax + eax]
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x5553c6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5553a5
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x184]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x555409
cmp eax, dword [esi + 0x60]
jb 0x555387
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
jne 0x555380
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x562490
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, 0x100
mov edx, dword [esi + 0x4c]
cmp edx, 1
mov ebx, dword [esi + 0x1a8]
sete al
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], edx
mov byte [ebx + 0x1c], al
mov eax, 0x2fe
push dword [esi + 0x64]
mov ecx, dword [esi + 4]
cmovne eax, edi
push eax
push 1
push esi
mov eax, dword [ecx + 8]
call eax
mov dword [ebx + 0x18], eax
xor edi, edi
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp dword [esi + 0x64], edi
jle 0x5625a7
push ebp
mov ebp, dword [ebx + edi*4 + 0x20]
cdq
idiv ebp
cmp dword [esp + 0x10], 1
mov dword [esp + 0x18], eax
jne 0x562501
mov eax, dword [ebx + 0x18]
add dword [eax + edi*4], 0xff
mov eax, dword [ebx + 0x18]
dec ebp
push ebp
xor ebx, ebx
push ebx
mov eax, dword [eax + edi*4]
push edi
push esi
mov dword [esp + 0x24], eax
call fcn.00562820
add esp, 0x10
mov edx, eax
xor esi, esi
nop
cmp esi, edx
jle 0x56253a
push ebp
inc ebx
push ebx
push edi
push dword [esp + 0x30]
call fcn.00562820
mov edx, eax
add esp, 0x10
cmp esi, edx
jg 0x562524
mov ecx, dword [esp + 0x18]
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov eax, dword [esp + 0x14]
mov byte [esi + eax], cl
inc esi
cmp esi, 0xff
jle 0x562520
cmp dword [esp + 0x10], 1
jne 0x562590
mov ebx, eax
mov ecx, 1
lea edx, [ebx - 1]
nop dword [eax + eax]
movzx eax, byte [ebx]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebx + 0xff]
mov byte [ebx + ecx + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x562570
mov esi, dword [esp + 0x24]
inc edi
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
cmp edi, dword [esi + 0x64]
jl 0x5624e5
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x56d2ef
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0056d2cb
pop esi
leave
ret 8

Function at 0x56db81
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.0056d4a5
mov edi, eax
test edi, edi
jne 0x56dba8
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x56dbf1
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x56dbec
test al, 0x10
je 0x56dbec
test eax, 0x400
je 0x56dbe8
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0056dbf7
push dword [ebp - 4]
mov esi, eax
call fcn.0056d4e1
test esi, esi
jne 0x56dbec
xor edx, edx
jmp 0x56dbee
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x58108d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00593f0a
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x5810cc
sub eax, 1
je 0x5810c7
sub eax, 1
je 0x5810c3
xor eax, eax
leave
ret
push 3
jmp 0x5810ce
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x582319
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x582358
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x582358
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x582358
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x582358
cmp dword [ecx + 0x74], 0xe
jbe 0x582358
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x59b10a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059af7b

Function at 0x59b5e6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d1e14
push 0x5d1e0c
push str.FlsAlloc
push 0x1e
call fcn.0059b413
mov esi, eax
add esp, 0x10
test esi, esi
je 0x59b61a
push dword [ebp + 8]
mov ecx, esi
call dword [0x5c8504]
call esi
jmp 0x59b620
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x59b664
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d1e24
push 0x5d1e1c
push str.FlsGetValue
push 0x20
call fcn.0059b413
mov esi, eax
add esp, 0x10
test esi, esi
je 0x59b69b
push dword [ebp + 8]
mov ecx, esi
call dword [0x5c8504]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x59ce82
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00582570
mov eax, dword [0x6510e8]
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.005997ed
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x59cec4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x59d020
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005aa600
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 + 0x67bd90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0059dc7d
mov ecx, dword [esi*4 + 0x67bd90]
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 0x59d019
cmp eax, dword [edi + ecx + 0x24]
jne 0x59d019
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 0x59d019
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0059dc7d
add esp, 0x14
test edx, edx
jl 0x59d019
jg 0x59cf8f
test eax, eax
jb 0x59d019
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x59d019
jl 0x59cfa9
cmp dword [ebp - 0x1008], eax
ja 0x59d019
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x59cfc7
test ebx, ebx
je 0x59d000
cmp ecx, edi
jae 0x59d000
mov al, byte [ecx]
cmp al, 0xd
jne 0x59cfe1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x59cfed
cmp byte [ecx + 1], 0xa
jne 0x59cfed
inc ecx
jmp 0x59cfed
movzx eax, al
movsx eax, byte [eax + 0x651360]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x59cfc7
cmp edx, ebx
jne 0x59cfc7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x59d01e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00581335
leave
ret
Function at 0x59d11b
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 + 0x67bd90]
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 0x59d15b
cmp byte [ebx], 0xa
jne 0x59d15b
or byte [eax + edi + 0x28], 4
jmp 0x59d160
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x59d25e
mov al, byte [edx]
cmp al, 0x1a
je 0x59d240
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x59d18f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x59d1b4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x59d1be
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 0x59d171
jmp 0x59d25e
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 0x59d23b
cmp dword [ebp - 0xc], 0
je 0x59d23b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x67bd90]
test byte [eax + edi + 0x28], 0x48
je 0x59d215
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x59d200
mov byte [esi], dl
jmp 0x59d211
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x67bd90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x59d25e
cmp byte [ebp - 1], 0xa
jne 0x59d224
cmp esi, ebx
jne 0x59d224
mov byte [esi], 0xa
jmp 0x59d25d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0059dc9b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x59d25e
mov byte [esi], 0xd
jmp 0x59d25d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x67bd90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x59d25a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x59d25e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x59d267
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 + 0x67bd90]
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 0x59d2aa
cmp word [esi], dx
jne 0x59d2aa
or byte [edi + eax + 0x28], 4
jmp 0x59d2af
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 0x59d402
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 0x59d3e2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x59d2f1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x59d327
cmp eax, edx
jae 0x59d333
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 0x59d2c9
jmp 0x59d402
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 0x59d3de
cmp dword [ebp - 0x14], 0
je 0x59d3de
mov eax, dword [ebx*4 + 0x67bd90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x59d3b6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x59d37f
mov word [esi], cx
jmp 0x59d3b2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x67bd90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x67bd90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x67bd90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x59d402
pop ebx
cmp word [ebp - 4], bx
jne 0x59d3c7
cmp esi, dword [ebp + 0xc]
jne 0x59d3c7
mov word [esi], bx
jmp 0x59d3ff
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0059dc9b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x59d402
push 0xd
jmp 0x59d3fb
mov ecx, dword [ebx*4 + 0x67bd90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x59d3f9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x59d402
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 0x5a1fd1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6510e8]
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 0x5a201c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005a2170
test al, al
jne 0x5a2016
sub edx, 2
cmp edx, edi
jne 0x5a1ffc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5a203e
lea eax, [edi + 2]
cmp edx, eax
je 0x5a203e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005a1f1d
add esp, 0x10
jmp 0x5a2138
push esi
lea ecx, [ebp - 0x255]
call fcn.005a2170
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 0x5a2081
push dword [ebp - 0x25c]
jmp 0x5a202e
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 0x5a20be
cmp word [ebp - 0x226], 0
je 0x5a20df
cmp word [ebp - 0x226], ax
jne 0x5a20be
cmp word [ebp - 0x224], 0
je 0x5a20df
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005a1f1d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5a212b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5a2098
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5a2113
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5a2138
push 0x5a1d4d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005a8bc0
add esp, 0x10
jmp 0x5a2108
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.00581335
leave
ret
Function at 0x5a2a5c
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 0x5a2af9
push ebx
push esi
call fcn.005a2a25
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.005a1ae6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5a2aa6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5a2af8
push edi
push eax
call fcn.0059bc11
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5a2ac6
call fcn.0059918a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5a2af7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005a1ae6
add esp, 0x20
test eax, eax
jne 0x5a2ae5
push edi
call fcn.0059918a
jmp 0x5a2aed
push ebx
call fcn.0059918a
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 0x5a2afc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5a2b0d
pop esi
ret
push ebx
push edi
push esi
call fcn.005a2a25
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0059bc11
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5a2b35
push ebx
push esi
push edi
call fcn.00582dc0
add esp, 0xc
push 0
call fcn.0059918a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5a3281
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a2da8