joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471150
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
push ebx
push esi
push 1
push 0
push 0xffffffffffffffff
mov ebx, ecx
mov ecx, dword [0x4e7210]
push 0
call fcn.004a0a20
mov esi, dword [esp + 0x118]
test esi, esi
je 0x4712d1
cmp word [esi], 0
je 0x4712d1
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test ebp, ebp
jne 0x4711bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e30f4]
push 1
mov dword [ecx + 0x30], eax
mov ecx, ebx
call fcn.00447710
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push edi
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
push edi
push ebp
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x471267
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4d1020
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x471267
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [esp + 0x28]
push edx
push str._u._u._u._u
push 0x80
push eax
call fcn.0049c650
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4e30f4]
add esp, 0x20
mov ecx, ebx
push 0
mov dword [eax + 0x30], 0
call fcn.00447710
mov ecx, dword [0x4e7210]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a0a20
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e30f4]
push edi
mov dword [ecx + 0x30], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4e30f4]
add esp, 4
test byte [eax + 0x100], 1
jne 0x4712b1
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d00fc
call fcn.004a0a20
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4b9c40
push 0
push 0x4d00fc
mov ecx, ebx
call fcn.00447670
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [0x4e30f4]
mov ecx, ebx
push 1
mov dword [eax + 0x30], 0x57
call fcn.00447710
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x471590
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
test dl, dl
jne 0x4715b2
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x47167e
mov al, 1
add esp, 0x230
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4715d0
sub ecx, edx
sar ecx, 1
je 0x4715f0
cmp word [esp + ecx*2 + 0x22], 0x5c
jne 0x4715f0
xor eax, eax
mov word [esp + ecx*2 + 0x22], ax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47167e
test al, 0x10
je 0x47167e
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471610
sub ecx, edx
mov dword [esp + 0xc], 0
sar ecx, 1
xor eax, eax
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x12], 0
mov word [esp + ecx*2 + 0x26], ax
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x10], ax
lea eax, [esp]
push eax
mov dword [esp + 4], 0
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
add esp, 0x230
ret
xor al, al
add esp, 0x230
ret
Function at 0x471bc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x258
push esi
mov esi, ecx
push 0x2a
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x471bff
push 0x3f
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
add esp, 8
test eax, eax
jne 0x471bff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x471c10
mov al, 1
pop esi
add esp, 0x258
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x471c1a
xor al, al
pop esi
add esp, 0x258
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
add esp, 0x258
ret

Function at 0x471c30
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x28
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x471ca3
lea eax, [esp + 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x471ca3
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x471ca3
mov al, 1
pop esi
add esp, 0x14
ret
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x471cb0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0xa60
push ebx
push ebp
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x18], 0x22c
push 2
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
push 0
push 0
push 1
xor edx, edx
mov ecx, ebx
call fcn.0049c4a0
add esp, 0xc
test eax, eax
je 0x471d21
mov ecx, ebx
call fcn.00404c80
test al, al
je 0x471d13
push 0x10
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wcstoi64]
add esp, 0xc
mov ebx, eax
jmp 0x471d23
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi64]
add esp, 4
mov ebx, eax
jmp 0x471d23
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x471de7
test ebx, ebx
je 0x471d45
cmp ebx, dword [esp + 0x1c]
je 0x471dfb
lea eax, [esp + 0x44c]
push eax
lea eax, [esp + 0x244]
push eax
lea eax, [esp + 0x660]
push eax
lea eax, [esp + 0x870]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath]
lea eax, [esp + 0x460]
add esp, 0x14
mov esi, eax
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471d80
lea edi, [esp + 0x240]
sub eax, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x471da0
push dword [esp + 0x10]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x244]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x471e0f
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x471d37
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa60
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xa60
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa60
ret
Function at 0x483a30
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x483a40
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x483a50
Capabilities:
Hide graphical window

Disassembly:
cmp dword [ecx + 0x24], 0
jne 0x483a6c
mov eax, dword [ecx + 4]
test eax, eax
je 0x483a81
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
ret
Function at 0x483ac0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x483cb1
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
je 0x483b46
xor ebx, ebx
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x483b05
cmp byte [eax + 4], 6
je 0x483b05
push str.Submit
push eax
push ecx
mov ecx, esi
call fcn.00483d90
jmp 0x483b3b
cmp dword [eax + 0x3c], 0
je 0x483b3b
cmp byte [eax + 4], 6
je 0x483b3b
mov ecx, dword [esi + 0xd4]
test ecx, ecx
jne 0x483b31
push 0x4b9c40
push str.No_object_to_invoke.
mov ecx, 0x4e7b70
call fcn.00447e20
jmp 0x483b3b
push ecx
push eax
push ecx
mov ecx, esi
call fcn.004847b0
mov eax, dword [esi + 0x10]
inc edi
add ebx, 0x40
cmp edi, eax
jb 0x483ae3
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ebx
xor edi, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov ebx, ecx
mov dword [esp + 0x1c], ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
je 0x483b85
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x18]
push 0xfffffffffffffff0
push dword [eax + ecx]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000
je 0x483bd9
mov edx, dword [esp + 0x10]
cmp edi, 1
jne 0x483bba
cmp edx, edi
jle 0x483bba
push 0xa
lea eax, [esp + 0x2c]
push eax
xor eax, eax
cmp ebx, 0xffffffff
cmovne eax, ebx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
add esp, 0xc
push edi
push 0
push 0xffffffffffffffff
push eax
call fcn.004a0a20
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x10]
je 0x483ca0
xor edi, edi
mov dword [esp + 0x14], 0
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x483bdd
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, dword [esi + 0x18]
cmp byte [edx + 4], 6
jne 0x483c7f
mov ebx, dword [edx + 8]
inc ecx
test ebx, ebx
mov dword [esp + 0x10], ecx
mov eax, ebx
cmove eax, dword [esp + 0xc]
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
lea eax, [edi + 1]
push 0
cmove eax, edi
push 0xf0
push dword [edx]
mov edi, eax
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x483c55
cmp dword [esp + 0x14], 0
mov ecx, 0xffffffff
mov eax, dword [esp + 0x10]
cmovne eax, ecx
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x483c7f
push 1
push 0
push ecx
push 0x4d00fc
mov ecx, ebx
call fcn.004a0a20
jmp 0x483c7f
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x483c7f
push 1
push 0
push 0xffffffffffffffff
push 0x4b9d08
mov ecx, ebx
call fcn.004a0a20
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x18], 0x40
inc ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jbe 0x483b66
cmp byte [ebp + 8], 0
je 0x483cb1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x483cc0
Capabilities:
Get graphical window text

Disassembly:
mov eax, edx
cmp eax, 0x2af8
jae 0x483d73
test ecx, ecx
je 0x483d73
cmp dword [ecx + 4], 0
je 0x483d73
cmp eax, dword [ecx + 0x10]
jae 0x483d73
mov edx, dword [esp + 4]
shl eax, 6
add eax, dword [ecx + 0x18]
mov ecx, dword [eax + 8]
test edx, edx
je 0x483d3e
test ecx, ecx
je 0x483d32
mov ecx, dword [ecx + 0x18]
push esi
mov esi, edx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x483d03
lea eax, [edx + 2]
pop esi
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x483d20
sub edx, eax
sar edx, 1
mov eax, edx
ret
push 0x40
push edx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
test ecx, ecx
je 0x483d60
mov eax, dword [ecx + 0x18]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x483d50
sub eax, edx
sar eax, 1
ret
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, 0x3f
cmp eax, ecx
cmova eax, ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x483d80
xor ecx, ecx
mov word [eax], cx
xor eax, eax
ret
Function at 0x487a50
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
movzx eax, word [esi]
test ax, ax
je 0x487a8c
mov edx, eax
movzx eax, dx
cmp eax, 0x21
je 0x487a7b
cmp eax, 0x2b
je 0x487a77
cmp dx, 0x5e
jne 0x487a8c
mov al, 2
jmp 0x487a7d
mov al, 1
jmp 0x487a7d
mov al, 4
add esi, 2
or bl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x487a60
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041cb90
mov bh, al
add esp, 0xc
test bh, bh
jne 0x487aaf
pop esi
xor eax, eax
pop ebx
ret
xor edx, edx
mov ecx, esi
call fcn.0041caa0
movzx edx, ax
test dx, dx
jne 0x487acc
xor dl, dl
mov cl, bh
call fcn.0041d0f0
movzx edx, ax
mov al, bl
or al, 8
and edx, 0x100
movzx ecx, al
movzx eax, bl
cmove ecx, eax
movzx eax, cl
movzx ecx, bh
shl ax, 8
pop esi
or ax, cx
pop ebx
ret
Function at 0x489760
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], edi
nop
movzx eax, word [esi]
cmp eax, 0x20
je 0x48977d
cmp eax, 9
jne 0x489782
add esi, 2
jmp 0x489770
test ax, ax
je 0x4898ed
cmp word [esi + 2], 0
lea ecx, [esi + 2]
jne 0x4897a6
mov word [edi + 2], ax
mov al, 1
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x2b
xor bl, bl
mov byte [edi], 1
push ecx
mov byte [esp + 0x1b], bl
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x489878
lea edi, [ebp - 2]
cmp edi, esi
jbe 0x4897e4
nop dword [eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x4897dd
cmp eax, 9
jne 0x4897e4
sub edi, 2
cmp edi, esi
ja 0x4897d0
sub edi, esi
sar edi, 1
inc edi
push edi
push str.Ctrl
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x489802
or bl, 1
jmp 0x489836
push edi
push 0x4cf434
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x48981b
or bl, 4
jmp 0x489836
push edi
push str.Shift
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4898ed
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 2]
nop dword [eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x48984d
cmp eax, 9
jne 0x489852
add esi, 2
jmp 0x489840
test ax, ax
je 0x4898ed
lea eax, [esi + 2]
push 0x2b
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4897c5
mov edi, dword [esp + 0x14]
cmp word [esi + 2], 0
jne 0x4898a8
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
movzx eax, word [esi]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea edx, [esp + 0x1b]
mov ecx, eax
call fcn.0041cc60
mov bl, byte [esp + 0x1b]
add esp, 8
jmp 0x4898c0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041cb90
add esp, 0xc
movzx eax, al
mov word [edi + 2], ax
test bl, 1
je 0x4898cf
or byte [edi], 8
test bl, 4
je 0x4898d7
or byte [edi], 0x10
test bl, 0x10
je 0x4898df
or byte [edi], 4
pop edi
pop esi
test ax, ax
pop ebp
setne al
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x48f4f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], 0
push esi
xor edx, edx
mov dword [ebp - 0x24], ebx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
mov dword [ebx + 4], esi
mov dword [ebp - 4], edx
test eax, eax
jle 0x48f618
nop dword [eax]
cmp edx, dword [ebp + 0x10]
jl 0x48f592
cmp dword [0x4e59e4], 0
mov ecx, 0x42
mov eax, dword [0x4e30f4]
mov esi, 0x4e58b0
mov edi, eax
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], 0
movlpd qword [0x4e8678], xmm0
je 0x48f58f
mov eax, dword [0x4e4ae8]
mov ecx, 0x4b9c40
test eax, eax
je 0x48f588
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx]
add edx, edx
push 0
mov ecx, dword [eax + edx*8]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov edx, ecx
push dword [ebp + 8]
push str.call
call fcn.0048c0d0
add esp, 0x14
test eax, eax
je 0x48f5fa
cmp dword [ebp - 0x14], 0
jne 0x48f5d9
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x18]
jl 0x48f540
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
jmp 0x48f61b
mov ecx, dword [ebp - 0x24]
mov eax, 3
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x494340
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x30008
call fcn.004b79a0
push esi
mov esi, dword [esp + 0x3001c]
test esi, esi
je 0x49435c
cmp word [esi], 0
jne 0x494361
mov esi, str.ERROR
xor eax, eax
mov word [esp + 0x1000c], ax
mov word [esp + 4], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push 0x8000
push dword [esp + 0x3001c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0x30018]
mov ecx, dword [esp + 0x30014]
cmp word [eax], 0
movzx edx, word [ecx]
je 0x4943ed
push edi
lea edi, [esp + 0x10]
test dx, dx
push edi
push 0xffff
lea edi, [esp + 0x10018]
push edi
push esi
push eax
lea eax, [esp + 0x1c]
cmovne eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
mov ecx, dword [0x4e7210]
lea eax, [esp + 0x1000c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a0a20
pop esi
add esp, 0x30008
ret 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x10010]
push 0xffff
push eax
test dx, dx
je 0x49440d
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x494413
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x4943ca
lea eax, [esp + 0x1000c]
mov ecx, 0xa
cmp word [eax], 0
jne 0x494433
cmp word [eax + 2], 0
je 0x4943ca
mov word [eax], cx
add eax, 2
jmp 0x494423
Function at 0x494440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.004b79a0
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
lea eax, [ebp - 0x1000c]
mov dword [ebp - 4], esi
push eax
push 0x8000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor edx, edx
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x1000c]
call fcn.0049d460
mov ebx, dword [ebp + 0x10]
test al, al
jne 0x494543
push 0
push 0
push 1
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x1000c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x494540
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4944c0
sub ecx, edx
sar ecx, 1
lea eax, [ebx + ecx*2]
push 0
mov dword [ebp + 0x10], eax
lea edi, [ecx*2 + 2]
mov ecx, 0x5d
mov word [eax], cx
lea eax, [ebp + 0xc]
push eax
push 4
push 0x4db37c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49451a
cmp dword [ebp + 0xc], 4
jne 0x49451a
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49451a
cmp dword [ebp + 0xc], edi
je 0x494521
mov dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg eax
mov ecx, 0
sbb eax, eax
and eax, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov word [eax], cx
je 0x4945ff
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
cmp word [eax], 0
je 0x494560
lea ecx, [ebp - 0x1000c]
push ecx
push dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4945c1
push 0
mov ecx, esi
call fcn.0043a770
lea eax, [eax*2 + 4]
call fcn.004b79d0
mov edi, dword [ebp + 8]
mov eax, esp
mov dword [ebp + 0x10], eax
mov edx, eax
movzx ecx, word [edi]
test cx, cx
je 0x4945ae
mov esi, ecx
sub edi, eax
nop dword [eax + eax]
xor ecx, ecx
movzx eax, si
cmp si, 0xa
cmovne ecx, eax
mov word [edx], cx
add edx, 2
movzx esi, word [edi + edx]
test si, si
jne 0x494590
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [edx], ecx
lea ecx, [ebp - 0x1000c]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov esi, eax
lea eax, [ebp - 0x1000c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test esi, esi
je 0x4945ff
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4b9d08
call fcn.004a0a20
lea esp, [ebp - 0x10018]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x4e30f4]
test byte [eax + 0x100], 1
jne 0x494632
mov ecx, dword [0x4e59cc]
push 1
push 0
push 0xffffffffffffffff
push 0x4d00fc
call fcn.004a0a20
lea esp, [ebp - 0x10018]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
push 0x4b9c40
push 0
push 0x4d00fc
call fcn.00447670
lea esp, [ebp - 0x10018]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10