joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008e31
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
jne 0x1008e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001ee0
jmp 0x1008e76
cmp dword [ebp - 4], 0
je 0x1008e7d
lea eax, [ebp - 8]
push eax
call fcn.010047f4
test eax, eax
pop ecx
je 0x1008e81
push eax
push 0x1001e70
call fcn.01008223
pop ecx
pop ecx
xor al, al
leave
ret
push esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1008ebf
lea eax, [ebp - 8]
push eax
call fcn.0100473f
test eax, eax
pop ecx
je 0x1008eb3
push eax
push 0x1001e70
call fcn.01008223
pop ecx
pop ecx
xor al, al
jmp 0x1008ec1
push dword [ebp - 8]
push dword [ebp - 4]
call esi
test eax, eax
je 0x1008eaf
mov al, 1
pop esi
leave
ret

Function at 0x1008f60
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x1012d50]
and dword [ebp - 0xa30], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0xa20]
mov esi, 0x105
mov dword [ebp - 0xa2c], eax
push esi
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0xa28], 0x401
push 0
jmp 0x1009069
lea eax, [ebp - 0xa34]
push eax
push 0xf003f
push 0
push dword [ebp - 0x21c]
push ebx
call fcn.010043c4
add esp, 0x14
test eax, eax
mov dword [ebp - 0xa38], eax
jne 0x10090ab
push dword [ebp - 0xa34]
call fcn.01008ec9
test al, al
pop ecx
jne 0x100904a
push dword [ebp - 0x21c]
push 0x1002140
push dword [ebp - 0xa28]
push dword [ebp - 0xa2c]
call fcn.01005ad6
add esp, 0x10
test eax, eax
jl 0x100902f
push 0
push dword [ebp - 0xa2c]
call fcn.01008223
pop ecx
pop ecx
push dword [ebp - 0x21c]
push ebx
call fcn.010088a9
test al, al
pop ecx
pop ecx
jne 0x1009050
push 0
push 0x10020d0
jmp 0x1009081
inc dword [ebp - 0xa30]
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push dword [ebp - 0x21c]
push dword [ebp - 0xa30]
push ebx
call edi
test eax, eax
je 0x1008fc2
cmp eax, 0x103
je 0x10090dc
push eax
push 0x1002068
call fcn.01008223
pop ecx
pop ecx
lea ecx, [ebp - 0xa2c]
call fcn.01005a0f
cmp dword [ebp - 0x218], esi
jle 0x10090a7
push dword [ebp - 0x21c]
call fcn.01005335
pop ecx
xor al, al
jmp 0x10090fd
push dword [ebp - 0x21c]
push 0x1002000
push dword [ebp - 0xa28]
push dword [ebp - 0xa2c]
call fcn.01005ad6
add esp, 0x10
test eax, eax
jl 0x1009088
push dword [ebp - 0xa38]
push dword [ebp - 0xa2c]
jmp 0x1009081
lea ecx, [ebp - 0xa2c]
call fcn.01005a0f
cmp dword [ebp - 0x218], esi
jle 0x10090fb
push dword [ebp - 0x21c]
call fcn.01005335
pop ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f222
leave
ret
Function at 0x100bb2b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1012d50]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x45
mov byte [eax], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
pop edi
jne 0x100bb94
cmp dword [ebp - 0x114], 5
ja 0x100bb87
jne 0x100bb94
cmp dword [ebp - 0x110], 1
jb 0x100bb94
push 0x1003084
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x100bb9f
push 0x1003084
call fcn.0100b9ec
pop ecx
mov ecx, dword [ebp - 4]
call fcn.0100f222
leave
ret

Function at 0x100f222
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1012d50]
jne 0x100f233
test ecx, 0xffff0000
jne 0x100f233
ret
jmp fcn.0100f23d
Function at 0x401000
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0x2fa1
mov word [esp + 0x3e], 0x152a
mov dword [esp + 0x38], 0x3785
mov eax, dword [esp + 0x38]
mov ecx, eax
xor ecx, 0xf98
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc], eax
jmp 0x4010dc
mov eax, 0x3787
sub eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
jmp 0x401092
mov eax, dword [sym.imp.ole32.dll_CoFreeLibrary]
call eax
shl byte [ecx - 0x55], 1
mov dword [esp + 0x2c], eax
jmp 0x40111a
mov eax, 0x401628
call eax
shl byte [ecx - 0x55], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0xa8195bea
mov eax, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x40], eax
jmp 0x401092
mov eax, dword [esp + 0x1c]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov ax, word [esp + 0x3e]
mov cx, 0x39b5
sub cx, ax
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
xor edx, 0x79ee
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov word [esp + 0x32], cx
mov ax, word [esp + 0x3e]
movsd xmm0, qword [esp + 0x10]
mov di, 0x7ea1
sub di, ax
movsd qword [esp + 0x20], xmm0
cmp di, cx
jne 0x40118e
jmp 0x4010fa
mov eax, 0x40165e
call eax
shl byte [ecx - 0x55], 1
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.comdlg32.dll_ChooseColorW]
call eax
shl byte [ecx - 0x55], 1
mov dword [esp + 0x2c], eax
jmp 0x401156
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0x7f9b
mov eax, dword [sym.imp.KERNEL32.dll_CreateTapePartition]
call eax
shl byte [ecx - 0x55], 1
mov dword [esp + 0x2c], eax
jmp 0x401167
mov eax, 0x401622
call eax
shl byte [ecx - 0x55], 1
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.SETUPAPI.dll_SetupDiGetActualSectionToInstallA]
call eax
shl byte [ecx - 0x55], 1
mov dword [esp + 0x2c], eax
jmp 0x4011b4
mov al, byte [esp + 0x47]
or al, 0x48
mov byte [esp + 0x47], al
mov ecx, dword [sym.imp.NTDSAPI.dll_DsFreeSpnArrayW]
call ecx
shl byte [ecx - 0x55], 1
mov dword [esp + 0x2c], eax
jmp 0x401052
mov eax, 0x10e4
cmp eax, dword [esp + 0x34]
je 0x401092
jmp 0x401138
mov eax, dword [esp + 0x38]
add eax, 0xffffc87c
mov ecx, dword [sym.imp.SHELL32.dll_SHFileOperationA]
call ecx
shl byte [ecx - 0x55], 1
mov dword [esp + 0x2c], eax
and eax, dword [esp + 0x2c]
cmp eax, 0
jne 0x401043
jmp 0x4011c7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
xor edx, edx
mov esi, 0x7627
sub esi, eax
sbb edx, ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
jb 0x4010dc
jmp 0x401087
mov eax, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
call eax
shl byte [ecx - 0x55], 1
mov dword [esp + 0x2c], eax
jmp 0x4010fa
jmp 0x401065
Function at 0x402090
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x4060e0]
mov esi, 0x19
lea edi, [esp + 0x4b]
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7c]
and ebx, 0x6a07
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 0
mov word [esp + 0x76], 0x5ebd
mov dword [esp + 0x68], 0x7849
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ecx
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0x19
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
call sub.msvcrt.dll_memcpy
mov dword [esp + 0x64], 0
jmp 0x4021cb
mov eax, 0x7861
sub eax, dword [esp + 0x68]
cmp dword [esp + 0x3c], eax
jb 0x402209
jmp 0x402141
mov eax, dword [esp + 0x68]
add eax, 0xffff87b8
add eax, dword [esp + 0x64]
mov dword [esp + 0x64], eax
jmp 0x4021cb
mov eax, esp
lea ecx, [esp + 0x4b]
mov dword [eax], ecx
call fcn.00402240
sub esp, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
mov dx, word [esp + 0x76]
mov si, 0x5ebd
sub si, dx
mov ecx, esp
mov dword [ecx], eax
mov word [esp + 0x16], si
call fcn.004031b0
sub esp, 4
mov dx, ax
mov word [esp + 0x40], dx
mov word [esp + 0x42], dx
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, esp
lea ebx, [esp + 0x34]
mov dword [edi + 0xc], ebx
mov dx, word [esp + 0x16]
movzx ebx, dx
mov dword [edi + 8], ebx
lea ebx, [esp + 0x40]
mov dword [edi + 4], ebx
mov dword [edi], ecx
call eax
sub esp, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ax, word [esp + 0x76]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0x1408
xor ax, 0x6f47
mov word [esp + 0x32], ax
mov ax, word [esp + 0x76]
xor ax, 0x6dd2
mov ecx, dword [esp + 0x64]
mov dx, word [esp + 0x32]
mov dword [esp + 0x3c], ecx
cmp dx, ax
ja 0x4021cb
jmp 0x402116
mov eax, 0x78f7
mov ecx, dword [esp + 0x64]
movsx ecx, byte [esp + ecx + 0x4b]
mov edx, dword [esp + 0x68]
mov bl, byte [esp + 0x73]
sub bl, byte [esp + 0x73]
sub eax, edx
xor ecx, eax
mov bh, cl
mov byte [esp + 0x73], bl
mov eax, dword [esp + 0x64]
mov byte [esp + eax + 0x4b], bh
jmp 0x40212b
Function at 0x405000
Capabilities:
Get memory capacity

Disassembly:
mov dword [0x41f9b4], esi
push ebp
push esp
mov dword [0x41f9b8], edi
pop dword [0x41f9c4]
mov dword [0x41f9bc], ebx
pop dword [0x41f9c0]
mov dword [0x41f9b4], esi
jmp fcn.00401510
Function at 0x4039f4
Capabilities:
Delete file

Disassembly:
push 0x34
mov eax, 0x5889e3
call fcn.0042d04f
lea eax, [ebp - 0x40]
push eax
call fcn.00403a51
and dword [ebp - 4], 0
mov dword [esp], str.theme.ini
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040356d
add esp, 0xc
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.004044a8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004044a8
call fcn.0042cff9
ret

Function at 0x403ae5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x403c0d
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0055d8e0
lea eax, [ebp - 0x42c]
push eax
call fcn.00403a51
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x403b32
mov eax, dword [eax]
push str..wnpf
push esi
push eax
lea eax, [ebp - 0x20c]
push 0x58f1b4
push eax
call fcn.00404cc4
add esp, 0x14
lea ecx, [ebp - 0x42c]
push 0
push 1
call fcn.004044a8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403b9d
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.004366f8
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.00403969
push 0
push 1
lea ecx, [ebp - 0x42c]
call fcn.004044a8
mov al, 1
jmp 0x403c0f
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0055d8e0
lea eax, [ebp - 0x42c]
push eax
call fcn.00403a51
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x403bc7
mov eax, dword [eax]
push str..swnpf
push esi
push eax
lea eax, [ebp - 0x414]
push 0x58f1b4
push eax
call fcn.00404cc4
add esp, 0x14
lea ecx, [ebp - 0x42c]
push 0
push 1
call fcn.004044a8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403c0d
lea eax, [ebp - 0x414]
jmp 0x403b73
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
Function at 0x403cae
Capabilities:
Check if file exists

Disassembly:
push 0x268
mov eax, 0x588a72
call fcn.0042d04f
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x264], eax
call fcn.00403feb
mov ecx, eax
call fcn.0043599e
push eax
lea ecx, [ebp - 0x260]
call fcn.00403875
lea eax, [ebp - 0x248]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00403a51
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x268], esi
call fcn.00404127
mov dword [ebp - 0x26c], eax
push 7
mov dword [ebp - 0x220], esi
xor eax, eax
pop ebx
mov esi, str..wnpf
mov byte [ebp - 4], 2
push esi
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x230], ax
call fcn.00564eaf
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.0040475c
push dword [ebp - 0x264]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
push 0
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004036f8
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.004044a8
and dword [ebp - 0x220], 0
xor eax, eax
mov esi, str..swnpf
mov dword [ebp - 0x21c], ebx
push esi
mov word [ebp - 0x230], ax
call fcn.00564eaf
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.0040475c
push dword [ebp - 0x264]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
push 0
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004036f8
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.004044a8
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ecx]
mov dword [ebp - 0x270], eax
cmp eax, ecx
je 0x403ec4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [eax + 0x10]
cmp dword [esi + 0x14], 8
jb 0x403e11
mov edx, dword [esi]
jmp 0x403e13
mov edx, esi
cmp dword [edi + 0x14], 8
jb 0x403e1d
mov ecx, dword [edi]
jmp 0x403e1f
mov ecx, edi
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push edx
cmovae eax, dword [ebp - 0x260]
push ecx
push eax
lea eax, [ebp - 0x218]
push str._sSkin_s_s
push eax
call fcn.00404cc4
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x403ef7
cmp dword [esi + 0x14], 8
jb 0x403e63
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x403e6d
mov ecx, dword [edi]
jmp 0x403e6f
mov ecx, edi
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
push ecx
push eax
lea eax, [ebp - 0x218]
push 0x58f1b4
push eax
call fcn.00404cc4
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x403ef7
lea ecx, [ebp - 0x270]
call fcn.004039ba
mov eax, dword [ebp - 0x270]
cmp eax, dword [ebp - 0x26c]
jne 0x403e04
xor esi, esi
lea ecx, [ebp - 0x26c]
call fcn.00403932
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.004044a8
push 0
push 1
lea ecx, [ebp - 0x260]
call fcn.004044a8
mov eax, esi
call fcn.0042cff9
ret
cmp word [ebp - 0x218], 0
jne 0x403f05
xor eax, eax
jmp 0x403f12
lea eax, [ebp - 0x218]
push eax
call fcn.00564eaf
pop ecx
mov ecx, dword [ebp - 0x264]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0040475c
xor esi, esi
inc esi
jmp 0x403ec6
Function at 0x403f2a
Capabilities:
Read .ini file

Disassembly:
push 0x240
mov eax, 0x588ab0
call fcn.0042d04f
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x248]
xor edi, edi
push eax
mov dword [ebp - 0x24c], edi
call fcn.00403a51
mov dword [esp], str.theme.ini
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], edi
push eax
call fcn.0040356d
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.004044a8
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0055d8e0
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x58f268
push 0x58f278
push str.Theme
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403875
push edi
push 1
lea ecx, [ebp - 0x230]
call fcn.004044a8
mov eax, esi
call fcn.0042cff9
ret

Function at 0x405901
Capabilities:
Read .ini file

Disassembly:
push 0x258
mov eax, 0x588c58
call fcn.0042d04f
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x405929
xor al, al
jmp 0x405a89
call fcn.00405c1b
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0055d8e0
add esp, 0xc
lea eax, [ebp - 0x248]
mov ecx, edi
push dword [ebp - 0x264]
push eax
call fcn.00405e5d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
mov esi, 0x58ed00
push 0x104
push ecx
push esi
push eax
push 0x5922e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00568b1b
pop ecx
pop ecx
test eax, eax
jne 0x405a38
and dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x230]
push ecx
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x248]
mov ecx, edi
push eax
push 0x5922e8
call fcn.00405a91
test al, al
jne 0x405a02
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.004044a8
xor bl, bl
jmp 0x405a78
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00564e8d
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.004044a8
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00405d1c
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 2
cmp ebx, eax
je 0x405a67
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.004046a0
push 0
push 1
lea ecx, [ebp - 0x260]
mov bl, 1
call fcn.004044a8
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.004044a8
mov al, bl
call fcn.0042cff9
ret 8
Function at 0x405b97
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.00403feb
mov ecx, eax
call fcn.0043590a
push eax
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x58ed00
push str.UserID
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0xcc], 0
jne 0x405be7
xor eax, eax
jmp 0x405bf4
lea eax, [ebp - 0xcc]
push eax
call fcn.00564eaf
pop ecx
push eax
lea eax, [ebp - 0xcc]
mov ecx, esi
push eax
call fcn.0040475c
cmp dword [esi + 0x10], 0
mov ecx, dword [ebp - 4]
seta al
xor ecx, ebp
pop esi
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret 4

Function at 0x405c4a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00403feb
mov ecx, eax
call fcn.0043590a
push eax
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x58ed00
push str.UserID
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xcc]
push eax
call fcn.00564eaf
cmp eax, 1
pop ecx
mov ecx, dword [ebp - 4]
setg al
xor ecx, ebp
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret

Function at 0x406575
Capabilities:
Read .ini file

Disassembly:
call fcn.00406537
mov ecx, eax
jmp fcn.00408d91
Function at 0x409122
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x208
lea eax, [ebp - 0x414]
push esi
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x418], ebx
call fcn.0055d8e0
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0055d8e0
mov eax, dword [ebx + 0x24]
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x41c], ecx
cmp ecx, eax
je 0x409292
mov esi, ebx
push edi
mov ebx, dword [ecx + 0x14]
lea edi, [ebx + 0xc]
push edi
call fcn.00564eaf
pop ecx
test eax, eax
jle 0x409275
push edi
lea eax, [ebp - 0x414]
push str.Is_s
push eax
call fcn.00404cc4
mov esi, dword [ebp - 0x418]
add esp, 0xc
add esi, 0x78
cmp dword [esi + 0x14], 8
jb 0x4091ba
mov eax, dword [esi]
jmp 0x4091bc
mov eax, esi
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x5926bc
lea eax, [ebp - 0x414]
push eax
push str.HotKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push 0x5926bc
push eax
call fcn.00568b1b
pop ecx
pop ecx
test eax, eax
je 0x409209
lea eax, [ebp - 0x20c]
push eax
call fcn.00569dbe
pop ecx
mov ecx, dword [ebx + 4]
mov byte [ecx], al
push edi
lea eax, [ebp - 0x414]
push str.Use_s
push eax
call fcn.00404cc4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x409226
mov esi, dword [esi]
push esi
push 0x104
lea eax, [ebp - 0x20c]
mov esi, str.nothing
push eax
push esi
lea eax, [ebp - 0x414]
push eax
push str.HotKey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00568b1b
pop ecx
pop ecx
test eax, eax
je 0x40926f
lea eax, [ebp - 0x20c]
push eax
push dword [ebx + 8]
call fcn.00564e8d
pop ecx
pop ecx
mov esi, dword [ebp - 0x418]
lea ecx, [ebp - 0x41c]
call fcn.004039ba
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0x41c]
cmp ecx, dword [eax]
jne 0x40917d
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
Function at 0x40b44b
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b560
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 3
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b55e
push edi
push 0x34
pop edi
push esi
push ebx
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jae 0x40b4a8
mov dword [ebp + 8], esi
mov edi, eax
push edi
call fcn.0042d34f
mov esi, eax
pop ecx
test esi, esi
je 0x40b55d
push edi
push 0
push esi
call fcn.0055d8e0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
add esp, 0xc
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
je 0x40b556
push str.__GS__
push esi
call fcn.00560c60
pop ecx
pop ecx
test eax, eax
jne 0x40b506
lea eax, [esi + 0xa]
push str.__Dict__
push eax
call fcn.00560c60
pop ecx
pop ecx
cmp dword [esi + 0x18], 0
je 0x40b55d
push 0x24
call fcn.0042cae9
mov edx, eax
pop ecx
test edx, edx
je 0x40b533
push 9
xor eax, eax
mov edi, edx
pop ecx
rep stosd dword es:[edi], eax
and dword [edx + 0x1c], eax
mov dword [edx + 0x20], 7
mov word [edx + 0xc], ax
jmp 0x40b535
xor edx, edx
mov dword [ebp + 8], edx
test edx, edx
je 0x40b55d
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 8]
mov dword [edx], eax
movzx eax, byte [esi + 0x1c]
mov dword [edx + 8], eax
lea eax, [ebp + 8]
mov ecx, dword [ecx]
push eax
call fcn.0041ebf0
push esi
call fcn.0042cb2a
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b5ca
Capabilities:
Check if file exists
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x17a8
call fcn.0042d100
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
call fcn.0055d8e0
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0055d8e0
add esp, 0x18
push 0x5945b4
call fcn.00403feb
mov ecx, eax
call fcn.0042e207
push eax
lea eax, [ebp - 0x20c]
push 0x58f21c
push eax
call fcn.00404cc4
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
add esp, 0x10
push eax
call esi
test eax, eax
jne 0x40b657
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str..wncl
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_d_s
push eax
call fcn.00404cc4
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x40b75f
push eax
push 0x80
push 2
push eax
push 3
push 0x10000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40b75f
push 0x1388
lea eax, [ebp - 0x179c]
push 0
push eax
call fcn.0055d8e0
push 0
call fcn.0056ee06
add esp, 0x10
push eax
push 0
call fcn.0056ee06
pop ecx
push eax
push 0
push 0
push 1
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x179c]
push 0x4e20
push str.__Dict__
push str.__GS__
call fcn.0040c5ea
push edi
lea ecx, [ebp - 0x179c]
call fcn.0040c4d8
push ebx
lea ecx, [ebp - 0x179c]
call fcn.0040c4d8
mov edi, 0x58ed00
lea ecx, [ebp - 0x179c]
push edi
call fcn.0040c4d8
push edi
lea ecx, [ebp - 0x179c]
call fcn.0040c4d8
and dword [ebp - 0x17a0], 0
lea eax, [ebp - 0x17a0]
push 0
push eax
push dword [ebp - 0x176c]
lea eax, [ebp - 0x179c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret 0xc