joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402310
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43651b
mov eax, dword fs:[0]
push eax
sub esp, 0x1fc
mov eax, dword [0x446f30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1e0], 0
push 0x439c39
lea ecx, [ebp - 0x2c]
call fcn.004046e0
mov dword [ebp - 4], 1
mov dword [ebp - 0xc4], 0x94
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402526
cmp dword [ebp - 0xb4], 2
je 0x402458
push 0x439c40
lea ecx, [ebp - 0xe0]
call fcn.004046e0
mov byte [ebp - 4], 2
push 1
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x198], esp
lea edx, [ebp - 0xe0]
push edx
call fcn.00404720
mov dword [ebp - 0x1e4], eax
push 0x80000001
lea ecx, [ebp - 0x12c]
call fcn.004050b0
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 4], 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x19c], esp
push str.Desktop
call fcn.004046e0
mov dword [ebp - 0x1ec], eax
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00405400
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1f4]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403e20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1b8]
call fcn.00404760
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.00405380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.00404760
jmp 0x402526
push 0x439c90
lea ecx, [ebp - 0x148]
call fcn.004046e0
mov byte [ebp - 4], 5
push 1
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1bc], esp
lea eax, [ebp - 0x148]
push eax
call fcn.00404720
mov dword [ebp - 0x1f8], eax
push 0x80000002
lea ecx, [ebp - 0x194]
call fcn.004050b0
mov dword [ebp - 0x1fc], eax
mov byte [ebp - 4], 6
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c0], esp
push str.Common_Desktop
call fcn.004046e0
mov dword [ebp - 0x200], eax
lea ecx, [ebp - 0x1dc]
push ecx
lea ecx, [ebp - 0x194]
call fcn.00405400
mov dword [ebp - 0x204], eax
mov edx, dword [ebp - 0x204]
mov dword [ebp - 0x208], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x208]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403e20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1dc]
call fcn.00404760
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x194]
call fcn.00405380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x148]
call fcn.00404760
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404720
mov edx, dword [ebp - 0x1e0]
or edx, 1
mov dword [ebp - 0x1e0], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404760
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421364
mov esp, ebp
pop ebp
ret
Function at 0x402570
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4365ac
mov eax, dword fs:[0]
push eax
sub esp, 0x1fc
mov eax, dword [0x446f30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1e0], 0
push 0x439c3a
lea ecx, [ebp - 0x2c]
call fcn.004046e0
mov dword [ebp - 4], 1
mov dword [ebp - 0xc4], 0x94
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402786
cmp dword [ebp - 0xb4], 2
je 0x4026b8
push 0x439ce8
lea ecx, [ebp - 0xe0]
call fcn.004046e0
mov byte [ebp - 4], 2
push 1
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x198], esp
lea edx, [ebp - 0xe0]
push edx
call fcn.00404720
mov dword [ebp - 0x1e4], eax
push 0x80000001
lea ecx, [ebp - 0x12c]
call fcn.004050b0
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 4], 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x19c], esp
push str.Programs
call fcn.004046e0
mov dword [ebp - 0x1ec], eax
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00405400
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1f4]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403e20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1b8]
call fcn.00404760
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x12c]
call fcn.00405380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.00404760
jmp 0x402786
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x148]
call fcn.004046e0
mov byte [ebp - 4], 5
push 1
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1bc], esp
lea eax, [ebp - 0x148]
push eax
call fcn.00404720
mov dword [ebp - 0x1f8], eax
push 0x80000002
lea ecx, [ebp - 0x194]
call fcn.004050b0
mov dword [ebp - 0x1fc], eax
mov byte [ebp - 4], 6
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c0], esp
push str.Common_Programs
call fcn.004046e0
mov dword [ebp - 0x200], eax
lea ecx, [ebp - 0x1dc]
push ecx
lea ecx, [ebp - 0x194]
call fcn.00405400
mov dword [ebp - 0x204], eax
mov edx, dword [ebp - 0x204]
mov dword [ebp - 0x208], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x208]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403e20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1dc]
call fcn.00404760
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x194]
call fcn.00405380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x148]
call fcn.00404760
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404720
mov edx, dword [ebp - 0x1e0]
or edx, 1
mov dword [ebp - 0x1e0], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404760
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421364
mov esp, ebp
pop ebp
ret
Function at 0x403300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4369ce
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x446f30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x11], 0
mov ecx, dword [ebp + 0x10]
call fcn.00404780
push eax
mov ecx, dword [ebp + 8]
call fcn.00404780
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00421b6f
add esp, 0xc
test eax, eax
jne 0x403412
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00421a79
add esp, 4
push eax
call fcn.0042197a
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040c0b8
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00421900
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp - 0x18]
push edx
call fcn.004218dc
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jne 0x4033ee
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x40]
call fcn.00403de0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404760
mov byte [ebp - 0x11], 1
cmp dword [ebp - 0x18], 0
je 0x403406
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.0040c0c3
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004215c0
add esp, 4
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x403430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 5], 0
mov ecx, dword [ebp + 0x10]
call fcn.00404780
push eax
mov ecx, dword [ebp + 8]
call fcn.00404780
push eax
lea eax, [ebp - 4]
push eax
call fcn.00421b6f
add esp, 0xc
test eax, eax
jne 0x40349c
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403ec0
push eax
push 1
mov ecx, dword [ebp + 0xc]
call fcn.00404780
push eax
call fcn.00421d24
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
call fcn.00403ec0
cmp dword [ebp - 0xc], eax
jne 0x403490
mov byte [ebp - 5], 1
mov edx, dword [ebp - 4]
push edx
call fcn.004215c0
add esp, 4
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x4034b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436a01
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x446f30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
call fcn.004020d0
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x50]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00404520
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00404760
call fcn.00403570
cmp eax, 0x1f4
jge 0x403526
jmp 0x403539
push 4
push 0
lea ecx, [ebp - 0x2c]
call fcn.00404780
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421364
mov esp, ebp
pop ebp
ret

Function at 0x403570
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x446f30]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x9c
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.00421900
add esp, 0xc
mov dword [ebp - 0xa8], 0x9c
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4035dc
mov dword [ebp - 0xa8], 0x94
lea edx, [ebp - 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4035dc
or eax, 0xffffffff
jmp 0x4036ad
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 1
je 0x40365f
cmp dword [ebp - 0xac], 2
je 0x4035ff
jmp 0x4036aa
cmp dword [ebp - 0xa4], 5
jne 0x40361b
cmp dword [ebp - 0xa0], 2
jne 0x40361b
mov eax, 0x208
jmp 0x4036ad
cmp dword [ebp - 0xa4], 5
jne 0x403634
cmp dword [ebp - 0xa0], 1
jne 0x403634
mov eax, 0x1fe
jmp 0x4036ad
cmp dword [ebp - 0xa4], 5
jne 0x40364d
cmp dword [ebp - 0xa0], 0
jne 0x40364d
mov eax, 0x1f4
jmp 0x4036ad
cmp dword [ebp - 0xa4], 4
ja 0x40365d
mov eax, 0x1f3
jmp 0x4036ad
jmp 0x4036aa
cmp dword [ebp - 0xa4], 4
jne 0x403678
cmp dword [ebp - 0xa0], 0
jne 0x403678
mov eax, 0x190
jmp 0x4036ad
cmp dword [ebp - 0xa4], 4
jne 0x403691
cmp dword [ebp - 0xa0], 0xa
jne 0x403691
mov eax, 0x19a
jmp 0x4036ad
cmp dword [ebp - 0xa4], 4
jne 0x4036aa
cmp dword [ebp - 0xa0], 0x5a
jne 0x4036aa
mov eax, 0x1ea
jmp 0x4036ad
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00421364
mov esp, ebp
pop ebp
ret
Function at 0x4036c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
je 0x4036d2
cmp dword [ebp + 0xc], 0
jne 0x4036d9
xor eax, eax
jmp 0x40385a
mov dword [ebp - 0xc], 0x3f
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
jmp 0x403707
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jge 0x4037dc
mov edx, dword [ebp + 0x14]
sub edx, 2
cmp dword [ebp - 0x14], edx
jge 0x4037dc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
push ecx
call fcn.00403af0
add esp, 4
cmp eax, dword [ebp - 0xc]
jg 0x4037c7
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
push eax
call fcn.00403af0
add esp, 4
or eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x80000003
jns 0x40376e
dec edx
or edx, 0xfffffffc
inc edx
test edx, edx
jne 0x4037bc
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x14]
mov byte [ecx + 2], al
mov edx, dword [ebp - 0x10]
shr edx, 8
and edx, 0xff
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x14]
mov byte [eax + 1], dl
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x14]
mov byte [edx], cl
mov eax, dword [ebp - 0x14]
add eax, 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
shl ecx, 6
mov dword [ebp - 0x10], ecx
jmp 0x4037d7
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movsx eax, byte [edx]
cmp eax, 0x3d
jne 0x4037d7
jmp 0x4037dc
jmp 0x4036fe
mov ecx, dword [ebp - 4]
and ecx, 0x80000003
jns 0x4037ec
dec ecx
or ecx, 0xfffffffc
inc ecx
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 3
ja case.default.0x4037f8
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x403860]
mov eax, dword [ebp - 0x14]
jmp 0x40385a
xor eax, eax
jmp 0x40385a
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3d
jne 0x40382f
mov edx, dword [ebp - 0x10]
shr edx, 0xa
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x14]
mov byte [eax], dl
mov eax, dword [ebp - 0x14]
add eax, 1
jmp 0x40385a
xor eax, eax
jmp 0x40385a
mov ecx, dword [ebp - 0x10]
shr ecx, 8
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x14]
mov byte [edx + 1], cl
mov eax, dword [ebp - 0x10]
shr eax, 0x10
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov eax, dword [ebp - 0x14]
add eax, 2
jmp 0x40385a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403b70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404780
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403b92
cmp dword [ebp - 4], 0x10
jne 0x403b96
mov al, 1
jmp 0x403b98
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x403ba0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436a63
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x446f30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x17c], 0
push 0x104
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.00421900
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x180], ecx
cmp dword [ebp - 0x180], 0
je 0x403c08
cmp dword [ebp - 0x180], 1
je 0x403c11
jmp 0x403c18
mov dword [ebp - 0x10], 0x23
jmp 0x403c18
mov dword [ebp - 0x10], 5
push 1
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x13c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x403c6a
push 0
push 0x10
push str.Fail_to_init_app_data_
call fcn.0041a027
push 0x439c3b
mov ecx, dword [ebp + 8]
call fcn.004046e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x17c]
or ecx, 1
mov dword [ebp - 0x17c], ecx
mov eax, dword [ebp + 8]
jmp 0x403dc1
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x30]
call fcn.004046e0
mov dword [ebp - 4], 1
push str.CMBFirmbank_
lea ecx, [ebp - 0x30]
call fcn.00403e40
lea eax, [ebp - 0x30]
push eax
call fcn.00403b70
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x403d97
lea ecx, [ebp - 0x15c]
call fcn.004046b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x15c]
call fcn.00403ec0
push eax
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.00403f10
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0xffffffff
je 0x403d5d
mov edx, dword [ebp - 0x140]
add edx, 1
push edx
push 0
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403f50
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x188], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x188]
push edx
lea ecx, [ebp - 0x15c]
call fcn.00403e20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x178]
call fcn.00404760
lea eax, [ebp - 0x15c]
push eax
call fcn.00403b70
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x403d58
push 0
lea ecx, [ebp - 0x15c]
call fcn.00404780
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x403cb3
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x15c]
push eax
call fcn.004045b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x403d88
push 0
lea ecx, [ebp - 0x30]
call fcn.00404780
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15c]
call fcn.00404760
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404720
mov eax, dword [ebp - 0x17c]
or eax, 1
mov dword [ebp - 0x17c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00404760
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00421364
mov esp, ebp
pop ebp
ret
Function at 0x405400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436b76
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x446f30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax]
test ecx, ecx
je 0x40545e
push 0
push 0x439de8
mov ecx, dword [ebp - 0x4c]
add ecx, 0x2c
call fcn.00405dc0
cmp eax, 0xffffffff
jne 0x40554b
push 0x12c
call fcn.0040c0b8
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], 0x12c
push 0x12c
push 0
mov eax, dword [ebp - 0x30]
push eax
call fcn.00421900
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx + 1]
test edx, edx
jne 0x4054a2
mov eax, dword [ebp - 0x4c]
mov byte [eax + 2], 1
jmp 0x4054d4
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x4c]
add eax, 0x24
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.00404780
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4054d4
mov eax, dword [ebp - 0x4c]
mov byte [eax + 2], 1
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00405d10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00405d80
push eax
lea ecx, [ebp - 0x2c]
call fcn.004046e0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.0040c0c3
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404720
mov edx, dword [ebp - 0x48]
or edx, 1
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00404760
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00405ea0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00404760
mov eax, dword [ebp + 8]
jmp 0x405594
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x44], esp
lea eax, [ebp + 0xc]
push eax
call fcn.00404720
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00405b70
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x48]
or edx, 1
mov dword [ebp - 0x48], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00404760
mov eax, dword [ebp + 8]
jmp 0x405594
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421364
mov esp, ebp
pop ebp
ret 0x20
Function at 0x405b70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436c45
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x446f30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], 0
mov dword [ebp - 4], 1
push 0x12c
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.00421900
add esp, 0xc
mov ecx, 0x4482e8
call fcn.00404780
push eax
push 0x12c
lea ecx, [ebp - 0x144]
push ecx
push 0
lea ecx, [ebp + 0xc]
call fcn.00404780
push eax
mov ecx, dword [ebp - 0x150]
add ecx, 4
call fcn.00404780
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x148], eax
lea edx, [ebp - 0x144]
push edx
call fcn.004235a0
add esp, 4
xor ecx, ecx
cmp ecx, eax
sbb edx, edx
neg edx
mov eax, dword [ebp - 0x150]
mov byte [eax + 1], dl
lea ecx, [ebp - 0x144]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004046e0
mov edx, dword [ebp - 0x14c]
or edx, 1
mov dword [ebp - 0x14c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00404760
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421364
mov esp, ebp
pop ebp
ret 0x20
Function at 0x406560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436d65
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x446f30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20c], ecx
lea ecx, [ebp - 0x30]
call fcn.004046b0
mov dword [ebp - 4], 0
push 0x439f54
push 0
lea eax, [ebp - 0x174]
push eax
call fcn.00403ba0
add esp, 8
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x214], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x158]
push eax
call fcn.00405df0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x174]
call fcn.00404760
push 0x439f68
lea ecx, [ebp - 0x190]
call fcn.004046e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x190]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x158]
push eax
call fcn.00403300
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x190]
call fcn.00404760
lea ecx, [ebp - 0x30]
call fcn.00403ec0
push eax
call fcn.0040c0b8
add esp, 4
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x30]
call fcn.00403ec0
push eax
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00421900
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00403ec0
push eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403ec0
push eax
lea ecx, [ebp - 0x30]
call fcn.00404780
push eax
call fcn.004036c0
add esp, 0x10
push 0x104
push 0
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00421900
add esp, 0xc
lea edx, [ebp - 0x13c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.__Config.ini
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.004046e0
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x21c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x21c]
push edx
lea eax, [ebp - 0x1cc]
push eax
call fcn.00405df0
add esp, 0xc
mov dword [ebp - 0x220], eax
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x224], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x224]
push edx
mov ecx, 0x4482e8
call fcn.00403e20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1cc]
call fcn.00404760
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1b0]
call fcn.00404760
push 0x439f7c
lea ecx, [ebp - 0x1e8]
call fcn.004046e0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x204]
call fcn.004046e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1e8]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0x4482e8
call fcn.00403430
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x204]
call fcn.00404760
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1e8]
call fcn.00404760
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
push ecx
call fcn.0040c0c3
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x158]
call fcn.00404760
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00404760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00421364
mov esp, ebp
pop ebp
ret