joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4098a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x520fb6
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp edx, ebx
je 0x409a41
mov eax, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409903
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00402110
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x294], ebx
call fcn.0040a7e0
push 0x228
lea ecx, [esp + 0x58]
push ebx
push ecx
mov dword [esp + 0x5c], ebx
call fcn.00437ec0
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40995e
cmp dword [esp + 0x2c], 8
jmp 0x409a32
lea eax, [esp + 0x4c]
push eax
push esi
mov dword [esp + 0x54], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov edi, 8
je 0x409a27
mov edi, edi
lea eax, [esp + 0x70]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
lea edx, [eax + 2]
jmp 0x4099a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4099a0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x38]
call fcn.00402110
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x294], 1
call fcn.0040a7e0
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [esp + 0x2c], edi
jae 0x4099e1
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x44]
push ecx
push eax
push edx
push ebx
lea ecx, [esp + 0x40]
call fcn.00404a10
test eax, eax
je 0x409a67
mov byte [esp + 0x290], bl
cmp dword [esp + 0x48], edi
jb 0x409a14
mov eax, dword [esp + 0x34]
push eax
call fcn.00418473
add esp, 4
lea ecx, [esp + 0x4c]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x409980
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2c], edi
jb 0x409a41
mov edx, dword [esp + 0x18]
push edx
call fcn.00418473
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004338df
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x30]
call fcn.00401e50
lea ecx, [esp + 0x14]
call fcn.00401e50
mov eax, esi
jmp 0x409a43
Function at 0x409f50
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x620
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push esi
xor esi, esi
push 0x206
lea eax, [esp + 0x422]
mov ebx, ecx
push esi
push eax
mov dword [esp + 0x14], ebx
mov word [esp + 0x428], si
call fcn.00437ec0
push 0x206
lea ecx, [esp + 0x226]
push esi
push ecx
mov word [esp + 0x22c], si
call fcn.00437ec0
lea edx, [esp + 0x434]
add esp, 0x18
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x409fb2
lea edx, [esp + 0x214]
mov eax, edi
sub edx, edi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x409fd0
lea edx, [esp + 0x41c]
push edx
call fcn.004342a7
lea eax, [esp + 0x218]
push eax
call fcn.004342a7
add esp, 8
lea edx, [esp + 0x214]
lea ecx, [esp + 0x41c]
lea ebx, [ebx]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40a036
cmp ax, si
je 0x40a032
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x40a036
add ecx, 4
add edx, 4
cmp ax, si
jne 0x40a010
xor eax, eax
jmp 0x40a03b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x40a0ff
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a0ff
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExW]
nop
push 0x206
lea ecx, [esp + 0x16]
push 0
push ecx
mov word [esp + 0x1c], 0
call fcn.00437ec0
add esp, 0xc
test esi, esi
lea edx, [esp + 0x10]
jne 0x40a093
push edi
push str._s.bak
call fcn.00401000
add esp, 8
jmp 0x40a0a2
push esi
push edi
push str._s.bak_d
call fcn.00401000
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a0b8
lea eax, [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push edi
call fcn.004345bb
add esp, 8
lea edx, [esp + 0x10]
push edx
call ebx
mov eax, dword [esp + 0xc]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
push 5
push 0
jne 0x40a0f7
lea ecx, [esp + 0x18]
push ecx
call ebp
cmp esi, 0xa
jge 0x40a0fe
add esi, 1
jmp 0x40a060
lea edx, [esp + 0x18]
push edx
call ebp
pop ebp
mov ecx, dword [esp + 0x624]
pop esi
pop ebx
xor ecx, esp
call fcn.004338df
add esp, 0x620
ret
Function at 0x40a8e0
Capabilities:
Access peb ldr_data
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x5213a3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push edi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0xa4], ebx
cmp dword [esp + 0xc4], 0x10
mov eax, dword [esp + 0xb0]
mov byte [esp + 0x94], bl
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
jae 0x40a96d
lea eax, [esp + 0xb0]
push eax
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0x30]
call fcn.0040d670
lea edi, [esp + 0x10]
lea eax, [esp + 0x2c]
call fcn.0040dfe0
push eax
push esi
mov byte [esp + 0xac], 1
call fcn.0040a5d0
add esp, 8
cmp dword [esp + 0x28], 0x10
jb 0x40a9b1
mov eax, dword [esp + 0x14]
push eax
call fcn.00418473
add esp, 4
cmp dword [esp + 0xc4], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x40a9db
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.00418473
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.004338df
add esp, 0x9c
ret

Function at 0x40aab0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_accept
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40abac
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
lea ecx, [esp + 0xc]
push ecx
push eax
push 0xf013f
push eax
push eax
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call esi
test eax, eax
je 0x40ab25
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
push 0
lea edx, [esp + 8]
push edx
push 0
push 0xf013f
push 0
push 0
push 0
push eax
push ecx
call esi
test eax, eax
je 0x40ab62
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 4]
push eax
call esi
pop esi
add esp, 0xc
ret
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ab67
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 4]
push ecx
push ebx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
pop esi
add esp, 0xc
ret
Function at 0x40b110
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 8]
push eax
xor esi, esi
push 0xf013f
push esi
push ecx
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x40b24a
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0xf013f
push esi
push str.SoftWare
push eax
call edi
test eax, eax
je 0x40b174
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
lea edx, [esp + 0x14]
push edx
push esi
push 0xf013f
push esi
push esi
push esi
push eax
push ecx
call edi
test eax, eax
je 0x40b1b3
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop edi
pop esi
add esp, 0x10
ret
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x18]
push ecx
push esi
push 0xf013f
push esi
push esi
push esi
push str.DownLoadFile
push edx
call edi
test eax, eax
je 0x40b1f3
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
pop edi
pop esi
add esp, 0x10
ret
mov eax, ebx
lea edx, [eax + 2]
jmp 0x40b200
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40b200
mov ecx, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40b250
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x520e3b
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push ebp
push edi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0x844]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x1c], edi
mov ebp, 7
mov eax, 0x5671b0
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b2b0
sub eax, edx
sar eax, 1
push eax
push 0x5671b0
lea ecx, [esp + 0x2c]
call fcn.00402110
lea eax, [esp + 0x18]
push eax
push 0x20119
push edi
mov dword [esp + 0x858], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call ebx
test eax, eax
je 0x40b338
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x2c]
push ecx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00401e80
cmp dword [esp + 0x3c], 8
jb 0x40b457
mov edx, dword [esp + 0x28]
push edx
call fcn.00418473
add esp, 4
jmp 0x40b457
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 0x20119
push edi
push str.SmartCloud
push ecx
call ebx
test eax, eax
je 0x40b394
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x2c]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.00401e80
cmp dword [esp + 0x3c], 8
jb 0x40b457
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00418473
add esp, 4
jmp 0x40b457
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x20119
push edi
push str.AppInfo
push eax
call ebx
test eax, eax
je 0x40b3c5
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
call ebx
jmp 0x40b35e
push 0x7fe
lea edx, [esp + 0x46]
push edi
push edx
mov word [esp + 0x4c], di
call fcn.00437ec0
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edi
push str.Spreader
push edx
mov dword [esp + 0x34], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov edx, dword [esp + 0x18]
push edx
call ebx
lea eax, [esp + 0x40]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b423
sub eax, edx
sar eax, 1
jne 0x40b442
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00401e20
jmp 0x40b44e
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.00401de0
lea ecx, [esp + 0x24]
call fcn.00401e50
mov eax, esi
mov ecx, dword [esp + 0x844]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.004338df
add esp, 0x840
ret
Function at 0x40c2b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x520dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
call fcn.00401e80
mov eax, str..temp
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
jmp 0x40c310
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c310
sub eax, edx
sar eax, 1
push eax
push str..temp
lea ecx, [esp + 0x14]
call fcn.00402010
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.00401e80
cmp dword [esp + 0x24], 8
jb 0x40c35b
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00418473
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x40e230
Capabilities:
Check if file exists
Write file on windows

Disassembly:
sub esp, 0xc14
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0xc10], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x21e]
push ebx
push eax
mov word [esp + 0x224], bx
call fcn.00437ec0
add esp, 0xc
xor eax, eax
jmp 0x40e270
movzx ecx, word [eax + str.C:log_]
mov word [esp + eax + 0x218], cx
add eax, 2
cmp cx, bx
jne 0x40e270
push 0x206
lea ecx, [esp + 0x62e]
push ebx
push ecx
mov word [esp + 0x634], bx
call fcn.00437ec0
push 0x206
lea edx, [esp + 0x22]
push ebx
push edx
mov word [esp + 0x28], bx
call fcn.00437ec0
add esp, 0x18
push 0x104
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.00433fa5
push 0x3e6
lea edx, [esp + 0x83e]
push ebx
mov word [eax], bx
push edx
mov word [esp + 0x844], bx
call fcn.00437ec0
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x438]
push str._sgswb.log
push ecx
call fcn.004338ee
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x20
lea edx, [esp + 0x420]
push edx
call esi
test eax, eax
je 0x40e46a
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e331
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 0x12]
lea edx, [esp + 0x628]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x40e350
push edi
lea eax, [esp + 0x62c]
push eax
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x42c]
push str._s_s.txt
push edx
call fcn.004338ee
mov ecx, dword [esp + 0xc34]
lea eax, [esp + 0xc38]
push eax
push ecx
lea edx, [esp + 0x84c]
push 0x1f3
push edx
call fcn.0043485b
add esp, 0x20
lea eax, [esp + 0x424]
push eax
mov word [esp + 0xc1e], bx
xor edi, edi
call esi
test eax, eax
je 0x40e3c4
mov edi, 1
lea ecx, [esp + 0x424]
push 0x5675d0
push ecx
call fcn.0043493c
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40e469
cmp edi, ebx
jne 0x40e401
push esi
push 2
lea edx, [esp + 0x18]
push 1
push edx
mov dword [esp + 0x20], 0xfeff
call fcn.00434aae
add esp, 0x10
lea eax, [esp + 0x834]
lea edx, [eax + 2]
jmp 0x40e410
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e410
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
lea ecx, [esp + 0x83c]
push 1
push ecx
call fcn.00434aae
push esi
push 2
lea edx, [esp + 0x24]
push 1
push edx
mov dword [esp + 0x2c], 0xd
call fcn.00434aae
push esi
push 2
lea eax, [esp + 0x34]
push 1
push eax
mov dword [esp + 0x3c], 0xa
call fcn.00434aae
push esi
call fcn.00434ba2
add esp, 0x34
pop edi
mov ecx, dword [esp + 0xc18]
pop esi
pop ebx
xor ecx, esp
call fcn.004338df
add esp, 0xc14
ret
Function at 0x40f220
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 8], eax
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
push esi
push edi
mov esi, ecx
mov edi, edx
jle 0x40f312
add ebp, 0xffffffff
shr ebp, 3
add ebp, 1
lea ebx, [ebx]
movzx eax, byte [esi]
mov byte [edi], al
movzx ecx, byte [esi + 1]
mov byte [edi + 1], cl
movzx edx, byte [esi + 2]
mov byte [edi + 2], dl
movzx eax, byte [esi + 3]
mov byte [edi + 3], al
movzx ecx, byte [esi + 4]
mov byte [edi + 4], cl
movzx edx, byte [esi + 5]
mov byte [edi + 5], dl
movzx eax, byte [esi + 6]
mov byte [edi + 6], al
movzx ecx, byte [esi + 7]
mov byte [edi + 7], cl
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov ecx, edi
lea eax, [ebx + 0x80]
mov dword [esp + 0xc], edx
call fcn.0040e8b0
movzx ecx, byte [ebx + 0x100]
xor byte [edi], cl
movzx edx, byte [ebx + 0x101]
xor byte [edi + 1], dl
movzx eax, byte [ebx + 0x102]
xor byte [edi + 2], al
movzx ecx, byte [ebx + 0x103]
xor byte [edi + 3], cl
movzx edx, byte [ebx + 0x104]
xor byte [edi + 4], dl
movzx eax, byte [ebx + 0x105]
xor byte [edi + 5], al
movzx ecx, byte [ebx + 0x106]
xor byte [edi + 6], cl
movzx edx, byte [ebx + 0x107]
xor byte [edi + 7], dl
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add esi, 8
add edi, 8
sub ebp, 1
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], ecx
jne 0x40f250
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004338df
add esp, 0xc
ret
Function at 0x4110e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x521a38
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x82c], eax
push ebx
push ebp
push edi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0x840]
mov dword fs:[0], eax
mov eax, dword [esp + 0x854]
mov ebp, dword [esp + 0x850]
xor ebx, ebx
mov edi, ecx
push 0x7fe
mov dword [esp + 0x84c], ebx
lea ecx, [esp + 0x42]
push ebx
mov dword [esp + 0x20], ebx
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
mov word [esp + 0x48], bx
call fcn.00437ec0
add esp, 0xc
cmp dword [ebp + 0x1c], 8
jb 0x411166
mov eax, dword [ebp + 8]
jmp 0x411169
lea eax, [ebp + 8]
push eax
mov eax, dword [esp + 0x14]
push 0x400
lea edx, [esp + 0x44]
push edx
push 0x566d2c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edi, [esi + 4]
lea eax, [esp + 0x3c]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [edi], bx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4111a0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.00402110
mov dword [esp + 0x848], ebx
cmp dword [esi + 0x18], 8
mov dword [esp + 0x18], 1
jb 0x4111d5
mov eax, dword [edi]
jmp 0x4111d7
mov eax, edi
mov ecx, 0x566d2c
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411206
cmp dx, bx
je 0x411202
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411206
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4111e0
xor eax, eax
jmp 0x41120b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x411287
cmp byte [ebp], bl
lea ecx, [esp + 0x20]
je 0x41124d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
push ecx
push ebp
call fcn.00411310
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x854], 1
call fcn.00401e80
cmp dword [esp + 0x38], 8
jb 0x411287
mov edx, dword [esp + 0x24]
push edx
jmp 0x41127f
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
mov eax, ebp
call fcn.004112c0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x854], 2
call fcn.00401e80
cmp dword [esp + 0x38], 8
jb 0x411287
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00418473
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x82c]
xor ecx, esp
call fcn.004338df
add esp, 0x83c
ret 8
Function at 0x411500
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5219b2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x574674]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x568398
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00412200
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.00412960
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x586a80]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x24], 2
call fcn.004123b0
test eax, eax
jne 0x4115f8
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x4115f1
or eax, 4
push ebx
push eax
call fcn.00413910
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8