joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100567ce
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10069040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], edx
mov edi, ecx
mov dword [ebp - 0x1c], edi
movzx esi, word [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], esi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp esi, 0xf
ja 0x100452af
push esi
push 0x20
push edi
mov dword [edi + 0x10], esi
call sub.VCRUNTIME140.dll_memset
mov byte [edi + esi], 0
jmp 0x1004534a
mov edx, dword [edi + 0x14]
mov eax, Ordinal_2
shr edx, 1
mov ecx, esi
sub eax, edx
or ecx, 0xf
cmp dword [edi + 0x14], eax
jbe 0x100452f1
mov ecx, Ordinal_2
mov dword [ebp - 0x14], Ordinal_2
add ecx, 0x23
push ecx
call fcn.10054cf6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10045315
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x14]
jmp 0x1004532f
mov eax, dword [edi + 0x14]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 1]
cmp eax, 0x1000
jb 0x1004531b
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x100453b8
jmp 0x100452d4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test eax, eax
je 0x1004532d
push eax
call fcn.10054cf6
mov ecx, dword [ebp - 0x14]
add esp, 4
jmp 0x1004532f
xor eax, eax
push esi
push 0x20
push eax
mov dword [ebp - 0x18], eax
mov dword [edi], eax
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x18]
mov byte [eax + esi], 0
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 0xf
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], edi
jbe 0x1004536b
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
call esi
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005465b
mov esp, ebp
pop ebp
ret
call fcn.1003a6f0
int3
Function at 0x100460e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005680d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10069040]
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 eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov eax, dword [eax + 0xd0]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
movsx edx, word [eax + 0x62]
lea esi, [eax + 0x5c]
mov eax, dword [0x1006ef6c]
add eax, 0x93b4b0
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0x1c], 7
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
movzx eax, di
mov dword [ebp - 0x18], eax
movsx eax, di
cmp edx, eax
jae 0x10046162
mov edi, dword [ebp - 0x14]
push word [ebp - 0x18]
call dword [ebp - 0x1c]
mov edi, dword [ebp + 0x18]
mov esi, dword [esi]
lea eax, [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add edi, edi
push eax
push 0x40
push edi
push esi
call ebx
push edi
push dword [ebp - 0x20]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push esi
call ebx
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
add esi, 0x88
push esi
call ebx
lea eax, [ebp - 0x14]
mov byte [esi], 1
push eax
push dword [ebp - 0x14]
push 1
push esi
call ebx
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 2
add esi, 0x60
push esi
call ebx
mov eax, dword [ebp - 0x18]
mov word [esi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 2
push esi
call ebx
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x10046210
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10046206
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046206
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
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.1005465b
mov esp, ebp
pop ebp
ret
Function at 0x10046230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10069040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x1006ef68]
lea ecx, [ebp - 4]
push edi
push ecx
movss dword [ebp - 8], xmm0
lea edx, [ebp - 8]
movss xmm0, dword [0x1006e134]
add esi, 0x1126508
push ecx
push edx
lea ecx, [ebp - 0x20]
movss dword [ebp - 0xc], xmm0
mov dword [ebp - 8], 0x10
call fcn.10042460
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
sub edi, edx
sar edi, 2
test edi, edi
je 0x100462ac
nop dword [eax]
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x100462a0
test edx, edx
je 0x100462e2
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100462d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100462d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
test esi, esi
je 0x1004639f
mov edi, dword [0x1006ef68]
lea ecx, [ebp - 0x20]
push ecx
push ecx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], 0x9e0
add edi, 0x1126508
call fcn.10042460
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
sub esi, edx
sar esi, 2
test esi, esi
je 0x10046332
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x10046326
test edx, edx
je 0x1004637d
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004635e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004635e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005465b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100463c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10069040]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x1006ef18]
lea ecx, [ebp - 4]
push esi
mov esi, dword [0x1006ef68]
lea edx, [ebp - 8]
push edi
push ecx
push ecx
push edx
lea ecx, [ebp - 0x20]
mov byte [ebp - 9], al
mov dword [ebp - 8], 0x10
add esi, 0x1126508
call fcn.10042460
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
sub edi, edx
sar edi, 2
test edi, edi
je 0x1004642e
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x10046422
test edx, edx
je 0x10046464
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004645a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004645a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
test esi, esi
je 0x10046539
call fcn.10046550
mov edi, dword [0x1006ef68]
lea edx, [ebp - 0x2c]
mov ecx, eax
mov dword [ebp - 0x2c], 0x10
and ecx, 0xfffffff7
mov dword [ebp - 0x28], 0x6e4
or eax, 8
cmp byte [ebp - 9], 0
cmove eax, ecx
lea ecx, [ebp - 0x24]
push ecx
push ecx
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], eax
add edi, 0x1126508
call fcn.10042460
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
sub esi, edx
sar esi, 2
test esi, esi
je 0x100464cc
nop
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x100464c0
test edx, edx
je 0x10046517
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100464f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100464f8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
mov eax, dword [ebp - 0x24]
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005465b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10046550
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10069040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x1006ef68]
lea ecx, [ebp - 4]
push edi
push ecx
push ecx
lea edx, [ebp - 8]
mov dword [ebp - 8], 0x10
push edx
lea ecx, [ebp - 0x20]
add esi, 0x1126508
call fcn.10042460
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
sub edi, edx
sar edi, 2
test edi, edi
je 0x100465bc
nop word [eax + eax]
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x100465b0
test edx, edx
je 0x100465f2
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100465e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100465e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
test esi, esi
jne 0x1004660b
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005465b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edi, dword [0x1006ef68]
lea ecx, [ebp - 0x20]
push ecx
push ecx
lea edx, [ebp - 0x28]
mov dword [ebp - 0xc], 0
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 0x6e4
add edi, 0x1126508
call fcn.10042460
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
sub esi, edx
sar esi, 2
test esi, esi
je 0x1004665c
nop
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x10046650
test edx, edx
je 0x100466a7
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10046688
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10046688
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea eax, [ebp - 0xc]
push eax
call esi
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push 4
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop edi
pop esi
call fcn.1005465b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100484a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x100484cc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
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 + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x100484f4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100484fa
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10048562
jg 0x10048511
test esi, esi
je 0x10048562
test ecx, ecx
jl 0x1004855d
jg 0x1004851b
test eax, eax
je 0x1004855d
cmp edi, ecx
jg 0x1004852f
jl 0x10048525
cmp esi, eax
jae 0x1004852f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10048565
mov ecx, dword [ebp + 8]
jmp 0x1004856f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10048589
jg 0x1004856f
test esi, esi
je 0x10048589
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10048589
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100485a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x100485cc
jl 0x100485c0
test ecx, ecx
jne 0x100485cc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100485e5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10048633
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10048639
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x10048639
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x100486a6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10048662
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10048694
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x100486a6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10048670
test edi, edi
je 0x100486a6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10048a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10069040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10048a60
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005465b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10048a9c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10048a9c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005465b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10048b73
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10048ac4
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 0x10048ad0
movsx eax, bl
jmp 0x10048b08
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
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 [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10048b32
sub eax, 1
je 0x10048b32
sub eax, 2
jne 0x10048b73
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005465b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10048b50
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10048b73
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005465b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005465b
mov esp, ebp
pop ebp
ret 4
Function at 0x100496b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10069040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1004976c
cmp byte [esi + 0x3d], 0
je 0x1004976c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1004975a
mov ecx, dword [esi + 0x38]
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 [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10049721
sub eax, 1
je 0x10049725
sub eax, 2
jne 0x1004975a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005465b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10049743
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1004975a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005465b
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005465b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1005465b
mov esp, ebp
pop ebp
ret
Function at 0x1004cfc0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100571bf
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x10069040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea esi, [eax + 0x18]
mov dword [ebp - 4], 0
add ecx, 0x18
push esi
mov dword [ebp - 0x18], ecx
call fcn.1003b2b0
push 0x10
mov byte [ebp - 4], 1
call fcn.10054cf6
mov edi, eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x18]
push 0x48
call fcn.10054cf6
add esp, 8
mov dword [edi + 4], eax
mov byte [ebp - 4], 3
mov ecx, edi
push esi
mov dword [edi + 0xc], 0
call fcn.1004ea90
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x100540f7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1005411e
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x10054121
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100540d3
pop esi
leave
ret 8

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4a9f5216
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x658d69f5
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219