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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x67ef70
push fcn.00589eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x68e4d8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
test esi, esi
je 0x528fd2
cmp word [esi], 0
je 0x528fd2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x528ee0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x528fd2
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.0058abd0
push esi
push 0x63ff1c
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.00429ec0
push 0x3c
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.0058abd0
add esp, 0x28
mov dword [ebp - 0x858], 0x3c
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], 0x63f9cc
mov dword [ebp - 0x844], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x854], 0x440
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x528f99
cmp dword [ebp + 0x18], 0
je 0x528f99
push dword [ebp + 0x20]
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x528fae
test esi, esi
je 0x528fbe
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x528fbe
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x528fdb
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret

Function at 0x529000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x52901a
pop edi
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x529b80
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00537800
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x529bdb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret 4
mov esi, dword [edi + 4]
test esi, esi
je 0x529cac
mov ecx, dword [edi + 8]
test ecx, ecx
jle 0x529cac
mov eax, ecx
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov dword [ebp - 0x1010], eax
and ecx, 0x80000fff
jns 0x529c15
dec ecx
or ecx, 0xfffff000
inc ecx
xor edi, edi
mov dword [ebp - 0x100c], ecx
mov dword [ebp - 0x1008], 0
test eax, eax
jle 0x529c7a
nop dword [eax + eax]
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0058a0d0
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x529cac
inc edi
add esi, 0x1000
cmp edi, dword [ebp - 0x1010]
jl 0x529c30
mov ecx, dword [ebp - 0x100c]
test ecx, ecx
jle 0x529cac
push ecx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0058a0d0
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005367cc
mov esp, ebp
pop ebp
ret 4
Function at 0x52cf30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61bd72
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x830], ecx
mov esi, dword [ebp + 8]
test esi, esi
jne 0x52cf72
xor eax, eax
jmp 0x52d160
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x52cf6b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x52cf82
sub ecx, edx
sar ecx, 1
cmp ecx, 0x200
jae 0x52cf6b
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0058abd0
push 0x400
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.005b0f17
add esp, 0x18
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.version1.0_encodingutf_16
lea ecx, [ebp - 0x814]
call fcn.00409850
push esi
lea ecx, [ebp - 0x818]
mov dword [ebp - 4], 0
call fcn.00409850
mov dword [ebp - method.CXMLArchive.virtual_0], vtable.CXMLArchive.0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov esi, dword [ebp - 0x814]
mov dword [ebp - 0x820], esi
test esi, esi
je 0x52d023
lock inc dword [esi + 8]
push 0
lea eax, [ebp - 0x818]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x82c]
call fcn.0052c7e0
mov edi, dword [ebp - 0x818]
or ebx, 0xffffffff
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x52d08f
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x52d08f
mov eax, dword [edi]
test eax, eax
je 0x52d067
push eax
call ecx
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x52d07e
push eax
call fcn.0053705b
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.00537023
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 8
mov byte [ebp - 4], 7
test esi, esi
je 0x52d0d0
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x52d0d0
mov eax, dword [esi]
test eax, eax
je 0x52d0ae
push eax
call ecx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x52d0c5
push eax
call fcn.0053705b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00537023
add esp, 8
cmp dword [ebp - 0x828], 0
jne 0x52d0dd
xor esi, esi
jmp 0x52d127
mov ebx, dword [ebp - 0x830]
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.0052d8b0
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.0052dfd0
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.0052ca20
lea eax, [ebp - 0x82c]
mov ecx, ebx
push eax
call fcn.0052d180
mov esi, 1
lea ecx, [ebp - 0x820]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CXMLArchive.virtual_0], vtable.CXMLArchive.0
call fcn.00409940
lea ecx, [ebp - 0x824]
call fcn.00409940
mov edx, dword [ebp - 0x828]
test edx, edx
je 0x52d15e
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret 4
Function at 0x52e630
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00537800
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2004]
push edi
mov edi, dword [ebp + 0xc]
push 0x2000
push 0
push eax
call fcn.0058abd0
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x52e6d7
cmp eax, 0x1fff
ja 0x52e6d7
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x52e6d7
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x663418
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x52e6d7
mov eax, dword [ebp - 0x2008]
movzx eax, word [eax + 0xa]
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.005367cc
mov esp, ebp
pop ebp
ret 8
Function at 0x530c20
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x530ce1
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0058abd0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x530ccb
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.0058abd0
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x640844
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x530ce1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005367cc
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.0058abd0
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.00407280
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005aed2b
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x530d41
cmp eax, 0x207
ja 0x530d41
jne 0x530d48
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x530d51
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005367cc
mov esp, ebp
pop ebp
ret
Function at 0x53d5e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x53d6b4
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test esi, esi
jl 0x53d6a3
jg 0x53d618
test edx, edx
je 0x53d6a3
call fcn.0053ada0
mov esi, eax
mov eax, edx
mov dword [ebp - 8], eax
test eax, eax
jl 0x53d668
jg 0x53d62e
test esi, esi
je 0x53d668
cmp ebx, eax
jg 0x53d63d
jl 0x53d638
cmp edi, esi
jae 0x53d63d
mov esi, edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [ebp + 8]
call fcn.0058a0d0
mov ecx, dword [ebp - 4]
add esp, 0xc
sub edi, esi
sbb ebx, dword [ebp - 8]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [ebp + 8]
jmp 0x53d68a
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x53d69d
mov eax, dword [ebp + 8]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [ebp - 4]
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jg 0x53d618
jl 0x53d69d
test edi, edi
jne 0x53d618
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
pop edi
sbb esi, ebx
mov eax, edx
mov edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x53d6d3
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x53d6d5
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [ebp + 0x10], eax
test edi, edi
jl 0x53d77d
jg 0x53d6ef
test esi, esi
je 0x53d77d
test eax, eax
jl 0x53d72e
jg 0x53d6f9
test ebx, ebx
je 0x53d72e
cmp edi, eax
jg 0x53d708
jl 0x53d703
cmp esi, ebx
jae 0x53d708
mov ebx, esi
mov dword [ebp + 0x10], edi
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0058a0d0
mov ecx, dword [ebp - 4]
add esp, 0xc
add dword [ebp + 8], ebx
sub esi, ebx
sbb edi, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x53d734
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test edi, edi
jl 0x53d77d
jg 0x53d73e
test esi, esi
je 0x53d77d
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x53d77d
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x53d769
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [ebp + 8]
call fcn.005cdcb6
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x568aa0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x68e4d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x208
push eax
mov word [ebp - 0x224], ax
mov byte [ebp - 0x2c2], al
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 7
mov dword [ebp - 0x2cc], 1
mov dword [ebp - 0x2c8], 0x104
call fcn.0058abd0
add esp, 0xc
lea eax, [ebp - 0x2c8]
lea ecx, [ebp - 0x2c1]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.00568060
push eax
lea ecx, [ebp - 0x2c1]
call fcn.00567e20
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x568b46
sub ecx, edx
sar ecx, 1
cmp ecx, 0x10
jb 0x568b6f
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040e8b0
jmp 0x568bcd
lea eax, [ebp - 0x23c]
push eax
call fcn.005ec250
mov esi, eax
add esp, 4
lea eax, [ebp - 0x224]
cmp eax, esi
je 0x568bbb
mov ecx, eax
call fcn.0040f870
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x224], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x214], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x23c]
call fcn.0040ea10
mov byte [ebp - 0x2c2], 1
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
push 0xfde9
cmovae eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x2c0]
push eax
call fcn.00567af0
push dword [ebp - 0x2c0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
lea esi, [eax + 1]
test ebx, ebx
je 0x568c80
push dword [ebp - 0x2c0]
call edi
mov edi, dword [ebp + 0xc]
inc eax
cmp eax, edi
jle 0x568c1b
xor esi, esi
jmp 0x568c80
push edi
push 0
push ebx
call fcn.0058abd0
add esp, 0xc
push dword [ebp - 0x2c0]
push edi
push ebx
call fcn.004fc3e0
cmp byte [ebp - 0x2c2], 0
je 0x568c80
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x224]
mov eax, dword [ebp - 0x214]
cmovae ecx, dword [ebp - 0x224]
add eax, eax
push eax
push ecx
push 1
lea ecx, [ebp - 0x2c1]
call fcn.005682a0
push eax
lea ecx, [ebp - 0x2c1]
call fcn.00567f40
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x2bc]
cmp eax, ecx
je 0x568c99
push eax
call fcn.005aeefe
add esp, 4
mov edx, dword [ebp - 0x210]
cmp edx, 8
jb 0x568cd5
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x568ccb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x568cea
push edx
push ecx
call fcn.00537023
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005367cc
mov esp, ebp
pop ebp
ret 8
call fcn.005af279
int3

Function at 0x56a128
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x5d2b8c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x648944
push 0x64893c
push str.FlsAlloc
push 0x1e
call fcn.005d285c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5d2bc0
push dword [ebp + 8]
mov ecx, esi
call dword [0x6288b8]
call esi
jmp 0x5d2bc6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5d2c0a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x648954
push 0x64894c
push str.FlsGetValue
push 0x20
call fcn.005d285c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5d2c41
push dword [ebp + 8]
mov ecx, esi
call dword [0x6288b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x5dc337
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x68e4d8]
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 0x5dc382
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005dc74d
test al, al
jne 0x5dc37c
sub edx, 2
cmp edx, edi
jne 0x5dc362
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5dc3a4
lea eax, [edi + 2]
cmp edx, eax
je 0x5dc3a4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005dbffe
add esp, 0x10
jmp 0x5dc49e
push esi
lea ecx, [ebp - 0x255]
call fcn.005dc74d
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 0x5dc3e7
push dword [ebp - 0x25c]
jmp 0x5dc394
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 0x5dc424
cmp word [ebp - 0x226], 0
je 0x5dc445
cmp word [ebp - 0x226], ax
jne 0x5dc424
cmp word [ebp - 0x224], 0
je 0x5dc445
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005dbffe
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5dc491
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5dc3fe
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5dc479
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5dc49e
push 0x5dba4e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005e92d0
add esp, 0x10
jmp 0x5dc46e
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.005367cc
leave
ret
Function at 0x5dda2b
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 0x5ddac8
push ebx
push esi
call fcn.005dd9e7
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.005dd8d9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5dda75
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5ddac7
push edi
push eax
call fcn.005cfeda
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5dda95
call fcn.005cfea0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5ddac6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005dd8d9
add esp, 0x20
test eax, eax
jne 0x5ddab4
push edi
call fcn.005cfea0
jmp 0x5ddabc
push ebx
call fcn.005cfea0
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 0x5ddacb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5ddadc
pop esi
ret
push ebx
push edi
push esi
call fcn.005dd9e7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005cfeda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5ddb04
push ebx
push esi
push edi
call fcn.0058a0d0
add esp, 0xc
push 0
call fcn.005cfea0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5de3da
Capabilities:
Set environment variable

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

Function at 0x5deea5
Capabilities:
Print debug messages

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

Function at 0x5e35e2
Capabilities:
Read file on windows

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

Function at 0x5e35ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005e3358
Function at 0x5e3b10
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00537800
mov eax, dword [0x68e4d8]
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.005d0fcd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5e3b52
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5e3cae
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00609d00
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 + 0x698d18]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.005e50a3
mov ecx, dword [esi*4 + 0x698d18]
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 0x5e3ca7
cmp eax, dword [edi + ecx + 0x24]
jne 0x5e3ca7
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 0x5e3ca7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005e50a3
add esp, 0x14
test edx, edx
jl 0x5e3ca7
jg 0x5e3c1d
test eax, eax
jb 0x5e3ca7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5e3ca7
jl 0x5e3c37
cmp dword [ebp - 0x1008], eax
ja 0x5e3ca7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5e3c55
test ebx, ebx
je 0x5e3c8e
cmp ecx, edi
jae 0x5e3c8e
mov al, byte [ecx]
cmp al, 0xd
jne 0x5e3c6f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5e3c7b
cmp byte [ecx + 1], 0xa
jne 0x5e3c7b
inc ecx
jmp 0x5e3c7b
movzx eax, al
movsx eax, byte [eax + 0x68ef90]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5e3c55
cmp edx, ebx
jne 0x5e3c55
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5e3cac
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005367cc
leave
ret