joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402830
Capabilities:
Check for trap flag exception

Disassembly:
and byte [ecx + 0x247c8de6], cl
push 0x8b0c7e89
jl 0x402861
xor byte [ecx + 0x846c73e], cl
inc eax
add byte [eax], al
add bh, al
inc esi
add al, 8
add byte [eax], al
add byte [ecx - 0xd7dbbc], cl
rol byte [ebx - 0x1e76ef14], cl
mov edx, dword [esp + 0x2c]
mov dword [ecx + 4], edx
mov esi, dword [esp + 0x30]
mov dword [ecx], esi
mov dword [ecx + 8], 8
je 0x402887
xor byte [ecx + 0x841c731], cl
or byte [eax], al
add byte [eax], al
mov dword [esp + 0x24], eax
call fcn.00401c00
sub esp, 0xc
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x2c]
mov esi, esp
mov edi, dword [esp + 0x30]
mov dword [esi + 4], edi
jle 0x40288d
mov dword [esi], 1
add byte [eax], al
mov dword [esp + 0x20], eax
call edx
sub esp, 8
pushfd
or dword [esp], 0x100
popfd
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 8]
mov esi, esp
mov dword [esi], 0xb03058
mov dword [esp + 0x1c], eax
call edx
sub esp, 4
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x30]
mov esi, esp
mov edi, dword [esp + 0x1c]
mov dword [esi], edi
mov dword [esp + 0x18], eax
call edx
sub esp, 4
mov ecx, dword [esp + 0x30]
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov edx, dword [esp + 0x50]
mov esi, dword [edx + 0x20]
mov edi, dword [esp + 0x68]
mov ebx, esp
lea ebp, [esp + 0x68]
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], edi
mov dword [ebx], ecx
mov dword [ebx + 4], 8
mov dword [esp + 0x14], eax
call esi
sub esp, 0x10
mov ecx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x40]
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x407b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508d90
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x407c41
cmp byte [eax + 0x54], 0
je 0x407c41
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x1c], xmm0
call fcn.00406550
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x407b8a
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407c15
push 0
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.00432840
add esp, 4
mov byte [ebp - 4], 1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x20], 0x10
jb 0x407c03
push dword [ebp - 0x34]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x407c3a
cmp byte [ebp - 0x18], 0
je 0x407c3a
mov eax, dword [esi]
test eax, eax
je 0x407c36
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00505b1e
mov esp, ebp
pop ebp
ret 4
Function at 0x410c00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ad76
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 0x20]
mov dword [edi], 0
mov dword [edi + 4], 0
xor ecx, ecx
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov dword [ebp - 0x14], eax
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [eax + 0x2c], 7
mov dword [eax + 0x28], ecx
mov word [eax + 0x18], cx
mov byte [ebp - 4], 1
mov dword [eax + 0x44], 7
mov dword [eax + 0x40], ecx
mov word [eax + 0x30], cx
mov byte [ebp - 4], 2
mov dword [eax + 0x5c], 7
mov dword [eax + 0x58], ecx
mov word [eax + 0x48], cx
mov dword [ebp - 4], 4
lea esi, [edi + 0x80]
mov byte [esi], cl
lea ecx, [esi + 8]
mov dword [ebp - 0x18], ecx
mov dword [ecx], 0
add ecx, 8
mov dword [ebp - 0x14], esi
call fcn.004127e0
mov byte [ebp - 4], 6
xor eax, eax
mov dword [esi + 0xbc], 7
mov dword [esi + 0xb8], 0
mov word [esi + 0xa8], ax
mov byte [ebp - 4], 8
mov byte [edi + 0x140], al
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41ea20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x546238
push 0x5064c9
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [section..data]
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.0040a600
mov edx, esi
mov ecx, edi
call fcn.0041eb80
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x41eab5
test bl, bl
jne 0x41eb5d
cmp edi, 0x1a
jne 0x41eb5d
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x41ead7
mov eax, dword [esi]
jmp 0x41ead9
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x430], ax
push 0x40e
push eax
lea eax, [ebp - 0x42e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x430], 0
jne 0x41eb21
xor ecx, ecx
jmp 0x41eb3f
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41eb30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.00405240
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
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.00505b1e
mov esp, ebp
pop ebp
ret
Function at 0x41fa20
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x50cf11
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 1
push 0
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0
push eax
mov ecx, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], 0x25
call fcn.00420110
push 0xffffffffffffffff
push 0
push edi
cmp eax, 0xffffffff
jne 0x41fab3
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
call fcn.00404c30
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], 1
jmp 0x41fbca
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.00404c30
mov dword [esp + 0x48], 1
cmp dword [edi + 0x14], 8
jb 0x41faf5
mov eax, dword [edi]
jmp 0x41faf7
mov eax, edi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test ebp, ebp
jne 0x41fb22
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], eax
push edi
mov word [esi], ax
call fcn.00404c30
jmp 0x41fb96
xor ecx, ecx
lea eax, [ebp + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov ebx, eax
cmp dword [edi + 0x14], 8
jb 0x41fb49
mov edi, dword [edi]
lea eax, [ebp + 1]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41fb6d
cmp eax, ebp
ja 0x41fb6d
xor ecx, ecx
mov word [ebx + eax*2], cx
lea ecx, [esp + 0x20]
push ebx
call fcn.00404910
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
xor eax, eax
mov dword [esi + 0x14], 7
add esp, 4
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, esi
lea eax, [esp + 0x20]
push eax
call fcn.00404b90
mov dword [esp + 0x18], 1
mov byte [esp + 0x48], 0
cmp dword [esp + 0x34], 8
jb 0x41fbb7
push dword [esp + 0x20]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
mov dword [esp + 0x30], eax
mov eax, esi
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.00505b1e
add esp, 0x38
ret
Function at 0x422b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50d421
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0
call fcn.00423550
mov dword [esp + 0x34], 1
mov edx, eax
mov ecx, esi
call fcn.00423610
add esp, 4
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
cmp dword [esp + 0x24], 8
jb 0x422bc1
push dword [esp + 0x10]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
mov eax, esi
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
Function at 0x42eb40
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push esi
push 0x11c
mov esi, ecx
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42ec0d
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x42eb7b
jne 0x42ebce
cmp dword [esi + 8], 2
jb 0x42ebce
lea eax, [esp + 0x10]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
lea edx, [esp + 0x10]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.0042f2b0
add esp, 8
test al, al
je 0x42ebce
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
push eax
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.0042e8f0
add esp, 4
test al, al
je 0x42ec06
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov al, 1
pop esi
add esp, 0x10
ret
xor al, al
pop esi
add esp, 0x10
ret

Function at 0x42f2b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov ebx, edx
push esi
push edi
push str.kernel32.dll
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x42f37a
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42f37a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42f37a
movdqu xmm0, xmmword [0x536360]
push eax
movdqu xmmword [esp + 0x18], xmm0
movdqu xmm0, xmmword [0x536370]
movdqu xmmword [esp + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42f37a
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x42f37a
cmp word [esi + 2], ax
jbe 0x42f37a
movzx eax, word [esi + 0x32]
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
movzx eax, word [esi + 0x30]
mov dword [ebx], eax
movzx eax, word [esi + 0x36]
mov dword [ebp], eax
movzx eax, word [esi + 0x34]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00505b1e
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00505b1e
add esp, 0x28
ret
Function at 0x431990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50f598
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x38]
xorps xmm0, xmm0
mov esi, dword [esp + 0x40]
movdqu xmmword [esp + 0x14], xmm0
mov dword [esp + 0x14], vtable.RC::RCBuffer_char_.0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], vtable.RC::RCDynamicBuffer_char_.0
mov dword [esp + 0x30], 1
cmp dword [esp + 0x3c], 1
jb 0x431ac7
test edi, edi
je 0x431ac7
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x431a2f
cmp ecx, 0xffffffff
jne 0x431a33
mov byte [eax + 4], 0
cmp byte [eax + 4], 0
je 0x431ac7
call dword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [esp + 0xc]
mov edx, edi
mov dword [eax], 0
lea eax, [esp + 0x14]
mov ecx, dword [ecx]
push eax
push dword [esp + 0x40]
mov ecx, dword [ecx]
call fcn.00430fd0
add esp, 8
cmp eax, 0xffffffff
setne al
test al, al
je 0x431ac7
cmp dword [esp + 0x20], 0
jbe 0x431aaf
mov edx, dword [esp + 0x1c]
cmp word [edx], 0
jne 0x431a8e
xor ecx, ecx
push ecx
push edx
mov ecx, esi
call fcn.00405240
mov al, 1
jmp 0x431ac9
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431a93
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00405240
mov al, 1
jmp 0x431ac9
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x431abe
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov al, 1
jmp 0x431ac9
xor al, al
mov byte [esp + 0x13], al
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x14], vtable.RC::RCDynamicBuffer_char_.0
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], vtable.RC::RCBuffer_char_.0
test ecx, ecx
je 0x431b0b
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov al, byte [esp + 0x17]
add esp, 4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00505b1e
add esp, 0x28
ret 0xc

Function at 0x4334f0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x433506
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esp + 8]
mov word [esi + 4], 0
cmp dword [eax + 0x10], 0
je 0x433520
cmp dword [eax + 0x14], 8
jb 0x433522
mov eax, dword [eax]
jmp 0x433522
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x433544
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x433544
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4
Function at 0x433550
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x50faf8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x43359a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [esp + 0x14]
mov word [edi + 4], 0
mov dword [esp + 0x14], 0
call fcn.0045ba60
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x14]
cmp dword [esi], 0
je 0x4335c7
lea eax, [esi + 8]
jmp 0x4335c9
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x4335d9
cmp dword [ebx + 0x14], 8
jb 0x4335db
mov ebx, dword [ebx]
jmp 0x4335db
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x4335fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4335fc
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x433626
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 ecx, dword [esi + 4]
test ecx, ecx
je 0x43363b
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x14], 0
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00505b1e
add esp, 0x18
ret 4
Function at 0x438500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51037d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
lea ecx, [edi + 0x60]
mov dword [edi], 0x5365c8
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov dword [esp + 0x20], 0
lea esi, [edi + 4]
push 0
push 0
push esi
mov ecx, edi
mov dword [esp + 0x18], 1
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov dword [esp + 0x14], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov byte [esp + 0x20], 2
mov ecx, esi
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x569638]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
mov byte [esp + 0x20], 3
sub esp, 8
mov ecx, esi
push dword [esp + 0x30]
call fcn.00439da0
test eax, eax
jne 0x4385e6
push eax
mov eax, dword [edi]
push 2
mov ecx, dword [eax + 4]
add ecx, edi
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov dword [esp + 0x20], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 0x10
Function at 0x439f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510648
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
cmp dword [ebx + 0x40], 0
je 0x43a101
cmp byte [ebx + 0x45], 0
je 0x43a101
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x439fc4
xor al, al
jmp 0x43a103
mov ecx, 0xf
mov dword [esp + 0x2c], 0
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x18]
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
jmp 0x43a020
cmp esi, 0x10
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmovae edx, edi
lea ecx, [esp + 0x1c]
cmovae ecx, edi
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x40]
lea eax, [ebx + 0x48]
push eax
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x43a05c
dec eax
je 0x43a060
sub eax, 2
je 0x43a0ca
xor bl, bl
jmp 0x43a0cc
mov byte [ebx + 0x45], 0
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edi, dword [esp + 0x18]
cmp esi, 0x10
mov ebx, dword [esp + 0x14]
cmovae eax, edi
sub ebx, eax
je 0x43a0a4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
cmp esi, 0x10
cmovae eax, edi
push dword [ecx + 0x50]
push ebx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x43a058
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x45], 0
je 0x43a0ca
test ebx, ebx
mov ebx, eax
jne 0x43a020
push 0
push 8
lea ecx, [esp + 0x20]
call fcn.00439b70
jmp 0x43a013
mov bl, 1
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x43a0e8
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x2c], 0xf
mov al, bl
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jmp 0x43a103
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00505b1e
mov esp, ebp
pop ebp
ret