joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ccb6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x45ccf5
call fcn.0045645a
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45ccf5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45ccfd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.00467391
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x45d6f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x45d785
cmp dword [esi + 0x20], 0
je 0x45d785
push dword [esi + 0x20]
call dword [0x67d270]
test eax, eax
je 0x45d785
cmp dword [ebp + 8], 0
je 0x45d785
xor edi, edi
mov ebx, edi
call fcn.0045645a
push 0x606af8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x45d769
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45d785
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.00468151
mov edi, eax
add esp, 0xc
test edi, edi
je 0x45d781
mov ecx, esi
call fcn.0045d497
mov eax, edi
jmp 0x45d787
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x468da9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x468dd4
cmp dword [edi + 0x80], 0
jne 0x468dd4
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.0045645a
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00469047
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x468e01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.0045645a
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x468e34
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.00468e47
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x46afc2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x46b018
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x46aff1
call fcn.004655bc
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x46b006
call fcn.004655bc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x46b018
call fcn.004655bc
call fcn.0045645a
cmp dword [eax + 0x3c], 0
je 0x46b02d
push edi
mov ecx, ebx
call fcn.0046a6e5
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0046b213
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x46b056
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x46b062
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x48a81c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x48a835
call fcn.0045645a
mov esi, dword [eax + 0xc]
push 0x60d894
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x48a877
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48a877
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x48a877
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048a880
jmp 0x48a879
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x54198e
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.005c49e1
pop ecx
test eax, eax
jne 0x5419d0
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.004317e0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x541996
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 0x58c4e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x600731
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x675f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x219], 1
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
push 0x62ff2c
lea ecx, [ebp - 0x238]
call fcn.00594870
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.00594c90
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x58c5b6
push 0x62ff48
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x58c5a9
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x8023
push 0
call dword [ebp - 0x220]
test eax, eax
jl 0x58c5a9
mov dword [ebp - 0x228], 1
mov byte [ebp - 0x219], 0
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 0x219]
test eax, eax
je 0x58c612
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.005aecd0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Common_Application_Data
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x67d050]
mov dword [ebp - 0x228], 1
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.005947c0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret 4

Function at 0x58ce50
Capabilities:
Set 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 0x58cecd
mov eax, dword [ebp + 0x14]
push eax
call fcn.005c0a14
add esp, 4
shl eax, 1
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x58cec3
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x58cee0
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 0x58cf46
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 0x58cf3c
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 0x58cf50
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6008d7
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x675f64]
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.00594790
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0x1000
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.00594d30
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 0x58cfd9
cmp dword [ebp - 0x14], 1
je 0x58cfe8
cmp dword [ebp - 0x14], 2
je 0x58cfe8
push 0x630484
lea ecx, [ebp - 0x30]
call fcn.00594a70
jmp 0x58d05b
push 0xffffffffffffffff
lea ecx, [ebp - 0x30]
call fcn.00594dd0
lea ecx, [ebp - 0x30]
call fcn.00594fb0
cmp dword [ebp - 0x14], 2
jne 0x58d05b
mov dword [ebp - 0x10], 0x1000
lea ecx, [ebp - 0x3c]
call fcn.00594790
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00594d30
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.00594c90
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
call fcn.00594dd0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00594ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.005947c0
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00594810
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.005947c0
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 0x590520
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 0x590575
cmp dword [ebp - 8], 3
jne 0x590575
cmp dword [ebp + 0x10], 0
je 0x590573
mov dword [ebp - 0xc], 1
jmp 0x590587
cmp dword [ebp - 4], 0xea
je 0x590587
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x590590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x600e38
mov eax, dword fs:[0]
push eax
mov eax, 0x2060
call fcn.0058b830
mov eax, dword [0x675f64]
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.00594790
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 0x59079b
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 0x59078e
cmp dword [ebp - 0x2024], 1
jne 0x590766
lea ecx, [ebp - 0x203c]
call fcn.00594cb0
test eax, eax
jle 0x5906c3
push 0x6309c0
lea ecx, [ebp - 0x2048]
call fcn.00594870
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2048]
push ecx
lea ecx, [ebp - 0x203c]
call fcn.00594bc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2048]
call fcn.005947c0
lea edx, [ebp - 0x1014]
push edx
lea ecx, [ebp - 0x2054]
call fcn.00594870
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2054]
push eax
lea ecx, [ebp - 0x203c]
call fcn.00594bc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2054]
call fcn.005947c0
push 0x6309c4
lea ecx, [ebp - 0x2060]
call fcn.00594870
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2060]
push ecx
lea ecx, [ebp - 0x203c]
call fcn.00594bc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2060]
call fcn.005947c0
lea edx, [ebp - 0x2018]
push edx
lea ecx, [ebp - 0x206c]
call fcn.00594870
mov byte [ebp - 4], 5
lea eax, [ebp - 0x206c]
push eax
lea ecx, [ebp - 0x203c]
call fcn.00594bc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x206c]
call fcn.005947c0
mov ecx, dword [ebp - 0x201c]
add ecx, 1
mov dword [ebp - 0x201c], ecx
mov dword [ebp - 0x2028], 0x800
mov dword [ebp - 0x202c], 0x800
jmp 0x590631
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.00594810
mov ecx, dword [ebp - 0x2030]
or ecx, 1
mov dword [ebp - 0x2030], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x203c]
call fcn.005947c0
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.0058ac9d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5963d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x601389
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x675f64]
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.005aecd0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x59643f
lea eax, [ebp - 0x218]
push eax
call dword [0x67d05c]
mov ecx, dword [str.pculog.configure]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [0x67d04c]
lea eax, [ebp - 0x218]
push eax
call fcn.00597ce0
movzx ecx, al
test ecx, ecx
je 0x596502
push str.logging_setting
lea ecx, [ebp - 0x22c]
call fcn.00594870
mov dword [ebp - 4], 0
lea edx, [ebp - 0x218]
push edx
push 1
push str.PerformanceLog
lea ecx, [ebp - 0x22c]
call fcn.00594c90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x5964b9
mov byte [ebp - 0x219], 0
jmp 0x5964c0
mov byte [ebp - 0x219], 1
mov al, byte [ebp - 0x219]
mov byte [0x675f9d], al
lea ecx, [ebp - 0x218]
push ecx
push 0
push str.LoggingLevel
lea ecx, [ebp - 0x22c]
call fcn.00594c90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x6814bc], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.005947c0
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.0058ac9d
mov esp, ebp
pop ebp
ret
Function at 0x596520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6013bc
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x675f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x675f9c]
test eax, eax
je 0x5966f9
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [0x6814bc]
jg 0x5966f9
push 0x80
lea edx, [ebp - 0x110]
push edx
call fcn.00596720
add esp, 8
lea ecx, [ebp - 0x13c]
call fcn.00594790
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.00595060
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push 0x6812b0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x5966e7
call fcn.0045752c
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.00594c90
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x59662c
mov dword [ebp - 0x124], 0
jmp 0x5966a4
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.005c0a14
add esp, 4
add eax, 1
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x3fffffff
jle 0x59665c
mov dword [ebp - 0x120], 0
jmp 0x596698
mov eax, dword [ebp - 0x118]
shl eax, 1
call fcn.0058b8d0
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.00457a18
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.00594cb0
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.005947c0
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.0058ac9d
mov esp, ebp
pop ebp
ret

Function at 0x5967c0
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 0x597d30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6013f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x675f64]
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.00594870
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00595260
test eax, eax
jne 0x597db6
push 0x104
lea ecx, [ebp - 0x24]
call fcn.00594d30
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x67d040]
lea ecx, [ebp - 0x24]
call fcn.00594c90
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x597db6
mov edx, dword [ebp - 0x14]
and edx, 0x10
je 0x597db6
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.005947c0
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 0x597de0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x675f64]
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.00597f40
movzx ecx, al
test ecx, ecx
je 0x597e3a
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.005aecd0
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 0x597efa
mov eax, dword [ebp - 0x210]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x597e97
mov edx, dword [ebp - 0x210]
movzx eax, word [edx]
cmp eax, 0x2f
jne 0x597eba
mov ecx, dword [ebp - 0x210]
movzx edx, word [ecx - 2]
cmp edx, 0x3a
je 0x597eba
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 0x597e6e
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.00597f90
mov eax, dword [ebp + 8]
push eax
call fcn.00597d30
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret 4
Function at 0x599510
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x675f64]
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 0x599589
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 0x59957f
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 0x599598
mov dword [ebp - 0x18], 1
jmp 0x59959f
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret