joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437b22
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042ecd5
and dword [ebp - 4], 0
cmp dword [0x45c8d8], 0
mov ebx, eax
jne 0x437bd3
push str.USER32.DLL
call dword [sym.imp._LoadLibraryA]
mov edi, eax
test edi, edi
je 0x437c84
mov esi, dword [sym.imp._GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x437c84
push eax
call fcn.0042ec63
mov dword [esp], 0x4483dc
push edi
mov dword [0x45c8d8], eax
call esi
push eax
call fcn.0042ec63
mov dword [esp], 0x4483c8
push edi
mov dword [0x45c8dc], eax
call esi
push eax
call fcn.0042ec63
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45c8e0], eax
call esi
push eax
call fcn.0042ec63
pop ecx
mov dword [0x45c8e8], eax
test eax, eax
je 0x437bd3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042ec63
pop ecx
mov dword [0x45c8e4], eax
mov eax, dword [0x45c8e4]
cmp eax, ebx
je 0x437c2b
cmp dword [0x45c8e8], ebx
je 0x437c2b
push eax
call fcn.0042ecde
push dword [0x45c8e8]
mov esi, eax
call fcn.0042ecde
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x437c2b
test edi, edi
je 0x437c2b
call esi
test eax, eax
je 0x437c22
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x437c22
test byte [ebp - 0xc], 1
jne 0x437c2b
or dword [ebp + 0x10], 0x200000
jmp 0x437c64
mov eax, dword [0x45c8dc]
cmp eax, ebx
je 0x437c64
push eax
call fcn.0042ecde
pop ecx
test eax, eax
je 0x437c64
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x437c64
mov eax, dword [0x45c8e0]
cmp eax, ebx
je 0x437c64
push eax
call fcn.0042ecde
pop ecx
test eax, eax
je 0x437c64
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45c8d8]
call fcn.0042ecde
pop ecx
test eax, eax
je 0x437c84
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x437c86
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c30
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0x14], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x18], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8]
movzx edi, ch
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, eax
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + edx*8]
movzx eax, ah
xor edx, dword [ebp + eax*8 + 3]
mov eax, dword [esp + 4]
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
xor edx, dword [ebp + ecx*8 + 1]
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
jb 0x401c50
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, bh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, ch
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, dh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
movzx edi, bh
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov edi, dword [esp + 0x14]
and edx, 0xff
mov edx, dword [ebp + edx*8 + 2]
and edx, 0xff
movzx eax, ah
mov eax, dword [ebp + eax*8]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 4]
and ebx, 0xff
mov ebx, dword [ebp + ebx*8]
and ebx, 0xff0000
xor edx, ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + ecx*8 + 2]
and ecx, 0xff000000
xor edx, ecx
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x4061e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004613e0
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x1008], 1
push edx
lea edx, [ebp - 0x1008]
mov dword [ebp - 0x100c], 0x800
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40631f
mov ecx, dword [ebp - 0x1008]
cmp ecx, 1
jne 0x4062b2
cmp word [ebp - 0x804], ax
jne 0x406276
xor ecx, ecx
lea eax, [ebp - 0x804]
push ecx
push eax
mov ecx, edi
call fcn.00407070
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406280
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407070
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x40631a
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x406303
cmp eax, 0x400
ja 0x406303
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
call fcn.00406550
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046100d
mov esp, ebp
pop ebp
ret 8

Function at 0x40b850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40b85e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x40b870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x4f91a4]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x38]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x40b97f
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x40b8c2
xor ecx, ecx
jmp 0x40b8df
lea ecx, [esp + 0x40]
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b8d0
sub ecx, esi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.00409f30
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40b8fa
mov ecx, dword [eax]
jmp 0x40b8fc
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00409f30
lea ecx, [esp + 8]
call fcn.0040ac70
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.00409fd0
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x40b93a
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.00409180
xor eax, eax
mov dword [esp + 0x1c], 7
mov word [esp + 8], ax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], 0
cmp eax, 8
jb 0x40b969
inc eax
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.00409180
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
Function at 0x40b9a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x4f91a4]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40ba4f
cmp word [esp + 0x20], 0
je 0x40ba4f
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x40ba13
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00409f30
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ba20
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00409f30
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x1c], 7
mov word [esp + 8], ax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1c], 0
call fcn.0040b870
add esp, 4
mov ecx, esi
test al, al
je 0x40ba98
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [esp + 8]
push eax
call fcn.004097b0
jmp 0x40baaf
sub esp, 8
mov eax, esp
mov dword [eax], 0x4eeb44
mov dword [eax + 4], 3
call fcn.00409f30
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x40bac7
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.00409180
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret

Function at 0x40bae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40bbd4
cmp eax, 0x104
ja 0x40bbd4
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.004065e0
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.00409f30
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40bb74
mov ecx, dword [eax]
jmp 0x40bb76
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00409f30
lea ecx, [ebp - 0x240]
call fcn.0040ac70
lea eax, [ebp - 0x240]
mov ecx, esi
push eax
call fcn.00409fd0
lea ecx, [ebp - 0x240]
call fcn.004065a0
lea ecx, [ebp - 0x258]
call fcn.004065a0
lea ecx, [ebp - 0x228]
call fcn.004065a0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0046100d
mov esp, ebp
pop ebp
ret
Function at 0x40d7b0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0xc]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x40d80b
mov ecx, esi
jmp 0x40d810
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x40d835
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x40d81f
mov eax, dword [eax]
jmp 0x40d803
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmovne eax, esi
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40dbc0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov esi, dword [ebx + 4]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
mov eax, dword [ebx + 0xc]
lea edx, [ecx*8]
add eax, edx
mov dword [esp + 0x14], edx
lea ecx, [ebx + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
cmp esi, eax
je 0x40dc4c
mov esi, dword [esp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x40dc4c
mov ecx, dword [edi]
nop dword [eax + eax]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x40dc91
cmp esi, eax
jne 0x40dc40
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x40dc7a
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x40dcb4
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x40dcd6
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
call fcn.0040d8e0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x40dcbc
mov dword [ecx], edi
jmp 0x40dcd6
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x40dcd6
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0040dcf0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410a40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5281e4], 0
jne 0x410b6a
mov eax, dword [0x5281e8]
test eax, eax
jne 0x410a7f
push 0x18
call fcn.00461023
add esp, 4
mov ecx, eax
call fcn.00410960
mov dword [0x5281e8], eax
test byte [0x51f2d8], 1
je 0x410b6a
cmp dword [eax + 0x14], 8
jb 0x410a94
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 7
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x5281e4], eax
cmp eax, 0xffffffff
je 0x410abc
test eax, eax
jne 0x410b6a
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x410b5a
cmp eax, 0x104
ja 0x410b5a
mov ecx, dword [0x5281e8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00406550
mov ecx, dword [0x5281e8]
call fcn.0040af80
cmp word [eax], 0x5c
je 0x410b15
push 0x4eea78
call fcn.00406500
mov ecx, dword [0x5281e8]
push str.debug.log
call fcn.00406500
mov eax, dword [0x5281e8]
cmp dword [eax + 0x14], 8
jb 0x410b2c
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 7
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x5281e4], eax
cmp eax, 0xffffffff
je 0x410b50
test eax, eax
jne 0x410b6a
mov dword [0x5281e4], 0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
Function at 0x410ba0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x4f91a4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0xc], 0
mov edi, dword [0x528238]
mov ecx, edi
push 0x4ef2b8
call fcn.00415c20
test al, al
jne 0x410bec
push str.vmodule
mov ecx, edi
call fcn.00415c20
test al, al
je 0x410cb7
cmp dword [0x5281d0], 0
je 0x410bf6
int3
mov eax, dword [0x5281ec]
push 0x10
mov dword [0x5281d0], eax
call fcn.00461023
mov esi, eax
mov dword [esp + 0x10], str.vmodule
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 7
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0x4ef2b8
push eax
mov ecx, edi
mov dword [esp + 0x28], 1
call fcn.00415cd0
add esp, 4
mov ecx, edi
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00415cd0
push eax
mov ecx, esi
call fcn.0041fa80
mov dword [0x5281ec], eax
mov eax, dword [esp + 0x30]
cmp eax, 0x10
jb 0x410c75
inc eax
lea ecx, [esp + 0x1c]
push eax
push dword [esp + 0x20]
call fcn.004078e0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
cmp eax, 0x10
jb 0x410ca2
inc eax
lea ecx, [esp + 0x34]
push eax
push dword [esp + 0x38]
call fcn.004078e0
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
mov eax, dword [ebx]
mov dword [0x51f2d8], eax
test al, 1
jne 0x410cd6
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5281e4]
test eax, eax
je 0x410cf0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5281e4], 0
mov edx, dword [0x5281e8]
test edx, edx
jne 0x410d1f
push 0x18
call fcn.00461023
mov edx, eax
add esp, 4
xor eax, eax
mov dword [0x5281e8], edx
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
mov esi, dword [ebx + 4]
cmp word [esi], 0
jne 0x410d2c
xor ecx, ecx
jmp 0x410d40
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410d31
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00407070
cmp dword [ebx + 0xc], 0
jne 0x410d63
mov eax, dword [0x5281e8]
cmp dword [eax + 0x14], 8
jb 0x410d5c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00410a40
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
Function at 0x410e30
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x4f91a4]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00412840
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00412530
mov eax, dword [0x5281e0]
test eax, eax
je 0x410e99
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x410fec
test byte [0x51f2d8], 2
je 0x410eb9
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x410ebe
cmp dword [ebx], 2
jl 0x410efd
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.004b9e83
add esp, 4
push eax
push 1
push esi
push edi
call fcn.004b1f12
push 2
call fcn.004b9e83
add esp, 0x14
push eax
call fcn.004ba2a3
lea edi, [ebx + 8]
add esp, 4
lea esi, [ebx + 0xc]
test byte [0x51f2d8], 1
je 0x410f35
call fcn.00410a40
test al, al
je 0x410f35
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x5281e4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x410fec
mov ecx, dword [0x52827c]
test ecx, ecx
je 0x410f69
sub esp, 8
lea eax, [esp + 0x18]
cmp dword [esp + 0x2c], 0x10
mov edx, esp
cmovae eax, dword [esp + 0x18]
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], eax
call fcn.0041f110
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x410f98
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004a8a50
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.0041f700
add esp, 4
cmp dword [0x5281f0], 0
je 0x410fe2
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00412530
lea eax, [esp + 0x28]
push eax
call dword [0x5281f0]
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, 0x10
jb 0x410fec
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.004078e0
jmp 0x410fec
cmp byte [0x5282f0], 0
jne 0x41103e
int3
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x411004
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.004078e0
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00411740
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.004628d5
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
push 1
call fcn.004b18f2
int3