joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x57c768], 1
mov dword [0x57c764], 1
mov dword [0x57c760], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x575014], eax
mov eax, dword [0x57c774]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x57c788]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x57c770]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x50c708], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x402830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
cmp dword [esp + 0x24], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jne case.default.0x40284b
cmp eax, 5
ja case.default.0x40284b
jmp dword [eax*4 + 0x50d060]
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov dword [esp], eax
call method.NewDialogCacheHandler.writeback_int_
sub esp, 4
add esp, 0x1c
ret
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov dword [esp], eax
call method.NewDialogCacheHandler.replacement_int_
sub esp, 4
jmp case.default.0x40284b
mov eax, dword [edx + 4]
movzx eax, byte [eax]
mov dword [esp], eax
call method.NewDialogCacheHandler.enabled_bool_
sub esp, 4
jmp case.default.0x40284b
add esp, 0x1c
jmp method.NewDialogCacheHandler.numsets__
add esp, 0x1c
jmp method.NewDialogCacheHandler.blocksize__
add esp, 0x1c
jmp method.NewDialogCacheHandler.degreeassociativity__
Function at 0x408ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x5c
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [method.QDockWidget.qt_metacall_QMetaObject::Call__int__void_]
sub esp, 0xc
test eax, eax
js 0x408f29
test edi, edi
jne 0x408f38
cmp eax, 9
jle 0x408f50
sub eax, 0xa
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp edi, 0xc
jne 0x408f29
cmp eax, 9
jg 0x408f26
mov edx, dword [esi]
mov dword [edx], 0xffffffff
jmp 0x408f26
ja 0x4090fd
jmp dword [eax*4 + 0x50d424]
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x14]
mov ebp, dword [ecx]
lea ecx, [esp + 0x30]
mov edx, dword [edx]
mov dword [esp], edi
mov dword [esp + 0x28], edx
call method.machine::Instruction.Instruction_machine::Instruction_const_
movzx eax, word [edi + 4]
mov edx, dword [edi + 0xc]
sub esp, 4
mov word [esp + 0x34], ax
mov eax, dword [edi + 8]
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], edx
mov edx, dword [edi + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 8], ecx
mov ecx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebp
mov edx, dword [esi + 8]
mov dword [esp + 0x40], eax
movzx edx, word [edx]
mov dword [esp + 4], edx
mov edx, dword [esi + 4]
movzx edx, word [edx]
mov dword [esp], edx
call method.DockPredictorBHT.show_new_prediction_unsigned_short__unsigned_short__machine::PredictionInput__machine::BranchResult__machine::BranchType_
sub esp, 0x14
mov eax, dword [esp + 0x2c]
jmp 0x408f26

Function at 0x409210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x5c
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [method.QDockWidget.qt_metacall_QMetaObject::Call__int__void_]
sub esp, 0xc
test eax, eax
js 0x409249
test edi, edi
jne 0x409258
cmp eax, 9
jle 0x409270
sub eax, 0xa
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp edi, 0xc
jne 0x409249
cmp eax, 9
jg 0x409246
mov edx, dword [esi]
mov dword [edx], 0xffffffff
jmp 0x409246
ja 0x409443
jmp dword [eax*4 + 0x50d44c]
mov edx, dword [esi + 8]
mov ecx, ebx
mov dword [esp + 0x28], eax
movzx edx, word [edx]
mov dword [esp + 4], edx
mov edx, dword [esi + 4]
movzx edx, byte [edx]
mov dword [esp], edx
call method.DockPredictorInfo.update_bhr_unsigned_char__unsigned_short_
sub esp, 8
mov eax, dword [esp + 0x28]
jmp 0x409246
Function at 0x42bb40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
test eax, eax
je 0x42bbd0
cmp eax, 1
jne 0x42bbc9
mov eax, dword [edx + 4]
xor esi, esi
mov edi, dword [eax]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x42bbae
call method.machine::Machine.config__
lea ecx, [esp + 0x1c]
mov dword [esp], eax
call method.machine::MachineConfig.elf___const
sub esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
test ecx, ecx
setne dl
mov esi, edx
mov edx, dword [eax]
test edx, edx
je 0x42bc60
cmp edx, 0xffffffff
je 0x42bbab
lock sub dword [eax], 1
mov eax, dword [esp + 0x1c]
je 0x42bc60
mov eax, dword [ebx + 8]
test edi, edi
jns 0x42bbf0
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
mov eax, esi
movzx esi, al
mov dword [esp], esi
call dword [method.QAction.setEnabled_bool_]
sub esp, 4
add esp, 0x20
pop ebx
pop esi
pop edi
ret
test ebx, ebx
je 0x42bbc9
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0xc
add esp, 0x20
pop ebx
pop esi
pop edi
jmp sym.operator_delete_void__unsigned_int_
mov ecx, dword [eax + 0x24]
mov dword [esp], edi
call method.EditorDock.get_tab_int__const
mov eax, dword [eax + 0x1c]
sub esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp], eax
call method.SrcEditor.filename___const
sub esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
test edx, edx
setne dl
mov edi, edx
mov edx, dword [eax]
test edx, edx
je 0x42bc40
cmp edx, 0xffffffff
je 0x42bc33
lock sub dword [eax], 1
mov eax, dword [esp + 0x1c]
je 0x42bc40
mov eax, dword [ebx + 8]
or esi, edi
jmp 0x42bbb2
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x42bc33
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x42bbab
Function at 0x4676a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 2
je 0x467890
jbe 0x4677b0
cmp eax, 3
jne 0x467820
movzx eax, word [0x53cfd8]
mov byte [ecx], 1
mov dword [ecx + 4], 2
mov word [ecx + 8], ax
mov dword [ecx + 0xc], 0xa
mov dword [ecx + 0x10], 0xa
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 2
mov byte [ecx + 0x1c], 0
mov byte [ecx + 0x88], 0
mov dword [ecx + 0x8c], 3
mov dword [ecx + 0x90], 0
mov dword [ecx + 0x94], 0x2020002
mov byte [ecx + 0x2c], 1
mov dword [ecx + 0x30], 4
mov dword [ecx + 0x34], 2
mov dword [ecx + 0x38], 2
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov byte [ecx + 0x44], 1
mov dword [ecx + 0x48], 4
mov dword [ecx + 0x4c], 2
mov dword [ecx + 0x50], 2
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x60], 4
mov dword [ecx + 0x64], 2
mov dword [ecx + 0x68], 2
mov dword [ecx + 0x6c], 0
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x78], 0x20
mov dword [ecx + 0x80], 0x1111
mov dword [ecx + 0x84], 0
mov byte [ecx + 0x5c], 0
ret 4
movzx edx, word [0x53cfd6]
mov dword [ecx + 0xc], 0xa
mov dword [ecx + 0x10], 0xa
mov word [ecx], dx
movzx edx, word [0x53cfd8]
mov dword [ecx + 0x14], 0
mov word [ecx + 8], dx
mov dword [ecx + 0x18], 2
mov byte [ecx + 0x1c], 0
mov byte [ecx + 0x88], 0
mov dword [ecx + 0x8c], 3
mov dword [ecx + 0x90], 0
mov dword [ecx + 0x94], 0x2020002
test eax, eax
jne 0x467716
mov byte [ecx + 0x2c], 0
mov byte [ecx + 0x44], 0
jmp 0x467787
movzx eax, word [0x53cfd8]
mov dword [ecx + 0xc], 0xa
mov dword [ecx + 0x10], 0xa
mov word [ecx + 8], ax
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 2
mov byte [ecx + 0x1c], 0
mov byte [ecx + 0x88], 0
mov dword [ecx + 0x8c], 3
mov dword [ecx + 0x90], 0
mov dword [ecx + 0x94], 0x2020002
mov dword [ecx + 0x78], 0x20
mov dword [ecx + 0x80], 0x1111
mov dword [ecx + 0x84], 0
ret 4
movzx eax, word [0x53cfd8]
mov byte [ecx], 1
mov dword [ecx + 4], 0
mov word [ecx + 8], ax
mov dword [ecx + 0xc], 0xa
mov dword [ecx + 0x10], 0xa
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 2
mov byte [ecx + 0x1c], 0
mov byte [ecx + 0x88], 0
mov dword [ecx + 0x8c], 3
mov dword [ecx + 0x90], 0
mov dword [ecx + 0x94], 0x2020002
mov byte [ecx + 0x2c], 0
mov byte [ecx + 0x44], 0
jmp 0x467787

Function at 0x46be30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [esp + 0x78]
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], edi
jmp 0x46bfdf
Function at 0x46cbd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
mov edi, dword [esp + 0x58]
mov byte [esp + 0x1f], 0
mov dword [esp + 0x10], edi
lea esi, [esi]
lea esi, [esi]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x50]
mov esi, 4
mov eax, dword [esp + 0x10]
and ebp, 3
and edi, 0xfffffffc
sub esi, ebp
cmp eax, esi
jb 0x46ccf0
lea eax, [ebp + eax - 4]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], eax
cmp esi, 4
jne 0x46cd68
lea eax, [esp + 0x2c]
add ebp, eax
test esi, esi
je 0x46cc49
mov ecx, dword [esp + 0x54]
xor eax, eax
movzx edx, byte [ecx + eax]
mov byte [ebp + eax], dl
add eax, 1
cmp eax, esi
jb 0x46cc3a
mov edx, dword [ebx + 8]
mov ebp, dword [esp + 0x2c]
test edx, edx
je 0x46cc56
bswap ebp
mov eax, dword [ebx + 0xc]
shl eax, 2
cmp edi, eax
jae 0x46cd50
mov eax, ebp
mov ecx, edi
shr ecx, 2
and eax, 1
movzx edx, byte [ebx + ecx + 0x10]
mov byte [ebx + ecx + 0x10], al
cmp al, byte [ebx + 0x12]
je 0x46ccab
mov ecx, ebp
mov byte [ebx + 0x12], al
and ecx, 1
mov byte [esp + 0x18], dl
mov dword [esp + 4], ecx
movzx ecx, byte [ebx + 0x11]
mov byte [esp + 0x14], al
mov dword [esp], ecx
mov ecx, ebx
call method.machine::aclint::AclintMswi.signal_interrupt_unsigned_int__bool__const
sub esp, 8
movzx edx, byte [esp + 0x18]
movzx eax, byte [esp + 0x14]
xor eax, edx
or byte [esp + 0x1f], al
mov dword [esp + 4], ebp
mov ecx, ebx
mov dword [esp], edi
call method.machine::aclint::AclintMswi.write_notification_unsigned_int__unsigned_int_
sub esp, 8
mov eax, dword [esp + 0x10]
add dword [esp + 0x54], esi
add dword [esp + 0x50], esi
test eax, eax
jne 0x46cbf0
mov edi, dword [esp + 0x58]
movzx edx, byte [esp + 0x1f]
add esp, 0x3c
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10
xor eax, eax
mov edx, dword [ebx + 8]
xor esi, esi
mov dword [esp + 0x14], edx
mov edx, dword [ebx + 0xc]
shl edx, 2
cmp edi, edx
jae 0x46cd0f
mov edx, edi
shr edx, 2
movzx esi, byte [ebx + edx + 0x10]
mov dword [esp + 4], esi
mov ecx, ebx
mov dword [esp], edi
mov dword [esp + 0x18], eax
call method.machine::aclint::AclintMswi.read_notification_unsigned_int__unsigned_int__const
mov edx, esi
sub esp, 8
bswap edx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test ecx, ecx
cmovne esi, edx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], eax
jmp 0x46cc2a
mov dword [esp + 4], edi
mov dword [esp], str.WARNING:_ACLINT_MSWI___read_out_of_range__at_0x_zu_._n
call fcn.0046caf0
jmp 0x46ccb1
mov dword [esp + 0x10], esi
jmp 0x46ccf2
Function at 0x493f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4940f9
mov eax, dword [edi + 0x1c]
sub eax, 1
mov dword [edi + 0x1c], eax
jne 0x4940fb
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x494115
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x493fe1
cmp edi, eax
jne 0x493fd8
jmp 0x49413f
cmp edi, eax
je 0x49412f
mov edx, eax
mov eax, dword [eax + 0x2c]
test eax, eax
jne 0x493fd0
mov dword [esp], ecx
call sym._elf_end
mov eax, dword [edi + 0x30]
test eax, eax
je 0x493ff8
mov dword [esp], eax
call sym._free
mov esi, dword [edi + 0x64]
mov dword [esp + 0x1c], 0
test esi, esi
je 0x4940aa
lea esi, [esi]
nop
mov ebx, dword [esi + 0x14]
lea esi, [esi]
nop
test ebx, ebx
je 0x49404c
mov ebp, ebx
mov ebx, dword [ebx + 0x18]
movzx eax, byte [ebp + 0x28]
test al, 2
je 0x49403c
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x49403c
mov dword [esp], ecx
call sym._free
movzx eax, byte [ebp + 0x28]
test al, 1
je 0x494018
mov dword [esp], ebp
call sym._free
test ebx, ebx
jne 0x49401c
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x494076
movzx eax, byte [ebx + 0x28]
test al, 2
je 0x49406e
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x49406e
mov dword [esp], edx
call sym._free
movzx eax, byte [ebx + 0x28]
test al, 1
jne 0x494108
test byte [esi + 0x2c], 1
je 0x494090
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49408c
mov dword [esp], eax
call sym._free
mov dword [esp + 0x1c], esi
mov esi, dword [esi]
test esi, esi
jne 0x494010
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4940aa
mov dword [esp], eax
call sym._free
mov eax, dword [edi + 0x10]
cmp dword [edi + 0xc], eax
je 0x4940be
test eax, eax
je 0x4940be
mov dword [esp], eax
call sym._free
test byte [edi + 0x78], 0x10
je 0x4940d3
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4940d3
mov dword [esp], eax
call sym._free
mov eax, dword [edi + 0x58]
test eax, eax
je 0x4940e2
mov dword [esp], eax
call sym._free
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4940f1
mov dword [esp], eax
call sym._free
mov dword [esp], edi
call sym._free
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call sym._free
jmp 0x494076
test byte [edi + 0x78], 0x40
jne 0x493ff8
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x493ff0
jmp 0x493ff8
lea ecx, [edx + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [ecx], eax
mov ecx, dword [edi + 0x20]
jmp 0x493fe1
add ecx, 0x38
jmp 0x494132
Function at 0x495720
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x3c]
test byte [edi + 0x78], 4
jne 0x4957f0
test ebx, ebx
je 0x4957e0
mov esi, dword [esp + 0x38]
add esi, dword [edi + 0x28]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [edi + 0x18]
mov dword [esp], eax
call sym._lseek
cmp esi, eax
jne 0x495820
mov esi, dword [esp + 0x34]
test esi, esi
je 0x495800
mov edi, dword [edi + 0x18]
xor ebp, ebp
jmp 0x495786
add ebp, eax
cmp ebp, ebx
jae 0x4957e2
mov eax, ebx
mov dword [esp], edi
sub eax, ebp
mov dword [esp + 8], eax
lea eax, [esi + ebp]
mov dword [esp + 4], eax
call sym._read
test eax, eax
je 0x4957c0
cmp eax, 0xffffffff
jne 0x495780
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0xb
je 0x495782
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x495782
lea esi, [esi]
mov dword [0x57c744], 0x1d
cmp esi, dword [esp + 0x34]
je 0x4957e0
mov dword [esp], esi
call sym._free
lea esi, [esi]
nop
xor esi, esi
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x57c744], 6
jmp 0x4957e0
mov dword [esp], ebx
call sym._malloc
mov esi, eax
test eax, eax
jne 0x495773
mov dword [0x57c744], 0x1c
jmp 0x4957e0
mov dword [0x57c744], 0x1b
jmp 0x4957e0

Function at 0x495b20
Capabilities:
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], str.LIBELF_SANITY_CHECKS
mov ebx, dword [esp + 0x20]
call sym._getenv
test eax, eax
je 0x495b55
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._strtol
mov dword [0x50c6f4], eax
mov eax, 1
test ebx, ebx
je 0x495b6f
cmp ebx, 1
je 0x495b78
mov dword [0x57c744], 9
xor eax, eax
add esp, 0x18
pop ebx
ret
mov eax, dword [0x57c748]
mov edx, 1
mov dword [0x57c748], 1
test eax, eax
cmove eax, edx
add esp, 0x18
pop ebx
ret
Function at 0x49b7b0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], 1
mov edx, dword [esp + 8]
jmp sym._xlt_verneed

Function at 0x49b7d0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], 2
mov edx, dword [esp + 8]
jmp sym._xlt_verneed

Function at 0x49c1e0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], 1
mov edx, dword [esp + 8]
jmp sym._xlt_verneed_2

Function at 0x49c200
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], 2
mov edx, dword [esp + 8]
jmp sym._xlt_verneed_2

Function at 0x49d800
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x49d860
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x57c77c]
test esi, esi
jle 0x49d980
mov eax, dword [0x57c780]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x49d894
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x49d917
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x49d880
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x49d9a7
mov eax, dword [0x57c780]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x57c780]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x49d987
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x49d910
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x49d920
add dword [0x57c77c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x57c780]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x49d910
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x49d89e
mov eax, dword [0x57c780]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x49dec0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x57c798
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x57c790]
sub esp, 4
test ebx, ebx
je 0x49df15
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x49df0e
test esi, esi
je 0x49df0e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x49def0
mov dword [esp], 0x57c798
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x49e250
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x49e275
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x49e280
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x49e275
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x49e2c8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x49e2be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x49e2ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x49e2b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4026c0
Capabilities:
Encode data using xor
Get disk size

Disassembly:
push esi
push edi
push 0
push 0
push 0
push str.efbg
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0
push 0x407054
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
push 0
push 0
push 0
push str.ymxs
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push str.kdjfir
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov esi, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x40273e
mov ecx, dword [esp + 0x10]
mov dl, byte [esp + 0x14]
push ebx
push ebp
mov eax, ecx
sub esi, ecx
mov ebp, edi
mov bl, byte [esi + eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x402728
pop ebp
mov byte [edi + ecx], 0
pop ebx
pop edi
pop esi
ret 0xc
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov byte [eax + ecx], 0
ret 0xc

Function at 0x402750
Capabilities:
Get disk information

Disassembly:
sub esp, 0x68
push esi
push edi
push 0
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
push 0xc
push 0
push 0x407144
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
lea edx, [esp + 0x10]
push 0x407140
push edx
call esi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4027d0
push 0x40713c
push 0x407138
push 0x407134
push 0x407130
push 0x40712c
push 0x407128
lea eax, [esp + 0x24]
push str._s_s_s_s_s_s
push eax
call esi
add esp, 0x20
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor ecx, ecx
test eax, eax
je 0x4027fc
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x68
ret
pop edi
mov eax, ecx
pop esi
add esp, 0x68
ret