joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58ca20
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58ca86
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58ca7c
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x58ca90
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff907
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x673f64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x30]
call fcn.005942d0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0x1000
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.00594870
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x58cb19
cmp dword [ebp - 0x14], 1
je 0x58cb28
cmp dword [ebp - 0x14], 2
je 0x58cb28
push 0x62f484
lea ecx, [ebp - 0x30]
call fcn.005945b0
jmp 0x58cb9b
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.00594910
lea ecx, [ebp - 0x30]
call fcn.00594af0
cmp dword [ebp - 0x14], 2
jne 0x58cb9b
mov dword [ebp - 0x10], 0x1000
lea ecx, [ebp - 0x3c]
call fcn.005942d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00594870
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x30]
call fcn.005947d0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
call fcn.00594910
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00594600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00594300
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00594350
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00594300
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x590060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5900b5
cmp dword [ebp - 8], 3
jne 0x5900b5
cmp dword [ebp + 0x10], 0
je 0x5900b3
mov dword [ebp - 0xc], 1
jmp 0x5900c7
cmp dword [ebp - 4], 0xea
je 0x5900c7
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x5900d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffe68
mov eax, dword fs:[0]
push eax
mov eax, 0x2060
call fcn.0058b370
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2030], 0
lea ecx, [ebp - 0x203c]
call fcn.005942d0
mov dword [ebp - 4], 1
mov dword [ebp - 0x2020], 0
lea eax, [ebp - 0x2020]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5902db
mov dword [ebp - 0x2028], 0x800
mov dword [ebp - 0x202c], 0x800
mov dword [ebp - 0x201c], 0
mov dword [ebp - 0x2024], 0
lea eax, [ebp - 0x202c]
push eax
lea ecx, [ebp - 0x2018]
push ecx
lea edx, [ebp - 0x2024]
push edx
push 0
lea eax, [ebp - 0x2028]
push eax
lea ecx, [ebp - 0x1014]
push ecx
mov edx, dword [ebp - 0x201c]
push edx
mov eax, dword [ebp - 0x2020]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x5902ce
cmp dword [ebp - 0x2024], 1
jne 0x5902a6
lea ecx, [ebp - 0x203c]
call fcn.005947f0
test eax, eax
jle 0x590203
push 0x62f9c0
lea ecx, [ebp - 0x2048]
call fcn.005943b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2048]
push ecx
lea ecx, [ebp - 0x203c]
call fcn.00594700
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2048]
call fcn.00594300
lea edx, [ebp - 0x1014]
push edx
lea ecx, [ebp - 0x2054]
call fcn.005943b0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2054]
push eax
lea ecx, [ebp - 0x203c]
call fcn.00594700
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2054]
call fcn.00594300
push 0x62f9c4
lea ecx, [ebp - 0x2060]
call fcn.005943b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2060]
push ecx
lea ecx, [ebp - 0x203c]
call fcn.00594700
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2060]
call fcn.00594300
lea edx, [ebp - 0x2018]
push edx
lea ecx, [ebp - 0x206c]
call fcn.005943b0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x206c]
push eax
lea ecx, [ebp - 0x203c]
call fcn.00594700
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x206c]
call fcn.00594300
mov ecx, dword [ebp - 0x201c]
add ecx, 1
mov dword [ebp - 0x201c], ecx
mov dword [ebp - 0x2028], 0x800
mov dword [ebp - 0x202c], 0x800
jmp 0x590171
mov edx, dword [ebp - 0x2020]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x203c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00594350
mov ecx, dword [ebp - 0x2030]
or ecx, 1
mov dword [ebp - 0x2030], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x203c]
call fcn.00594300
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x595f10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6003b9
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.005ae810
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x595f7f
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [str.pculog.configure]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call fcn.00597820
movzx ecx, al
test ecx, ecx
je 0x596042
push str.logging_setting
lea ecx, [ebp - 0x22c]
call fcn.005943b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x218]
push edx
push 1
push str.PerformanceLog
lea ecx, [ebp - 0x22c]
call fcn.005947d0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x595ff9
mov byte [ebp - 0x219], 0
jmp 0x596000
mov byte [ebp - 0x219], 1
mov al, byte [ebp - 0x219]
mov byte [0x673f9d], al
lea ecx, [ebp - 0x218]
push ecx
push 0
push str.LoggingLevel
lea ecx, [ebp - 0x22c]
call fcn.005947d0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x67f4bc], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00594300
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret
Function at 0x596060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6003ec
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x673f9c]
test eax, eax
je 0x596239
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [0x67f4bc]
jg 0x596239
push 0x80
lea edx, [ebp - 0x110]
push edx
call fcn.00596260
add esp, 8
lea ecx, [ebp - 0x13c]
call fcn.005942d0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
push str._s____s_r_n
lea edx, [ebp - 0x13c]
push edx
call fcn.00594ba0
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push 0x67f2b0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x596227
call fcn.0045706e
mov dword [ebp - 0x128], eax
push 2
push 0
push 0
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x130], 0
lea ecx, [ebp - 0x13c]
call fcn.005947d0
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x59616c
mov dword [ebp - 0x124], 0
jmp 0x5961e4
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.005c0535
add esp, 4
add eax, 1
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x3fffffff
jle 0x59619c
mov dword [ebp - 0x120], 0
jmp 0x5961d8
mov eax, dword [ebp - 0x118]
shl eax, 1
call fcn.0058b410
mov dword [ebp - 0x12c], esp
mov edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x118]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
call fcn.0045755a
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x124], eax
push 0
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x13c]
call fcn.005947f0
push eax
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00594300
lea esp, [ebp - 0x140]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret

Function at 0x596300
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x10], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x10], 0
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0x67452301
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], 0xefcdab89
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x98badcfe
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x10325476
pop ebp
ret
Function at 0x597870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x600428
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x673f64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.005943b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00594da0
test eax, eax
jne 0x5978f6
push 0x104
lea ecx, [ebp - 0x24]
call fcn.00594870
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x24]
call fcn.005947d0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x5978f6
mov edx, dword [ebp - 0x14]
and edx, 0x10
je 0x5978f6
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00594300
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x597920
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x224], 0xc
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x224]
push eax
call fcn.00597a80
movzx ecx, al
test ecx, ecx
je 0x59797a
lea edx, [ebp - 0x224]
mov dword [ebp - 0x218], edx
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.005ae810
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x210], edx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x210]
movzx edx, word [ecx]
test edx, edx
je 0x597a3a
mov eax, dword [ebp - 0x210]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x5979d7
mov edx, dword [ebp - 0x210]
movzx eax, word [edx]
cmp eax, 0x2f
jne 0x5979fa
mov ecx, dword [ebp - 0x210]
movzx edx, word [ecx - 2]
cmp edx, 0x3a
je 0x5979fa
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
mov cx, word [eax]
mov word [edx], cx
mov edx, dword [ebp - 0x214]
add edx, 2
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x210]
add eax, 2
mov dword [ebp - 0x210], eax
xor ecx, ecx
mov edx, dword [ebp - 0x214]
mov word [edx], cx
jmp 0x5979ae
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x218]
push edx
call fcn.00597ad0
mov eax, dword [ebp + 8]
push eax
call fcn.00597870
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret 4
Function at 0x599050
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5990c9
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x5990bf
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], 0
je 0x5990d8
mov dword [ebp - 0x18], 1
jmp 0x5990df
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret
Function at 0x599520
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 4], 0
jmp 0x599539
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x599581
mov dword [ebp - 8], 0
jmp 0x599551
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x100
jge 0x59957f
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp - 4]
shl eax, 0xa
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x48]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov edx, dword [edx + esi*4 + 0x6318d0]
mov dword [eax + ecx*4], edx
jmp 0x599548
jmp 0x599530
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jmp 0x59959a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x12
jge 0x599605
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x5995b9
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 4
jge 0x5995ed
mov edx, dword [ebp - 0x18]
shl edx, 8
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
or edx, ecx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jl 0x5995eb
mov dword [ebp - 8], 0
jmp 0x5995b0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x631888]
xor edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + eax*4], edx
jmp 0x599591
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
jmp 0x599625
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x12
jge 0x59965a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005996e0
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 4], edx
jmp 0x59961c
mov dword [ebp - 4], 0
jmp 0x59966c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x5996d2
mov dword [ebp - 8], 0
jmp 0x599684
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x100
jge 0x5996d0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005996e0
add esp, 0xc
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x48]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xa
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x48]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4 + 4], edx
jmp 0x59967b
jmp 0x599663
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5c51b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0058b370
mov eax, dword [0x673f64]
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.005c4b02
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5c51f9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5c5355
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0058b180
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 + 0x680bc8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005d0f8c
mov ecx, dword [esi*4 + 0x680bc8]
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 0x5c534e
cmp eax, dword [ecx + edi + 0x24]
jne 0x5c534e
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 0x5c534e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005d0f8c
add esp, 0x14
test edx, edx
jl 0x5c534e
jg 0x5c52c4
test eax, eax
jb 0x5c534e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5c534e
jl 0x5c52de
cmp dword [ebp - 0x1008], eax
ja 0x5c534e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5c52fc
test ebx, ebx
je 0x5c5335
cmp ecx, edi
jae 0x5c5335
mov al, byte [ecx]
cmp al, 0xd
jne 0x5c5316
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5c5322
cmp byte [ecx + 1], 0xa
jne 0x5c5322
inc ecx
jmp 0x5c5322
movzx eax, al
movsx eax, byte [eax + 0x674470]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5c52fc
cmp edx, ebx
jne 0x5c52fc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5c5353
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0058a7e9
leave
ret

Function at 0x5c6416
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x636dc4
push esi
call fcn.005c27b6
pop ecx
pop ecx
test eax, eax
jne 0x5c9103
xor al, al
jmp 0x5c9180
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.005c8e16
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5c913d
push dword [ebp - 0x210]
call fcn.005bfc6b
xor al, al
jmp 0x5c917e
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5c9143
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5c9163
push edx
call fcn.005c900c
pop ecx
test al, al
je 0x5c912e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5c9171
mov bl, 1
push dword [ebp - 0x210]
call fcn.005bfc6b
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0058a7e9
leave
ret
Function at 0x5cfcf8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x63824c
push 0x638244
push str.FlsAlloc
push 0x1f
call fcn.005cfb23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5cfd2c
push dword [ebp + 8]
mov ecx, esi
call dword [0x603454]
call esi
jmp 0x5cfd32
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5cfd76
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x63825c
push 0x638254
push str.FlsGetValue
push 0x21
call fcn.005cfb23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5cfdad
push dword [ebp + 8]
mov ecx, esi
call dword [0x603454]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5cfdb5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x638264
push 0x63825c
push str.FlsSetValue
push 0x22
call fcn.005cfb23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5cfdef
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x603454]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]