joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4994a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x4994fe
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4994d7
call fcn.0047467b
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4994ec
call fcn.0047467b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4994fe
call fcn.0047467b
call fcn.00483956
cmp dword [eax + 0x3c], 0
je 0x499513
push esi
mov ecx, ebx
call fcn.00498bce
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.004996f9
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x49953c
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x499548
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x499d5c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005c5850
pop ecx
test eax, eax
jne 0x499d9e
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x5f5380
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0048174b
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x499d64
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x4a0412
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x6c0fe4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.005b29a0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.005c4706
push eax
call fcn.004024e0
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x5f3f44]
je 0x4a0570
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4a0584
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4a0584
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x4a04ce
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4a04c2
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004a0219
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4a04c9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a04d0
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00488cba
test eax, eax
je 0x4a04f7
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00488580
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4a04fb
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00488cba
test eax, eax
je 0x4a0522
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00488580
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4a0526
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.00488cba
test eax, eax
je 0x4a054e
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.00488580
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4a0550
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4a0562
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4a0570
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b03a9
leave
ret 4
xor eax, eax
jmp 0x4a0573
Function at 0x4a18ea
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4a1a30
mov ecx, 0x6c04c4
call fcn.004956ec
mov esi, eax
test esi, esi
je 0x4a1a25
xor eax, eax
cmp word [esi + 8], ax
jne 0x4a19ef
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x4a19ab
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x4a1971
push 0x5f61c8
call fcn.004a1a6e
pop ecx
test eax, eax
je 0x4a1971
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x4a198c
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a19ab
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4a19b1
push ebx
push edi
push eax
call fcn.0049b5ff
add esp, 0xc
jmp 0x4a19b1
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00410a30
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x4a1a2a
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00488d1f
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x4a19f2
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x4a1a00
push edi
call fcn.005b5c13
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.0040c5e0
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.00481780
call fcn.0048179a
int3

Function at 0x4b223b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x6c0fe4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x4b22a5
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x4b228a
lea eax, [ebp - 0x2ac]
push eax
jmp 0x4b228f
push 0x5f94e8
call fcn.0040c220
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005b03a9
leave
ret 8
call fcn.00481780
int3
Function at 0x4ba227
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x4ba240
call fcn.00483956
mov esi, dword [eax + 0xc]
push 0x5fa068
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4ba282
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ba282
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4ba282
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004ba28b
jmp 0x4ba284
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5510d7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x551104
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x551119
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x551119
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00477543
jmp 0x5511ea
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00477543
cmp eax, edi
jne 0x5511f4
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x551186
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x5511ca
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x5511f4
cmp eax, 0x205
je 0x5511f4
cmp eax, 0x201
je 0x5511f4
cmp eax, 0x204
je 0x5511f4
cmp eax, 0x100
jne 0x5511b2
cmp dword [ebp - 0x18], 0x1b
je 0x5511f4
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x5511ea
ja 0x5511e3
cmp eax, dword [0x6e3150]
jbe 0x5511ea
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x55113b
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x551797
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x5e7a0c
call fcn.005b0c2d
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040c4a0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5ef5d4
call fcn.0041bb70
cmp eax, 0xffffffff
jne 0x551872
push 0
push 0x5fa024
lea ecx, [ebp - 0x4d0]
call fcn.0041bb70
cmp eax, 0xffffffff
jne 0x551872
push 0
push 0x6935d0
lea ecx, [ebp - 0x4d0]
call fcn.0041bb70
cmp eax, 0xffffffff
jne 0x551872
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040c4a0
add eax, 0x10
pop ecx
mov dword [ebp - 0x4d8], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x218]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x4d4], edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x551841
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x5eea28]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.00402680
jmp 0x5518ab
lea eax, [ebp - 0x218]
push eax
call fcn.005b5c13
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.0040c5e0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402680
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x551898
mov edi, dword [ebp - 0x4cc]
jmp 0x5518ab
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x5eea28]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00402680
mov eax, edi
call fcn.005b0bdc
ret
Function at 0x5b1348
Capabilities:
Parse pe header

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

Function at 0x5c2581
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005b0d80
mov eax, dword [0x6c0fe4]
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.005c68b1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5c25c3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5c271f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005b0ef0
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 + 0x6e3a00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.005cb25b
mov ecx, dword [esi*4 + 0x6e3a00]
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 0x5c2718
cmp eax, dword [edi + ecx + 0x24]
jne 0x5c2718
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 0x5c2718
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005cb25b
add esp, 0x14
test edx, edx
jl 0x5c2718
jg 0x5c268e
test eax, eax
jb 0x5c2718
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5c2718
jl 0x5c26a8
cmp dword [ebp - 0x1008], eax
ja 0x5c2718
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5c26c6
test ebx, ebx
je 0x5c26ff
cmp ecx, edi
jae 0x5c26ff
mov al, byte [ecx]
cmp al, 0xd
jne 0x5c26e0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5c26ec
cmp byte [ecx + 1], 0xa
jne 0x5c26ec
inc ecx
jmp 0x5c26ec
movzx eax, al
movsx eax, byte [eax + 0x6c13a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5c26c6
cmp edx, ebx
jne 0x5c26c6
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5c271d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005b03a9
leave
ret

Function at 0x5cad6c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61d8c0
push 0x61d8b8
push str.FlsAlloc
push 0x1e
call fcn.005cabed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5cada0
push dword [ebp + 8]
mov ecx, esi
call dword [0x5eea28]
call esi
jmp 0x5cada6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x5cadea
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x61d8d0
push 0x61d8c8
push str.FlsGetValue
push 0x20
call fcn.005cabed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5cae21
push dword [ebp + 8]
mov ecx, esi
call dword [0x5eea28]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5cb2d7
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 + 0x6e3a00]
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 0x5cb317
cmp byte [ebx], 0xa
jne 0x5cb317
or byte [eax + edi + 0x28], 4
jmp 0x5cb31c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5cb41a
mov al, byte [edx]
cmp al, 0x1a
je 0x5cb3fc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5cb34b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5cb370
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5cb37a
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 0x5cb32d
jmp 0x5cb41a
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 0x5cb3f7
cmp dword [ebp - 0xc], 0
je 0x5cb3f7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6e3a00]
test byte [eax + edi + 0x28], 0x48
je 0x5cb3d1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5cb3bc
mov byte [esi], dl
jmp 0x5cb3cd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6e3a00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5cb41a
cmp byte [ebp - 1], 0xa
jne 0x5cb3e0
cmp esi, ebx
jne 0x5cb3e0
mov byte [esi], 0xa
jmp 0x5cb419
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005cb279
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5cb41a
mov byte [esi], 0xd
jmp 0x5cb419
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6e3a00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5cb416
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5cb41a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5cb423
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 + 0x6e3a00]
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 0x5cb466
cmp word [esi], dx
jne 0x5cb466
or byte [edi + eax + 0x28], 4
jmp 0x5cb46b
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 0x5cb5be
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 0x5cb59e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5cb4ad
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5cb4e3
cmp eax, edx
jae 0x5cb4ef
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 0x5cb485
jmp 0x5cb5be
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 0x5cb59a
cmp dword [ebp - 0x14], 0
je 0x5cb59a
mov eax, dword [ebx*4 + 0x6e3a00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5cb572
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x5cb53b
mov word [esi], cx
jmp 0x5cb56e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6e3a00]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6e3a00]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6e3a00]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x5cb5be
pop ebx
cmp word [ebp - 4], bx
jne 0x5cb583
cmp esi, dword [ebp + 0xc]
jne 0x5cb583
mov word [esi], bx
jmp 0x5cb5bb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005cb279
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5cb5be
push 0xd
jmp 0x5cb5b7
mov ecx, dword [ebx*4 + 0x6e3a00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5cb5b5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5cb5be
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 0x5ccf5c
Capabilities:
Read file on windows

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

Function at 0x5cec2b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6c0fe4]
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 0x5cec76
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005cedca
test al, al
jne 0x5cec70
sub edx, 2
cmp edx, edi
jne 0x5cec56
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5cec98
lea eax, [edi + 2]
cmp edx, eax
je 0x5cec98
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005ceb77
add esp, 0x10
jmp 0x5ced92
push esi
lea ecx, [ebp - 0x255]
call fcn.005cedca
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 0x5cecdb
push dword [ebp - 0x25c]
jmp 0x5cec88
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 0x5ced18
cmp word [ebp - 0x226], 0
je 0x5ced39
cmp word [ebp - 0x226], ax
jne 0x5ced18
cmp word [ebp - 0x224], 0
je 0x5ced39
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005ceb77
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5ced85
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5cecf2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5ced6d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5ced92
push 0x5ce9a7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005d47b0
add esp, 0x10
jmp 0x5ced62
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.005b03a9
leave
ret

Function at 0x5cf69d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5cf6ae
pop esi
ret
push ebx
push edi
push esi
call fcn.005cf666
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005c8202
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5cf6d6
push ebx
push esi
push edi
call fcn.005b2420
add esp, 0xc
push 0
call fcn.005c81c8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5cfa9a
Capabilities:
Set environment variable

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