joyce8/EMBER2024-capa huggingface dataset:
Function at 0xba2f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xbb79fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xba3002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00ba6dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xba3002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00b9e6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00ba720b
push 0x10
call fcn.00ba71d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xba2fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00b931c0
jmp 0xba2fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00ba2b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xba2ff0
mov ecx, edi
call fcn.00b932c0
push edi
call fcn.00ba71c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xba3021
inc ebx
cmp ebx, 0x20
jb 0xba2f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xba4250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xbb8808
push 0xba8288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xba4329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xba4329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00ba71d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xba4329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xba4329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xba432c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00ba4351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xba4d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xba4d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xba4d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xba4d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xba4d94
push eax
push esi
call fcn.00ba720b
add esp, 8
pop esi
ret 0x10

Function at 0xba4da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xba4e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xba4e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xbbd320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ba6dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xba4dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xba4e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xba4ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xba4eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xbbd320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ba6dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xba4eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xba4e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xba5000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xba5131
push esi
call fcn.00ba8145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00b97080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xba5131
push 0
push ebp
call fcn.00b973a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00b97260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xba508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00b972f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xba5121
push 0xbbd918
push edi
call fcn.00ba63f0
push eax
push ebx
push esi
call fcn.00ba4f60
push 0xbbd8f8
push edi
call fcn.00ba63f0
push eax
push ebx
push esi
call fcn.00ba4f60
push 0xbbd8d8
push edi
call fcn.00ba63f0
push eax
push ebx
push esi
call fcn.00ba4f60
push 0xbbd8c0
push edi
call fcn.00ba63f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ba4f60
push 0xbbd8a0
push edi
call fcn.00ba63f0
push eax
push ebx
push esi
call fcn.00ba4f60
push 0xbbd888
push edi
call fcn.00ba63f0
push eax
push ebx
push esi
call fcn.00ba4f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xba61b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ba6140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ba6140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ba6140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ba6140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xba6bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xba6c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xbb887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xba6c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xba6c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x407680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x407794
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
sub eax, 0xffffff80
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
lea esi, [ecx + 2]
sub ecx, eax
add ecx, 0xfffffffe
lea edx, [eax + 2]
mov dword [esp + 0x18], ecx
lea eax, [edi - 1]
mov dword [esp + 0x10], edx
shr eax, 3
inc eax
mov dword [esp + 0x14], eax
movzx eax, byte [edx - 2]
add ecx, edx
push ecx
mov byte [ecx], al
movzx eax, byte [edx - 1]
mov byte [esi - 1], al
movzx eax, byte [edx]
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
mov edi, dword [edx - 2]
mov ebx, dword [edx + 2]
mov edx, ecx
mov ecx, dword [esp + 0x20]
call fcn.00406d40
mov ecx, dword [ebp + 8]
lea esi, [esi + 8]
mov edx, dword [esp + 0x14]
add esp, 4
movzx eax, byte [ecx + 0x100]
mov ecx, dword [esp + 0x18]
xor byte [edx + ecx], al
add edx, 8
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], edx
movzx eax, byte [ecx + 0x101]
xor byte [esi - 9], al
movzx eax, byte [ecx + 0x102]
xor byte [esi - 8], al
movzx eax, byte [ecx + 0x103]
xor byte [esi - 7], al
movzx eax, byte [ecx + 0x104]
xor byte [esi - 6], al
movzx eax, byte [ecx + 0x105]
xor byte [esi - 5], al
movzx eax, byte [ecx + 0x106]
xor byte [esi - 4], al
movzx eax, byte [ecx + 0x107]
xor byte [esi - 3], al
sub dword [esp + 0x14], 1
mov dword [ecx + 0x100], edi
mov dword [ecx + 0x104], ebx
mov ecx, dword [esp + 0x18]
jne 0x4076c5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4111ee
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xb0
mov eax, 0x58c1b0
call fcn.0055fbd8
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xb8], eax
xor esi, esi
lea ecx, [ebp - 0x28]
push 0x60af24
mov dword [ebp - 4], esi
call fcn.00402f50
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.0041fee8
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov edi, esi
cmovae eax, dword [ebp + 8]
push eax
call fcn.00411448
pop ecx
test al, al
je 0x4112b6
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push esi
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4112b8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0xb8]
push eax
mov dword [ecx], eax
call fcn.0055f43d
mov edi, eax
pop ecx
test edi, edi
je 0x4112b8
mov eax, dword [ebp - 0xb8]
push dword [eax]
push esi
push edi
call fcn.00565ca0
add esp, 0xc
lea eax, [ebp - 0xbc]
push esi
push eax
mov eax, dword [ebp - 0xb8]
push dword [eax]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
lea ecx, [ebp - 0x28]
call fcn.00402e60
lea ecx, [ebp + 8]
call fcn.00402e60
mov eax, esi
call fcn.0055fb93
ret
Function at 0x4112d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xe4
mov eax, 0x58c1f8
call fcn.0055fbd8
mov esi, dword [ebp + 8]
mov dword [ebp - 0xe8], esi
mov edi, 0x60af24
lea ecx, [ebp - 0x28]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.00402f50
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.0041fee8
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call fcn.00411448
pop ecx
test al, al
je 0x411413
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41135a
push edi
mov ecx, esi
call fcn.00402f50
jmp 0x411430
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xec], eax
inc eax
push eax
mov dword [ebp - 0xe8], eax
call fcn.0055f43d
mov edi, eax
pop ecx
test edi, edi
jne 0x411384
push 0x60af24
jmp 0x41134e
push dword [ebp - 0xe8]
push 0
push edi
call fcn.00565ca0
add esp, 0xc
lea eax, [ebp - 0xf0]
push 0
push eax
push dword [ebp - 0xec]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xec]
lea ecx, [ebp - 0xe4]
push edi
call fcn.004208a2
push edi
call fcn.0055f3fa
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.004200f3
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.0040fe31
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00403080
cmp dword [ebp - 0x30], 0
jbe 0x411409
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402e30
lea ecx, [ebp - 0x40]
call fcn.00402e60
xor ebx, ebx
mov byte [ebp - 0xe8], bl
lea eax, [ebp - 0x28]
push dword [ebp - 0xe8]
mov ecx, esi
mov dword [esi + 0x10], ebx
push eax
mov dword [esi + 0x14], ebx
call fcn.00403340
lea ecx, [ebp - 0x28]
call fcn.00402e60
lea ecx, [ebp + 0xc]
call fcn.00402e60
mov eax, esi
call fcn.0055fb93
ret

Function at 0x41149a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push 0x80
push 2
push esi
inc edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4114c9
xor eax, eax
jmp 0x4114f7
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4114f3
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
je 0x4114f5
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4131b2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0055ffd0
mov eax, dword [0x616a64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2008], eax
call fcn.00412f9c
test eax, eax
je 0x4132e3
push esi
push edi
xor edi, edi
push edi
call fcn.00568ce4
mov dword [ebp - 0x2014], eax
lea eax, [ebp - 0x2014]
push eax
mov dword [ebp - 0x2010], edx
call fcn.0057390d
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push dword [ebp - 0x2008]
mov ecx, dword [esi + 0x10]
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
inc ecx
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push dword [esi + 0xc]
push ecx
push eax
lea eax, [ebp - 0x2004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.00412d59
push ebx
call fcn.00411448
xor ecx, ecx
inc ecx
test al, al
push 0x590a24
push ebx
cmovne edi, ecx
call fcn.00572286
mov esi, eax
add esp, 0x34
test esi, esi
je 0x4132e1
test edi, edi
jne 0x413284
push esi
push 2
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x200c], 0xfeff
push 1
push eax
call fcn.0057342c
add esp, 0x10
lea eax, [ebp - 0x2004]
push eax
call fcn.0057175e
push esi
add eax, eax
push eax
lea eax, [ebp - 0x2004]
push 1
push eax
call fcn.0057342c
push esi
push 2
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2008], 0xd
push 1
push eax
call fcn.0057342c
push esi
push 2
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2008], 0xa
push 1
push eax
call fcn.0057342c
push esi
call fcn.00572366
add esp, 0x38
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0055f3e9
leave
ret

Function at 0x4139db
Capabilities:
Read .ini file

Disassembly:
push 0x838
mov eax, 0x58c5cf
call fcn.0055fbd8
mov edi, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 0x8c]
cmp dword [eax + 0x14], 8
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x844], ecx
jb 0x413a06
mov eax, dword [eax]
push eax
push dword [ebp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, dword [ebp + 0x10]
jne 0x413ac3
push 0x60af24
lea ecx, [ebp - 0x828]
call fcn.00402f50
and dword [ebp - 4], 0
lea eax, [ebp - 0x810]
push 0x800
push 0
push eax
call fcn.00565ca0
push dword [ebp + 0x10]
lea eax, [ebp - 0x810]
push 0x60afe4
push eax
call fcn.00403f70
add esp, 0x18
lea eax, [ebp - 0x810]
cmp byte [edi + 5], 0
mov ecx, edi
push eax
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push ebx
push eax
je 0x413a7f
call fcn.0041390c
jmp 0x413a84
call fcn.004139b8
push eax
lea ecx, [ebp - 0x828]
call fcn.00402ec0
lea ecx, [ebp - 0x840]
call fcn.00402e60
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00568c11
pop ecx
lea ecx, [ebp - 0x828]
mov esi, eax
call fcn.00402e60
mov eax, esi
call fcn.0055fb93
ret 0xc
Function at 0x413acd
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x58c619
call fcn.0055fbd8
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
mov dword [ebp - 0x838], esi
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x834], ecx
call fcn.00565ca0
lea eax, [edi + 0x8c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x413b2a
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00402f50
and dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x413b70
mov eax, dword [esi]
push ebx
push eax
call fcn.005716fc
pop ecx
pop ecx
test eax, eax
jne 0x413bb8
cmp byte [edi + 5], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x413ba0
call fcn.0041390c
jmp 0x413ba5
call fcn.004139b8
push eax
mov ecx, esi
call fcn.00402ec0
lea ecx, [ebp - 0x828]
call fcn.00402e60
mov eax, esi
call fcn.0055fb93
ret 0x10
Function at 0x414c3d
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x58c6de
call fcn.0055fbd8
mov ebx, ecx
call fcn.0041389e
mov esi, eax
push esi
call fcn.0057175e
pop ecx
push eax
lea edi, [ebx + 0xd4]
push esi
mov ecx, edi
call fcn.004030d0
mov esi, str.BKPDFReader.ini
push esi
call fcn.0057175e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.004032d0
push str.BKpdf
push 0x590b98
push str.BKApp
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00413acd
lea esi, [ebx + 0xec]
push eax
mov ecx, esi
call fcn.00402ec0
lea ecx, [ebp - 0x230]
call fcn.00402e60
push str.BKpdf
mov ecx, esi
call fcn.00410221
test al, al
je 0x414d25
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00565ca0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x414ce4
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, str.BKpdf
push eax
push edi
push 0x590b98
push str.BKApp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call fcn.0057175e
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004030d0
jmp 0x414d2a
mov edi, str.BKpdf
push edi
mov ecx, esi
call fcn.00410221
test al, al
je 0x414dea
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00565ca0
and dword [ebp - 0x220], 0
lea eax, [ebx + 0x5c]
and dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x230]
add esp, 0xc
push eax
call fcn.00403210
and dword [ebp - 4], 0
push str.BKPDFReader.ini
call fcn.0057175e
pop ecx
push eax
push str.BKPDFReader.ini
lea ecx, [ebp - 0x230]
call fcn.004032d0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push 0x590b98
push str.BKApp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call fcn.0057175e
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.004030d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402e60
push edi
mov ecx, esi
call fcn.00410221
test al, al
je 0x414e22
push edi
push 0x590b98
push str.BKApp
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00413995
push eax
mov ecx, esi
call fcn.00402ec0
lea ecx, [ebp - 0x248]
call fcn.00402e60
call fcn.0055fb93
ret

Function at 0x415078
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0057175e
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055f43d
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.0057173c
mov eax, dword [ebp - 4]
xor ebx, ebx
add esp, 0x10
xor edi, edi
inc ebx
test eax, eax
js 0x4150f3
push 0x5c
pop ecx
cmp word [esi + edi*2], cx
jne 0x4150ea
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.00411448
pop ecx
test al, al
jne 0x4150e0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4150f1
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + edi*2], cx
inc edi
cmp edi, eax
jle 0x4150bc
jmp 0x4150f3
xor ebx, ebx
push esi
call fcn.0055f3fa
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret