joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401710
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SystemCurrentControlSetServicesSENSE3
push 0x80000002
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401767
push str.cannt_create_register_key_r_n
call fcn.00401170
add esp, 4
add esp, 0x14
ret
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
lea edx, [esp + 0xc]
push 4
push edx
push 4
push 0
push str.Type
push eax
call esi
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.Start
push edx
call esi
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push 0
push str.ErrorControl
push ecx
call esi
mov edi, str.Extended_Base
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 8]
repne scasb al, byte es:[edi]
not ecx
push ecx
push str.Extended_Base
push 1
push eax
push str.Group
push edx
call esi
mov edi, str.System32Drivers_sense3.sys
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push str.System32Drivers_sense3.sys
push 1
push eax
mov eax, dword [esp + 0x18]
push str.ImagePath
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
test eax, eax
je 0x401818
push str.write_register_key_value_failed_r_n
call fcn.00401170
add esp, 4
add esp, 0x14
ret

Function at 0x401820
Capabilities:
Create service
Delete service

Disassembly:
push esi
push edi
push 0x4080b8
call fcn.004011b0
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
add esp, 4
push 0xf003f
push 0
push 0
call esi
test eax, eax
jne 0x40185e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cannt_open_service_manger_error_code___d_r_n
call fcn.00401170
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
ret
push 0xf003f
push 0
push 0
call esi
mov esi, eax
push 0xf01ff
push str.s3usbnt
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x401894
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x4080c8
call fcn.00401390
add esp, 4
push 0
push 0
push 0
push 0
push 0
push str.System32Driversxusbd.sys
push 0
push 1
push 1
push 0xf01ff
push str.xusbd
push str.xusbd
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
test edi, edi
jne 0x4018e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cannt_create_service_error_code___d_r_n
call fcn.00401170
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
ret
push edi
call esi
pop edi
xor eax, eax
pop esi
ret
Function at 0x401940
Capabilities:
Delete service
Stop service

Disassembly:
push 0x408030
call fcn.00401390
push 0x408040
call fcn.00401390
push 0x408050
call fcn.00401390
push 0x408060
call fcn.00401390
push 0x4080c8
call fcn.00401390
push 0x408070
call fcn.00401390
push 0x408080
call fcn.00401390
push 0x408090
call fcn.00401390
push 0x4080a0
call fcn.00401390
push 0x4080d8
call fcn.00401390
push 0x4080b8
call fcn.00401390
add esp, 0x2c
call fcn.004014f0
dec eax
je 0x4019dc
dec eax
je 0x4019d7
dec eax
je 0x4019d2
push str.unknown_os_version_r_n
call fcn.00401170
add esp, 4
mov eax, 1
ret
jmp 0x401b80
jmp 0x401a00
jmp 0x4019f0
push 0x408070
call fcn.00401390
add esp, 4
xor eax, eax
ret
mov ecx, dword [0x408e80]
xor eax, eax
test ecx, ecx
je 0x401a11
call 0x401a30
mov ecx, dword [0x408e84]
test ecx, ecx
je 0x401a20
jmp 0x401b40
ret
sub esp, 0x1c
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
jne 0x401a63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cannot_open_service_manager_error_code___d_r_n
call fcn.00401170
add esp, 8
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret
push 0xf01ff
push str.Sense3
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cannot_open_service_error_code___d_r_n
call fcn.00401170
add esp, 8
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret
lea eax, [esp + 4]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x401abd
push str.cannt_stop_service__r_n
call fcn.00401170
add esp, 4
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401add
push str.cannt_delete_Sense3_service_r_n
call fcn.00401170
add esp, 4
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret
call fcn.00401af0
xor eax, eax
pop esi
add esp, 0x1c
ret
push esi
push edi
push 0xf003f
push 0
push 0
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
push 0xf01ff
push str.xusbd
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x401b74
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
ret
mov ecx, dword [0x408e80]
xor eax, eax
test ecx, ecx
je 0x401b91
jmp 0x401a30
ret
Function at 0x401a30
Capabilities:
Delete service
Stop service

Disassembly:
push 0x408030
call fcn.00401390
push 0x408040
call fcn.00401390
push 0x408050
call fcn.00401390
push 0x408060
call fcn.00401390
push 0x4080c8
call fcn.00401390
push 0x408070
call fcn.00401390
push 0x408080
call fcn.00401390
push 0x408090
call fcn.00401390
push 0x4080a0
call fcn.00401390
push 0x4080d8
call fcn.00401390
push 0x4080b8
call fcn.00401390
add esp, 0x2c
call fcn.004014f0
dec eax
je 0x4019dc
dec eax
je 0x4019d7
dec eax
je 0x4019d2
push str.unknown_os_version_r_n
call fcn.00401170
add esp, 4
mov eax, 1
ret
jmp 0x401b80
jmp 0x401a00
jmp 0x4019f0
push 0x408070
call fcn.00401390
add esp, 4
xor eax, eax
ret
mov ecx, dword [0x408e80]
xor eax, eax
test ecx, ecx
je 0x401a11
call 0x401a30
mov ecx, dword [0x408e84]
test ecx, ecx
je 0x401a20
jmp 0x401b40
ret
sub esp, 0x1c
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
jne 0x401a63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cannot_open_service_manager_error_code___d_r_n
call fcn.00401170
add esp, 8
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret
push 0xf01ff
push str.Sense3
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cannot_open_service_error_code___d_r_n
call fcn.00401170
add esp, 8
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret
lea eax, [esp + 4]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x401abd
push str.cannt_stop_service__r_n
call fcn.00401170
add esp, 4
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x401add
push str.cannt_delete_Sense3_service_r_n
call fcn.00401170
add esp, 4
or eax, 0xffffffff
pop esi
add esp, 0x1c
ret
call fcn.00401af0
xor eax, eax
pop esi
add esp, 0x1c
ret
push esi
push edi
push 0xf003f
push 0
push 0
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
push 0xf01ff
push str.xusbd
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x401b74
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
ret
mov ecx, dword [0x408e80]
xor eax, eax
test ecx, ecx
je 0x401b91
jmp 0x401a30
ret

Function at 0x401af0
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.SystemCurrentControlSetServicesSENSE3Enum
push 0x80000002
call esi
test eax, eax
je 0x401b14
push str.cannt_delete_register_key_Sense3Enum
call fcn.00401170
add esp, 4
push str.SystemCurrentControlSetServicesSENSE3
push 0x80000002
call esi
test eax, eax
pop esi
je 0x401b30
push str.canntdelete__register_key_Sense3
call fcn.00401170
pop ecx
ret
Function at 0x401ba0
Capabilities:
Get common file path
Terminate process

Disassembly:
sub esp, 0x31c
lea eax, [esp + 0x114]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x124]
push 0x408570
push ecx
call fcn.00402245
mov edi, eax
add esp, 8
test edi, edi
jne 0x401bee
push str.connt_open_application_file_r_n
call fcn.00401170
add esp, 4
push 1
call fcn.00402150
push edi
call fcn.004066a8
push eax
call fcn.00406630
mov esi, eax
push esi
call fcn.00402115
push edi
mov ebp, eax
push 1
push esi
push ebp
call fcn.0040202d
push edi
call fcn.00401fd7
lea edi, [esi - 8]
add esp, 0x20
xor ecx, ecx
xor eax, eax
test edi, edi
mov dword [esp + 0x18], edi
jbe 0x401c31
movsx edx, byte [eax + ebp]
add ecx, edx
inc eax
cmp eax, edi
jb 0x401c26
cmp dword [esi + ebp - 4], ecx
je 0x401c4b
push str.check_sum_invalid_or_not_package_r_n
call fcn.00401170
add esp, 4
push 1
call fcn.00402150
mov ebx, dword [esi + ebp - 8]
lea eax, [esp + 0x228]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp ebx, edi
jae 0x401d27
mov ecx, dword [ebx + ebp]
lea eax, [ebx + ebp]
lea edx, [ebx + ebp + 4]
mov dword [esp + 0x1c], eax
lea ebx, [ebx + ecx + 0x108]
lea edi, [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x20]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x14], edx
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0x20]
push 0x408528
not ecx
mov eax, esi
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call fcn.00402245
mov esi, eax
add esp, 8
test esi, esi
je 0x401d34
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push esi
push 1
mov eax, dword [edx]
add ecx, 0x104
push eax
push ecx
call fcn.00401ecd
push esi
call fcn.00401fd7
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp ebx, eax
jb 0x401c6a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edx, dword [esp + 0x14]
push edx
push str.cnnot_open_file__s_r_n
call fcn.00401170
add esp, 8
push 1
call fcn.00402150
nop
nop
nop
Function at 0x4042e1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4086b8
cmp edx, dword [eax]
je 0x404303
add eax, 8
inc ecx
cmp eax, 0x408748
jl 0x4042f4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4086b8]
jne 0x404431
mov eax, dword [0x408ee0]
cmp eax, 1
je 0x40440b
test eax, eax
jne 0x404334
cmp dword [0x408604], 1
je 0x40440b
cmp edx, 0xfc
je 0x404431
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40436b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004059a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404600
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4043ae
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404600
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407458
push edi
call fcn.00405b20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004059a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004059b0
lea eax, [ebp - 0xa0]
push 0x407438
push eax
call fcn.004059b0
push dword [esi + 0x4086bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004059b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405a90
add esp, 0x2c
pop edi
jmp 0x404431
lea eax, [ebp + 8]
lea esi, [esi + 0x4086bc]
push 0
push eax
push dword [esi]
call fcn.00404600
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42c640
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x464fa8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00426f40
test eax, eax
je 0x42c748
lea ecx, [esp + 0xc]
call fcn.00401650
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00426f40
mov ecx, eax
call fcn.00424700
test eax, eax
je 0x42c72f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42c72f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42c72f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00401850
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42c711
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42c72f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x492c78]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x468d10
call fcn.00401850
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42f4b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x465238
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42f4e9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42f5fc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42f4fd
mov eax, 0xffffffc7
jmp 0x42f5fe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42f50e
cmp dword [esi + 8], eax
jne 0x42f4fd
cmp dword [esi + 8], eax
jne 0x42f527
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42f527
mov eax, 0xffffffc7
jmp 0x42f5fe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42f53b
push eax
mov ecx, ebx
call fcn.0042ece0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401650
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42f56c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401670
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042e450
test eax, eax
mov dword [esp + 0x38], eax
je 0x42f59f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x468d10
call fcn.00401850
mov eax, dword [esp + 0x38]
jmp 0x42f5fe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042f310
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42f5e3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042f330
mov esi, eax
test esi, esi
jne 0x42f613
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042f310
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42f5b5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x468d10
call fcn.00401850
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x468d10
call fcn.00401850
mov eax, esi
jmp 0x42f5fe

Function at 0x432740
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4327a0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4327a0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4327a0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4327a0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4327e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x40a561
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0040a5e0
jae 0x40a56d
xor ecx, ecx
call fcn.0040a5e0
jae 0x40a597
xor eax, eax
call fcn.0040a5e0
jae 0x40a5a8
mov al, 0x10
call fcn.0040a5e0
adc al, al
jae 0x40a589
jne 0x40a5d5
stosb byte es:[edi], al
jmp 0x40a56e
call fcn.0040a5ec
dec ecx
loop 0x40a5b4
mov eax, ebp
call fcn.0040a5ea
jmp 0x40a5d6
lodsb al, byte [esi]
shr eax, 1
je 0x40a5fc
adc ecx, 2
mov ebp, eax
jmp 0x40a5d6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0040a5ea
cmp eax, 0x7d00
jae 0x40a5d4
cmp eax, 0x500
jae 0x40a5d5
cmp eax, 0x7f
ja 0x40a5d6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40a56e
pop ebp
ret 8

Function at 0x4038fa
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret
Function at 0x4013b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x507926
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x51dbb8
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], 1
call fcn.004dd151
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 0
call fcn.004dd151
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 0xffffffff
call fcn.004d7db3
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x507940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
push str.CUTERG01
lea esi, [edi + 0x30]
mov ecx, esi
call fcn.004dd2da
mov eax, dword [edi + 0x18]
mov ecx, dword [0x5581a0]
neg eax
sbb eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 8], ecx
test eax, eax
mov byte [esp + 0x1c], 1
je 0x40149f
add edi, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, edi
call fcn.004d7ecf
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00401da0
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00401da0
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
jne 0x401468
mov edx, dword [esi]
xor ecx, ecx
mov byte [esp + 0x1c], 0
mov eax, dword [edx - 8]
cmp eax, 0x2800
setl cl
mov esi, ecx
lea ecx, [esp + 8]
call fcn.004dd151
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004dd151
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x401b20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5079d8
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [0x5523dc]
push 0x20
mov ebx, eax
inc eax
mov dword [esp + 0x18], 0
mov dword [0x5523dc], eax
call fcn.004dd79a
add esp, 4
test eax, eax
je 0x401b73
mov ecx, dword [0x5581a0]
mov esi, eax
mov dword [eax + 4], ecx
mov edx, dword [0x5581a0]
mov dword [eax + 0x10], edx
jmp 0x401b75
xor esi, esi
mov eax, dword [esp + 0x1c]
mov dword [esi], ebx
lea edx, [edi + 0x30]
mov ecx, dword [eax + 0x1c]
push edx
mov dword [esi + 8], ecx
lea ecx, [esi + 4]
mov dword [esi + 0xc], 0
call fcn.004dd28a
lea eax, [esp + 0x20]
lea ecx, [esi + 0x10]
push eax
call fcn.004dd28a
mov ecx, dword [esp + 0x24]
push 0
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 8]
push 0
push 0
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 4]
push 0
push esi
push 0x401500
mov dword [esi + 0x18], eax
call fcn.004dd9ea
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.004dd151
mov ecx, dword [esp + 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc