joyce8/EMBER2024-capa huggingface dataset:
Function at 0x513618
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x59d219
call fcn.00559fb1
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x5137a9
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x51377b
sub eax, 1
je 0x513697
sub eax, 1
je 0x51366f
sub eax, 1
je 0x513697
push 0x5a4db0
mov ecx, edi
call fcn.00401f7c
mov eax, edi
call fcn.00559f60
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x513659
lea eax, [ebp - 0x28c]
push eax
jmp 0x51365e
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x513659
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.00411f77
test eax, eax
je 0x513659
lea ecx, [ebp - 0x3a0]
call fcn.00401fff
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x513731
test byte [ebp - 0x21c], 0x18
jne 0x513753
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x5a4a38]
mov ecx, ebx
call esi
jmp 0x513753
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5a4a38]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.00402dbc
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.004047a1
jmp 0x513665
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x513659
lea eax, [ebp - 0x390]
jmp 0x513694
call fcn.0041005d
int3

Function at 0x513960
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0054b072
call fcn.00423e63
cmp dword [eax + 0x14], 0
jne 0x51397b
mov ecx, esi
pop esi
jmp fcn.00512c20
pop esi
ret

Function at 0x51444d
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x604180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x5144b7
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x51449c
lea eax, [ebp - 0x158]
push eax
jmp 0x5144a1
push 0x5c6698
call fcn.00401f7c
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00559f3e
leave
ret 8
call fcn.0041005d
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.00419144
call fcn.00423e63
cmp dword [eax + 0x14], 0
jne 0x5149b7
mov ecx, esi
pop esi
jmp fcn.0051419b
pop esi
ret
Function at 0x5256ce
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 0x5256fb
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x525710
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x525710
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.00416dcf
jmp 0x5257e1
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00416dcf
cmp eax, edi
jne 0x5257eb
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x52577d
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x5257c1
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x5257eb
cmp eax, 0x205
je 0x5257eb
cmp eax, 0x201
je 0x5257eb
cmp eax, 0x204
je 0x5257eb
cmp eax, 0x100
jne 0x5257a9
cmp dword [ebp - 0x18], 0x1b
je 0x5257eb
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 0x5257e1
ja 0x5257da
cmp eax, dword [0x630380]
jbe 0x5257e1
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x525732
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x525bc3
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x525bf9
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.0041562d
test eax, eax
je 0x525be1
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x5299e3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x6037d0], 0
push esi
push edi
je 0x529a6b
cmp dword [0x603d5c], 0xfffffffe
jne 0x529a57
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x529a6b
mov edi, 0x63039c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x6303b4], 0
jne 0x529a6f
push 0
push 0
push 0x529a75
call fcn.005780cf
add esp, 0xc
mov dword [0x6303b4], eax
test eax, eax
je 0x529a47
cmp eax, 0xffffffff
je 0x529a47
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x603d5c], esi
jmp 0x529a4e
and dword [0x6303b4], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x529a6b
mov eax, dword [ebp + 8]
mov dword [0x603d5c], eax
cmp eax, 0xffffffff
jne 0x529a6b
and dword [0x6303b4], 0
pop edi
pop esi
pop ebp
ret
call fcn.0041005d
int3
Function at 0x52f67b
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.0057b43a
pop ecx
test eax, eax
jne 0x52f6bd
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.004243aa
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x52f683
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

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

Disassembly:
push 8
mov eax, 0x59fd0b
call fcn.00559f7e
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x53fb51
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x53fb51
cmp esi, 0x43
je 0x53faad
cmp esi, 0x2d
jne 0x53fb51
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x53fb51
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00401fff
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 str.RGB__d___d___d_
push eax
call fcn.00403131
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x53fb3f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x53fb3f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
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.004047a1
push ebx
mov ecx, edi
call fcn.00420fdc
call fcn.00559f4c
ret 4

Function at 0x55afb6
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a25f4
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x604180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
test eax, eax
js 0x55d075
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push eax
push 1
call fcn.00424e80
mov edi, eax
test edi, edi
js 0x55d078
mov ecx, ebx
call fcn.0055cbf0
mov esi, eax
xor ecx, ecx
mov edx, 0x4c
mov dword [ebp + 8], esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004239fc
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x55d02a
push 0x55b7d0
push 0x55b5f0
push dword [ebp + 8]
mov dword [eax], esi
lea esi, [eax + 4]
push 0x4c
push esi
call fcn.0055a13a
jmp 0x55d02c
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x55d075
mov eax, dword [ebp + 0x10]
mov ecx, ebx
push esi
push 0
push 0
push 0
push 0
push 4
push 0
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0xc], 0xffffffff
call fcn.00425055
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5608a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
mov ecx, dword [edx + 0x8c]
test ecx, ecx
je 0x5608b5
pop ebp
jmp fcn.00417369
add edx, 0x90
cmp dword [edx + 0x14], 0xf
jbe 0x5608c3
mov edx, dword [edx]
test edx, edx
jne 0x5608d7
xor ecx, ecx
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.004048a3
pop ebp
ret 4
mov ecx, edx
push esi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5608e0
sub ecx, esi
pop esi
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.004048a3
pop ebp
ret 4
Function at 0x56be47
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0055a520
mov eax, dword [0x604180]
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.0057a854
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x56be89
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x56bfe5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0055a090
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 + 0x630ad8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0057f4a7
mov ecx, dword [esi*4 + 0x630ad8]
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 0x56bfde
cmp eax, dword [ecx + edi + 0x24]
jne 0x56bfde
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 0x56bfde
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0057f4a7
add esp, 0x14
test edx, edx
jl 0x56bfde
jg 0x56bf54
test eax, eax
jb 0x56bfde
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x56bfde
jl 0x56bf6e
cmp dword [ebp - 0x1008], eax
ja 0x56bfde
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x56bf8c
test ebx, ebx
je 0x56bfc5
cmp ecx, edi
jae 0x56bfc5
mov al, byte [ecx]
cmp al, 0xd
jne 0x56bfa6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x56bfb2
cmp byte [ecx + 1], 0xa
jne 0x56bfb2
inc ecx
jmp 0x56bfb2
movzx eax, al
movsx eax, byte [eax + 0x6043b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x56bf8c
cmp edx, ebx
jne 0x56bf8c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x56bfe3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00559f3e
leave
ret

Function at 0x57318a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5731c9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5731c9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5731c9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5731c9
cmp dword [ecx + 0x74], 0xe
jbe 0x5731c9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x57e5a3
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 + 0x630ad8]
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 0x57e5e3
cmp byte [ebx], 0xa
jne 0x57e5e3
or byte [edi + eax + 0x28], 4
jmp 0x57e5e8
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 0x57e6e7
mov dl, byte [eax]
cmp dl, 0x1a
je 0x57e6ca
inc eax
cmp dl, 0xd
je 0x57e614
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x57e63a
cmp eax, ecx
jae 0x57e648
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 0x57e5fc
jmp 0x57e6e7
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 0x57e6c5
cmp dword [ebp - 0x10], 0
je 0x57e6c5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x630ad8]
test byte [eax + edi + 0x28], 0x48
je 0x57e69f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x57e68a
mov byte [esi], dl
jmp 0x57e69b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x630ad8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x57e6e7
cmp byte [ebp - 1], 0xa
jne 0x57e6ae
cmp esi, ebx
jne 0x57e6ae
mov byte [esi], 0xa
jmp 0x57e6e6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0057f4c5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x57e6e7
mov byte [esi], 0xd
jmp 0x57e6e6
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x630ad8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x57e6e4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x57e6e7
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57e6f0
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 + 0x630ad8]
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 0x57e736
cmp word [ebx], dx
jne 0x57e736
or byte [eax + edi + 0x28], 4
jmp 0x57e73b
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 0x57e89e
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 0x57e87e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x57e77c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x57e7b2
cmp eax, edx
jae 0x57e7c0
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 0x57e757
jmp 0x57e89e
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 0x57e879
cmp dword [ebp - 0x18], 0
je 0x57e879
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x630ad8]
test byte [eax + edi + 0x28], 0x48
je 0x57e84f
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 0x57e813
mov word [esi], cx
jmp 0x57e84a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x630ad8]
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 + 0x630ad8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x630ad8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x57e89e
pop eax
cmp word [ebp - 4], ax
jne 0x57e85f
cmp esi, ebx
jne 0x57e85f
mov word [esi], ax
jmp 0x57e89b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0057f4c5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x57e89e
push 0xd
pop eax
jmp 0x57e85a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x630ad8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x57e898
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x57e89e
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 0x58095e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d8898
push 0x5d8890
push str.FlsAlloc
push 0x1f
call fcn.005807dd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x580992
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a4a38]
call esi
jmp 0x580998
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5809dc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d88a8
push 0x5d88a0
push str.FlsGetValue
push 0x21
call fcn.005807dd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x580a13
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a4a38]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x580a1b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d88b0
push 0x5d88a8
push str.FlsSetValue
push 0x22
call fcn.005807dd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x580a55
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5a4a38]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x58572d
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 0x5857ca
push ebx
push esi
call fcn.005856f6
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.005830e0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x585777
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5857c9
push edi
push eax
call fcn.0058059a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x585797
call fcn.0057e131
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5857c8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005830e0
add esp, 0x20
test eax, eax
jne 0x5857b6
push edi
call fcn.0057e131
jmp 0x5857be
push ebx
call fcn.0057e131
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 0x5857cd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5857de
pop esi
ret
push ebx
push edi
push esi
call fcn.005856f6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0058059a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x585806
push ebx
push esi
push edi
call fcn.00566400
add esp, 0xc
push 0
call fcn.0057e131
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x585bd6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058581b