joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eab0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5008
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x3e8], 0
jle 0x40ec1c
nop word [eax + eax]
xor esi, esi
cmp byte [edi + 0xc7], 0
jne 0x40ec63
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x40eaf2
dec dword [edi + 0x3e8]
call fcn.0040a260
mov ecx, eax
test ecx, ecx
je 0x40ec75
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push dword [edi + 0x3e8]
push 0x4c25fc
push eax
call fcn.00409ab0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ebx, dword [edi + 0x224]
sub ebx, 0x10
lea esi, [eax - 0x10]
cmp esi, ebx
je 0x40ebec
cmp dword [ebx + 0xc], 0
jl 0x40ebdd
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x40ebdd
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x40eb8a
cmp ecx, dword [esi]
jne 0x40eb8a
mov dword [ebp - 0x14], esi
lock inc dword [eax]
jmp 0x40ebb8
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ec7f
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
lea ecx, [esi + 0x10]
mov edx, dword [esi + 4]
inc edx
push edx
push ecx
lea ecx, [eax + 0x10]
call fcn.00409880
add esp, 8
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40ebcf
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [edi + 0x224], eax
jmp 0x40ebec
push dword [eax - 0xc]
lea ecx, [edi + 0x224]
push eax
call fcn.00409700
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40ec0f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x3e8], 0
jg 0x40eaf0
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x3e4]
call dword [eax + 0x60]
push 0
push dword [edi + 0x54]
mov dword [edi + 0x68], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x200
push dword [edi + 0x54]
mov byte [edi + 0xc7], 1
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0
push dword [edi + 0x54]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040a360
call fcn.00409840
int3
Function at 0x40f5a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
mov edi, ecx
call fcn.00406670
test al, al
jne 0x40f628
push ebx
mov ebx, dword [ebp + 0xc]
movzx eax, bx
shr ebx, 0x10
cmp byte [edi + 0xc8], 0
mov dword [ebp + 0xc], eax
jne 0x40f627
mov eax, dword [edi + 0xd4]
xor esi, esi
mov ecx, dword [edi + 0xd0]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x40f627
nop
mov ecx, dword [ecx + esi*4]
mov edx, dword [ecx + 4]
mov al, byte [ecx + 0x31]
test edx, edx
jne 0x40f5fb
test al, al
je 0x40f611
cmp byte [ecx + 0x30], dl
jne 0x40f611
push dword [edi + 4]
jmp 0x40f606
test al, al
je 0x40f611
cmp byte [ecx + 0x30], 0
jne 0x40f611
push edx
mov eax, dword [ecx]
push 1
push ebx
push dword [ebp + 0xc]
call dword [eax + 0x10]
mov eax, dword [edi + 0xd4]
inc esi
mov ecx, dword [edi + 0xd0]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f5e0
pop ebx
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x200
push dword [edi + 0x54]
call esi
push 0
push dword [edi + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x200
push dword [edi + 0x54]
mov byte [edi + 0xc7], 1
call esi
pop edi
pop esi
pop ebp
ret 8

Function at 0x40f670
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
mov edi, ecx
call fcn.00407010
mov ecx, esi
movzx eax, si
shr ecx, 0x10
cmp eax, dword [edi + 0x14]
jg 0x40f6b6
cmp ecx, dword [edi + 0x18]
jg 0x40f6b6
mov eax, dword [edi + 0x104]
cmp ecx, eax
jle 0x40f6fc
sub ecx, eax
mov eax, ecx
cdq
idiv dword [edi + 0x108]
mov dword [edi + 0x10c], eax
pop edi
pop esi
pop ebp
ret 8
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 0
push dword [edi + 0x54]
mov byte [edi + 0xfc], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x200
push dword [edi + 0x54]
mov byte [edi + 0xc7], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 4]
push 0
push 0
push 0xfbd
push dword [eax + 0x54]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
ret 8
Function at 0x415f20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a54eb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4e100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00409480
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.00409480
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41d0d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 0x10], 0
je 0x41d0e8
mov dword [ebp - 8], 1
jmp 0x41d0ef
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
xor ecx, ecx
jne 0x41d0f5
cmp dword [ebp - 0x14], 0
jne 0x41d109
push 0x80004005
call fcn.0040a360
xor edx, edx
jne 0x41d0d9
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41d250
cmp dword [ebp + 8], 0
je 0x41d250
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jbe 0x41d23f
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jbe 0x41d225
cmp dword [ebp - 4], 2
jbe 0x41d176
cmp dword [ebp - 4], 7
je 0x41d1bb
jmp 0x41d225
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x41d19b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x41d1b6
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + ecx], dx
mov eax, 0xd
jmp 0x41d253
jmp 0x41d23d
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x41d20b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jb 0x41d20b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shr edx, 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
jne 0x41d20b
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jbe 0x41d223
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shr edx, 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 4]
test ecx, ecx
je 0x41d223
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx + eax], cx
mov eax, 0xd
jmp 0x41d253
jmp 0x41d23d
mov eax, 2
imul ecx, eax, 0
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + ecx], dx
mov eax, 0xd
jmp 0x41d253
jmp 0x41d250
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + edx], ax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x41d319
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41d35c
mov eax, dword [ebp - 8]
jmp 0x41d3c2
cmp dword [ebp - 0xc], 1
je 0x41d36f
cmp dword [ebp - 0xc], 2
je 0x41d36f
mov eax, 0xd
jmp 0x41d3c2
cmp dword [ebp + 0xc], 0
je 0x41d3b6
cmp dword [ebp - 4], 0
je 0x41d3a5
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x41d39c
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x41d3a3
mov eax, 0xd
jmp 0x41d3c2
jmp 0x41d3b6
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41d510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x41d519
cmp dword [ebp + 0xc], 0
je 0x41d52c
mov dword [ebp - 4], 1
jmp 0x41d533
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x41d546
mov eax, 0xd
jmp 0x41d575
xor edx, edx
jne 0x41d51d
mov eax, dword [ebp + 0xc]
push eax
call fcn.00438f93
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ebd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41ec31
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x3a4]
test edx, edx
je 0x41ec10
push 5
push 0
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x108
call sym.Install_adv.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
push 0x4c2378
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x380]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x60]
call edx
push 2
mov ecx, dword [ebp - 4]
call fcn.00408a80
mov esp, ebp
pop ebp
ret 4

Function at 0x429580
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6136
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x158
mov eax, dword [0x4e100c]
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 dword [ebp - 0x10], esp
mov byte [ebp - 0x89], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4295d2
mov al, byte [ebp - 0x89]
jmp 0x4296c0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0xb0]
call sym.Install_adv.exe_public:_void___thiscall_Json::Value::constructor_enum_Json::ValueType_
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
mov ecx, dword [ebp + 0xc]
call sym.Install_adv.exe_public:_class_Json::Value____thiscall_Json::Value::operator_class_Json::Value__
lea ecx, [ebp - 0xb0]
call sym.Install_adv.exe_public:_void___thiscall_Json::Value::destructor_void_
push 1
lea ecx, [ebp - 0x168]
call fcn.00429f20
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 1
push 0x40
push 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x168]
call fcn.00429ec0
lea ecx, [ebp - 0x88]
call sym.Install_adv.exe_public:_void___thiscall_Json::Reader::constructor_void_
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 2
push 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x88]
call sym.Install_adv.exe_public:_bool___thiscall_Json::Reader::parse_class_std::basic_istream_char__struct_std::char_traits_char_____class_Json::Value___bool_
mov byte [ebp - 0x8a], al
mov dl, byte [ebp - 0x8a]
mov byte [ebp - 0x89], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call sym.Install_adv.exe_public:_void___thiscall_Json::Reader::destructor_void_
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x168]
call fcn.00429aa0
jmp 0x4296a2
mov dword [ebp - 4], 0xffffffff
jmp 0x4296ba
mov al, byte [ebp - 0x89]
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.0042eb1e
mov esp, ebp
pop ebp
ret
Function at 0x42a290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x42a3ae
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x42a2c8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0042aca0
jmp 0x42a3c2
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.0042bf90
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x42a35c
jg 0x42a2f0
cmp dword [ebp + 0xc], 0
jbe 0x42a35c
cmp dword [ebp - 8], 0
jl 0x42a35c
jg 0x42a2fe
cmp dword [ebp - 0xc], 0
jbe 0x42a35c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x42a31c
jl 0x42a310
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x42a31c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0042c190
push eax
call fcn.00417c80
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0042c010
cmp dword [ebp + 0x10], 0
jl 0x42a39e
jg 0x42a36a
cmp dword [ebp + 0xc], 0
jbe 0x42a39e
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x42a39e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004393ce
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x42a3c2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0042aca0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42a3d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x42a4f6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x42a408
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0042adc0
jmp 0x42a50a
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.0042c050
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x42a49c
jg 0x42a430
cmp dword [ebp + 0xc], 0
jbe 0x42a49c
cmp dword [ebp - 8], 0
jl 0x42a49c
jg 0x42a43e
cmp dword [ebp - 0xc], 0
jbe 0x42a49c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x42a45c
jl 0x42a450
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x42a45c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.0042c1b0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00417c80
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.0042c130
cmp dword [ebp + 0x10], 0
jl 0x42a4e6
jg 0x42a4aa
cmp dword [ebp + 0xc], 0
jbe 0x42a4e6
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x42a4e6
mov ecx, dword [ebp - 4]
call fcn.0042bab0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0043bd34
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x42a50a
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.0042adc0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42a960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4e100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2c], ecx
call fcn.0041ac40
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00427e10
add esp, 8
movzx edx, al
test edx, edx
je 0x42a9a5
lea eax, [ebp + 8]
push eax
call fcn.00427e40
add esp, 4
jmp 0x42ab26
mov ecx, dword [ebp - 0x2c]
call fcn.0042c190
test eax, eax
je 0x42a9e7
mov ecx, dword [ebp - 0x2c]
call fcn.0042c190
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.0042c110
cmp esi, eax
jae 0x42a9e7
lea ecx, [ebp + 8]
push ecx
call fcn.00427df0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x2c]
call fcn.0042bfc0
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x42ab26
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x42a9fa
call fcn.0041ac40
jmp 0x42ab26
mov ecx, dword [ebp - 0x2c]
call fcn.0042bab0
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x42aa49
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.00427df0
add esp, 4
movzx ecx, al
push ecx
call fcn.00429480
add esp, 8
movzx edx, al
test edx, edx
je 0x42aa39
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x42aa41
call fcn.0041ac40
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x42ab26
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.00427df0
add esp, 4
mov byte [ebp - 0x2e], al
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call fcn.0042b500
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x42ab21
cmp dword [ebp - 0x34], 1
jle 0x42aaa4
cmp dword [ebp - 0x34], 3
je 0x42aaf1
jmp 0x42ab21
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x42aad6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.004393ce
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x42aad6
call fcn.0041ac40
jmp 0x42ab26
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2e]
cmp dword [ebp - 0x4c], edx
je 0x42aaea
mov eax, dword [ebp + 8]
jmp 0x42ab26
call fcn.0041ac40
jmp 0x42ab26
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2e]
push edx
call fcn.00429480
add esp, 8
movzx eax, al
test eax, eax
je 0x42ab14
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
jmp 0x42ab1c
call fcn.0041ac40
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x42ab26
call fcn.0041ac40
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042eb1e
mov esp, ebp
pop ebp
ret 4