joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413e40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599770
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x608554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [edi + 0x30]
or esi, 0xffffffff
mov dword [edi], vtable.CSilentSetPrinterInfoParametersFromCommandline.0
sub edx, 0x10
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413e89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x2c]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413ea3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x28]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413ebd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x24]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413ed7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x20]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413ef1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x1c]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413f0b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x18]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413f25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x14]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413f3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0x10]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413f59
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 0xc]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413f73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 8]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413f8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [edi + 4]
sub edx, 0x10
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x413fa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414ec0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59adff
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x608554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 0
mov dword [esi], 0x5c81b0
mov dword [esi + 0x60], vtable.std::basic_ios_unsigned_short_int__struct_std::char_traits_unsigned_short_int__.0
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov dword [ebp - 0x20], 1
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_istream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov edi, dword [eax + 4]
add edi, esi
mov ecx, edi
call fcn.00413430
lea eax, [esi + 0x10]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x30]
mov dword [ebp - 4], 2
mov ebx, dword [eax + 4]
mov ecx, ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
call fcn.004165e0
add esp, 4
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
cmp ecx, vtable.std::ctype_unsigned_short_int_.0
jne 0x415045
add eax, 0x18
mov byte [ebp - 0x10], 0x20
push eax
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
push eax
push 1
lea eax, [ebp - 0x10]
movlpd qword [ebp - 0x2c], xmm0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0056ed50
movzx ecx, word [ebp - 0x14]
add esp, 0x14
test eax, eax
mov edx, 0xffff
cmovs ecx, edx
movzx eax, cx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 4
test ebx, ebx
je 0x414fe3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
test eax, eax
je 0x414fe3
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 1
cmp dword [edi + 0x38], 0
mov eax, dword [ebp - 0x18]
mov word [edi + 0x40], ax
jne 0x415004
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.004133b0
mov dword [ebp - 4], 5
mov eax, dword [esi]
push ecx
push dword [ebp + 8]
lea ecx, [esi + 0x10]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_istringstream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__.0
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x60]
mov dword [edx + esi - 4], eax
call fcn.00415f10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x20
mov ecx, eax
call edx
movzx eax, ax
jmp 0x414fc2
Function at 0x41c4c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b421
mov eax, dword fs:[0]
push eax
mov eax, 0x10044
call fcn.0056e430
mov eax, dword [0x608554]
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 edi, dword [ebp + 8]
push ecx
push str.CSilentSetPrinterInfoParametersFromSilentIni::LoadAllKeyFromSilentIni
lea ecx, [ebp - 0x10048]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x41c54f
test byte [ecx + 0x1c], 1
je 0x41c54f
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5c82d4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x18
call fcn.00401840
add esp, 0xc
push 0xfffe
xor ebx, ebx
lea eax, [ebp - 0x10010]
push ebx
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x10010]
push dword [esi + 4]
push 0x7fff
push eax
push 0x5c6930
push ebx
push str.Printer_Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 1
jae 0x41c603
mov ebx, 0x80010019
mov byte [ebp - 0x10044], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x41c5d8
test byte [ecx + 0x1c], 1
je 0x41c5d8
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5c82d4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x19
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x10048]
call fcn.0040a570
mov eax, ebx
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.0056d977
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10010]
mov ecx, 0x2f
nop
cmp word [eax], bx
jne 0x41c61e
cmp word [eax + 2], bx
je 0x41c623
mov word [eax], cx
add eax, 2
jmp 0x41c610
lea eax, [ebp - 0x10050]
mov dword [ebp - 0x10050], ebx
push eax
lea eax, [ebp - 0x10010]
push 0x5c84c0
push eax
call fcn.0057c5aa
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41c590
nop
call fcn.00550b4e
test eax, eax
je 0x41c70f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1004c], eax
mov byte [ebp - 4], 1
test esi, esi
je 0x41c6a4
test esi, 0xffff0000
jne 0x41c68e
movzx eax, si
lea ecx, [ebp - 0x1004c]
push eax
call fcn.00403020
jmp 0x41c6b3
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c693
sub eax, edx
sar eax, 1
jmp 0x41c6a6
xor eax, eax
push eax
push esi
lea ecx, [ebp - 0x1004c]
call fcn.00403bb0
lea eax, [ebp - 0x1004c]
mov byte [ebp - 4], 2
push eax
push dword [edi + 8]
mov ecx, edi
call fcn.0055b5b5
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x1004c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41c6ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10050]
push eax
push 0x5c84c0
push 0
call fcn.0057c5aa
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41c650
jmp 0x41c590
push 0x80004005
call fcn.004013a0
int3
Function at 0x427380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c158
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x608554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4273bf
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4273d5
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x427514
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00551063
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x427514
mov ecx, ebx
shr ecx, 4
inc ecx
push 6
movzx ecx, cx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4274bd
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4274bd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4274bd
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + edi]
and ebx, 0xf
jbe 0x427462
cmp edi, ecx
jae 0x4274bd
movzx eax, word [edi]
lea edi, [edi + eax*2]
add edi, 2
sub ebx, 1
jne 0x427450
cmp edi, ecx
jae 0x4274bd
movzx edx, word [edi]
test dx, dx
je 0x4274bd
mov eax, dword [esi - 8]
mov ebx, edx
mov ecx, 1
sub eax, ebx
sub ecx, dword [esi - 4]
or eax, ecx
jge 0x427490
push ebx
lea ecx, [ebp - 0x10]
call fcn.00403b50
movzx edx, word [edi]
mov esi, dword [ebp - 0x10]
movzx ecx, dx
lea eax, [edi + 2]
push ecx
push eax
push ebx
push esi
call fcn.0057455e
push eax
call fcn.004012e0
add esp, 0x14
cmp ebx, dword [esi - 8]
jg 0x42751e
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov eax, 1
jmp 0x4274bf
xor eax, eax
test eax, eax
je 0x427514
cmp dword [esi - 0xc], 0
je 0x42751e
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00427530
mov dword [ebp - 0x14], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x427502
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.004013a0
push 0x80070057
call fcn.004013a0
int3
Function at 0x429aa0
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0x40000
xor esi, esi
call fcn.0055074c
push 0x5c95f0
push dword [ebp + 8]
mov edi, eax
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
call fcn.0057f9ca
add esp, 0x10
test eax, eax
jne 0x429c03
push 0x5c95e8
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0057f9ca
add esp, 0xc
test eax, eax
jne 0x429c03
mov eax, dword [ebp - 4]
test eax, eax
je 0x429bdb
cmp dword [ebp - 8], esi
je 0x429bdb
push 0x40000
push esi
push edi
call fcn.00571c00
push dword [ebp - 4]
push 0x40000
push 1
push edi
call fcn.005805e5
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x429bd3
xor eax, eax
test esi, esi
je 0x429b9f
cmp esi, 0x40
jb 0x429b93
movaps xmm2, xmmword [0x5e7520]
mov ecx, esi
and ecx, 0xffffffc0
nop dword [eax + eax]
movups xmm0, xmmword [edi + eax]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi + eax], xmm1
movups xmm0, xmmword [edi + eax + 0x10]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [edi + eax + 0x10], xmm0
movups xmm0, xmmword [edi + eax + 0x20]
pxor xmm0, xmm2
movups xmmword [edi + eax + 0x20], xmm0
movups xmm0, xmmword [edi + eax + 0x30]
pxor xmm1, xmm0
movups xmmword [edi + eax + 0x30], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x429b50
cmp eax, esi
jae 0x429b9f
not byte [eax + edi]
inc eax
cmp eax, esi
jb 0x429b97
push dword [ebp - 8]
push esi
push 1
push edi
call fcn.0057fffd
add esp, 0x10
cmp esi, 0x40000
jb 0x429bd3
push dword [ebp - 4]
push 0x40000
push 1
push edi
call fcn.005805e5
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x429b31
mov eax, dword [ebp - 4]
mov esi, 1
push eax
call fcn.0057fa93
push dword [ebp - 8]
call fcn.0057fa93
add esp, 8
test edi, edi
je 0x429bf9
push edi
call fcn.00550747
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x42a370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x42a39b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042ad30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x42a3bd
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x42a3bf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x42a443
jg 0x42a3d4
test esi, esi
je 0x42a443
test ecx, ecx
jl 0x42a41d
jg 0x42a3de
test eax, eax
je 0x42a41d
cmp edi, ecx
jg 0x42a3f2
jl 0x42a3e8
cmp esi, eax
jae 0x42a3f2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00571100
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x42a420
mov edx, dword [ebp + 8]
test edi, edi
jl 0x42a443
jg 0x42a42a
test esi, esi
je 0x42a443
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x42a443
push eax
push esi
push 1
push edx
call fcn.0057fffd
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42a460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x42a48b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042ae10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x42a4ad
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x42a4af
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x42a54e
jg 0x42a4cc
test esi, esi
je 0x42a54e
test ecx, ecx
jl 0x42a519
jg 0x42a4d6
test eax, eax
je 0x42a519
cmp ebx, ecx
jg 0x42a4ea
jl 0x42a4e0
cmp esi, eax
jae 0x42a4ea
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00571100
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x42a520
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x42a54e
jg 0x42a52a
test esi, esi
je 0x42a54e
cmp dword [edi + 0x4c], 0
je 0x42a54e
mov ecx, edi
call fcn.0042b350
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.005805e5
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42a950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x42a980
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42a9bc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42a9bc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x42aa8b
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x42a9e4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42aa17
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0057f4f0
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4
mov al, bl
mov byte [ebp - 0x25], al
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x42aaa1
lea ecx, [ebp - 0x25]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
push dword [esi + 0x4c]
movsx eax, al
push eax
call fcn.0057f4f0
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x42aa7b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0057fffd
add esp, 0x10
cmp edi, eax
jne 0x42aa8b
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x42a9a7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x42aa8b
cmp eax, 1
jle 0x42aa5e
cmp eax, 3
jne 0x42aa8b
mov al, byte [ebp - 0x25]
jmp 0x42aa32
Function at 0x42b380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x42b417
cmp byte [esi + 0x3d], 0
je 0x42b417
push 0xffffffffffffffff
call fcn.0042a950
cmp eax, 0xffffffff
je 0x42b3d0
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x42b429
lea edi, [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x28], edi
sub eax, 0
je 0x42b3e2
sub eax, 1
je 0x42b3e6
sub eax, 2
je 0x42b417
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
lea eax, [ebp - 0x24]
sub edi, eax
je 0x42b400
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0057fffd
add esp, 0x10
cmp edi, eax
jne 0x42b3d0
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0056d977
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
mov edi, dword [ebp - 0x28]
jmp 0x42b3c1

Function at 0x42f690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
test eax, eax
je 0x42f798
cmp dword [ebp + 8], edi
je 0x42f798
push ebx
push 8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x42f77f
push 0xa
push 0xfa1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42f6f3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42f6f3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
movzx eax, word [eax]
mov dword [ebp - 4], eax
push esi
push 0xb0
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x42f75e
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 8]
add ecx, 0xc
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x42f742
mov dword [eax], esi
add dword [ecx + 4], 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp + 0xc]
push edx
push eax
call fcn.0041de70
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
push ebx
mov edi, 0x80010002
mov dword [0x6183ec], 2
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
mov edi, 0x80010047
mov dword [0x6183ec], 0x47
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
mov dword [0x6183ec], 1
mov eax, 0x80010001
pop edi
mov esp, ebp
pop ebp
ret 8