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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.00402f40
test al, al
jne 0x41fbf7
mov ecx, dword [esp + 8]
call fcn.00402f50
jmp 0x41fbf9
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x41fc21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x41fc23
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x41fc50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed038
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x53a00c]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x41fc96
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00434930
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41fcbf
lea ebx, [esi + 8]
jmp 0x41fcc1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00402f40
test al, al
jne 0x41fcd7
mov ecx, dword [ebp - 0x18]
call fcn.00402f50
jmp 0x41fcd9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x41fcfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41fcfa
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x41fd23
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41fd38
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004c4650
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
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.004c4269
mov esp, ebp
pop ebp
ret 4
Function at 0x41fd70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed068
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x53a00c]
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 edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x41fdb3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.004349f0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41fde0
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x41fde7
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.00402f40
test al, al
jne 0x41fdfb
mov ecx, ebx
call fcn.00402f50
jmp 0x41fdfd
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x41fe4e
call ecx
cmp eax, 5
jne 0x41fe48
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00402f40
test al, al
jne 0x41fe38
mov ecx, ebx
call fcn.00402f50
jmp 0x41fe3a
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x41fe6c
call ecx
cmp eax, 0xb7
jne 0x41fe61
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.00425250
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x41fe92
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41fea7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004c4650
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
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.004c4269
mov esp, ebp
pop ebp
ret 4

Function at 0x420810
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed1c4
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x53a00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00403070
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00403070
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00403070
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00403070
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.00403070
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421cb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed610
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x53a00c]
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 edi, ecx
call fcn.00402f40
test al, al
je 0x421ced
xor al, al
jmp 0x421e99
mov ecx, edi
call fcn.004217b0
test al, al
je 0x421cff
mov al, 1
jmp 0x421e99
push 0
mov ecx, edi
call fcn.00402f50
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x421d4e
lea ecx, [ebp - 0x28]
call fcn.00403070
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00439d30
test al, al
je 0x421d3f
push 0
lea ecx, [ebp - 0x28]
call fcn.00402f50
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402de0
mov ecx, edi
call fcn.004217b0
test al, al
jne 0x421cf8
mov ecx, edi
call fcn.00403330
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x421e3e
mov ecx, edi
call fcn.00403210
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x421d82
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x421da5
mov eax, ebx
cmp ecx, 8
jb 0x421d9b
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x421e2e
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00408d49
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402f40
test al, al
jne 0x421e1f
lea ecx, [ebp - 0x28]
call fcn.004215a0
test al, al
jne 0x421e1f
push 0
lea ecx, [ebp - 0x28]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x421e1f
lea ecx, [ebp - 0x40]
call fcn.00403070
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00439d30
test al, al
je 0x421e13
push 0
lea ecx, [ebp - 0x40]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402de0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x421d76
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.004215a0
test al, al
jne 0x421e92
push 0
mov ecx, edi
call fcn.00402f50
push eax
call ebx
test eax, eax
jne 0x421e92
lea ecx, [ebp - 0x40]
call fcn.00403070
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.00439d30
test al, al
je 0x421e83
push 0
lea ecx, [ebp - 0x40]
call fcn.00402f50
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402de0
mov ecx, edi
call fcn.004217b0
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.004c4269
mov esp, ebp
pop ebp
ret
Function at 0x422550
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x53a00c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.00402f60
push 0x412
lea eax, [esp + 8]
push 0
push eax
call fcn.004c67e0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4225ac
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004c4269
add esp, 0x418
ret
cmp eax, 0x208
jae 0x422594
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.00403860
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.00403340
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.004c4269
add esp, 0x418
ret
Function at 0x4237a0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eda38
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x53a00c]
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 esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x4237db
xor al, al
jmp 0x423862
add eax, 0x20
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.00403f00
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x42384f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x423380
push 0
push 0
call fcn.004cc6f8
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x42387e
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x423847
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.00423510
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403f30
mov al, bl
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.004c4269
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x423896
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x423836
mov bl, 1
jmp 0x423851
Function at 0x423d80
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x53a00c]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004c4288
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.004c67e0
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x423ddc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004c4269
add esp, 0x120
ret
Function at 0x426940
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x53a00c]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.004c67e0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x426a82
cmp dword [esi + 4], 6
push edi
ja 0x426996
jne 0x426a1e
cmp dword [esi + 8], 2
jb 0x426a1e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x426a1e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x426a1e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x426a1e
movups xmm0, xmmword [0x5165dc]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x5165ec]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x426a1e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x426a1e
cmp word [edi + 2], ax
jbe 0x426a1e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x426a69
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004c67e0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x426a69
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004c4269
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004c4269
add esp, 0x140
ret
Function at 0x42f030
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x526b38
push 0x4c6980
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x53a00c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00402f60
mov ecx, edi
call fcn.0042f150
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x42f0c3
test bl, bl
jne 0x42f132
cmp edi, 0x1a
jne 0x42f132
mov ecx, esi
call fcn.00402f60
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.004c67e0
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.00403860
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.00403340
mov ecx, esi
call fcn.00402f40
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004c4269
mov esp, ebp
pop ebp
ret

Function at 0x430cb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x430ce8
mov edx, dword [esp + 4]
test edx, edx
je 0x430ce8
cmp dword [eax], 0xffffffff
je 0x430ce8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430ce8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x430cf0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x430d2a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x430d2a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x430d2a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x430d2a
cmp edi, dword [esi]
jne 0x430d2a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x430d70
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x53a00c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x430dd3
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x430dd3
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x430dae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x430dd3
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004c4269
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004c4269
add esp, 8
ret 4
Function at 0x430ed0
Capabilities:
Clear file content

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x430f7a
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.00430df0
test al, al
je 0x430f7a
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov ebp, dword [esp + 0x28]
xorps xmm0, xmm0
push eax
push 0
push edi
push ebp
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.00430df0
test al, al
je 0x430f7a
xor bl, bl
cmp dword [esp + 0x10], ebp
jne 0x430f4f
cmp dword [esp + 0x14], edi
jne 0x430f4f
mov eax, dword [esi]
test eax, eax
jne 0x430f3c
xor bl, bl
jmp 0x430f4f
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x430f38
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.00430df0
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x14
ret 8
Function at 0x431100
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x4ef590
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp + 0x624], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x630]
lea ecx, [ebp - 0x24]
mov ebx, dword [ebp + 0x634]
call fcn.00403070
mov dword [ebp - 4], 0
lea ecx, [ebp]
push 0x53d1dc
mov dword [ebp], 0
call fcn.00403f00
mov byte [ebp - 4], 1
mov ecx, 0x53d1e0
call fcn.00402f40
test al, al
jne 0x4311ae
mov ecx, 0x53d1e0
call fcn.00403210
lea ecx, [ebp - 0x24]
cmp ecx, eax
je 0x431263
mov ecx, 0x53d1e0
call fcn.00403210
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4311a5
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x43125b
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.004c67e0
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4312ed
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.004c67e0
add esp, 0xc
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x431244
test eax, eax
je 0x431244
add eax, eax
cmp eax, 0x412
jae 0x431331
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea eax, [ebp + 4]
push eax
call fcn.00403860
add esp, 4
push eax
lea eax, [ebp + 4]
jmp 0x43125a
lea eax, [ebp + 0x418]
push eax
call fcn.00403860
add esp, 4
push eax
lea eax, [ebp + 0x418]
push eax
lea ecx, [ebp - 0x24]
call fcn.00403340
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00403f30
push ebx
push edi
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00431090
test al, al
je 0x431284
mov bl, 1
jmp 0x4312fb
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.004c67e0
add esp, 0xc
lea eax, [ebp + 0x418]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4312f9
xor eax, eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 0x418]
push eax
call fcn.00403860
add esp, 4
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp + 0x418]
push eax
call fcn.00403340
push ebx
push edi
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00431090
mov bl, al
jmp 0x4312fb
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00403f30
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402de0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x624]
xor ecx, ebp
call fcn.004c4269
lea esp, [ebp + 0x628]
pop ebp
ret 8
call fcn.004c49f2
int3
Function at 0x432ae0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x53a00c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x432b62
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x432b62
test ecx, ecx
je 0x432b5e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x432b20
xor eax, eax
jmp 0x432b67
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x432b71
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c4269
add esp, 0xc
ret 0xc
Function at 0x437d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0888
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.00430df0
test al, al
jne 0x437da0
mov eax, 1
jmp 0x437f1d
push 0x10000
call fcn.004c4acc
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.004c67e0
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x437ef6
test ebx, ebx
je 0x437ef6
cmp dword [eax], 0xffffffff
je 0x437ef6
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437ef6
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x437eec
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.0044cbf0
test al, al
je 0x437edf
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x437e92
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x437e81
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x437eec
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x437e9c
add ebx, eax
cmp ebx, 0x8000
je 0x437eac
cmp dword [ebp - 0x28], 0xf
ja 0x437ed5
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x437e30
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x437ece
add ecx, 4
add esi, 4
sub edx, 4
jae 0x437eb6
mov esi, 4
jmp 0x437f07
mov esi, 5
jmp 0x437f07
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x437f07
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x437f01
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x437f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x437f1b
push ebx
call fcn.004c48cc
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c4269
mov esp, ebp
pop ebp
ret 0xc