joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e80
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b856
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x5ef220]
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 ebx, ecx
mov dword [ebp - 0x63c], ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.0055c960
add esp, 0xc
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push eax
lea eax, [ebp - 0x216]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00402a30
push str.Config.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00558864
add esp, 0xc
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push eax
lea eax, [ebp - 0x41e]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x5c52ec
push str.regDlls
push str.action_first
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407f80
sub ecx, edx
sar ecx, 1
jne 0x407f98
xor al, al
jmp 0x4080cc
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x62c]
call fcn.0040f690
mov dword [ebp - 4], 0
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x638]
mov ecx, dword [ebp - 0x62c]
push 0x7c
call fcn.0042a940
mov edi, dword [ebp - 0x634]
add esp, 4
xor esi, esi
test edi, edi
jle 0x408098
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0055c960
mov eax, dword [ebp - 0x63c]
add esp, 0xc
add eax, 4
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00558864
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test esi, esi
js 0x4080e8
cmp esi, edi
jge 0x4080e8
mov eax, dword [ebp - 0x638]
push dword [eax + esi*4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40808b
lea ecx, [ebp - 0x218]
call fcn.00408100
push 0x32
call ebx
inc esi
cmp esi, edi
jl 0x408000
lea ecx, [ebp - 0x638]
call fcn.0040e110
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x62c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4080ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
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.00557f7f
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x408100
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0055c960
push esi
lea eax, [ebp - 0x210]
push str.regsvr32__s___s_
push eax
call fcn.0040e0a0
push 0x40
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0055c960
add esp, 0x24
mov dword [ebp - 0x258], 0x44
mov eax, 5
mov dword [ebp - 0x22c], 1
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x258]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.MSG:_regsvr32_success____s__code_d
call fcn.0042abd0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov al, 1
pop esi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x4081d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b896
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x5ef220]
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 esi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.0055c960
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00402a30
push str.Config.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00558864
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x628]
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0x5c52ec
push str.killProNames
push str.action_after
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4082c0
sub ecx, edx
sar ecx, 1
jne 0x4082d8
xor al, al
jmp 0x408391
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x62c]
call fcn.0040f690
mov dword [ebp - 4], 0
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x638]
mov ecx, dword [ebp - 0x62c]
push 0x7c
call fcn.0042a940
mov edi, dword [ebp - 0x634]
add esp, 4
xor esi, esi
test edi, edi
jle 0x40835d
mov ebx, dword [ebp - 0x638]
jmp 0x408340
test esi, esi
js 0x4083ad
cmp esi, edi
jge 0x4083ad
mov ecx, dword [ebx + esi*4]
call fcn.0042ac40
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, edi
jl 0x408340
lea ecx, [ebp - 0x638]
call fcn.0040e110
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x62c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40838f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
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.00557f7f
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x4083c0
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0055c960
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x61c]
mov ecx, edi
push eax
call fcn.00402a30
push str.Config.ini
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00558864
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0
push str.sleep
push str.action_after
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jle 0x40846e
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0055c960
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x5c52ec
push str.RunAfterExe
push str.action_after
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x414]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x5c52ec
push str.RunAfterParam
push str.action_after
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x824]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408500
sub ecx, edx
sar ecx, 1
jne 0x408522
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00558864
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push eax
call fcn.0055c960
add esp, 0xc
lea edx, [ebp - 0xa2c]
lea ecx, [ebp - 0x20c]
call fcn.0042aab0
push 1
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x408660
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0055c960
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00402a30
push str.Config.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00558864
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x61c]
add esp, 0xc
push eax
call esi
test eax, eax
jne 0x408710
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x5c52ec
push str.assocToGid
push 0x5c39b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x824]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408760
sub ecx, edx
sar ecx, 1
je 0x4086fe
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.00406e00
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x408887
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push eax
call fcn.0055c960
lea esi, [edi + 4]
push esi
lea eax, [ebp - 0xa2c]
push 0x104
push eax
call fcn.00558864
lea eax, [ebp - 0x414]
push eax
push 0x104
push esi
call fcn.00558864
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
add esp, 0x30
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x5c52ec
push str.delFileOrDirs
push str.action_first
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00407ca0
push 0
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0xa2c]
call fcn.00429bb0
add esp, 4
mov byte [edi + 0x20c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi]
add eax, 4
push eax
lea eax, [ebp - 0x414]
push eax
push str.MSG:_assis_to_gid_succeed__dir_s__exe_s__code_d
call fcn.0042abd0
add esp, 0x10
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x4088a0
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call fcn.0055c960
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.00402a30
push str.Config.ini
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00558864
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x5c52ec
push str.runFirstUrl
push str.action_first
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
pop esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408977
sub eax, edx
sar eax, 1
jne 0x408998
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.MSG:_runurl_s__code_d
call fcn.0042abd0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov al, 1
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
Function at 0x40f420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40f435
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40f474
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40f470
lea ebx, [ebx]
cmp esi, edx
jae 0x40f474
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40f460
cmp esi, edx
jb 0x40f479
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x41d3f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push dword [edi]
push 1
push dword [edi + 8]
push esi
call fcn.0055aea9
mov ecx, dword [edi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
cdq
sete bl
idiv dword [edi + 0x18]
mov byte [ebp - 1], bl
mov dword [edi + 0x1c], eax
test bl, bl
je 0x41d555
add dword [edi + 0x14], ecx
mov edx, 0x18
push 0xffffffffffffffff
push eax
mov eax, dword [edi + 0x24]
push ecx
mov ecx, esp
push ecx
mov dword [ecx], eax
mov eax, esp
lea ecx, [edi + 0x20]
mov dword [eax], str.read
call fcn.0041b380
mov edx, dword [edi + 0x18]
add esp, 0x10
mov ecx, dword [edi + 0x1c]
xor ebx, ebx
xor eax, eax
cmp edx, 1
sete byte [ebp - 2]
test ecx, ecx
je 0x41d4fe
jmp 0x41d470
dec ecx
mov dword [ebp - 8], ecx
xor ecx, ecx
cmp byte [ebp - 2], cl
je 0x41d47f
cmp byte [esi], cl
jmp 0x41d482
cmp word [esi], cx
sete cl
test ecx, ecx
je 0x41d4ac
test eax, eax
je 0x41d4a5
cmp esi, eax
je 0x41d4a5
mov ecx, esi
imul edx, ebx
sub ecx, eax
push ecx
push eax
sub eax, edx
push eax
call fcn.00558040
add esp, 0xc
mov edx, dword [edi + 0x18]
inc ebx
lea eax, [edx + esi]
mov ecx, dword [ebp - 8]
add esi, edx
test ecx, ecx
jne 0x41d470
test eax, eax
je 0x41d4d2
cmp esi, eax
je 0x41d4d2
mov ecx, dword [edi + 0x18]
sub esi, eax
imul ecx, ebx
push esi
push eax
sub eax, ecx
push eax
call fcn.00558040
add esp, 0xc
test ebx, ebx
je 0x41d4fe
push 0xffffffffffffffff
push ebx
push ecx
mov eax, esp
mov edx, 1
push ecx
lea ecx, [edi + 0x20]
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.nulls_removed
call fcn.0041b380
add esp, 0x10
sub dword [edi + 0x1c], ebx
cmp dword [edi + 0x18], 1
jle 0x41d549
test byte [edi + 4], 0x80
je 0x41d549
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x41d526
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x41d514
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov esi, esp
xor edx, edx
push ecx
lea ecx, [edi + 0x20]
mov dword [esi], 0
mov esi, esp
mov dword [esi], str.endian_swap
call fcn.0041b380
add esp, 0x10
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.0041ceb0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41d9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x18]
imul eax, dword [edi + 0x1c]
test ebx, ebx
cmove ebx, edx
xor esi, esi
test byte [edi + 4], 0x80
mov dword [edi + 8], eax
je 0x41da58
test edx, edx
jne 0x41da1c
mov eax, dword [edi + 0x1c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430eb7
mov ecx, dword [edi + 0x1c]
add esp, 4
add ecx, ecx
mov esi, eax
push ecx
push ebx
push esi
call fcn.00560070
add esp, 0xc
mov edx, esi
mov ebx, esi
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x41da35
movzx eax, word [edx + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x41da23
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
lea ecx, [edi + 0x20]
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.endian_swap
call fcn.0041b380
add esp, 0x10
push dword [edi]
push 1
push dword [edi + 8]
push ebx
call fcn.0055b0ae
add esp, 0x10
cmp eax, 1
sete bl
test esi, esi
je 0x41da7b
push esi
call fcn.00430ec0
add esp, 4
test bl, bl
je 0x41dab5
mov eax, dword [edi + 8]
mov edx, 0x18
add dword [edi + 0x14], eax
push 0xffffffffffffffff
push dword [edi + 0x1c]
push ecx
mov ecx, dword [edi + 0x24]
mov esi, esp
push ecx
mov dword [esi], ecx
mov ecx, esp
mov dword [ecx], str.write
lea ecx, [edi + 0x20]
call fcn.0041b380
add esp, 0x10
mov al, bl
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
mov ecx, edi
call fcn.0041ceb0
pop edi
pop esi
mov al, bl
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x423230
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0055c960
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0055c960
mov ecx, dword [esi + 0xcc]
lea eax, [ebp - 0x20c]
add esp, 0x18
push eax
call fcn.00402a30
push str.Config.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00558864
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423310
mov eax, dword [esi + 0xcc]
cmp byte [eax + 0x20c], 0
je 0x423310
lea eax, [ebp - 0x414]
push eax
push 0
push str.btnCount
push str.dlg_config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
test eax, eax
pop esi
setg cl
lea eax, [ecx + 1]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret

Function at 0x4249e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
mov edi, ecx
push 1
push SysReAllocStringLen
mov dword [edi + 0x208], 0
mov dword [edi + 0x20c], 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x424a84
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.00430eb7
add esp, 4
mov dword [edi + 0x20c], eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push 0
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x20c]
push ebx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, dword [edi + 0x20c]
mov edx, esi
call fcn.00430c40
add esp, 4
mov dword [edi + 0x208], eax
test eax, eax
je 0x424a84
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
Function at 0x427530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004357d3
Function at 0x429af0
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x429b9e
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429b9e
push esi
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
je 0x429b95
push eax
call fcn.00430eb7
mov esi, eax
add esp, 4
test esi, esi
je 0x429b95
push esi
push dword [ebp - 4]
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x429b8c
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
push 0x5c52e8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x429b8c
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x429b8c
mov eax, dword [ecx + 8]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0xc]
push esi
mov dword [ebx], eax
call fcn.00430ec0
add esp, 4
mov eax, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00430ec0
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429f00
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x80
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 3
push 0
push 0
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
mov ebx, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429f4c
cmp edi, 0xffffffff
je 0x429f55
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a3b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x42a3e5
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
mov ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a3f0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jb 0x42a418
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00558864
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.0042c680
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x42a407
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x42a465
lea ecx, [ebp - 0x20c]
call fcn.0042a3b0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00557f7f
mov esp, ebp
pop ebp
ret