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

Disassembly:
mov eax, 0x465a6d
call fcn.00433ae8
sub esp, 0x4e0
push ebx
push esi
push edi
xor ebx, ebx
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00434350
push 0x44
lea eax, [ebp - 0x74]
pop esi
push esi
push ebx
push eax
call fcn.00434350
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x74], esi
mov word [ebp - 0x44], bx
push 1
pop edi
mov dword [ebp - 0x48], edi
je 0x430019
mov word [ebp - 0x44], di
push dword [ebp + 8]
lea eax, [ebp - 0x4ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0xf]
push edi
push eax
lea eax, [ebp - 0x4ec]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0040175f
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
mov dword [ebp - 0x14], 0x469558
je 0x430054
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xb]
push edi
mov esi, 0x47e2a8
push eax
push esi
lea ecx, [ebp - 0x9c]
call fcn.0040175f
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x43007a
mov eax, 0x469558
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 0x554
push 0x47e408
push eax
call fcn.004084c8
add esp, 0xc
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], bl
call fcn.00401bc2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.00401bc2
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push 0x20
push edi
push ebx
lea eax, [ebp - 0x4ec]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xd]
push edi
push eax
push esi
lea ecx, [ebp - 0xec]
call fcn.0040175f
mov eax, dword [eax + 8]
mov dword [ebp - 4], 2
cmp eax, ebx
jne 0x4300f9
mov eax, 0x469558
push dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x559
push 0x47e3e4
push eax
call fcn.004084c8
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0xec]
call fcn.00401bc2
cmp dword [ebp + 0xc], ebx
pop edi
pop esi
pop ebx
je 0x43013c
push 0x3e8
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword fs:[0], ecx
leave
ret 8

Function at 0x43014d
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.004301f4
test eax, eax
je 0x4301b2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4301b2
lea eax, [ebp - 0xc]
push esi
push eax
xor esi, esi
push 0x47e450
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x430222
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x430285
call esi
cmp eax, 0x3f0
jne 0x43027c
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
je 0x4302f4
cmp eax, ebx
je 0x4302f4
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x4302f4
call esi
cmp eax, 0x7a
jne 0x4302f4
push dword [ebp - 4]
call fcn.00433b07
mov esi, eax
pop ecx
lea eax, [ebp - 4]
cmp esi, ebx
push eax
push dword [ebp - 4]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
je 0x4302e8
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4302f8
cmp byte [ebp - 0x24], bl
je 0x4302f4
push esi
call fcn.0043311a
pop ecx
xor eax, eax
jmp 0x430343
xor edi, edi
cmp dword [esi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x43032b
lea eax, [esi + 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x430324
add dword [ebp - 0xc], 8
inc edi
cmp edi, dword [esi]
jb 0x430307
jmp 0x43032b
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x430340
push esi
call fcn.0043311a
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430348
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [ebp + 8]
cmp dword [0x485f80], ecx
jne 0x430363
mov eax, dword [0x47e24c]
cmp eax, 0xffffffff
jne 0x4303a3
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x43039d
lea eax, [ebp - 0x14]
push eax
call fcn.0043575b
pop ecx
lea ecx, [ebp - 0x34]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x43039d
movsx eax, word [ebp - 0x34]
mov dword [0x47e24c], eax
mov ax, word [0x47e24c]
leave
ret
Function at 0x430bdb
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x465af7
call fcn.00433ae8
sub esp, 0x460
and byte [ebp - 0x33c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x33b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x104
lea eax, [ebp - 0x33c]
push ebx
push eax
push dword [0x485f5c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x33c]
lea ecx, [ebp - 0x46c]
push eax
call fcn.0042d47e
and byte [ebp - 0x134], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x485720
mov ecx, esi
stosb byte es:[edi], al
call fcn.0040198d
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.00430da8
pop ecx
test eax, eax
pop ecx
je 0x430ccc
and byte [ebp - 0x238], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x237]
mov byte [ebp - 0xd], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x134]
push eax
push 0
lea eax, [ebp - 0x238]
push 0x47e490
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x134]
push 0
push eax
mov ecx, esi
call fcn.0040198d
push eax
lea ecx, [ebp - 0x46c]
call fcn.0042e26d
jmp 0x430d29
mov eax, 0x484b48
mov ecx, eax
test ecx, ecx
je 0x430cf0
cmp byte [0x484b48], 0
je 0x430cf0
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x430d25
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.0042f7ef
mov ecx, esi
call fcn.0040198d
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.0042fa35
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x30]
call fcn.00402671
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.004026b9
push dword [ebp + 0x14]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x10]
push 0x483640
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004028b8
cmp byte [ebp - 0xd], 0
pop edi
pop esi
pop ebx
je 0x430d73
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00402af0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00403ae0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x46c]
call fcn.0042dabe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x4310eb
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x465bb8
call fcn.00433ae8
sub esp, 0x60
push ebx
push esi
lea eax, [ebp - 0xd]
push 1
push eax
lea ecx, [ebp - 0x6c]
push dword [0x46a024]
call fcn.0040175f
lea eax, [ebp - 0xe]
push 1
push eax
xor ebx, ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040175f
mov esi, dword [ebp + 0xc]
push 0xa
lea eax, [ebp - 0x6c]
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0042a082
lea ecx, [ebp - 0x44]
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], bl
call fcn.00401bc2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401bc2
cmp dword [ebp + 0xc], 4
jne 0x431203
lea eax, [ebp - 0x6c]
push 4
push eax
mov ecx, esi
call fcn.004083bc
push 0x47decc
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.0040305e
push eax
call fcn.0042fce8
pop ecx
pop ecx
test eax, eax
setge byte [ebp + 0xf]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00401f95
cmp byte [ebp + 0xf], bl
je 0x4311aa
mov esi, 0x300
jmp 0x431263
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x46a038]
call fcn.0040175f
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x6c]
push dword [ebp + 8]
mov dword [ebp - 4], 3
call fcn.0040175f
push 0xa
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
mov byte [ebp - 4], 4
call fcn.0042a082
lea ecx, [ebp - 0x6c]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00401bc2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
jmp 0x43125a
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0x44]
push dword [0x46a038]
call fcn.0040175f
lea eax, [ebp - 0xe]
push 1
push eax
lea ecx, [ebp - 0x6c]
push dword [ebp + 8]
mov dword [ebp - 4], 5
call fcn.0040175f
push 0xa
lea eax, [ebp - 0x44]
push ebx
push eax
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
mov byte [ebp - 4], 6
call fcn.0042a082
lea ecx, [ebp - 0x6c]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.00401bc2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401bc2
cmp esi, ebx
je 0x4312d5
mov dword [ebp + 8], ebx
push 0x20019
push 0x47e4a0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 7
call fcn.00413899
test eax, eax
jne 0x4312c7
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x47e494
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x14], esi
jae 0x4312c7
cmp dword [ebp + 8], ebx
je 0x4312c3
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4312d8
cmp dword [ebp + 8], ebx
je 0x4312d5
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43cbc6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x480d90
cmp edx, dword [eax]
je 0x43cbe8
add eax, 8
inc ecx
cmp eax, 0x480e20
jl 0x43cbd9
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x480d90]
jne 0x43cd16
mov eax, dword [0x486000]
cmp eax, 1
je 0x43ccf0
test eax, eax
jne 0x43cc19
cmp dword [0x47e5d4], 1
je 0x43ccf0
cmp edx, 0xfc
je 0x43cd16
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43cc50
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00433600
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00433e50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43cc93
lea eax, [ebp - 0x1a4]
push eax
call fcn.00433e50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46b1f0
push edi
call fcn.00433d50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00433600
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00433610
lea eax, [ebp - 0xa0]
push 0x46b1d0
push eax
call fcn.00433610
push dword [esi + 0x480d94]
lea eax, [ebp - 0xa0]
push eax
call fcn.00433610
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0043fc33
add esp, 0x2c
pop edi
jmp 0x43cd16
lea eax, [ebp + 8]
lea esi, [esi + 0x480d94]
push 0
push eax
push dword [esi]
call fcn.00433e50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x445591
Capabilities:
Create directory

Disassembly:
mov eax, 0x4661a4
call fcn.00433ae8
sub esp, 0x60
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push ebx
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00402d65
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040200f
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.00401f95
lea eax, [ebp - 0x6c]
lea ecx, [ebp + 8]
push eax
call fcn.00405020
lea ecx, [ebp - 0x6c]
call fcn.00401f95
lea ecx, [ebp + 8]
mov dword [0x48637c], ebx
call fcn.0040434f
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xe]
mov edi, 0x469578
push ebx
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x469580
mov dword [ebp - 0x24], edi
call fcn.00402b2c
mov byte [ebp - 4], 2
xor esi, esi
mov dword [ebp - 0x14], 1
push 1
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], 0x5c
call fcn.00404016
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x4456da
sub eax, esi
lea ecx, [ebp + 8]
inc eax
push eax
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00402d31
lea esi, [ebp - 0x6c]
lea eax, [ebp - 0x68]
neg esi
sbb esi, esi
push 0x47c818
and esi, eax
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.0044c05b
test eax, eax
je 0x44567b
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x44]
push eax
call fcn.0041581a
jmp 0x44568b
push dword [0x469588]
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.00410759
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 1
lea esi, [eax + 1]
jle 0x4456ce
cmp dword [ebp - 0x14], 4
jg 0x4456a2
cmp byte [ebp - 0xd], bl
jne 0x4456ce
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040305e
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4456ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x48637c], eax
jne 0x44570f
mov dword [0x48637c], ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401f95
inc dword [ebp - 0x14]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x44561a
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00401f95
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401f95
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
sub esp, 0x28
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], esp
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x469580
mov dword [ecx + 0x20], edi
call fcn.00403e42
call fcn.00443af3
add esp, 0x28
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401f95
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00401f95
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401f95
xor al, al
jmp 0x445700
Function at 0x4459c7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x94], 0x94
and dword [eax], 0
lea eax, [ebp - 0x94]
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 1
jne 0x445a42
cmp dword [ebp - 0x8c], 0
je 0x445a3a
cmp dword [ebp - 0x8c], 0xa
je 0x445a25
cmp dword [ebp - 0x8c], 0x5a
je 0x445a2e
xor al, al
mov dword [esi], 0x80
jmp 0x445aa6
call fcn.00445d7f
test al, al
je 0x445a32
mov al, 1
jmp 0x445a1a
mov dword [esi], 0x40
jmp 0x445a90
mov dword [esi], 0x10
jmp 0x445a90
cmp dword [ebp - 0x84], 2
jne 0x445aa4
mov eax, dword [ebp - 0x90]
sub eax, 4
je 0x445a9c
mov ecx, dword [ebp - 0x8c]
dec eax
je 0x445a6c
dec eax
je 0x445a94
xor al, al
mov dword [esi], 0x1000000
jmp 0x445aa6
test ecx, ecx
jne 0x445a78
mov dword [esi], 0x100000
jmp 0x445a90
cmp ecx, 1
jne 0x445a85
mov dword [esi], 0x400000
jmp 0x445a90
cmp ecx, 2
jne 0x445a94
mov dword [esi], 0x800000
mov al, 1
jmp 0x445aa6
test ecx, ecx
jne 0x445a62
mov al, 1
jmp 0x445a64
mov dword [esi], 0x10000
jmp 0x445a90
xor al, al
pop esi
leave
ret

Function at 0x445e93
Capabilities:
Get common file path

Disassembly:
mov eax, 0x466283
call fcn.00433ae8
sub esp, 0x15c
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x445f3e
push 0x4820d4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x445f3e
push 0x4820b8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4820b4], eax
je 0x445f3e
lea ecx, [ebp - 0x168]
push esi
push ecx
call eax
test eax, eax
je 0x445f3e
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x46baf8
mov esi, 0x46baf0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.004023fe
push 0x47c818
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.00445fd0
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403e42
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x445fb9
lea eax, [ebp - 0x168]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x445f66
lea ecx, [ebp - 0x30]
call fcn.004440a6
lea eax, [ebp - 0x30]
push 0x475e58
push eax
call fcn.004350f5
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x46baf8
mov esi, 0x46baf0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.004023fe
push 0x47c818
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.00445fd0
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403e42
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.00401f95
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x447333
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x46650b
call fcn.00433ae8
sub esp, 0x4c
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 3
mov dword [ebp - 0x58], 0x469580
mov dword [ebp - 0x38], 0x469578
call fcn.00402b2c
mov dword [ebp - 0x14], ebx
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
call fcn.0040305e
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push 0x20019
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4473a1
lea ecx, [ebp - 0x14]
call fcn.0040d6e6
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp eax, ebx
push edi
mov esi, eax
jne 0x44741a
mov esi, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
push ebx
lea ecx, [ebp + 0x38]
call fcn.0040305e
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push esi
call edi
mov esi, eax
cmp esi, ebx
jne 0x44741a
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x58]
push eax
call fcn.004024e5
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 6
call fcn.0040305e
lea ecx, [ebp + 0x38]
mov dword [ebp - 0x18], eax
mov dword [esi + 8], eax
call fcn.0040305e
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
push ecx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x18]
push ecx
push ebx
push eax
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x30]
mov esi, eax
mov byte [ebp - 4], 5
call fcn.004025f7
cmp esi, ebx
mov dword [0x48637c], esi
pop edi
lea eax, [ebp - 0x58]
je 0x44742b
lea eax, [ebp + 0x60]
mov esi, dword [ebp + 8]
push ebx
push eax
mov ecx, esi
mov dword [esi], 0x469580
mov dword [esi + 0x20], 0x469578
call fcn.00403e42
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x14], ebx
je 0x44745c
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00401f95
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.00401f95
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
call fcn.00401f95
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], bl
call fcn.00401f95
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x447bda
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x447c02
xor al, al
leave
ret
cmp dword [ebp - 0x84], 2
jne 0x447c19
cmp dword [ebp - 0x90], 5
jb 0x447c19
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4499d9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x449a1e
mov eax, dword [ebp + 8]
test eax, eax
je 0x4499f3
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x449a7a
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004498d3
lea eax, [ebp - 0x4c]
push 0x476aa8
push eax
call fcn.004350f5
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x449a7a
cmp dword [ebp + 8], 0
jne 0x449a53
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0044403a
lea eax, [ebp - 0x48]
push 0x475860
push eax
call fcn.004350f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x449a7a
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0044980c
lea eax, [ebp - 0x48]
push 0x475860
push eax
call fcn.004350f5
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x44bd0b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x44bd1f
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44bd53
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044edec
test al, al
jne 0x44bd86
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.004498d3
lea eax, [ebp - 0x4c]
push 0x476aa8
push eax
call fcn.004350f5
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44bd86
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0044403a
lea eax, [ebp - 0x48]
push 0x475860
push eax
call fcn.004350f5
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44bd8e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x44bda4
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44bdd9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0044403a
lea eax, [ebp - 0x48]
push 0x475860
push eax
call fcn.004350f5
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8