joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fa630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d11d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004d1250
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004d1250
lea ecx, [esi + 0xc]
call fcn.004e7a15
lea ecx, [esi + 0x10]
call fcn.004e7a15
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004d3a90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004d3a90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004d3a90
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004e7a8a
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004e7a8a
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4d22c8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fa858
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4d22d8
call fcn.004d27f0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x4d23bb
cmp byte [edi], 0
je 0x4d23bb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x4d22fd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.004d0ff0
test eax, eax
jne 0x4d231d
push 0x70e098
lea ecx, [esi + 0x38]
call fcn.004e7bc7
jmp 0x4d23bb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.004d1040
test eax, eax
jne 0x4d234c
mov ecx, esi
call fcn.004d1140
push edi
add esi, 0x38
push 0x70e074
push esi
call fcn.004e4b5e
add esp, 0xc
jmp 0x4d23bb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004d3080
test eax, eax
je 0x4d23b4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004d2490
test eax, eax
jne 0x4d23d0
push edi
lea eax, [esi + 0x38]
push 0x70e050
push eax
call fcn.004e4b5e
add esp, 0xc
mov ecx, esi
call fcn.004d27f0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4d2478
mov ecx, dword [0x70e350]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004e4b5e
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.004d10f0
test eax, eax
jne 0x4d243a
push 0x70e034
lea ecx, [esi + 0x38]
call fcn.004e7bc7
jmp 0x4d244a
push 0xfa
mov ecx, esi
call fcn.004d3080
test eax, eax
jne 0x4d2467
mov ecx, esi
call fcn.004d27f0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004e7a8a
jmp 0x4d23bb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004e7a8a
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4d7d2e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4d7d4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004d70aa
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4d7d71
test byte [esp + 8], 2
je 0x4d7d71
call fcn.004d711d
mov dword [eax], 0xd
call fcn.004d7126
mov dword [eax], 5
jmp 0x4d7d4a
xor eax, eax
ret

Function at 0x4e9e6a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e9ea2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e7ee5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e7ebd
jmp 0x4e9eae
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4eb668
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4eb6aa
call fcn.004f2114
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4eb6aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4eb6a1
xor eax, eax
jmp 0x4eb6b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004eb6b8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f2644
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f2672
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f2690
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f25aa
jmp 0x4f2690
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f2690
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f25aa
test edi, edi
mov eax, edi
jne 0x4f267a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401a4e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404018]
jne 0x401a58
repz ret
jmp fcn.00401ec7
Function at 0x4034b8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x4034ec
mov edx, dword [eax + 8]
test edx, edx
jne 0x4034db
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x4034e8
add edx, esi
cmp ebx, edx
jb 0x4034f9
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x4034d1
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x403534
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x40354e
xor eax, eax
jmp 0x4036ce
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x403562
xor eax, eax
jmp 0x4036ce
cmp word [ebx + 0x14], 0xe0
jne 0x403572
cmp word [ebx + 0x18], 0x10b
je 0x403579
xor eax, eax
jmp 0x4036ce
mov dword [0x453498], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004034b8
add esp, 8
test eax, eax
jne 0x4035a4
xor eax, eax
jmp 0x4036ce
mov edx, dword [0x453498]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403500
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x4035d6
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call fcn.0040eea6
xor eax, eax
jmp 0x4036ce
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x4036a0
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x403692
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x40368d
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x403684
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403679
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403679
test cl, cl
je 0x40366e
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403679
add eax, 2
add edx, 2
test cl, cl
jne 0x403652
jne 0x403679
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x4036ce
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403638
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403610
jmp 0x4036cc
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x4036c4
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x4036c0
cmp dword [eax], 0
je 0x4036c0
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x4036ce
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4036a7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40389c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x4038b5
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403b90
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401aa4
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403c43
mov eax, 0x401734
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403c43
mov eax, 0x403dfc
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403c43
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403c43
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403c0b
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403c60
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401aa4
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d16
mov eax, 0x401734
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d16
mov eax, fcn.00403c60
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403d16
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x403d16
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403cde
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
cmp ecx, edx
jbe 0x403f58
xor byte [eax], 0xf5
inc edx
inc eax
cmp ecx, edx
ja 0x403f4f
pop ebp
ret
Function at 0x40d448
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40d4b7
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x40d47f
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40d487
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40d4b7
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x40d47f
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46b8e7
Capabilities:
Encode data using xor

Disassembly:
call [eax - 0x2117f75]
add al, 0
mov byte [esp], 0xa7
mov edx, dword [edx + 0x5cf46]
mov byte [esp], 0x1f
push dword [esp]
lea edx, [edx + 0x6c665645]
pushal
call fcn.00460cbd
not dl
call fcn.0045b637
arpl word [ebx], ax
loope 0x46b893
xchg ebp, eax
push ecx
in eax, dx
iretd

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x40c130
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x410
lea eax, [esp]
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x1c
push eax
mov ebx, ecx
push 0
call esi
lea ecx, [esp + 8]
push str.Game_Mill_Files
push ecx
call fcn.0045520f
add esp, 8
lea edx, [esp + 8]
lea eax, [esp + 0x210]
push edx
push str._s_slot1.hm2
push eax
call fcn.00425d70
lea ecx, [esp + 0x21c]
push 0
push ecx
call fcn.00425fc0
add esp, 0x14
test eax, eax
jne 0x40c1b6
lea edx, [esp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40c1b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40c1b6
push 0
lea eax, [esp + 0xc]
push 0x1c
push eax
push 0
call esi
movsx ecx, word [esp + 0x41c]
lea edx, [esp + 8]
push ecx
push edx
lea eax, [esp + 0x218]
push str._s_slot_d.hm2
push eax
call fcn.00425d70
lea ecx, [esp + 0x220]
push 0x46a3e8
push ecx
call fcn.0045558a
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x40c1fc
pop esi
pop ebx
add esp, 0x410
ret 4
push ebp
push edi
push esi
push 0x4e414d45
call fcn.00414560
push esi
push 0x20
push 0x474c18
call fcn.00414630
push esi
push 0x54414753
call fcn.00414560
mov edx, dword [ebx + 0xc]
push esi
push edx
call fcn.004145d0
mov eax, dword [ebx + 8]
add esp, 0x24
mov edi, dword [eax]
cmp edi, eax
je 0x40c25d
mov ebp, dword [edi + 8]
push esi
push 0x40
push ebp
call fcn.00414630
mov ax, word [ebp + 0x80]
push esi
push eax
call fcn.004145d0
mov edi, dword [edi]
mov eax, dword [ebx + 8]
add esp, 0x14
cmp edi, eax
jne 0x40c237
push esi
push 0x53544154
call fcn.00414560
mov ecx, dword [ebx + 0x18]
push esi
push ecx
call fcn.004145d0
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov edi, dword [eax]
cmp edi, eax
je 0x40c2a8
mov ebp, dword [edi + 8]
push esi
push 0x40
push ebp
call fcn.00414630
push esi
add ebp, 0x80
push 0x100
push ebp
call fcn.00414630
mov edi, dword [edi]
mov eax, dword [ebx + 0x14]
add esp, 0x18
cmp edi, eax
jne 0x40c27e
push esi
call fcn.00455488
add esp, 4
mov eax, 1
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x410
ret 4
Function at 0x40c3d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x69c
lea eax, [esp + 0x8c]
push ebp
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x1c
push eax
mov ebp, ecx
push 0
call edi
lea ecx, [esp + 0x98]
push str.Game_Mill_Files
push ecx
call fcn.0045520f
movsx esi, word [esp + 0x6b4]
add esp, 8
lea edx, [esp + 0x98]
lea eax, [esp + 0x2a0]
push esi
push edx
push str._s_slot_d.hm2
push eax
call fcn.00425d70
lea ecx, [esp + 0x2b0]
push 0
push ecx
call fcn.00425fc0
add esp, 0x18
test eax, eax
jne 0x40c46b
push eax
lea edx, [esp + 0x9c]
push 0x1c
push edx
push eax
call edi
lea eax, [esp + 0x98]
push esi
push eax
lea ecx, [esp + 0x2a8]
push str._s_slot_d.hm2
push ecx
call fcn.00425d70
add esp, 0x10
lea edx, [esp + 0x2a0]
push 0x46a380
push edx
call fcn.0045558a
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c492
pop edi
pop esi
pop ebp
add esp, 0x69c
ret 4
mov ecx, ebp
call fcn.0040c2d0
test byte [esi + 0xc], 0x10
jne 0x40c59d
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00414580
add esp, 8
test eax, eax
je 0x40c593
mov eax, dword [esp + 0x10]
cmp eax, 0x4e414d45
je 0x40c583
cmp eax, 0x53544154
je 0x40c52b
cmp eax, 0x54414753
jne 0x40c593
lea ecx, [esp + 0xe]
push esi
push ecx
call fcn.00414610
xor edi, edi
add esp, 8
cmp word [esp + 0xe], di
jle 0x40c593
push esi
lea edx, [esp + 0x1c]
push 0x40
push edx
call fcn.00414650
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00414610
mov ecx, dword [esp + 0x28]
add esp, 0x14
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.0040bd90
inc edi
cmp di, word [esp + 0xe]
jl 0x40c4f5
jmp 0x40c593
lea eax, [esp + 0xe]
push esi
push eax
call fcn.00414610
xor edi, edi
add esp, 8
cmp word [esp + 0xe], di
jle 0x40c593
push esi
lea ecx, [esp + 0x1c]
push 0x40
push ecx
call fcn.00414650
push esi
lea edx, [esp + 0x4b8]
push 0x100
push edx
call fcn.00414650
add esp, 0x18
lea eax, [esp + 0x4a8]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, ebp
call fcn.0040c000
inc edi
cmp di, word [esp + 0xe]
jl 0x40c542
jmp 0x40c593
push esi
push 0x20
push 0x474c18
call fcn.00414650
add esp, 0xc
test byte [esi + 0xc], 0x10
je 0x40c4a3
push esi
call fcn.00455488
mov ecx, dword [0x474e90]
add esp, 4
test ecx, ecx
je 0x40c5b5
call fcn.00421e70
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x69c
ret 4
Function at 0x40c5d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
lea eax, [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x1c
push eax
push 0
call edi
lea ecx, [esp + 0xc]
push str.Game_Mill_Files
push ecx
call fcn.0045520f
movsx esi, word [esp + 0x428]
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x214]
push esi
push edx
push str._s_slot_d.hm2
push eax
call fcn.00425d70
lea ecx, [esp + 0x224]
push 0
push ecx
call fcn.00425fc0
add esp, 0x18
test eax, eax
jne 0x40c659
push eax
lea edx, [esp + 0x10]
push 0x1c
push edx
push eax
call edi
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x21c]
push str._s_slot_d.hm2
push ecx
call fcn.00425d70
add esp, 0x10
lea edx, [esp + 0x214]
push 0x46a380
push edx
call fcn.0045558a
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c696
mov eax, dword [esp + 0x424]
push 0x474bc0
push eax
call fcn.00455239
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x414
ret 8
test byte [esi + 0xc], 0x10
jne 0x40c6bf
mov edi, 0x4e414d45
lea ecx, [esp + 8]
push esi
push ecx
call fcn.00414580
add esp, 8
test eax, eax
je 0x40c6b9
cmp dword [esp + 8], edi
je 0x40c6d8
test byte [esi + 0xc], 0x10
je 0x40c6a1
push esi
call fcn.00455488
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x414
ret 8
mov edx, dword [esp + 0x424]
push esi
push 0x20
push edx
call fcn.00414650
push esi
call fcn.00455488
add esp, 0x10
mov eax, 1
pop edi
pop esi
add esp, 0x414
ret 8

Function at 0x40ce10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov eax, ecx
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x3f800000
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], 0x3f800000
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1c], 0x3f800000
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0x3f800000
mov ebx, dword [esp + 0x20]
add eax, 0x64
mov ecx, 0x10
mov ebp, dword [eax]
add eax, 4
add ebp, 0x74
dec ecx
mov dword [ebp], edi
mov dword [ebp + 4], esi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
jne 0x40ce55
mov ebx, dword [esp + 0x10]
xor edi, edi
lea esi, [ebx + 0xb0]
cmp word [esi], 0xffff
je 0x40cecf
push edi
mov ecx, ebx
call fcn.0040cd90
test eax, eax
je 0x40cecf
movsx eax, word [esi]
mov dword [esp + 0x14], 0x3f266666
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + eax*4 + 0x64]
mov dword [esp + 0x18], 0x3f266666
mov eax, dword [esp + 0x18]
add ecx, 0x74
mov dword [esp + 0x1c], 0x3f266666
mov dword [esp + 0x20], 0x3f800000
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
inc edi
add esi, 2
cmp di, 0x10
jl 0x40ce78
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x415aa0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
push 0x474c58
push 0x100
push 0
push 2
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [0x474e74], eax
je 0x415aff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x415aff
push str.error2
push str.error1
call fcn.004158b0
mov eax, dword [0x474e74]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x474e74], 0
xor eax, eax
add esp, 0x20
ret
lea ecx, [esp]
mov dword [esp], 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x415b3b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x415b3b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x415b3b
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x415b3b
mov eax, 1
add esp, 0x20
ret
push str.error5
push str.error1
call fcn.004158b0
add esp, 8
xor eax, eax
add esp, 0x20
ret

Function at 0x418200
Capabilities:
Set registry value

Disassembly:
sub esp, 0x204
lea eax, [esp + 4]
push 0x474c58
push str.SoftwareGame_Mill_sSettings
push eax
call fcn.00425d70
add esp, 0xc
lea ecx, [esp]
lea edx, [esp + 4]
push 0
push ecx
push 0
push 3
push 0
push 0
push 0
push edx
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4182b0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push 0x46c470
push 4
push eax
mov eax, dword [esp + 0x14]
push str.Music
push eax
call esi
mov ecx, dword [esp + 4]
push 4
push 0x46c474
push 4
push 0
push 0x46c4a0
push ecx
call esi
mov edx, dword [esp + 4]
push 4
push 0x46c478
push 4
push 0
push str.Fullscreen
push edx
call esi
mov eax, dword [esp + 4]
push 4
push 0x474e78
push 4
push 0
push str.Slot
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x204
ret