joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bbb0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x44bbe0
push esi
call fcn.0044c0b0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x44bbd9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x44bc63
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x44bc4f
mov eax, dword [esi + 8]
test eax, eax
je 0x44bc04
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44bc4b
cmp eax, 2
je 0x44bc4f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44bbf7
cmp eax, 3
je 0x44bc2a
cmp eax, 1
jne 0x44bbf7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44bbf7
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44bbf7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0044bc90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44bc83
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0044bc90
add esp, 4
pop esi
ret
Function at 0x473b20
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x473b3a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x473b3a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x475710
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
push 1
call fcn.00477100
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x475743
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0xf4240
mov dword [edx + 0x258], eax
mov ecx, dword [ebp - 4]
push 0x40
mov dword [ecx + 0x25c], eax
push fcn.00499054
mov edx, dword [ebp - 4]
push edx
call fcn.00473ac0
push esi
push eax
call fcn.004990d0
add esp, 0x14
test eax, eax
je 0x47577f
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00477320
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00473b80
mov edi, dword [ebp + 8]
add esp, 0x20
cmp edi, esi
mov ebx, 0x20000
je 0x4757e9
push 0
call fcn.004742b0
mov dl, byte [esi + edi]
mov cl, byte [eax + esi]
add esp, 4
cmp dl, cl
je 0x4757d7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x70]
or ecx, ebx
mov dword [eax + 0x70], ecx
push 0
call fcn.004742b0
mov al, byte [eax + esi]
add esp, 4
inc esi
test al, al
jne 0x4757b8
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x70]
test ebx, eax
je 0x475861
test edi, edi
je 0x47585a
mov bl, byte [edi]
push 0
call fcn.004742b0
mov cl, byte [eax]
add esp, 4
cmp bl, cl
jne 0x47582d
cmp bl, 0x31
jne 0x475822
push 0
call fcn.004742b0
mov dl, byte [edi + 2]
mov cl, byte [eax + 2]
add esp, 4
cmp dl, cl
jne 0x47582d
cmp byte [edi], 0x30
jne 0x475861
cmp byte [edi + 2], 0x39
jge 0x475861
test edi, edi
je 0x47585a
push 0
call fcn.004742b0
push eax
push edi
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x58]
push 0x50
push eax
call fcn.004994e2
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004738e0
add esp, 0x20
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4758af
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb4]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004772f0
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb0]
test eax, eax
jne 0x4758a8
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x4758ec
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004772a0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
push ecx
mov dword [eax + 0xb0], 0
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004771a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00477080
mov edx, dword [ebp - 4]
push edx
call fcn.00475e10
add esp, 0x14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x488a06
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x507268]
cmp dword [eax + 0x224], 0
je 0x488a1f
mov ecx, dword [esp + 4]
mov dword [eax + 0x228], ecx
ret
push ebp
push esi
push edi
push str._nMIRACL_error_from_routine
call fcn.00488c3a
pop ecx
mov eax, dword [0x507268]
mov ecx, dword [eax + 0x1c]
mov ebp, 0x501d9c
cmp ecx, 0x18
jge 0x488a4c
mov eax, dword [eax + ecx*4 + 0x20]
push dword [eax*4 + 0x500ae4]
jmp 0x488a4d
push ebp
call fcn.00488c3a
pop ecx
mov edi, 0x5031d0
push edi
push 0xa
call fcn.00498d9e
mov eax, dword [0x507268]
pop ecx
pop ecx
mov esi, dword [eax + 0x1c]
dec esi
js 0x488ab0
push ebx
lea ebx, [esi*4 + 0x20]
push str.______________called_from
call fcn.00488c3a
cmp esi, 0x18
pop ecx
jge 0x488a96
mov eax, dword [0x507268]
mov eax, dword [ebx + eax]
push dword [eax*4 + 0x500ae4]
jmp 0x488a97
push ebp
call fcn.00488c3a
pop ecx
push edi
push 0xa
call fcn.00498d9e
dec esi
pop ecx
sub ebx, 4
pop ecx
test esi, esi
jge 0x488a75
pop ebx
mov eax, dword [esp + 0x10]
pop edi
dec eax
pop esi
cmp eax, 0x1c
pop ebp
ja case.default.0x488ac1
jmp dword [eax*4 + 0x488bc6]
push str.Number_base_too_big_for_representation_n
jmp 0x488bb9
push str.Division_by_zero_attempted_n
jmp 0x488bb9
push str.Overflow___Number_too_big_n
jmp 0x488bb9
push str.Internal_result_is_negative_n
jmp 0x488bb9
push str.Input_format_error_n
jmp 0x488bb9
push str.Illegal_number_base_n
jmp 0x488bb9
push str.Illegal_parameter_usage_n
jmp 0x488bb9
push str.Out_of_space_n
jmp 0x488bb9
push str.Even_root_of_a_negative_number_n
jmp 0x488bb9
push str.Raising_integer_to_negative_power_n
jmp 0x488bb9
push str.Attempt_to_take_illegal_root_n
jmp 0x488bb9
push str.Integer_operation_attempted_on_Flash_number_n
jmp 0x488bb9
push str.Flash_overflow_n
jmp 0x488bb9
push str.Numbers_too_big_n
jmp 0x488bb9
push str.Log_of_a_non_positive_number_n
jmp 0x488bb9
push str.Flash_to_double_conversion_failure_n
jmp 0x488bb9
push str.I_O_buffer_overflow_n
jmp 0x488bb9
push str.MIRACL_not_initialised___no_call_to_mirsys___n
jmp 0x488bb9
push str.Illegal_modulus__n
jmp 0x488bb9
push str.No_modulus_defined_n
jmp 0x488bb9
push str.Exponent_too_big_n
jmp 0x488bb9
push str.Unsupported_Feature___check_mirdef.h_n
jmp 0x488bb9
push str.Specified_double_length_type_isnt_double_length_n
jmp 0x488bb9
push str.Specified_basis_is_NOT_irreducible_n
jmp 0x488bb9
push str.Unable_to_control_Floating_point_rounding_n
jmp 0x488bb9
push str.Base_must_be_binary__MR_ALWAYS_BINARY_defined_in_mirdef.h____n
jmp 0x488bb9
push str.No_irreducible_basis_defined_n
jmp 0x488bb9
push str.Composite_modulus_n
jmp 0x488bb9
push str.Input_output_error_when_reading_from_RNG_device_node_n
jmp 0x488bb9
push str.Undefined_error_n
call fcn.00488c3a
pop ecx
push 0
call fcn.004991b5
enter 0x488a, 0
ror byte [edx - 1965293496], cl
dec eax
add dh, ah
mov cl, byte [eax]
invalid
Function at 0x496fe9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x497009
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00499ace
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x49702c
test byte [esp + 8], 2
je 0x49702c
call fcn.00499b41
mov dword [eax], 0xd
call fcn.00499b4a
mov dword [eax], 5
jmp 0x497005
xor eax, eax
ret
Function at 0x4ad7a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00495dd0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4ad86b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4ad86b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4ad81e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4ad829
or bh, 8
and edi, 0x8000000
je 0x4ad844
mov eax, dword [0x50aefc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4ad86b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4adc40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4adc6b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4adc8f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4adcaa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4b2310
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b2348
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b1314
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b12eb
jmp 0x4b2354
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4b3c55
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b3c97
call fcn.004c3ab7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4b3c97
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b3c8e
xor eax, eax
jmp 0x4b3c9f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b3ca5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bb1e5
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4cc96c
call fcn.00495cd4
push ecx
push ecx
push esi
push 0x10
call fcn.004b142a
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4bb232
mov ecx, esi
call fcn.004b6411
mov eax, dword [0x5028d8]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.004b0fed
jmp 0x4bb234
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x4e9508
push eax
mov dword [ebp - 0x10], esi
call fcn.0049732f
pop esi
Function at 0x404262
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push esi
mov esi, ecx
jne 0x40435b
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x404291
sub esp, 0x10
call fcn.00404568
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x40435d
cmp eax, 0xf
jne 0x4042a5
lea ecx, [esi + 0x20]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x404289
cmp eax, 0x14
jne 0x4042b5
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
jmp 0x404289
cmp eax, 0x201
jne 0x4042c9
push ecx
push dword [ebp + 0x14]
push ecx
push ecx
call fcn.004044b5
jmp 0x404284
cmp eax, 0x202
jne 0x4042db
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
jmp 0x404289
cmp eax, 0x18
jne 0x404333
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
cmp byte [0x443fac], 0
mov edi, eax
jne 0x404328
xor ecx, ecx
mov byte [0x443fac], 1
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ecx
push eax
push ecx
push esi
push 0x404684
push ecx
push ecx
call fcn.00416bcc
add esp, 0x18
test eax, eax
je 0x404328
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
xor eax, eax
inc eax
pop edi
jmp 0x40435d
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x1c], 1
push ecx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push eax
call fcn.004049fe
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x404289
xor eax, eax
pop esi
pop ebp
ret 0x18

Function at 0x407bed
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push esi
push eax
mov esi, ecx
push eax
push eax
push eax
mov dword [esi], 0x43ca7c
mov dword [esi + 4], eax
or dword [esi + 0xc], 0xffffffff
push str.FreeULoader
mov dword [esi + 8], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
test eax, eax
je 0x407ca6
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 4]
push edi
push 4
push ecx
push 2
push eax
mov dword [ebp - 4], 0x88b8
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407c48
call edi
push 4
lea eax, [ebp - 4]
push eax
push 5
push dword [esi + 4]
call ebx
test eax, eax
jne 0x407c5b
call edi
push 4
lea eax, [ebp - 4]
push eax
push 6
push dword [esi + 4]
call ebx
test eax, eax
jne 0x407c6e
call edi
push 4
pop eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 3
push dword [esi + 4]
call ebx
test eax, eax
jne 0x407c86
call edi
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push 8
push eax
push 0x32
push dword [esi + 4]
mov dword [ebp - 0x10], 1
call ebx
test eax, eax
jne 0x407ca4
call edi
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409083
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x442070]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push str.AMIGOLOADERV2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete cl
test cl, cl
jne 0x4091f6
mov ecx, edi
call fcn.004058a1
call fcn.00401313
mov eax, dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push esi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
mov byte [esp + 0x28], 1
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
lea ecx, [esp + 0x48]
call fcn.00402962
push str.silent
lea ecx, [esp + 0x34]
call fcn.0040192c
mov ecx, dword [0x443c70]
lea eax, [esp + 0x30]
push eax
call fcn.00406239
push esi
push 1
lea ecx, [esp + 0x38]
mov bl, al
call fcn.0040195d
test bl, bl
jne 0x409195
call dword [sym.imp.USER32.dll_GetActiveWindow]
push esi
push esi
lea ecx, [esp + 0x58]
mov edi, eax
call fcn.00401fd6
test eax, eax
jne 0x40916c
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or edi, 0xffffffff
jmp 0x4091ae
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00401d92
push esi
push 0x404894
push edi
push 0x82
push dword [0x442f30]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x4091ac
cmp byte [esp + 0x248], 0
je 0x4091a3
mov edi, esi
jmp 0x4091ae
lea ecx, [esp + 0x48]
call fcn.0040360d
mov edi, eax
cmp byte [esp + 0x246], 0
je 0x4091c2
cmp byte [esp + 0x23c], 0
je 0x4091db
cmp byte [esp + 0x248], 0
jne 0x4091dd
cmp byte [esp + 0x247], 0
jne 0x4091db
call fcn.00408fad
mov esi, edi
lea ecx, [esp + 0x48]
call fcn.00402bef
cmp byte [esp + 0x1c], 0
je 0x4091f6
lea ecx, [esp + 0x14]
call fcn.0040921e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409205
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x254]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040fb4f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409ed0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp byte [edi + 0x24], 0
jne 0x409f75
push esi
xor eax, eax
mov dword [ebp - 4], 0x1388
push eax
push eax
push eax
push eax
push str.FreeULoader
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x409f74
push 4
lea eax, [ebp - 4]
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x409f6d
push 4
lea eax, [ebp - 4]
push eax
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x409f6d
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 3
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x409f6d
lea eax, [edi + 0xc]
cmp dword [eax + 0x14], 8
jb 0x409f4c
mov eax, dword [eax]
xor ecx, ecx
push ecx
push 0x80000000
push ecx
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
je 0x409f6d
push eax
mov byte [edi + 0x24], 1
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40bc9f
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0040bd3c
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40bd32
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40bd2b
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x40bd22
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bd22
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x40bd34
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040bd3c
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40bd7a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x40bd8b
xor al, al
jmp 0x40bdf4
mov ecx, 0x5a4d
push esi
cmp word [eax], cx
jne 0x40bdf1
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x40bdf1
mov edx, dword [ecx + eax + 0x98]
xor ecx, ecx
lea esi, [edx + eax]
test edx, edx
jne 0x40bdb4
mov esi, ecx
test esi, esi
je 0x40bdf1
lea eax, [esi + 8]
test eax, eax
je 0x40bdf1
cmp byte [eax], 0x30
lea edx, [eax + 1]
jne 0x40bde3
mov al, byte [edx]
cmp al, 0x82
jne 0x40bde3
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, 0x13
add ecx, eax
and ecx, 0xffffff8
test ecx, ecx
je 0x40bdf1
mov dword [edi + 0x14], ecx
mov al, 1
mov dword [edi + 0x18], esi
jmp 0x40bdf3
xor al, al
pop esi
pop edi
pop ebp
ret 4