joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bb0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x104
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x401be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_open_Service_Control_Manager___OpenSCManager_rc___d__n
call fcn.00402538
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
lea eax, [esp + 8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push str.Streams_Drivers
push ecx
push 0
push 2
push 0x10
push 0
push str.OraclePreInstService
push str.OraclePreInstService
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x401c7e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x431
jne 0x401c59
push str.OraclePreInstService
push str.The__s_already_exists_as_a_service
call fcn.00402538
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
add esp, 0x104
ret
call edi
push eax
push str.OraclePreInstService
push str.Unable_to_create_the_service__s__CreateService_rc___d_
call fcn.00402538
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
add esp, 0x104
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
lea edx, [esp + 8]
push edx
push str.OraclePreInstService
push str._s_installed_n_Executable_location__s__n
call fcn.00402538
add esp, 0xc
pop edi
pop esi
add esp, 0x104
ret

Function at 0x401cb0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_open_Service_Control_Manager___OpenSCManager_rc___d__n
call fcn.00402538
add esp, 8
pop edi
pop esi
add esp, 0x1c
ret
push 0x10024
push str.OraclePreInstService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401d48
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
jne 0x401d26
push str.OraclePreInstService
push str._s_is_not_defined_as_a_service._n
call fcn.00402538
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
add esp, 0x1c
ret
call esi
push eax
push str.OraclePreInstService
push str.Unable_to_delete_the__s__OpenService___d__n
call fcn.00402538
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea ecx, [esp + 8]
push 0x3a98
push ecx
push 0x20
push esi
call fcn.00401f60
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OraclePreInstService
push str.The_service__s_was_deleted.
call fcn.00402538
add esp, 0xc
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x401ec0
Capabilities:
Terminate process

Disassembly:
call fcn.00401f30
push str.OraclePreInstService_n
call fcn.00402538
push str.OraclePreInstService____install___remove____help___n_n
call fcn.00402538
push str.____install____install_create_the_OraclePreInstService_n
call fcn.00402538
push str.________________Service_is_installed_as_Automatic_startup_type._n
call fcn.00402538
push str.________________Service_will_NOT_be_started_as_part_of_install._n
call fcn.00402538
push str.________________Use_the_service_control_panel_to_start_or_re_boot_system_n
call fcn.00402538
push str.____remove_____remove_delete_the_OraclePreinstService_n
call fcn.00402538
push str.________________Service_will_be_stopped_before_deletion_n
call fcn.00402538
push str.____help_______prints_this_help_text_n
call fcn.00402538
add esp, 0x24
push 0
call fcn.00402211
nop
nop
nop
nop
nop
nop
nop

Function at 0x401f60
Capabilities:
Query service status

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x402006
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
cmp edx, ecx
je 0x402006
cmp dword [esp + 0x24], 0xffffffff
je 0x401fb4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esp + 0x10], eax
ja 0x401ff9
test ebp, ebp
je 0x401fcc
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 4]
mov edi, dword [esi + 0x14]
push edx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401f86
mov eax, dword [esi + 4]
cmp ebx, eax
je 0x401fe4
mov edx, dword [esi + 0x18]
mov edi, dword [esi + 0x14]
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401f86
mov eax, dword [esi + 0x14]
cmp eax, edi
jbe 0x402004
mov edx, dword [esi + 0x18]
mov edi, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401f86
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404c8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409140
cmp edx, dword [eax]
je 0x404caf
add eax, 8
inc ecx
cmp eax, 0x4091d0
jl 0x404ca0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409140]
jne 0x404ddd
mov eax, dword [0x4095e4]
cmp eax, 1
je 0x404db7
test eax, eax
jne 0x404ce0
cmp dword [0x408f94], 1
je 0x404db7
cmp edx, 0xfc
je 0x404ddd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404d17
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405df0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404e10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404d5a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404e10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40748c
push edi
call fcn.004062a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405df0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405e00
lea eax, [ebp - 0xa0]
push 0x40746c
push eax
call fcn.00405e00
push dword [esi + 0x409144]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405e00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406215
add esp, 0x2c
pop edi
jmp 0x404ddd
lea eax, [ebp + 8]
lea esi, [esi + 0x409144]
push 0
push eax
push dword [esi]
call fcn.00404e10
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 0x406e3b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4278a4], 0
jne 0x406e79
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406e4f
mov dword [ecx*4 + 0x4278a0], eax
inc ecx
cmp ecx, 0x100
jl 0x406e4a
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406ea6
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4278a0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406e87
not eax
pop ebp
ret 0xc

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

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x402925
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
lea eax, [esp + 0x18]
mov edi, ecx
push eax
call fcn.00402c22
xor ebp, ebp
pop ecx
pop ecx
mov ebx, dword [eax]
mov dword [eax], ebp
cmp dword [esp + 0x14], ebp
je 0x402954
push 4
push dword [esp + 0x18]
call fcn.0040d0ef
pop ecx
pop ecx
lea esi, [edi + 4]
push esi
push ebp
push ebx
push 0x4024db
push ebp
push ebp
call fcn.0041580b
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x402976
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 6
mov dword [esi], ebp
call fcn.00409b67
int3

Function at 0x406dac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x406e2c
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x406e2b
push ebx
mov ebx, 0x4db960
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004014fb
push eax
call fcn.00402b55
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004014fb
push eax
call fcn.00402b55
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42c5b8
mov byte [edi + esi], al
call fcn.0041296e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x406dce
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.00406861
pop edi
pop ebp
ret 0x14

Function at 0x40b5eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40b60c
jl 0x40b603
test edi, edi
jne 0x40b60c
xor eax, eax
xor edx, edx
jmp 0x40b6cd
cmp dword [ebx + 0x38], 0
je 0x40b621
push eax
push edi
push dword [ebp + 8]
call fcn.0040b6d3
jmp 0x40b6cd
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b668
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b668
cmp eax, edi
jb 0x40b642
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040e040
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40b66e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40b6c2
mov ecx, ebx
call fcn.0040ae85
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40b6ad
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00416ce3
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40b6c2
jmp 0x40b680
test edx, edx
je 0x40b6c2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00416ce3
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x420e8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420b30

Function at 0x420e99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420cbf

Function at 0x421293
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040dff0
mov eax, dword [0x4d9a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041ea5f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4212d5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x421431
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042aa20
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4dc3b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00422032
mov ecx, dword [esi*4 + 0x4dc3b0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x42142a
cmp eax, dword [edi + ecx + 0x24]
jne 0x42142a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42142a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00422032
add esp, 0x14
test edx, edx
jl 0x42142a
jg 0x4213a0
test eax, eax
jb 0x42142a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42142a
jl 0x4213ba
cmp dword [ebp - 0x1008], eax
ja 0x42142a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4213d8
test ebx, ebx
je 0x421411
cmp ecx, edi
jae 0x421411
mov al, byte [ecx]
cmp al, 0xd
jne 0x4213f2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4213fe
cmp byte [ecx + 1], 0xa
jne 0x4213fe
inc ecx
jmp 0x4213fe
movzx eax, al
movsx eax, byte [eax + 0x4d9cc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4213d8
cmp edx, ebx
jne 0x4213d8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42142f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040d408
leave
ret
Function at 0x4214d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4dc3b0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421510
cmp byte [ebx], 0xa
jne 0x421510
or byte [eax + edi + 0x28], 4
jmp 0x421515
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x421613
mov al, byte [edx]
cmp al, 0x1a
je 0x4215f5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x421544
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x421569
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x421573
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x421526
jmp 0x421613
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4215f0
cmp dword [ebp - 0xc], 0
je 0x4215f0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4dc3b0]
test byte [eax + edi + 0x28], 0x48
je 0x4215ca
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4215b5
mov byte [esi], dl
jmp 0x4215c6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4dc3b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421613
cmp byte [ebp - 1], 0xa
jne 0x4215d9
cmp esi, ebx
jne 0x4215d9
mov byte [esi], 0xa
jmp 0x421612
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00422050
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421613
mov byte [esi], 0xd
jmp 0x421612
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4dc3b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42160f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421613
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42161c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4dc3b0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42165f
cmp word [esi], dx
jne 0x42165f
or byte [edi + eax + 0x28], 4
jmp 0x421664
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4217b7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x421797
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4216a6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4216dc
cmp eax, edx
jae 0x4216e8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x42167e
jmp 0x4217b7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421793
cmp dword [ebp - 0x14], 0
je 0x421793
mov eax, dword [ebx*4 + 0x4dc3b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42176b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x421734
mov word [esi], cx
jmp 0x421767
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4dc3b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4dc3b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4dc3b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4217b7
pop ebx
cmp word [ebp - 4], bx
jne 0x42177c
cmp esi, dword [ebp + 0xc]
jne 0x42177c
mov word [esi], bx
jmp 0x4217b4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00422050
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4217b7
push 0xd
jmp 0x4217b0
mov ecx, dword [ebx*4 + 0x4dc3b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4217ae
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4217b7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x9dccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dcd1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dcce2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dcd80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dcdd2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dcdd8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f52c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f4f85

Function at 0x9fa0bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f9f3e

Function at 0x9ff670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9ff69d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9ff69d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x344d347a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x730b0441
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x523700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0052378f
jae 0x52370e
xor ecx, ecx
call fcn.0052378f
jae 0x52373d
xor eax, eax
call fcn.0052378f
jae 0x52374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0052378f
adc al, al
jae 0x52372f
jne 0x523779
stosb byte es:[edi], al
jmp 0x523711
call fcn.0052379b
sub ecx, ebx
jne 0x523756
call fcn.00523799
jmp 0x523775
lodsb al, byte [esi]
shr eax, 1
je 0x523783
adc ecx, ecx
jmp 0x523772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00523799
cmp eax, 0x7d00
jae 0x523772
cmp ah, 5
jae 0x523773
cmp eax, 0x7f
ja 0x523774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x523711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8