joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4426f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5968ac
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x633954]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x6317b4]
cmp eax, dword [ecx + 4]
jg 0x442763
jmp 0x442744
mov al, byte [ecx]
inc ecx
test al, al
je 0x442868
jmp 0x442737
mov eax, 0x63179c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
push 0x6317b4
call fcn.00546388
add esp, 4
cmp dword [0x6317b4], 0xffffffff
jne 0x442744
mov byte [ebp - 0x34], 0x69
mov byte [ebp - 0x33], 0x6f
mov byte [ebp - 0x32], 0x4e
mov byte [ebp - 0x31], 0x69
mov byte [ebp - 0x30], 0x2c
mov byte [ebp - 0x2f], 0x11
mov byte [ebp - 0x2e], 0x25
mov byte [ebp - 0x2d], 0x4e
mov byte [ebp - 0x2c], 0x7d
mov byte [ebp - 0x2b], 0x2c
mov byte [ebp - 0x2a], 0x11
mov byte [ebp - 0x29], 0x2c
mov byte [ebp - 0x28], 0x54
mov byte [ebp - 0x27], 0x26
mov byte [ebp - 0x26], 0x18
mov byte [ebp - 0x25], 0x68
mov byte [ebp - 0x24], 0x3a
mov byte [ebp - 0x23], 0x18
mov byte [ebp - 0x22], 4
mov byte [ebp - 0x21], 0x3a
mov byte [ebp - 0x20], 0x25
mov byte [ebp - 0x1f], 0x4e
mov byte [ebp - 0x1e], 0x6f
mov byte [ebp - 0x1d], 0x6f
mov byte [ebp - 0x1c], 0x12
mov byte [ebp - 0x1b], 4
mov byte [ebp - 0x1a], 0x3a
mov byte [ebp - 0x19], 0x18
mov byte [ebp - 0x18], 0x7c
mov byte [ebp - 0x17], 4
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], 0x25
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x34]
mov byte [ebp - 0x13], 0
cmp byte [ebp - 0x13], 0
mov dword [ebp - 4], 0
jne 0x442842
xor ecx, ecx
mov byte [ebp - 0x13], 1
lea esi, [ecx + 0x7f]
jmp 0x442820
mov al, byte [ebp + ecx - 0x34]
movsx eax, al
sub eax, 0x6c
imul eax, eax, 0x13
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [ebp + ecx - 0x34], dl
inc ecx
cmp ecx, 0x20
jb 0x442820
jmp 0x442842
lea ecx, [ebp - 0x34]
mov dword [0x6317ac], 0
mov dword [0x6317b0], 0xf
lea edx, [ecx + 1]
mov byte [0x63179c], 0
jmp 0x442737
sub ecx, edx
lea eax, [ebp - 0x34]
push ecx
push eax
mov ecx, 0x63179c
call fcn.00437dd0
push 0x5a9310
call fcn.0054669a
push 0x6317b4
call fcn.0054633e
add esp, 8
jmp 0x442744
Function at 0x444150
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5955e0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x44430c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
je 0x4441d1
test edi, 0xffff0000
jne 0x4441b3
movzx eax, di
lea ecx, [ebp - 0x10]
push eax
call fcn.004295b0
jmp 0x4441dd
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x4441c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4441c0
sub ecx, edx
sar ecx, 1
jmp 0x4441d3
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00429870
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4442d2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4442d2
cmp eax, 0xb7
je 0x4442d2
push eax
push str.410_tKFuncAux::CreateDeepDirectory_tCreateDirectory_failed__error_code:__lu
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._INFO_
push 0x631888
call fcn.004677c0
lea eax, [ebp - 0x10]
push eax
call fcn.004471f0
mov esi, dword [ebp - 0x10]
add esp, 0x18
cmp dword [esi - 0xc], 0
jne 0x444269
push 0
push str.415_tKFuncAux::CreateDeepDirectory_tpath_is_empty_after_Remove_File_Spec__retCode:__d
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._ERROR_
push 0x631888
call fcn.004677c0
add esp, 0x14
xor edi, edi
jmp 0x4442da
push esi
call fcn.00444150
add esp, 4
push 0
test eax, eax
jne 0x444299
push esi
push str.423_tKFuncAux::CreateDeepDirectory_tCreate_Deep_Directory_failed__path:__ws__retCode:__d
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._ERROR_
push 0x631888
call fcn.004677c0
add esp, 0x18
xor edi, edi
jmp 0x4442da
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x4442d5
cmp eax, 0xb7
je 0x4442d5
push eax
push str.431_tKFuncAux::CreateDeepDirectory_tCreateDirectory_failed__error_code:__lu
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._ERROR_
push 0x631888
call fcn.004677c0
add esp, 0x14
jmp 0x4442da
mov esi, dword [ebp - 0x10]
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4442f9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
int3
Function at 0x444320
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596c38
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x444362
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x444383
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x44443f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [edi]
lea eax, [ebp + 8]
push str._s_d__x
push eax
call fcn.0042bf70
add esp, 0x10
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
test eax, eax
je 0x4443d4
mov edi, 1
jmp 0x4443fa
cmp dword [ebp + 0xc], 0
je 0x4443f8
push esi
push dword [edi]
call fcn.00555de4
add esp, 8
push 4
push 0
test eax, eax
jne 0x44442c
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x444438
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x444419
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4443f8
mov edi, 1
jmp 0x4443fa
push 0x80004005
call fcn.004293d0
int3
Function at 0x444880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push str.SoftwarekingsoftOffice6.0Common
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x444a03
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x444a3f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4449aa
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.hostprocname
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x44492a
cmp eax, 2
jne 0x4449aa
lea ecx, [ebp - 0x14]
call fcn.00429490
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x444a49
mov esi, dword [ebp - 0x14]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x444960
push edx
lea ecx, [ebp - 0x14]
call fcn.004296d0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push str.hostprocname
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4449aa
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [esi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.00555593
add esp, 8
test eax, eax
js 0x444a49
cmp eax, dword [esi - 8]
jg 0x444a49
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], 0
je 0x4449e7
lea edi, [esi - 0x10]
push edi
call fcn.004293f0
mov esi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov byte [ebp - 4], 0
mov dword [esi], eax
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4449dd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x444a2c
push eax
jmp 0x444a26
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x444a03
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
push str.hostprocname
push str.SoftwarekingsoftOffice6.0Common
push 0x80000002
push esi
call fcn.00460090
mov ecx, dword [ebp - 0x10]
add esp, 0x10
test ecx, ecx
je 0x444a2c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
push 0x80070057
call fcn.004293d0
int3
Function at 0x446320
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597000
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or esi, 0xffffffff
test eax, eax
je 0x446449
push 0x5ac698
push str.GetWinSpecialFoldersFromReg
push str.Support
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0045dd10
push str.True
push dword [ebp - 0x10]
call fcn.00555852
mov edx, dword [ebp - 0x10]
add esp, 0x1c
test eax, eax
mov byte [ebp - 4], 0
mov ecx, 1
mov eax, esi
cmove edi, ecx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4463b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x446449
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov ecx, 2
mov eax, edi
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.00546052
mov esi, eax
add esp, 4
test esi, esi
je 0x4463f0
push ebx
push 0
push esi
call fcn.0054b380
add esp, 0xc
jmp 0x4463f2
xor esi, esi
push 0xa
push 0xffffffffffffffff
push 0
push edi
push esi
push dword [ebp + 0xc]
call fcn.00446490
mov edi, eax
add esp, 0x18
test edi, edi
je 0x446428
push edi
push str.1107_tKFuncAux::GetSpecialFolders_t_KFuncAux::GetSpecialFolders__GetWinSpecialFoldersFromReg_Failed:_0x_08x.
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonapponlyonekfuncaux.cpp
push str._INFO_
push 0x631888
call fcn.004677c0
add esp, 0x14
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
call fcn.00559d80
push esi
call fcn.0054605b
xor ebx, ebx
add esp, 0x10
test edi, edi
sete bl
or esi, 0xffffffff
jmp 0x44645b
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, eax
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x44647a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4472a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597148
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x62819c]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x2c], 0x400
call fcn.00546052
mov esi, eax
mov dword [ebp - 0x34], esi
push 0x800
push 0
push esi
mov dword [ebp - 4], 0
call fcn.0054b380
add esp, 0x10
mov dword [ebp - 0x30], 0x400
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x44731b
mov eax, dword [ebx]
lea ecx, [ebp - 0x30]
push ecx
push esi
push 0
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, esi
cmp eax, 0xea
jne 0x4473b5
mov edx, 2
mov edi, edi
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
add eax, 0x800
mov dword [ebp - 0x2c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00546052
mov edi, eax
add esp, 4
mov eax, esi
mov esi, edi
mov dword [ebp - 0x34], esi
test eax, eax
je 0x447375
push eax
call fcn.0054605b
add esp, 4
mov eax, dword [ebp - 0x2c]
add eax, eax
push eax
push 0
push edi
call fcn.0054b380
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x30], eax
mov eax, ebx
jb 0x447396
mov eax, dword [ebx]
lea ecx, [ebp - 0x30]
push ecx
push edi
push 0
push 0
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, 2
cmp eax, 0xea
je 0x447340
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea ecx, [edi + 2]
mov word [ebp - 0x28], ax
lea esp, [esp]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4473d0
sub edi, ecx
lea ecx, [ebp - 0x28]
sar edi, 1
push edi
push esi
call fcn.0042daa0
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae edi, dword [ebp - 0x28]
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4474c7
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x3c]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 2
test edi, edi
je 0x447447
test edi, 0xffff0000
jne 0x447431
movzx eax, di
mov ecx, ebx
push eax
call fcn.004295b0
jmp 0x447452
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x447436
sub ecx, edx
sar ecx, 1
jmp 0x447449
xor ecx, ecx
push ecx
push edi
mov ecx, ebx
call fcn.00429870
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x447488
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44747e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4474d1
push edx
push ecx
call fcn.00546044
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x4474a9
push esi
call fcn.0054605b
add esp, 4
mov eax, ebx
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.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
call fcn.00555394
int3
Function at 0x447ab0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsWindows_Error_ReportingRuntimeExceptionHelperModules
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x447afd
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x447afd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x45c090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45c106
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x45c106
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45c106
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x45c106
mov ecx, dword [ebp + 0x10]
push ebx
push eax
lea eax, [ebx + 1]
push eax
call fcn.0044c270
push eax
call fcn.0054ae00
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push ebx
call fcn.00455650
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x45c110
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5984a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x45c277
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x45c28d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push dword [esi]
push str._s_d._s
push eax
call fcn.0042bf70
mov esi, dword [ebp - 0x10]
add esp, 0x14
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
je 0x45c24d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x45c246
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push ebx
lea ecx, [ebx + 0xa]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0044c270
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 8], eax
test eax, eax
je 0x45c22a
cmp dword [ebp + 0x10], ebx
jne 0x45c22a
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.00455650
mov byte [ebp - 4], 2
test edi, edi
je 0x45c209
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.00428fc0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp dword [ecx - 8], 0
jl 0x45c297
mov ebx, dword [ebp + 8]
mov dword [ecx - 0xc], 0
mov eax, dword [eax]
mov byte [eax], 0
jmp 0x45c248
xor ebx, ebx
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
test edi, edi
je 0x45c258
push edi
call eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45c277
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004293d0
push 0x80070057
call fcn.004293d0
int3
Function at 0x45dd10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59855b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x62819c]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0054b380
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x104
push eax
push edi
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x45de11
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x220]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x45ddcc
movzx eax, ax
mov ecx, ebx
push eax
call fcn.004295b0
jmp 0x45ddf3
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ddd5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00429870
mov eax, ebx
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.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
int3
Function at 0x45f160
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598788
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x45f1a5
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push dword [0x631770]
lea eax, [ebp - 0x10]
push eax
call fcn.00447160
add esp, 0xc
push dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0
call ebx
push str..new
lea eax, [ebp + 8]
push edi
push eax
call fcn.00429080
add esp, 0xc
push dword [eax]
call ebx
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f1fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str..old
lea eax, [ebp + 8]
push edi
push eax
call fcn.00429080
add esp, 0xc
push dword [eax]
call ebx
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45f22c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45f24b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret