joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060b6
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.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10005693
Capabilities:
Send data
Send data on socket

Disassembly:
push 4
mov eax, 0x10009cd2
call fcn.10009639
push 1
mov esi, 0xa8
push esi
push str._LIB::SendByte__opcode:__d__byte:__d_n
push dword [0x1000f74c]
call fcn.10003a9a
push dword [0x1000f74c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
push 0x10
call fcn.100084e8
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
add esp, 0x14
mov ecx, eax
call fcn.10003acb
mov edi, eax
push esi
mov ecx, edi
call fcn.10003af3
push 1
call fcn.10003af3
call fcn.10003b17
mov ecx, edi
call fcn.10006c9f
mov eax, dword [edi + 0xc]
push 0
movzx esi, word [eax]
add esi, 2
push esi
push eax
push dword [0x1000f740]
call dword [sym.imp.WS2_32.dll_send]
push eax
push esi
push str._LIB::SendByte__bytestosend:__d__ret:__d_n
push dword [0x1000f74c]
call fcn.10003a9a
push dword [0x1000f74c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
push dword [edi + 0xc]
call fcn.1000872e
push 0x10
push edi
call fcn.10008518
add esp, 0x20
call fcn.10009616
ret 8
Function at 0x100063b2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0x40
push dword [ebp + 8]
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp + 8], 2
jne 0x100063d8
mov word [esi], bx
jmp 0x100063e0
cmp dword [ebp + 8], 1
jne 0x100063e0
mov byte [esi], bl
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
leave
ret

Function at 0x100063f5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
mov ebx, edx
push eax
mov esi, ecx
push 0x40
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push dword [ebp - 4]
call esi
pop esi
pop ebx
leave
ret
Function at 0x10006c9f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1000f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x768c7c]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x768c80]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [0x768c84]
cmp dword [edi + 8], 2
mov esi, dword [edi]
sete bl
mov dword [ebp - 0xc], eax
mov eax, dword [0x768c88]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 8], eax
lea ebx, [ebx*4 + 2]
add esi, ebx
mov dword [ebp - 0x28], ebx
mov ecx, esi
mov dword [ebp - 0x1c], esi
and ecx, 0x80000007
jns 0x10006d02
dec ecx
or ecx, 0xfffffff8
add ecx, 1
je 0x10006d0e
push 8
pop eax
sub eax, ecx
add esi, eax
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 0xc]
mov eax, esi
cdq
add ecx, ebx
and edx, 3
mov dword [ebp - 0x20], ecx
add eax, edx
xor edx, edx
sar eax, 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edx
test eax, eax
jle 0x10006da2
mov edi, dword [ecx + edx*4]
xor esi, esi
mov ebx, dword [ecx + edx*4 + 4]
push 0x20
pop edx
mov ecx, ebx
mov eax, ebx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
and eax, 3
add ecx, ebx
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
sub esi, 0x61c88647
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
shr eax, 0xd
add ecx, edi
and eax, 3
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
xor ecx, eax
add ebx, ecx
sub edx, 1
jne 0x10006d39
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + edx*4], edi
mov dword [ecx + edx*4 + 4], ebx
add edx, 2
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x24]
jl 0x10006d2d
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi + 0xc]
lea ecx, [ebx - 2]
add ecx, esi
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100084da
leave
ret
Function at 0x10006dbe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1000f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x768c7c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x768c80]
mov dword [ebp - 0x10], eax
mov eax, dword [0x768c84]
mov dword [ebp - 0xc], eax
mov eax, dword [0x768c88]
mov dword [ebp - 8], eax
mov eax, edx
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
test eax, eax
jle 0x10006e80
push ebx
push edi
mov edi, dword [esi + edx*4 + 2]
mov ebx, dword [esi + edx*4 + 6]
mov esi, 0xc6ef3720
push 0x20
pop edx
mov ecx, edi
mov eax, edi
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
shr eax, 0xd
add ecx, edi
and eax, 3
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
add esi, 0x61c88647
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shl eax, 4
shr ecx, 5
xor ecx, eax
mov eax, esi
and eax, 3
add ecx, ebx
mov eax, dword [ebp + eax*4 - 0x14]
add eax, esi
xor ecx, eax
sub edi, ecx
sub edx, 1
jne 0x10006e1d
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [esi + edx*4 + 2], edi
mov dword [esi + edx*4 + 6], ebx
add edx, 2
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x20]
jl 0x10006e0d
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100084da
leave
ret
Function at 0x10007b17
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10007b3a
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__]
jmp 0x10007bfa
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x10007b60
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10007b65
xor ecx, ecx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x10007bc6
jg 0x10007b7a
test esi, esi
je 0x10007bc6
test ecx, ecx
jl 0x10007bc1
jg 0x10007b84
test eax, eax
je 0x10007bc1
cmp edi, ecx
jg 0x10007b96
jl 0x10007b8e
cmp esi, eax
jae 0x10007b96
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 4]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10007bc9
mov ecx, dword [ebp + 8]
jmp 0x10007bd3
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10007bee
jg 0x10007bd3
test esi, esi
je 0x10007bee
cmp dword [ebx + 0x4c], 0
je 0x10007bee
push dword [ebx + 0x4c]
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 [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10007bff
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
jg 0x10007c21
jl 0x10007c18
test edi, edi
jne 0x10007c21
xor eax, eax
xor edx, edx
jmp 0x10007cf0
cmp dword [ecx + 0x38], 0
je 0x10007c37
push ebx
push edi
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__::xsgetn_char___long_long___int64__]
jmp 0x10007cf0
mov eax, dword [ecx + 0x1c]
push esi
mov esi, edi
mov edx, dword [eax]
test edx, edx
je 0x10007c82
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x10007c82
cmp eax, edi
jb 0x10007c58
mov eax, edi
mov dword [ebp + 0x10], edi
mov esi, dword [ebp + 8]
push eax
push edx
push esi
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add esi, edx
mov dword [ebp + 8], esi
mov esi, edi
sub esi, edx
mov eax, dword [ecx + 0x2c]
sub dword [eax], edx
mov eax, dword [ecx + 0x1c]
add dword [eax], edx
jmp 0x10007c88
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ecx + 0x4c], 0
je 0x10007ce6
call fcn.10008235
mov edx, dword [ebp + 8]
mov eax, esi
cmp esi, 0xfff
jbe 0x10007cd0
push dword [ecx + 0x4c]
push 0xfff
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp + 8]
mov ecx, 0xfff
add edx, eax
add esp, 0x10
sub esi, eax
mov dword [ebp + 8], edx
cmp eax, ecx
jne 0x10007ce6
cmp esi, ecx
mov ecx, dword [ebp - 4]
ja 0x10007ca0
mov eax, esi
test eax, eax
je 0x10007ce6
push dword [ecx + 0x4c]
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sub edi, esi
mov eax, edi
sbb ebx, 0
mov edx, ebx
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x10007f66
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1000f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10007f89
xor eax, eax
jmp 0x10008047
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x10007fab
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x10007fab
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x10008047
cmp dword [esi + 0x4c], 0
push edi
je 0x10008043
call fcn.10008235
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10007fc7
movsx eax, bl
jmp 0x10008000
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 0x10008015
sub eax, 1
je 0x10008015
dec eax
sub eax, 1
jne 0x10008043
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]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x1000803f
or ebx, eax
jmp 0x1000803f
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10008033
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 0x10008043
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x10008043
mov eax, ebx
jmp 0x10008046
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100084da
leave
ret 4
Function at 0x10008258
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1000f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x100082b0
cmp byte [esi + 0x3d], bl
je 0x100082b0
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100082ea
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, ebx
je 0x100082c1
sub eax, 1
je 0x100082c4
dec eax
sub eax, 1
jne 0x100082ea
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100084da
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100082e2
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 0x100082ea
cmp byte [esi + 0x3d], bl
sete al
jmp 0x100082b2
xor al, al
jmp 0x100082b2
Function at 0x1001255
Capabilities:
Accept command line arguments
Query environment variable
Set registry value
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x1002008]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x428], eax
push 0x104
lea eax, [ebp - 0x420]
push eax
xor edi, edi
push 0x10011e0
mov dword [ebp - 0x42c], edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x10011c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x424], eax
je 0x1001308
and dword [ebp - 0x434], 0
push 0x10011b0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10012f4
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push dword [ebp - 0x428]
push dword [ebp - 0x430]
call edi
mov dword [ebp - 0x42c], eax
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x434]
jmp 0x1001380
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push 0x1001148
push eax
call esi
push edi
lea eax, [ebp - 0x18]
push 0x1001130
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x1001118
lea eax, [ebp - 0x18]
push eax
call ebx
mov eax, dword fs:[0x18]
test eax, eax
je 0x100137f
push dword [eax + 0xbf4]
lea eax, [ebp - 0x218]
push 0x10010e4
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x10010c8
lea eax, [ebp - 0x18]
push eax
call ebx
inc edi
cmp dword [ebp - 0x424], 0
jne 0x1001392
cmp edi, 0xa
jle 0x10012a8
cmp edi, 0xa
jle 0x1001406
lea eax, [ebp - 0x428]
push eax
push 0xf003f
push 0
push 0x10010ac
push 0x80000002
mov dword [ebp - 0x424], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001406
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
pop edi
push edi
lea eax, [ebp - 0x424]
push eax
push edi
push 0
push 0x1001098
push dword [ebp - 0x428]
call esi
push edi
lea eax, [ebp - 0x424]
push eax
push edi
push 0
push 0x100106c
push dword [ebp - 0x428]
mov dword [ebp - 0x424], 1
call esi
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4218eb
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x4300b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x220], ebp
mov ecx, dword [ebp - 0x220]
push 1
push ecx
push 0x422e84
call fcn.00417080
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x401067
mov ebx, str.int___cdecl_KKV::CreateProcessW_wchar_t__wchar_t__
push 0
push ebx
mov edx, str.int___cdecl_KKV::CreateProcessW_wchar_t__wchar_t__
mov ecx, 0x422f2c
lea esi, [ebp - 0x294]
call fcn.0040c280
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x40108c
push ebp
pop ebp
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x21a]
push eax
mov word [ebp - 0x21c], dx
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp - 0x234]
add esp, 0xc
push ecx
push edi
push str._s___s
lea edx, [ebp - 0x21c]
push 0x104
push edx
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x14
push 0x44
lea eax, [ebp - 0x27c]
push 0
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
add esp, 0xc
mov ecx, str.KKV::CreateProcessW
mov dword [ebp - 0x27c], 0x44
mov dword [ebp - 0x250], 0x80
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
call fcn.0040bd20
test eax, eax
jne 0x40113d
lea ecx, [ebp - 0x21c]
push ecx
push str.CreateProcess_path__:_s
xor edx, edx
mov ecx, str.KKV::CreateProcessW
call fcn.00411ce0
mov ebx, eax
call fcn.0040b630
add esp, 8
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x27c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.0040bfc0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e4d2
mov esp, ebp
pop ebp
ret
Function at 0x401300
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42187b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4300b8]
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 - 0x21c], 0
mov dword [ebp - 0x21c], ebp
mov eax, dword [ebp - 0x21c]
push 0
push eax
push 0x4230e8
call fcn.00417080
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40135e
mov edi, str.int___thiscall_CBugReporter::Init_void_
push 0x432b5c
push edi
mov edx, str.int___thiscall_CBugReporter::Init_void_
mov ecx, 0x423160
lea esi, [ebp - 0x234]
call fcn.0040c280
mov dword [ebp - 4], 0
test edi, edi
jne 0x401386
push ebp
pop ebp
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...XLBugHandler.dll
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.XLBugHandler.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x432b74], eax
test eax, eax
jne 0x4013f7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0040bfc0
xor eax, eax
jmp 0x40147e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._XL_SetBugReportRootDir_4
push eax
call esi
mov edx, dword [0x432b74]
push str._XL_InitBugHandler_20
push edx
mov dword [0x432b5c], eax
call esi
mov dword [0x432b60], eax
mov eax, dword [0x432b74]
push str._XL_SetPeerID_4
push eax
call esi
mov ecx, dword [0x432b74]
push str._XL_SetReportShowMode_4
push ecx
mov dword [0x432b64], eax
call esi
mov edx, dword [0x432b74]
push str._XL_SetAlwaysSendReport_4
push edx
mov dword [0x432b68], eax
call esi
mov dword [0x432b6c], eax
mov eax, dword [0x432b74]
push str._XL_AddCrashProcess_12
push eax
call esi
mov dword [0x432b70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.0040bfc0
mov eax, 1
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.0041e4d2
mov esp, ebp
pop ebp
ret
Function at 0x4014a0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x218
mov eax, dword [0x4300b8]
xor eax, esp
mov dword [esp + 0x214], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x401524
pop edi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0041e4d2
add esp, 0x218
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.00418bb0
mov esi, eax
add esp, 4
test esi, esi
je 0x401578
push esi
push edi
push 0
lea eax, [esp + 0x20]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40156f
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x425920
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x401591
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0041e4d2
add esp, 0x218
ret
mov eax, dword [esp + 8]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
movzx eax, word [eax + 8]
push ecx
push edx
push eax
push 0x56
push str._d._d._d._d
push 0x168
push 0x430b40
call dword [sym.imp.MSVCR90.dll__snwprintf]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x23c]
add esp, 0x20
pop esi
pop edi
xor ecx, esp
mov eax, 0x430b40
call fcn.0041e4d2
add esp, 0x218
ret