joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468430
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4a07ab
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0047e760
push 4
mov dword [esp + 0x14], 0
call fcn.0047ffcf
add esp, 4
test eax, eax
je 0x468482
mov ecx, eax
call fcn.004180e0
jmp 0x468484
xor eax, eax
mov dword [esi + 0x38], eax
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
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], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 4

Function at 0x469310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a19c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x14]
call fcn.0047eeda
mov dword [esp + 0x28], 0
mov edi, dword [0x4ca35c]
mov ecx, 0x4ca770
mov dword [esp + 0xc], edi
call fcn.00417ea0
mov ecx, dword [esp + 0x30]
push eax
call fcn.004181d0
mov esi, eax
test esi, esi
jne 0x4693b7
test edi, edi
je 0x469374
mov esi, edi
jmp 0x4693b7
lea edi, [esp + 0xc]
call fcn.004694b0
cmp eax, 0xffffffff
jne 0x46939f
push 0x4b75cc
lea ecx, [esp + 0x18]
call fcn.0048025e
push 0x4bdc44
lea eax, [esp + 0x18]
push eax
call fcn.00485fa6
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x4ca35c], esi
call fcn.00417f40
mov ecx, esi
call fcn.00418060
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0047eefb
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x469a00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a19c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x14]
call fcn.0047eeda
mov dword [esp + 0x28], 0
mov edi, dword [0x4ca358]
mov ecx, 0x4c8ef4
mov dword [esp + 0xc], edi
call fcn.00417ea0
mov ecx, dword [esp + 0x30]
push eax
call fcn.004181d0
mov esi, eax
test esi, esi
jne 0x469aa7
test edi, edi
je 0x469a64
mov esi, edi
jmp 0x469aa7
lea edi, [esp + 0xc]
call fcn.00469ad0
cmp eax, 0xffffffff
jne 0x469a8f
push 0x4b75cc
lea ecx, [esp + 0x18]
call fcn.0048025e
push 0x4bdc44
lea eax, [esp + 0x18]
push eax
call fcn.00485fa6
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x4ca358], esi
call fcn.00417f40
mov ecx, esi
call fcn.00418060
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0047eefb
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret

Function at 0x46a490
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
push 0x4a18e2
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x428]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x430], edi
push 0x4b9064
mov ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edi
call fcn.0040fd50
push edi
push edi
push 3
push edi
push 3
push edi
mov dword [esp + 0x448], edi
push 0x4b9068
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46a58c
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x400
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.004806d0
add esp, 0xc
push edi
lea ecx, [esp + 0x14]
push ecx
push 0x400
lea edx, [esp + 0x30]
push edx
push 0xc
lea eax, [esp + 0x2c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46a585
mov edi, dword [esp + 0x34]
movsx ecx, byte [esp + edi + 0x24]
lea edi, [esp + edi + 0x24]
push ecx
call fcn.00483df4
add esp, 4
test eax, eax
je 0x46a585
push edi
mov ecx, ebx
call fcn.0040fe40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0047f404
add esp, 0x428
ret
Function at 0x46a810
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x4a44cc
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xdc]
xor esi, esi
cmp ebp, esi
jne 0x46a85f
xor eax, eax
jmp 0x46a9ba
lea ebx, [esp + 0x18]
call fcn.0046a490
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0xd8], esi
call fcn.0046a5c0
add esp, 4
lea ecx, [esp + 0x24]
call fcn.0040fcf0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0xdc], 2
call fcn.0046a6c0
add esp, 8
mov byte [esp + 0xd4], 3
mov ecx, ebx
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.00411430
mov esi, eax
mov ecx, esi
call fcn.00406300
test al, al
je 0x46a8f2
mov eax, dword [esi + 4]
push eax
mov ecx, ebx
call fcn.00414450
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call fcn.0040feb0
push eax
push esi
lea edi, [esp + 0x30]
call fcn.0046db10
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00411430
mov esi, eax
mov ecx, esi
call fcn.00406300
test al, al
je 0x46a930
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x24]
call fcn.00414450
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x20]
call fcn.0040feb0
push eax
push esi
lea edi, [esp + 0x30]
call fcn.0046db10
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00411430
mov esi, eax
mov ecx, esi
call fcn.00406300
test al, al
je 0x46a96e
mov edx, dword [esi + 4]
push edx
lea ecx, [esp + 0x20]
call fcn.00414450
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
call fcn.0040feb0
push eax
push esi
lea edi, [esp + 0x30]
call fcn.0046db10
push ebp
mov esi, edi
call fcn.0046dbd0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0040fde0
lea ecx, [esp + 0x24]
call fcn.0040fde0
lea ecx, [esp + 0x20]
call fcn.0040fde0
lea ecx, [esp + 0x18]
call fcn.0040fde0
mov eax, 1
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.0047f404
add esp, 0xc4
ret
Function at 0x46ac60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4a1848
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea ecx, [esp + 0x14]
call fcn.0040fcf0
mov eax, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x24], esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x46aca0
sub eax, edx
sar eax, 1
mov ebx, eax
cmp ebx, esi
jg 0x46ace2
lea eax, [esp + 0x14]
push eax
mov ecx, dword [esp + 0x30]
call fcn.0040fe10
lea ecx, [esp + 0x14]
call fcn.0040fde0
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
lea edi, [ebx + ebx]
push edi
lea ecx, [esp + 0x18]
call fcn.004121b0
test ebx, ebx
mov ebp, eax
jle 0x46ad19
jmp 0x46ad00
mov eax, dword [esp + 0x30]
cmp word [eax + esi*2], 0x80
jae 0x46ad2a
mov cl, byte [eax + esi*2]
mov byte [esi + ebp], cl
add esi, 1
cmp esi, ebx
jl 0x46ad00
push ebx
lea ecx, [esp + 0x18]
call fcn.00430f40
lea edx, [esp + 0x14]
push edx
jmp 0x46acba
lea ecx, [esp + 0x18]
push ecx
push 0
sub edi, esi
push edi
lea edx, [esi + ebp]
push edx
mov ecx, ebx
sub ecx, esi
push ecx
lea edx, [eax + esi*2]
push edx
push 0
push 0x3a8
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jg 0x46ad84
xor edi, edi
cmp esi, ebx
jge 0x46ad84
mov eax, dword [esp + 0x30]
cmp word [eax + esi*2], 0x80
jb 0x46ad74
mov byte [edi + ebp], 0x3f
jmp 0x46ad7a
mov al, byte [eax + esi*2]
mov byte [edi + ebp], al
add esi, 1
add edi, 1
cmp esi, ebx
jl 0x46ad62
lea ecx, [edi + esi]
push ecx
lea ecx, [esp + 0x18]
call fcn.00430f40
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
call fcn.0040fe10
lea ecx, [esp + 0x14]
call fcn.0040fde0
test edi, edi
setg al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x46aef0
Capabilities:
Check for time delay via gettickcount
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp dword [esi + 4], 0
jne 0x46af98
push edi
push 0x208
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.004806d0
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xc
push 0x4b9094
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.004843ab
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x10
call edi
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
call edi
cmp dword [esi + 4], 0
pop edi
jne 0x46af98
or dword [esi + 0x1c], 1
xor eax, eax
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0047f404
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, 1
call fcn.0047f404
add esp, 0x210
ret
Function at 0x46b6b0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x78
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
push esi
mov esi, dword [eax]
xor eax, eax
cmp esi, 0xffffffff
push edi
mov edi, ecx
je 0x46b780
push 0x44
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
call fcn.004806d0
mov eax, dword [edi]
or dword [esp + 0x50], 0x101
add esp, 0xc
mov dword [esp + 0x50], esi
mov ecx, 7
mov esi, str.ipconfig__all
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0x8000000
push 1
push 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
push 0
lea eax, [esp + 0x80]
push eax
push 0
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
jne 0x46b76a
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0047f404
add esp, 0x78
ret 4
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call edi
mov eax, esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.0047f404
add esp, 0x78
ret 4
Function at 0x46b7a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a2bb6
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
push esi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
mov eax, dword [esp + 0x434]
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
call fcn.0040fcf0
mov dword [esp + 0x42c], 0
mov eax, dword [esi]
test eax, eax
je 0x46b81a
cmp eax, 0xffffffff
je 0x46b81a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x46b8fe
mov dword [esi], 0xffffffff
mov eax, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x400
lea edx, [esp + 0x28]
push edx
push eax
call ebp
test eax, eax
je 0x46b8ad
lea ebx, [ebx]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x46b8ad
call fcn.00411c40
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044efe0
lea ecx, [esp + 0x10]
mov byte [esp + 0x42c], 1
call fcn.0040feb0
push eax
lea ecx, [esp + 0x14]
call fcn.00410760
push eax
lea ecx, [esp + 0x14]
call fcn.0044d550
lea ecx, [esp + 0x10]
mov byte [esp + 0x42c], 0
call fcn.0040fde0
mov ecx, dword [edi]
push 0
lea edx, [esp + 0x18]
push edx
push 0x400
lea eax, [esp + 0x28]
push eax
push ecx
call ebp
test eax, eax
jne 0x46b840
mov esi, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
push esi
call fcn.0046b910
push esi
call fcn.0046c0b0
push esi
call fcn.0046c480
lea ecx, [esp + 0xc]
call fcn.0040fde0
mov eax, 1
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0047f404
add esp, 0x424
ret 4
lea ecx, [esp + 0xc]
call fcn.0040fde0
xor eax, eax
jmp 0x46b8d6
Function at 0x46dcf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0f3e
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
or eax, 0xffffffff
xor ebp, ebp
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebp
lea edi, [esi + 0x14]
mov dword [esp + 0x1c], ebp
mov ecx, edi
mov dword [esi], vtable.TiXmlAttribute.0
call fcn.004104c0
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.004104c0
mov eax, dword [esp + 0x28]
push eax
mov ecx, edi
mov byte [esp + 0x20], 2
call fcn.004105a0
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.004105a0
mov dword [esi + 0x10], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x4c], ebp
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x46e4c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0f03
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea ebx, [esi + 0x20]
xor ebp, ebp
mov ecx, ebx
mov dword [esi + 0xc], ebp
mov dword [esi], vtable.TiXmlNode.0
call fcn.004104c0
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], 1
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
mov dword [esp + 0x1c], ebp
lea edi, [esi + 0x44]
mov dword [esi], vtable.TiXmlElement.0
or eax, 0xffffffff
mov dword [edi + 8], eax
mov dword [edi + 4], eax
lea ecx, [edi + 0x14]
mov dword [edi + 0xc], ebp
mov dword [edi], vtable.TiXmlAttribute.0
call fcn.004104c0
lea ecx, [edi + 0x30]
call fcn.004104c0
mov dword [edi + 0x10], ebp
mov dword [edi + 0x50], edi
mov dword [edi + 0x4c], edi
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c], 1
push eax
mov ecx, ebx
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x18], ebp
call fcn.004105a0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x46f1e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a0ec9
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [esi + 0xc], edi
mov dword [esi], vtable.TiXmlNode.0
call fcn.004104c0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esp + 0x1c], edi
lea edi, [esi + 0x44]
mov ecx, edi
mov dword [esi], vtable.TiXmlDeclaration.0
call fcn.004104c0
lea ebx, [esi + 0x60]
mov ecx, ebx
call fcn.004104c0
lea ebp, [esi + 0x7c]
mov ecx, ebp
call fcn.004104c0
mov eax, dword [esp + 0x28]
push eax
mov ecx, edi
mov byte [esp + 0x20], 3
call fcn.004105a0
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.004105a0
mov edx, dword [esp + 0x30]
push edx
mov ecx, ebp
call fcn.004105a0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x4730f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a5148
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
call fcn.00421ce0
lea ecx, [esp + 8]
push ecx
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00421dc0
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call fcn.00421d90
call fcn.004794f0
push edi
mov dword [edi + 0x1c], 0
call fcn.004731a0
cmp dword [edi + 0x1c], 0
je 0x47316c
push edi
call fcn.004734c0
push edi
call fcn.00473be0
push edi
call fcn.004744c0
push edi
call fcn.00474270
mov ecx, edi
call fcn.00473ef0
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x4731a0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a43f8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x80]
xor ebx, ebx
lea esi, [esp + 0x50]
mov byte [esp + 0x17], bl
call fcn.00479730
lea ecx, [esp + 0x34]
mov dword [esp + 0x78], ebx
call fcn.00421c90
mov bl, 1
mov ecx, ebp
mov byte [esp + 0x78], bl
call fcn.0044c280
test al, al
je 0x473230
mov eax, esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004793b0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 2
call fcn.00421dc0
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], bl
call fcn.00421d90
jmp 0x47323a
push ebp
lea ecx, [esp + 0x38]
call fcn.00421dc0
lea edi, [esp + 0x34]
call fcn.004794f0
push 0x4b9484
lea ecx, [esp + 0x1c]
call fcn.00421ce0
lea ecx, [esp + 0x18]
push ecx
mov ebx, edi
mov byte [esp + 0x7c], 3
call fcn.004795e0
mov ebx, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], bl
call fcn.00421d90
mov ecx, edi
call fcn.00421e20
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x473295
mov dword [ebp + 0x1c], 0
jmp 0x47334a
lea ecx, [esp + 0x50]
mov dword [ebp + 0x1c], ebx
call fcn.00479200
push 0x4b949c
lea ecx, [esp + 0x1c]
call fcn.00421ce0
lea ebx, [esp + 0x18]
lea esi, [esp + 0x50]
mov byte [esp + 0x78], 4
call fcn.00479550
mov bl, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], bl
call fcn.00421d90
mov ecx, esi
call fcn.00421e20
push eax
call edi
cmp eax, 0xffffffff
je 0x4732ef
mov edx, esi
push edx
lea ecx, [ebp + 0x80]
call fcn.00421dc0
jmp 0x473346
mov eax, dword [0x4c8e28]
push str.SKIN
push str.QMUIRES.dat
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x47334a
mov ecx, dword [0x4c8e28]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47334a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x47334a
mov edx, dword [0x4c8e28]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
lea edi, [ebp + 0xb0]
mov esi, eax
call fcn.004722f0
mov byte [esp + 0x17], bl
lea ecx, [esp + 0x34]
call fcn.00421d90
lea ecx, [esp + 0x50]
call fcn.00421d90
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0047f404
add esp, 0x68
ret 4
Function at 0x473830
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3380
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4c6280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, edx
mov dword [ebp - 0x3c], ecx
xor bl, bl
mov ecx, edi
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x2d], bl
call fcn.0044c280
test al, al
jne 0x47399a
push edi
lea ecx, [ebp - 0x2c]
call fcn.00421d40
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004794f0
call fcn.004011c0
mov ecx, esi
mov dword [ebp - 0x34], eax
call fcn.004105d0
mov ebx, eax
test ebx, ebx
je 0x4738ea
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jg 0x4738ea
lea eax, [esi + esi]
call fcn.0048e4a0
mov edi, esp
test edi, edi
je 0x4738ea
mov edx, dword [ebp - 0x34]
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push edx
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x4738ec
xor eax, eax
push eax
lea ecx, [ebp - 0x58]
call fcn.00421ce0
lea eax, [ebp - 0x58]
push eax
lea ebx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004795e0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00421d90
mov ecx, ebx
call fcn.00421e20
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47398d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x473986
lea ecx, [edi + 1]
push ecx
mov dword [ebp - 0x34], 0
call fcn.0047e225
mov esi, dword [ebp - 0x38]
add esp, 4
push 0
lea edx, [ebp - 0x34]
push edx
push edi
push eax
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x473986
cmp dword [ebp - 0x34], edi
jne 0x473986
mov eax, dword [ebp - 0x3c]
mov dword [eax], edi
mov ecx, dword [esi]
mov byte [edi + ecx], 0
mov byte [ebp - 0x2d], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.00421d90
mov al, byte [ebp - 0x2d]
jmp 0x47399c
mov al, bl
lea esp, [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f404
mov esp, ebp
pop ebp
ret 8