joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a30
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e2a6
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esp + 0x34], 0
xor eax, eax
push 0xffffffffffffffff
lea ecx, [esi + 0xc]
mov dword [ecx + 0x14], 7
push eax
push dword [esp + 0x44]
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.00403ac0
mov byte [esp + 0x34], 1
xor eax, eax
push 0x33
mov dword [esp + 0x24], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
push str.RCCACHESTAT_1FC367B9_AD02_4DC5_90FD_ED13A130C814_
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.00403be0
mov byte [esp + 0x34], 2
cmp dword [esp + 0x20], 0
mov dword [esi + 0x24], 0
mov word [esi + 0x28], 0
je 0x417afd
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
jmp 0x417aff
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x24], eax
test eax, eax
je 0x417b22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x417b22
mov byte [esi + 0x29], 1
mov byte [esp + 0x34], 4
cmp dword [esp + 0x24], 8
jb 0x417b3a
push dword [esp + 0x10]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x34], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x30
ret 4
Function at 0x41a950
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
xor eax, eax
mov esi, edx
push 0x40e
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00451b50
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41a9be
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x41a9d6
mov eax, dword [esp + 4]
test eax, eax
je 0x41a9be
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0044b642
add esp, 0x418
ret
cmp word [esp + 8], 0
jne 0x41a9e2
xor ecx, ecx
jmp 0x41a9ff
lea ecx, [esp + 8]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a9f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00403be0
mov eax, dword [esp + 4]
test eax, eax
je 0x41aa1b
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.0044b642
add esp, 0x418
ret

Function at 0x41acd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46eab1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x38], 0
xor edx, edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.0043ba10
mov dword [esp + 0x38], 1
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov edx, esi
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x14]
call fcn.00411a10
mov edx, 0x10
mov ecx, esi
call fcn.00412010
mov byte [esp + 0x38], 0
cmp dword [esp + 0x28], 8
jb 0x41ad72
push dword [esp + 0x14]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0044b642
add esp, 0x34
ret
Function at 0x41b8e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ec91
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x50], 1
xor eax, eax
push eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0
push 0x47cbf4
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.00403be0
mov byte [esp + 0x50], 2
lea edx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x30]
call fcn.0041afb0
add esp, 4
mov byte [esp + 0x50], 4
cmp dword [esp + 0x20], 8
jb 0x41b991
push dword [esp + 0xc]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], eax
mov ecx, esi
push eax
mov word [esp + 0x14], ax
mov word [esi], ax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call fcn.00403ac0
cmp dword [esi + 0x10], 0
mov dword [esp + 0x24], 1
je 0x41b9e2
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call fcn.00403920
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.0041bae0
test eax, eax
setne byte [esp + 8]
cmp dword [esp + 0x3c], 0
je 0x41ba12
push dword [esp + 8]
lea eax, [esp + 0x30]
push eax
call fcn.004253d0
mov ecx, eax
call fcn.004254a0
mov byte [esp + 0x50], 1
cmp dword [esp + 0x40], 8
jb 0x41ba2a
push dword [esp + 0x2c]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov byte [esp + 0x50], al
cmp dword [esp + 0x6c], 8
jb 0x41ba58
push dword [esp + 0x58]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0044b642
add esp, 0x4c
ret
Function at 0x41ed20
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f1e3
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
cmp dword [ecx + 0xc0], 0
je 0x41eea6
lea esi, [ecx + 0xb0]
mov ecx, esi
call fcn.004133b0
push 4
call fcn.0044c16f
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], 0
test eax, eax
je 0x41ed91
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x41ed93
xor eax, eax
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], 1
push ecx
push 2
push ecx
push 0x40000000
push esi
lea ecx, [esp + 0x30]
call fcn.00413cf0
mov esi, dword [esp + 0x1c]
test al, al
je 0x41ee71
mov dword [esp + 0x18], 0
call fcn.0041a890
add eax, 0xa8
lea ecx, [esp + 8]
xorps xmm0, xmm0
push eax
movdqu xmmword [esp + 0xc], xmm0
call fcn.00438a10
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
test esi, esi
je 0x41ee13
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41ee13
push 0
lea ecx, [esp + 0x1c]
push ecx
push 4
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x24]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x28], xmm0
call fcn.0044db9a
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
test esi, esi
je 0x41ee71
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41ee71
push 0
lea ecx, [esp + 0x1c]
push ecx
push 8
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41ee71
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41ee71
mov dword [esi], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
test esi, esi
je 0x41eea6
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41ee95
test eax, eax
je 0x41ee95
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push esi
call fcn.0044b63d
add esp, 4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0044b642
add esp, 0x3c
ret

Function at 0x41efd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46b6d9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
xor eax, eax
mov esi, dword [esp + 0x1c]
add ecx, 0x30
push 0xffffffffffffffff
push eax
push ecx
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.00403ac0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x424430
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.00451b50
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x424497
mov eax, dword [esp + 4]
cmp eax, 5
jbe 0x42448e
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0044b642
add esp, 0x118
ret
jne 0x424497
cmp dword [esp + 8], 0
ja 0x424477
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.0044b642
add esp, 0x118
ret

Function at 0x4244b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.00451b50
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42450c
cmp dword [esp + 4], 6
jb 0x42450c
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0044b642
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.0044b642
add esp, 0x118
ret

Function at 0x424d70
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x48d72c], 0
jne 0x424e03
xor eax, eax
push 0x208
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00451b50
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov word [esp + 0x20e], ax
cmp word [esp + 8], ax
jne 0x424ddd
xor ecx, ecx
jmp 0x424df3
lea ecx, [esp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424de4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xc]
mov ecx, 0x48d71c
push eax
call fcn.00403be0
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0044b642
add esp, 0x214
ret
Function at 0x425060
Capabilities:
Get session user name

Disassembly:
sub esp, 0x220
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [0x48f474]
push ebx
push esi
mov esi, ecx
push edi
test eax, eax
jle 0x4250a2
inc eax
mov dword [0x48f474], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0044b642
add esp, 0x220
ret
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
xor bl, bl
call fcn.00424e30
test al, al
je 0x42516d
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x42516d
push str.ImpersonateLoggedOnUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [esp + 0xc]
call eax
test eax, eax
je 0x425166
inc dword [0x48f474]
mov eax, dword [esi]
test eax, eax
je 0x425102
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esp + 0xc]
mov bl, 1
mov dword [esi], eax
cmp dword [0x48d744], 0
mov dword [esp + 0xc], 0
jne 0x425166
xor eax, eax
push 0x208
push eax
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push eax
call fcn.00451b50
add esp, 0xc
mov dword [esp + 0x10], 0x104
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x48d734
mov word [esp + 0x21a], ax
lea eax, [esp + 0x14]
push eax
call fcn.00405210
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x42517c
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x228]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044b642
add esp, 0x220
ret

Function at 0x4252a0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x10], eax
lea eax, [esp]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x30]
mov word [esp + 0x34], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [esp + 4], ecx
test ecx, ecx
je 0x425311
lea eax, [esp + 4]
push eax
push dword [esp + 4]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp]
neg eax
sbb eax, eax
and dword [esp + 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x10]
setne al
xor ecx, esp
call fcn.0044b642
add esp, 0x14
ret
Function at 0x42b2c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x470e9b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
jne 0x42b333
push 0x10
call fcn.004477c6
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
test eax, eax
je 0x42b326
push 0x4293d0
push 0x4293c0
push 3
lea esi, [eax + 4]
mov dword [eax], 3
push 4
push esi
call fcn.00467ef8
jmp 0x42b328
xor esi, esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [edi + 0xc], esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
test eax, eax
je 0x42b347
cmp byte [ecx + eax - 1], 0xa
jne 0x42b347
dec eax
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [edi + 0xc]
lea ecx, [ecx + eax*4]
call fcn.004293e0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc
Function at 0x4310e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46d3a9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
cmp byte [edx], 0
jne 0x43111c
xor esi, esi
jmp 0x43112a
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x431121
sub esi, ecx
push esi
push edx
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00431610
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push eax
mov byte [edi], 0
call fcn.00402f20
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 1
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x43a4e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4726ab
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call fcn.0044c16f
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x43a54c
push 0x34
push 0
push esi
call fcn.00451b50
add esp, 0xc
mov ecx, esi
call fcn.0043a1b0
mov esi, eax
jmp 0x43a54e
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
push ecx
push 3
push 3
push SysReAllocString
push eax
lea ecx, [esi + 0x18]
call fcn.0043aae0
test al, al
jne 0x43a580
test esi, esi
je 0x43a57c
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x43a5c2
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
lea ecx, [edi + 8]
movlpd qword [esp + 0x10], xmm0
call fcn.0043ac70
test al, al
je 0x43a570
lea ecx, [esp + 0x14]
xorps xmm0, xmm0
push ecx
push 0
push dword [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
lea ecx, [esi + 8]
mov eax, dword [esi + 8]
push dword [esp + 0x18]
call dword [eax + 0x14]
test eax, eax
jne 0x43a574
lea eax, [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044b642
mov esp, ebp
pop ebp
ret

Function at 0x43acf0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x43ad1e
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0044b642
add esp, 8
ret 4
push esi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43ad59
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43ad59
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0044b642
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, esi
mov dword [edi], eax
mov al, 1
adc ecx, 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.0044b642
add esp, 8
ret 4
Function at 0x43b590
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x472868
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x43b5e6
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x43b76b
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x100000
mov eax, dword [esp + 0x54]
push 0
mov ebx, eax
mov dword [esp + 0x34], 0
cmp eax, 0x100000
lea eax, [esp + 0x34]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x43b730
test eax, eax
je 0x43b730
mov ecx, dword [esp + 0x30]
jmp 0x43b650
cmp ecx, ebx
jae 0x43b734
call ebp
mov ecx, dword [edi]
mov dword [esp + 0x18], eax
cmp ecx, 0xffffffff
je 0x43b693
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43b686
call ebp
test eax, eax
jne 0x43b693
mov eax, dword [esp + 0x38]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x43b6a4
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push 0
push dword [esp + 0x1c]
push eax
push ecx
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [edi + 4]
push eax
call fcn.00403ac0
mov dword [esp + 0x70], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [esp + 0x70], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x43b730
push eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x30]
neg eax
sbb eax, eax
add ecx, dword [esp + 0x34]
and eax, 0x7fffbffb
mov dword [esp + 0x30], ecx
add eax, 0x80004005
jne 0x43b650
jmp 0x43b734
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
add dword [edx], ecx
test eax, eax
jne 0x43b761
test ecx, ecx
je 0x43b75d
mov eax, dword [esp + 0x54]
add esi, ecx
sub eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x54], eax
mov ecx, 0x100000
jne 0x43b604
mov al, 1
jmp 0x43b76d
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x43b76b
mov dword [ecx], eax
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0044b642
add esp, 0x38
ret 0x10
Function at 0x43c6b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x472b3f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], eax
mov word [esi + 0x18], ax
mov byte [esp + 0x14], 1
mov dword [esi + 0x44], 7
mov dword [esi + 0x40], eax
mov word [esi + 0x30], ax
mov byte [esp + 0x14], 2
mov dword [esi + 0x5c], 7
mov dword [esi + 0x58], eax
mov word [esi + 0x48], ax
mov byte [esp + 0x14], 3
mov dword [esi + 0x74], 7
mov dword [esi + 0x70], eax
mov word [esi + 0x60], ax
mov byte [esp + 0x14], 4
mov dword [esi + 0x8c], 7
mov dword [esi + 0x88], eax
mov word [esi + 0x78], ax
mov byte [esp + 0x14], 5
push 0x35c
push eax
lea eax, [esi + 0x98]
push eax
call fcn.00451b50
add esp, 0xc
xor eax, eax
mov dword [esi + 0x90], eax
mov word [esi + 0x94], ax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x440220
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46b973
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00403ac0
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00403ac0
mov byte [esp + 0x18], 1
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov ax, word [esi + 0x34]
mov word [edi + 0x34], ax
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4402d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473229
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00403ac0
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00403ac0
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00403ac0
mov byte [esp + 0x18], 2
lea ecx, [edi + 0x48]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x48]
push eax
call fcn.00403ac0
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4