joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da75f
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4da795
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.00402f10
test eax, eax
je 0x4da77d
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4e1c32
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5e782c], 0
push esi
push edi
je 0x4e1cb9
cmp dword [0x5e7904], 0xfffffffe
jne 0x4e1ca6
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4e1cb9
mov edi, 0x5f7328
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5f7340], 0
jne 0x4e1cbd
push 0
push 0
push 0x4e1cc3
call fcn.00563225
add esp, 0xc
mov dword [0x5f7340], eax
test eax, eax
je 0x4e1c96
cmp eax, 0xffffffff
je 0x4e1c96
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5e7904], esi
jmp 0x4e1c9d
and dword [0x5f7340], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4e1cb9
mov eax, dword [ebp + 8]
mov dword [0x5e7904], eax
inc eax
neg eax
sbb eax, eax
and dword [0x5f7340], eax
pop edi
pop esi
pop ebp
ret
call fcn.0042c917
int3

Function at 0x519550
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x5805d7
call fcn.00558e83
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x51963c
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x51963c
cmp esi, 0x43
je 0x519592
cmp esi, 0x2d
jne 0x51963c
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x51963c
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.0040c0a0
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push 0x5ad708
push eax
call fcn.0040cc30
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x51962a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x51962a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.00402ef0
push ebx
mov ecx, edi
call fcn.0042f35b
call fcn.00558e51
ret 4
Function at 0x51fffa
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x588d53
call fcn.00558eb6
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x52018b
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x52015d
sub eax, 1
je 0x520079
sub eax, 1
je 0x520051
sub eax, 1
je 0x520079
push 0x5c3354
mov ecx, edi
call fcn.0040c000
mov eax, edi
call fcn.00558e65
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x52003b
lea eax, [ebp - 0x4e8]
push eax
jmp 0x520040
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x52003b
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.004ceddd
test eax, eax
je 0x52003b
lea ecx, [ebp - 0x700]
call fcn.0040c0a0
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x520113
test byte [ebp - 0x428], 0x18
jne 0x520135
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x58d9b8]
mov ecx, ebx
call esi
jmp 0x520135
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x58d9b8]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.0040c780
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00402ef0
jmp 0x520047
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x52003b
lea eax, [ebp - 0x6f0]
jmp 0x520076
call fcn.0042c917
int3

Function at 0x520303
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005540d2
call fcn.0043a1d8
cmp dword [eax + 0x14], 0
jne 0x52031e
mov ecx, esi
pop esi
jmp fcn.0051f607
pop esi
ret
Function at 0x520419
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0043633c
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x520455
call fcn.00520636
mov dword [esi + 0xc], 1
jmp 0x52045a
call fcn.00520636
cmp dword [esi], 0
je 0x5204a5
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x520480
push edi
call fcn.0040c150
lea ecx, [edi + 1]
push ecx
jmp 0x52048f
push 0xff
call fcn.0040c4c0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040c100
pop edi
jmp 0x5204c9
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x5204c9
push dword [esi]
push dword [ebp - 4]
call fcn.004a8416
pop esi
leave
ret 0xc

Function at 0x52058d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00520636
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x5205d5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040c150
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040c100
jmp 0x5205e0
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004a8416
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x520b57
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.0056d863
pop ecx
test eax, eax
jne 0x520b99
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0042a2ec
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x520b5f
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 0x52ee8e
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x52efd4
mov ecx, 0x5e7c48
call fcn.0043b8a3
mov esi, eax
test esi, esi
je 0x52efc9
xor eax, eax
cmp word [esi + 8], ax
jne 0x52ef93
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x52ef4f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x52ef15
push 0x5b1500
call fcn.0052f012
pop ecx
test eax, eax
je 0x52ef15
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 0x52ef30
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 0x52ef4f
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 0x52ef55
push ebx
push edi
push eax
call fcn.004ac24c
add esp, 0xc
jmp 0x52ef55
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.00437ed7
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 0x52efce
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.0043aed8
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x52ef96
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x52efa4
push edi
call fcn.0055dfb0
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.0040c8c0
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.0042c917
call fcn.0042c931
int3

Function at 0x551651
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5e7fec]
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 0x5516bb
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 0x5516a0
lea eax, [ebp - 0x2ac]
push eax
jmp 0x5516a5
push 0x5b8e70
call fcn.0040c000
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00558e43
leave
ret 8
call fcn.0042c917
int3

Function at 0x551ba0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00402b70
call fcn.0043a1d8
cmp dword [eax + 0x14], 0
jne 0x551bbb
mov ecx, esi
pop esi
jmp fcn.005513fb
pop esi
ret
Function at 0x5597c8
Capabilities:
Parse pe header

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

Function at 0x56373b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00559000
mov eax, dword [0x5e7fec]
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.0056dfc5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x56377d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5638d9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00559490
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 + 0x5f8050]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.005718ae
mov ecx, dword [esi*4 + 0x5f8050]
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 0x5638d2
cmp eax, dword [edi + ecx + 0x24]
jne 0x5638d2
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 0x5638d2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005718ae
add esp, 0x14
test edx, edx
jl 0x5638d2
jg 0x563848
test eax, eax
jb 0x5638d2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5638d2
jl 0x563862
cmp dword [ebp - 0x1008], eax
ja 0x5638d2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x563880
test ebx, ebx
je 0x5638b9
cmp ecx, edi
jae 0x5638b9
mov al, byte [ecx]
cmp al, 0xd
jne 0x56389a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5638a6
cmp byte [ecx + 1], 0xa
jne 0x5638a6
inc ecx
jmp 0x5638a6
movzx eax, al
movsx eax, byte [eax + 0x5ef778]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x563880
cmp edx, ebx
jne 0x563880
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5638d7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00558e43
leave
ret
Function at 0x56404e
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5e7fec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5be170
push esi
call fcn.00568003
pop ecx
pop ecx
test eax, eax
jne 0x56407c
xor al, al
jmp 0x5640f9
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.00563d85
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5640b6
push dword [ebp - 0x210]
call fcn.0055de73
xor al, al
jmp 0x5640f7
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5640bc
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5640dc
push edx
call fcn.00563f84
pop ecx
test al, al
je 0x5640a7
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5640ea
mov bl, 1
push dword [ebp - 0x210]
call fcn.0055de73
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00558e43
leave
ret

Function at 0x5711c8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5bfa90
push 0x5bfa88
push str.FlsAlloc
push 0x1e
call fcn.00571049
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5711fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x58d9b8]
call esi
jmp 0x571202
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x571246
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5bfaa0
push 0x5bfa98
push str.FlsGetValue
push 0x20
call fcn.00571049
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57127d
push dword [ebp + 8]
mov ecx, esi
call dword [0x58d9b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x57192a
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 + 0x5f8050]
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 0x57196a
cmp byte [ebx], 0xa
jne 0x57196a
or byte [eax + edi + 0x28], 4
jmp 0x57196f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x571a6d
mov al, byte [edx]
cmp al, 0x1a
je 0x571a4f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x57199e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5719c3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5719cd
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 0x571980
jmp 0x571a6d
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 0x571a4a
cmp dword [ebp - 0xc], 0
je 0x571a4a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5f8050]
test byte [eax + edi + 0x28], 0x48
je 0x571a24
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x571a0f
mov byte [esi], dl
jmp 0x571a20
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5f8050]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x571a6d
cmp byte [ebp - 1], 0xa
jne 0x571a33
cmp esi, ebx
jne 0x571a33
mov byte [esi], 0xa
jmp 0x571a6c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005718cc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x571a6d
mov byte [esi], 0xd
jmp 0x571a6c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5f8050]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x571a69
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x571a6d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x571a76
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 + 0x5f8050]
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 0x571ab9
cmp word [esi], dx
jne 0x571ab9
or byte [edi + eax + 0x28], 4
jmp 0x571abe
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 0x571bf7
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 0x571bd7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x571b00
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x571b36
cmp eax, edx
jae 0x571b42
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 0x571ad8
jmp 0x571bf7
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 0x571bd3
cmp dword [ebp - 0x14], 0
je 0x571bd3
mov eax, dword [ebx*4 + 0x5f8050]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x571bab
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x571bf1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5f8050]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x5f8050]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5f8050]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x571bf4
pop ebx
cmp word [ebp - 4], bx
jne 0x571bbc
cmp esi, dword [ebp + 0xc]
jne 0x571bbc
mov word [esi], bx
jmp 0x571bf4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005718cc
add esp, 0x10
cmp word [ebp - 4], bx
je 0x571bf7
push 0xd
jmp 0x571bf0
mov ecx, dword [ebx*4 + 0x5f8050]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x571bee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x571bf7
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 0x57525c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005750cd

Function at 0x576be9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5e7fec]
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 0x576c34
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00576d88
test al, al
jne 0x576c2e
sub edx, 2
cmp edx, edi
jne 0x576c14
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x576c56
lea eax, [edi + 2]
cmp edx, eax
je 0x576c56
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00576b35
add esp, 0x10
jmp 0x576d50
push esi
lea ecx, [ebp - 0x255]
call fcn.00576d88
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 0x576c99
push dword [ebp - 0x25c]
jmp 0x576c46
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 0x576cd6
cmp word [ebp - 0x226], 0
je 0x576cf7
cmp word [ebp - 0x226], ax
jne 0x576cd6
cmp word [ebp - 0x224], 0
je 0x576cf7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00576b35
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x576d43
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x576cb0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x576d2b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x576d50
push 0x576965
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00565730
add esp, 0x10
jmp 0x576d20
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.00558e43
leave
ret

Function at 0x57765b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x57766c
pop esi
ret
push ebx
push edi
push esi
call fcn.00577624
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0056f637
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x577694
push ebx
push esi
push edi
call fcn.0055acc0
add esp, 0xc
push 0
call fcn.0056f588
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x577a58
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005776a9