joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b6a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x438
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x434], eax
push esi
push edi
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.00407ad0
lea ecx, [esp + 8]
push ecx
mov esi, eax
call fcn.00404020
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov eax, edi
call fcn.00407c50
push 0x410
lea edx, [esp + 0x26]
push 0
push edx
mov word [esp + 0x2c], 0
call fcn.004ae6c0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push 0
push 0
call esi
test eax, eax
jne 0x40b72f
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.004abc64
mov esp, ebp
pop ebp
ret
cmp eax, 0x208
jae 0x40b719
lea eax, [esp + 0x20]
push eax
push 0x209
call esi
test eax, eax
je 0x40b719
cmp eax, 0x208
jae 0x40b719
push edi
lea edx, [esp + 0x24]
mov word [esp + 0x434], 0
call fcn.00403f80
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.004abc64
mov esp, ebp
pop ebp
ret

Function at 0x40b780
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c3848
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.004017d0
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.0040a9b0
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x40b7f8
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b81b
cmp dword [esp + 0x20], esi
jb 0x40b817
mov eax, dword [esp + 0xc]
push eax
call fcn.004abbe4
add esp, 4
mov al, 1
jmp 0x40b830
cmp dword [esp + 0x20], esi
jb 0x40b82e
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004abbe4
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004abc64
add esp, 0x2c
ret
Function at 0x40b850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c3848
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.004017d0
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.0040a9b0
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x40b8c8
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b8ef
test al, 0x10
jne 0x40b8ef
cmp dword [esp + 0x20], esi
jb 0x40b8eb
mov eax, dword [esp + 0xc]
push eax
call fcn.004abbe4
add esp, 4
mov al, 1
jmp 0x40b904
cmp dword [esp + 0x20], esi
jb 0x40b902
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004abbe4
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004abc64
add esp, 0x2c
ret

Function at 0x40b920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4c3848
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.004017d0
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.0040a9b0
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x40b998
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b9bf
test al, 0x10
je 0x40b9bf
cmp dword [esp + 0x20], esi
jb 0x40b9bb
mov eax, dword [esp + 0xc]
push eax
call fcn.004abbe4
add esp, 4
mov al, 1
jmp 0x40b9d4
cmp dword [esp + 0x20], esi
jb 0x40b9d2
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004abbe4
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004abc64
add esp, 0x2c
ret

Function at 0x40bad0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40bade
mov eax, dword [esi]
jmp 0x40bae0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
cmp dword [edi + 0x18], 8
jb 0x40baf4
mov ecx, dword [esi]
jmp 0x40baf6
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x40bb06
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
pop esi
ret
Function at 0x40c010
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4c4818
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x48]
mov eax, dword [ebx + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x40c139
lea ebp, [ebx + 4]
lea ebx, [ebx]
cmp edi, dword [ebx + 0x14]
jbe 0x40c06a
call fcn.004ac22f
mov esi, 8
cmp dword [ebx + 0x18], esi
jb 0x40c079
mov eax, dword [ebp]
jmp 0x40c07b
mov eax, ebp
cmp word [eax + edi*2], 0x2f
je 0x40c0a3
cmp edi, dword [ebx + 0x14]
jbe 0x40c08c
call fcn.004ac22f
cmp dword [ebx + 0x18], esi
jb 0x40c096
mov eax, dword [ebp]
jmp 0x40c098
mov eax, ebp
cmp word [eax + edi*2], 0x5c
jne 0x40c12c
push edi
xor ecx, ecx
lea esi, [esp + 0x1c]
mov edx, ebx
call fcn.00407b30
xor esi, esi
mov dword [esp + 0x40], esi
cmp dword [esp + 0x2c], esi
je 0x40c0ff
lea ecx, [esp + 0x18]
push ecx
call fcn.0040b780
add esp, 4
test al, al
jne 0x40c0ff
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x40c0dd
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40c0ff
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x40c11b
mov edx, dword [esp + 0x1c]
push edx
jmp 0x40c113
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x40c11b
mov eax, dword [esp + 0x1c]
push eax
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x40c060
push ebx
call fcn.0040b780
add esp, 4
test al, al
jne 0x40c165
cmp dword [ebx + 0x18], 8
jb 0x40c151
mov eax, dword [ebx + 4]
jmp 0x40c154
lea eax, [ebx + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40c165
xor al, al
jmp 0x40c16e
push ebx
call fcn.0040b920
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004abc64
add esp, 0x30
ret
Function at 0x40c3f0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4c2bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push 1
lea eax, [esp + 0x14]
mov edi, ecx
push eax
xor ebp, ebp
xor eax, eax
mov edx, edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0x25
call fcn.00407f20
cmp eax, 0xffffffff
push 0xffffffffffffffff
push ebp
push edi
jne 0x40c464
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov eax, esi
mov word [esi + 4], bp
call fcn.004017d0
jmp 0x40c538
mov ebx, 7
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], bp
call fcn.004017d0
mov dword [esp + 0x40], ebp
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [esp + 0x10], eax
jb 0x40c492
mov eax, dword [eax]
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x40c4ac
push 0xffffffffffffffff
push ebp
mov dword [esi + 0x18], ebx
push edi
jmp 0x40c516
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ab8e2
add esp, 4
cmp dword [edi + 0x18], 8
mov ebx, eax
mov eax, dword [esp + 0x10]
jb 0x40c4d6
mov eax, dword [eax]
mov edi, dword [esp + 0x14]
lea ecx, [edi + 1]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
jbe 0x40c4fe
cmp eax, edi
ja 0x40c4fe
lea edx, [esp + 0x18]
push edx
mov edx, ebx
mov word [ebx + eax*2], bp
call fcn.00403f80
push ebx
call fcn.004ab965
add esp, 4
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x20]
mov dword [esi + 0x18], 7
push eax
mov dword [esi + 0x14], ebp
mov eax, esi
mov word [esi + 4], bp
call fcn.004017d0
cmp dword [esp + 0x30], 8
jb 0x40c538
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004abbe4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004abc64
add esp, 0x34
ret

Function at 0x40c560
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
push 0x38
xor edi, edi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004ae6c0
add esp, 0xc
mov dword [esp + 4], 0x3c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp esi, edi
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
jne 0x40c5b6
mov dword [esp + 0x3c], edi
mov dword [esp + 8], edi
jmp 0x40c5c0
mov dword [esi], edi
mov dword [esp + 8], 0x40
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40c5eb
cmp esi, edi
je 0x40c5d9
mov edx, dword [esp + 0x3c]
mov dword [esi], edx
mov eax, 0x20
cmp eax, dword [esp + 0x24]
pop edi
sbb eax, eax
neg eax
add esp, 0x3c
ret
xor al, al
pop edi
add esp, 0x3c
ret
Function at 0x40c600
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, 1
mov dword [esp + 4], eax
jne 0x40c67e
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40c66f
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp eax, 1
sete dl
pop ebx
xor ecx, esp
mov al, dl
call fcn.004abc64
add esp, 0x14
ret

Function at 0x40c7a0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x40c7ac
xor al, al
pop ecx
ret
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c7cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c7cf
xor al, al
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.004b9270
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret
Function at 0x40d0f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp eax, 0xffffffff
mov dword [esp + 0xc], esi
je 0x40d19c
push esi
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d19c
mov ecx, dword [esp + 0x10]
cmp ecx, esi
seta al
test al, al
je 0x40d19c
cmp ecx, 4
jne 0x40d19c
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xa00000
ja 0x40d192
cmp edi, esi
je 0x40d188
mov esi, ebp
call fcn.00401c50
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
push ecx
lea esi, [esp + 0x18]
mov ecx, ebx
call fcn.0040c710
test al, al
je 0x40d192
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jne 0x40d192
mov ecx, dword [ebp + 4]
cmp eax, ecx
ja 0x40d17f
mov ecx, eax
mov edx, dword [esp + 0x20]
mov dword [ebp + 0xc], ecx
mov dword [edx], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret

Function at 0x40d2b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c2b28
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push 0xffffffffffffffff
push esi
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], esi
mov word [esp + 0x34], si
call fcn.004017d0
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x54], esi
call fcn.00407020
mov ecx, dword [edi + 0x10]
add esp, 4
lea edx, [esp + 0x24]
lea esi, [edi + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
call fcn.00414b50
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x40d33f
cmp eax, esi
je 0x40d344
call fcn.004ac22f
mov ecx, dword [esp + 0x10]
cmp dword [ebx + 4], ecx
jne 0x40d37b
mov ebx, dword [edi + 4]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
mov esi, edi
call fcn.00414b50
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x40d36d
cmp eax, edi
je 0x40d372
call fcn.004ac22f
cmp dword [esi + 4], ebx
jne 0x40d37b
xor bl, bl
jmp 0x40d37d
mov bl, 1
cmp dword [esp + 0x3c], 8
jb 0x40d391
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004abbe4
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004abc64
mov esp, ebp
pop ebp
ret 4
Function at 0x411f20
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c2088
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x54], 0
cmp dword [eax + 0x18], 8
jb 0x411f5c
mov eax, dword [eax + 4]
jmp 0x411f5f
add eax, 4
push 0
push 0x80
push 2
push 0
push 1
push 0x120116
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x41210d
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x14]
push eax
push 4
push str.GMUT
push esi
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x412106
cmp dword [esp + 0x10], 4
jne 0x412106
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x6c]
push edx
push esi
mov byte [esp + 0x74], 2
call edi
test eax, eax
je 0x412106
cmp dword [esp + 0x10], 1
jne 0x412106
mov edi, dword [esp + 0x5c]
lea ecx, [esp + 0xc]
lea eax, [edi + 0x1a0]
push ecx
call fcn.00416750
add esp, 4
test al, al
jne 0x412011
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0xc]
call fcn.0040c6a0
jmp 0x41210d
lea edx, [esp + 0xc]
lea eax, [edi + 0x190]
push edx
call fcn.00416750
add esp, 4
test al, al
je 0x411ffd
lea esi, [esp + 0x14]
call fcn.0040c9d0
mov ecx, esi
lea eax, [edi + 0x1b0]
push ecx
mov byte [esp + 0x58], 1
call fcn.004167e0
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
call fcn.00416750
add esp, 4
test al, al
jne 0x412076
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x14]
call fcn.0040ca40
lea esi, [esp + 0xc]
call fcn.0040c6a0
jmp 0x41210d
lea ecx, [esp + 0xc]
lea eax, [edi + 0x1c0]
push ecx
call fcn.00416750
add esp, 4
test al, al
je 0x412059
lea esi, [esp + 0x30]
call fcn.0040c9d0
add edi, 0x1e4
push edi
mov edx, esi
push edx
mov byte [esp + 0x5c], 2
call fcn.00416860
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x44]
call fcn.00416750
add esp, 4
test al, al
jne 0x4120cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040ca40
jmp 0x41205f
lea esi, [esp + 0xc]
call fcn.0040c780
lea esi, [esp + 0x30]
call fcn.0040ca40
lea esi, [esp + 0x14]
call fcn.0040ca40
lea esi, [esp + 0xc]
call fcn.0040c6a0
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x4c
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x4c
ret 8
Function at 0x412680
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c53bc
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
push 0x10
mov edi, ecx
xor ebx, ebx
push 0x4cfa90
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00401700
mov eax, esi
push eax
add edi, 0x174
push edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x2a0], ebx
call fcn.0040aaf0
add esp, 8
cmp dword [esp + 0x2c], 8
jb 0x41271a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004abbe4
add esp, 4
mov eax, 7
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
mov byte [esp + 0x298], 4
cmp dword [str.gmexe], ebx
mov edi, 0x4ec378
je 0x412818
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x412764
lea eax, [esp + 0x6c]
push eax
mov eax, dword [edi]
push 0x400
lea edx, [esp + 0x8c]
push edx
push 0x4cb7f8
push eax
push str.gmmeta
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x84]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x412790
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x88]
push ecx
lea esi, [esp + 0x38]
call fcn.00401700
cmp dword [esp + 0x44], ebx
je 0x4127f9
mov edx, dword [edi]
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4127c0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x54]
call fcn.00401700
mov ecx, dword [esp + 0x10]
mov edx, esi
push edx
add ecx, 0x1e4
call fcn.00408890
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x38]
push ecx
call fcn.004017d0
add edi, 4
cmp dword [edi], ebx
jne 0x412752
cmp dword [esp + 0x48], 8
jb 0x412818
mov edx, dword [esp + 0x34]
push edx
call fcn.004abbe4
add esp, 4
mov edi, 8
cmp dword [esp + 0x64], edi
mov esi, 7
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
jb 0x412842
mov eax, dword [esp + 0x50]
push eax
call fcn.004abbe4
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
jb 0x412865
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004abbe4
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004abc64
mov esp, ebp
pop ebp
ret
Function at 0x416750
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
cmp eax, 0xffffffff
push edi
mov dword [esp + 0xc], 0
je 0x4167d3
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push eax
call edi
test eax, eax
je 0x4167d3
cmp dword [esp + 0xc], 4
jne 0x4167d3
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x4167a5
pop edi
pop esi
mov al, 1
pop ebx
add esp, 8
ret
mov eax, dword [esi + 8]
test eax, eax
mov esi, edx
je 0x4167d3
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
je 0x4167d3
push 0
lea ebx, [esp + 0x10]
push ebx
push edx
push eax
push ecx
call edi
test eax, eax
je 0x4167d3
mov eax, dword [esp + 0xc]
cmp esi, eax
jne 0x4167d3
cmp eax, dword [esp + 0x10]
je 0x41679c
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret

Function at 0x4186b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c2a4e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], esi
mov ecx, esi
mov dword [esp + 0x18], 1
call fcn.004ab96a
lea eax, [esi + 0x10]
mov dword [esi], vtable.GameMgr::GMRegException.0
xor ebx, ebx
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], ebx
mov word [eax + 4], bx
lea edi, [esi + 0x2c]
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x24]
mov byte [esp + 0x18], 4
push 0xffffffffffffffff
mov dword [esi + 0x50], ecx
push ebx
lea ecx, [esp + 0x30]
push ecx
mov byte [esi + 0x4c], dl
call fcn.004017d0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x4c]
push edx
mov eax, edi
call fcn.004017d0
mov eax, dword [esp + 0x60]
mov edi, 8
cmp dword [esp + 0x40], edi
mov dword [esi + 0x48], eax
mov byte [esi + 0xc], bl
jb 0x418761
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004abbe4
add esp, 4
cmp dword [esp + 0x5c], edi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
jb 0x418785
mov edx, dword [esp + 0x48]
push edx
call fcn.004abbe4
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x10
ret 0x44
Function at 0x4187d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c4370
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
push ebx
sub esp, 0x1c
mov dword [esp + 0x40], ebx
mov esi, esp
mov dword [esp + 0x30], esp
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x4cb7f8
mov word [esi + 4], bx
call fcn.00401700
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x50], esp
mov byte [esp + 0x5c], 1
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x4cb7f8
mov word [esi + 4], bx
call fcn.00401700
push ebx
push ebx
lea esi, [edi + 0x14]
mov byte [esp + 0x64], bl
call fcn.004186b0
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x68], eax
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