joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ec929
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x4ecab0
je 0x4ecad7
sub eax, 0xa1
je 0x4ecad7
sub eax, 1
je 0x4ecad7
dec eax
sub eax, 1
je 0x4ecad7
sub eax, 1
je 0x4ecad7
dec eax
sub eax, 1
je 0x4ecad7
sub eax, 1
je 0x4ecad7
sub eax, 0x58
jne 0x4ecb15
cmp dword [edi + 0xc0], 0xffffffff
je 0x4ecad7
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4ecad7
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4eca05
sub eax, 1
jne 0x4ecad7
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4ec9f4
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x58d9b8]
mov ecx, edi
call esi
test eax, eax
jne 0x4eca51
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4ec9ca
jmp 0x4ecb2f
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4ecb2f
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x58d9b8]
mov ecx, edi
call esi
test eax, eax
jne 0x4eca51
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4eca1c
jmp 0x4ecb2f
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x58d9b8]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x58d9b8]
mov ecx, edi
call esi
mov ecx, eax
call fcn.004362a8
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x58d9b8]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4ecb2f
sub eax, 0x200
je 0x4ecad7
sub eax, 1
je 0x4ecad7
sub eax, 1
je 0x4ecad7
dec eax
sub eax, 1
je 0x4ecad7
sub eax, 1
je 0x4ecad7
dec eax
sub eax, 1
je 0x4ecad7
sub eax, 1
jne 0x4ecb15
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4ecaf6
cmp dword [eax + 0x20], ebx
je 0x4ecaf6
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4ecb15
cmp dword [eax + 0x20], ebx
je 0x4ecb15
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x4ecb34
lea eax, [edi + 0x2250]
test eax, eax
je 0x4ecb2b
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4ecb34
xor eax, eax
inc eax
jmp 0x4ecb3c
push esi
mov ecx, edi
call fcn.0047d9e0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x518e9b
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x57e461
call fcn.00558860
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x518f82
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x518f82
cmp esi, 0x43
je 0x518edd
cmp esi, 0x2d
jne 0x518f82
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x518f82
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.0040bee0
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.0040c990
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
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 0x518f70
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x518f70
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00402f20
push ebx
mov ecx, edi
call fcn.0042ef62
call fcn.0055882e
ret 4
Function at 0x51f959
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x5888d3
call fcn.00558893
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 0x51faea
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x51fabc
sub eax, 1
je 0x51f9d8
sub eax, 1
je 0x51f9b0
sub eax, 1
je 0x51f9d8
push 0x5c1e14
mov ecx, edi
call fcn.0040be40
mov eax, edi
call fcn.00558842
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 0x51f99a
lea eax, [ebp - 0x4e8]
push eax
jmp 0x51f99f
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x51f99a
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.004ce8a1
test eax, eax
je 0x51f99a
lea ecx, [ebp - 0x700]
call fcn.0040bee0
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x51fa72
test byte [ebp - 0x428], 0x18
jne 0x51fa94
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 0x51fa94
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.0040c4e0
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00402f20
jmp 0x51f9a6
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 0x51f99a
lea eax, [ebp - 0x6f0]
jmp 0x51f9d5
call fcn.0042c528
int3

Function at 0x51fc62
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00553aad
call fcn.00439e2c
cmp dword [eax + 0x14], 0
jne 0x51fc7d
mov ecx, esi
pop esi
jmp fcn.0051ef6b
pop esi
ret
Function at 0x51fd78
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.00435f9a
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 0x51fdb4
call fcn.0051ff95
mov dword [esi + 0xc], 1
jmp 0x51fdb9
call fcn.0051ff95
cmp dword [esi], 0
je 0x51fe04
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 0x51fddf
push edi
call fcn.0040bf90
lea ecx, [edi + 1]
push ecx
jmp 0x51fdee
push 0xff
call fcn.0040c300
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040bf40
pop edi
jmp 0x51fe28
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 0x51fe28
push dword [esi]
push dword [ebp - 4]
call fcn.004a800b
pop esi
leave
ret 0xc

Function at 0x51feec
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.0051ff95
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x51ff34
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040bf90
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040bf40
jmp 0x51ff3f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004a800b
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5204b6
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.0056d3f3
pop ecx
test eax, eax
jne 0x5204f8
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.00429f08
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5204be
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 0x52e825
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x52e96b
mov ecx, 0x5e7c48
call fcn.0043b50c
mov esi, eax
test esi, esi
je 0x52e960
xor eax, eax
cmp word [esi + 8], ax
jne 0x52e92a
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x52e8e6
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x52e8ac
push 0x5b1500
call fcn.0052e9a9
pop ecx
test eax, eax
je 0x52e8ac
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 0x52e8c7
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 0x52e8e6
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 0x52e8ec
push ebx
push edi
push eax
call fcn.004abe5c
add esp, 0xc
jmp 0x52e8ec
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.00437b35
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 0x52e965
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.0043ab2c
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x52e92d
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x52e93b
push edi
call fcn.0055dad0
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.0040c620
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.0042c528
call fcn.0042c542
int3

Function at 0x551021
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5e8000]
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 0x55108b
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 0x551070
lea eax, [ebp - 0x2ac]
push eax
jmp 0x551075
push 0x5b8e70
call fcn.0040be40
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00558820
leave
ret 8
call fcn.0042c528
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.00402ba0
call fcn.00439e2c
cmp dword [eax + 0x14], 0
jne 0x55158b
mov ecx, esi
pop esi
jmp fcn.00550dcb
pop esi
ret
Function at 0x5591a2
Capabilities:
Parse pe header

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

Function at 0x563542
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5e8000]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5bcc30
push esi
call fcn.00567b93
pop ecx
pop ecx
test eax, eax
jne 0x563570
xor al, al
jmp 0x5635ed
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.00563279
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5635aa
push dword [ebp - 0x210]
call fcn.0055d993
xor al, al
jmp 0x5635eb
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5635b0
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5635d0
push edx
call fcn.00563478
pop ecx
test al, al
je 0x56359b
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5635de
mov bl, 1
push dword [ebp - 0x210]
call fcn.0055d993
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00558820
leave
ret
Function at 0x564a03
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005589e0
mov eax, dword [0x5e8000]
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.0056db55
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x564a45
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x564ba1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00558e70
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 + 0x5f26e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0057420e
mov ecx, dword [esi*4 + 0x5f26e8]
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 0x564b9a
cmp eax, dword [edi + ecx + 0x24]
jne 0x564b9a
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 0x564b9a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0057420e
add esp, 0x14
test edx, edx
jl 0x564b9a
jg 0x564b10
test eax, eax
jb 0x564b9a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x564b9a
jl 0x564b2a
cmp dword [ebp - 0x1008], eax
ja 0x564b9a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x564b48
test ebx, ebx
je 0x564b81
cmp ecx, edi
jae 0x564b81
mov al, byte [ecx]
cmp al, 0xd
jne 0x564b62
lea eax, [edi - 1]
cmp ecx, eax
jae 0x564b6e
cmp byte [ecx + 1], 0xa
jne 0x564b6e
inc ecx
jmp 0x564b6e
movzx eax, al
movsx eax, byte [eax + 0x5e8458]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x564b48
cmp edx, ebx
jne 0x564b48
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x564b9f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00558820
leave
ret

Function at 0x570da6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5be550
push 0x5be548
push str.FlsAlloc
push 0x1e
call fcn.00570c27
mov esi, eax
add esp, 0x10
test esi, esi
je 0x570dda
push dword [ebp + 8]
mov ecx, esi
call dword [0x58d9b8]
call esi
jmp 0x570de0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x570e24
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5be560
push 0x5be558
push str.FlsGetValue
push 0x20
call fcn.00570c27
mov esi, eax
add esp, 0x10
test esi, esi
je 0x570e5b
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 0x57428a
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 + 0x5f26e8]
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 0x5742ca
cmp byte [ebx], 0xa
jne 0x5742ca
or byte [eax + edi + 0x28], 4
jmp 0x5742cf
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5743cd
mov al, byte [edx]
cmp al, 0x1a
je 0x5743af
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5742fe
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x574323
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x57432d
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 0x5742e0
jmp 0x5743cd
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 0x5743aa
cmp dword [ebp - 0xc], 0
je 0x5743aa
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5f26e8]
test byte [eax + edi + 0x28], 0x48
je 0x574384
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x57436f
mov byte [esi], dl
jmp 0x574380
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5f26e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5743cd
cmp byte [ebp - 1], 0xa
jne 0x574393
cmp esi, ebx
jne 0x574393
mov byte [esi], 0xa
jmp 0x5743cc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0057422c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5743cd
mov byte [esi], 0xd
jmp 0x5743cc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5f26e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5743c9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5743cd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5743d6
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 + 0x5f26e8]
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 0x574419
cmp word [esi], dx
jne 0x574419
or byte [edi + eax + 0x28], 4
jmp 0x57441e
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 0x574557
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 0x574537
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x574460
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x574496
cmp eax, edx
jae 0x5744a2
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 0x574438
jmp 0x574557
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 0x574533
cmp dword [ebp - 0x14], 0
je 0x574533
mov eax, dword [ebx*4 + 0x5f26e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x57450b
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x574551
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5f26e8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x5f26e8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5f26e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x574554
pop ebx
cmp word [ebp - 4], bx
jne 0x57451c
cmp esi, dword [ebp + 0xc]
jne 0x57451c
mov word [esi], bx
jmp 0x574554
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0057422c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x574557
push 0xd
jmp 0x574550
mov ecx, dword [ebx*4 + 0x5f26e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x57454e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x574557
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 0x574d78
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00574be9

Function at 0x576709
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5e8000]
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 0x576754
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005768a8
test al, al
jne 0x57674e
sub edx, 2
cmp edx, edi
jne 0x576734
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x576776
lea eax, [edi + 2]
cmp edx, eax
je 0x576776
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00576655
add esp, 0x10
jmp 0x576870
push esi
lea ecx, [ebp - 0x255]
call fcn.005768a8
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 0x5767b9
push dword [ebp - 0x25c]
jmp 0x576766
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 0x5767f6
cmp word [ebp - 0x226], 0
je 0x576817
cmp word [ebp - 0x226], ax
jne 0x5767f6
cmp word [ebp - 0x224], 0
je 0x576817
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00576655
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x576863
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5767d0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x57684b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x576870
push 0x576485
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005652c0
add esp, 0x10
jmp 0x576840
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.00558820
leave
ret

Function at 0x57717b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x57718c
pop esi
ret
push ebx
push edi
push esi
call fcn.00577144
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0056f217
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5771b4
push ebx
push esi
push edi
call fcn.0055a7b0
add esp, 0xc
push 0
call fcn.0056f0c8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x577578
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005771c9