joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fdb2
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x1bc
mov eax, 0x417336
call fcn.00414056
mov eax, dword [ebp + 8]
push 0x5c
push eax
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040a42d
push 0x41cb30
push eax
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040a485
add esp, 0x18
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00403933
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40fe08
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x1c0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1c4], eax
cmp eax, 0xffffffff
je 0x40fed6
cmp byte [ebp + 0xc], bl
je 0x40feaf
test byte [ebp - 0x1c0], 0x10
je 0x40feaf
push 2
mov edi, 0x41cb34
lea esi, [ebp - 0x194]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40feaf
push 3
mov edi, 0x41cb38
lea esi, [ebp - 0x194]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40feaf
push 0x5c
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x80]
push eax
call fcn.0040a42d
lea ecx, [ebp - 0x194]
push ecx
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.0040a485
push dword [ebp + 0xc]
mov byte [ebp - 4], 4
push eax
call fcn.0040fdb2
add esp, 0x20
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00403933
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00403933
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40fe25
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403933
call fcn.004140a0
ret
Function at 0x41136a
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
sub eax, ebx
push esi
push edi
je 0x411386
dec eax
je 0x411381
dec eax
jne 0x41138b
push 4
jmp 0x411383
push 2
pop esi
jmp 0x41138e
xor esi, esi
inc esi
jmp 0x41138e
mov esi, dword [ebp - 4]
push 0x41d5c4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, ebx
jne 0x4113b4
mov byte [0x42533d], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_report_messages_to_system_event_log:_RegisterEventSource_failed__error__d__n
jmp 0x41141c
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 1
push ebx
push 0x40000001
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411403
call esi
mov byte [0x42533d], bl
cmp eax, 0x5de
jne 0x4113f6
push str.Unable_to_report_messages_to_system_event_log:_event_log_is_full_n
call fcn.0041130e
jmp 0x411402
push eax
push str.Unable_to_report_messages_to_system_event_log:_ReportEvent_failed__error__d__n
call fcn.0041130e
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test eax, eax
jne 0x411423
mov byte [0x42533d], bl
call esi
push eax
push str.Unable_to_report_messages_to_system_event_log:_DeregisterEventSource_failed__error__d__n
call fcn.0041130e
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411686
Capabilities:
Disable system features via registry on windows
Persist via windows service
Set registry value

Disassembly:
push 0x30
mov eax, 0x4176fa
call fcn.00414056
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
xor edi, edi
push edi
push 0x20006
push edi
push edi
push edi
mov esi, str.SYSTEMCurrentControlSetServicesEventLogApplicationJavaQuickStarterService
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
je 0x4116ce
push eax
push esi
push str.Unable_to_initialize_event_logging:_Could_not_create_the_registry_key_HKEY_LOCAL_MACHINE_s._Error__d_n
call fcn.0041130e
add esp, 0xc
jmp 0x411763
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.0040b656
pop ecx
pop ecx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
jae 0x4116f3
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc ecx
push ecx
push eax
push 2
push edi
push str.EventMessageFile
push dword [ebp - 0x34]
call esi
cmp eax, edi
je 0x41171f
push eax
push str.Unable_to_initialize_event_logging:_Could_not_set_the_event_message_file._Error__d_n
call fcn.0041130e
pop ecx
pop ecx
jmp 0x41174c
push 4
lea eax, [ebp - 0x38]
push eax
push 4
push edi
push str.TypesSupported
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 7
call esi
cmp eax, edi
je 0x411745
push eax
push str.Unable_to_initialize_event_logging:_Could_not_set_the_supported_types._Error__d_n
jmp 0x411716
mov byte [0x42533d], 1
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403933
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00411822
call fcn.004140a0
ret

Function at 0x411769
Capabilities:
Delete registry key

Disassembly:
push 8
mov eax, 0x417727
call fcn.00413fed
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
push 0x41d3e4
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4117c1
cmp eax, 2
jne 0x4117ac
push 0x41d41c
push str.Registry_key_HKEY_LOCAL_MACHINE_s_does_not_exist_n
push 4
call fcn.00411620
jmp 0x4117bc
push eax
push 0x41d454
push str.Could_not_open_the_registry_key_HKEY_LOCAL_MACHINE_s._Error__d_n
call fcn.0041130e
add esp, 0xc
jmp 0x41181c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x41d48c
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x411810
cmp eax, 2
jne 0x4117f8
push 0x41d4ec
push 0x41d504
push str.Registry_value_HKEY_LOCAL_MACHINE_s_s_does_not_exist_n
push 4
call fcn.00411620
jmp 0x41180d
push eax
push 0x41d574
push str.SYSTEMCurrentControlSetServicesEventLogApplication
push str.Could_not_delete_the_registry_value_HKEY_LOCAL_MACHINE_s_s._Error__d_n
call fcn.0041130e
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00411822
call fcn.0041408c
ret
Function at 0x41225f
Capabilities:
Modify service
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x424eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 2
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x44], eax
cmp eax, edi
jne 0x4122b0
cmp byte [ebp + 8], 0
mov esi, 0x41e12c
jne 0x412294
mov esi, 0x41e134
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Unable_to__s_service:_OpenSCManager_failed__error__d__n
call fcn.004115c7
add esp, 0xc
xor al, al
jmp 0x4123e9
push ebx
push 0xf01ff
push 0x41e19c
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
mov dword [ebp - 0x40], ebx
cmp ebx, edi
jne 0x4122f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x4122eb
push 0x41e13c
push 0x41e1b4
call fcn.004115c7
pop ecx
pop ecx
jmp 0x412340
push eax
push 0x41e254
push str.Unable_to_open__s_service:_OpenService_failed__error__d__n
jmp 0x412338
push edi
push edi
push edi
xor eax, eax
cmp byte [ebp + 8], al
push edi
push edi
push edi
sete al
push edi
push 0xffffffffffffffff
lea eax, [eax + eax + 2]
push eax
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x412347
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 8], 0
mov ecx, str.enable
jne 0x412331
mov ecx, str.disable
push eax
push ecx
push str.Unable_to__s_service:_ChangeServiceConfig_failed__error__d__n
call fcn.004115c7
add esp, 0xc
xor al, al
jmp 0x4123e8
cmp byte [ebp + 8], 0
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
je 0x412385
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4123b9
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x3e8
jmp 0x412373
cmp dword [ebp - 0x1c], 2
jne 0x4123b9
push edi
call ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x40]
call esi
test eax, eax
jne 0x41236d
jmp 0x4123b9
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4123b9
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0x3e8
jmp 0x4123a9
cmp dword [ebp - 0x1c], 3
jne 0x4123b9
push edi
call ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x40]
call esi
test eax, eax
jne 0x4123a3
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
mov bl, 1
call esi
test eax, eax
je 0x4123d6
cmp byte [ebp + 8], 0
je 0x4123f7
cmp dword [ebp - 0x38], 4
je 0x4123fd
xor bl, bl
push dword [ebp - 0x44]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x40]
call esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00413fde
leave
ret
cmp dword [ebp - 0x38], 1
jne 0x4123d4
mov bl, 1
jmp 0x4123d6
Function at 0x412401
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x424eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x41243e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_uninstall_service:_OpenSCManager_failed__error__d__n
call fcn.004115c7
pop ecx
pop ecx
xor al, al
jmp 0x41251b
push edi
push 0xf01ff
push str.JavaQuickStarterService
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x412493
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x412479
push 0x41e34c
push str._s_service_does_not_exist_n
call fcn.004115c7
pop ecx
pop ecx
jmp 0x41248c
push eax
push 0x41e37c
push str.Could_not_open__s_service:_OpenService_failed__error__d__n
call fcn.004115c7
add esp, 0xc
xor al, al
jmp 0x41251a
push esi
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4124d8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ebx, 0x3e8
push ebx
call esi
lea eax, [ebp - 0x20]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x4124d1
cmp dword [ebp - 0x1c], 3
jne 0x4124d7
push ebx
call esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call edi
test eax, eax
jne 0x4124c1
pop ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x412502
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x41e3cc
push str.Unable_to_remove__s_service:_DeleteService_failed__error__d__n
call fcn.004115c7
add esp, 0xc
xor al, al
jmp 0x412519
push dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x24]
call esi
call fcn.00411769
mov al, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413fde
leave
ret
Function at 0x412d04
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x424eb0]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x412d38
push eax
push str.Unable_to_initialize_socket_library__error__d_n
call fcn.004115c7
pop ecx
pop ecx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00413fde
add esp, 0x194
ret

Function at 0x412f61
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0x28
mov eax, 0x417882
call fcn.00414056
mov esi, ecx
lea ecx, [esi + 0xc]
mov dword [ebp - 0x34], esi
mov dword [esi], vtable.Socket.0
call fcn.00412d8c
and dword [ebp - 4], 0
push 6
push 1
push 2
mov byte [esi + 0x14], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x412fcf
and dword [ebp - 0x20], 0
push 0xf
pop eax
push eax
push str.socket___failed
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x30], 0
call fcn.00404698
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
push 0x421b08
lea eax, [ebp - 0x30]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov dword [esi + 8], accept
mov eax, esi
call fcn.004140a0
ret

Function at 0x41313f
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424eb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x10
push ecx
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4131b7
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
mov dword [ebp - 0x10], 0xf
cmp eax, 0x274d
jne 0x413194
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x24], al
mov dword [ebp - 8], eax
push 0x421ce0
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR100.dll__CxxThrowException
xor eax, eax
push 0x10
push str.connect___failed
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x24], al
call fcn.00404698
call esi
mov dword [ebp - 8], eax
push 0x421b08
jmp 0x41318b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413fde
leave
ret 4
Function at 0x413237
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x424eb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
cdq
mov ebx, 0x3e8
idiv ebx
mov esi, dword [ebp + 8]
mov ecx, dword [ecx + 4]
sub edi, 0x7fffffff
mov dword [ebp - 0x124], ecx
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x130], eax
imul edx, edx, 0x3e8
neg edi
sbb edi, edi
lea eax, [ebp - 0x130]
and eax, edi
push eax
lea eax, [esi - 1]
xor edi, edi
inc edi
xor ebx, ebx
neg eax
sbb eax, eax
not eax
and eax, ecx
push ebx
neg esi
push eax
sbb esi, esi
mov eax, ecx
not esi
and esi, eax
push esi
push edi
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4132e0
cmp eax, ebx
je 0x4132c8
cmp eax, edi
jne 0x4132e0
xor ecx, ecx
cmp eax, edi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413fde
leave
ret 8
push 0xf
pop eax
push eax
push str.select___failed
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
call fcn.00404698
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
push 0x421b08
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR100.dll__CxxThrowException
int3

Function at 0x413a0e
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
mov esi, ecx
push esi
push 0x41399d
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
pop esi
test eax, eax
jne 0x413a54
call dword [sym.imp.MSVCR100.dll__errno]
push dword [eax]
call dword [sym.imp.MSVCR100.dll_strerror]
push eax
push str.Unable_to_start_thread:__s_n
call fcn.0041130e
add esp, 0xc
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret

Function at 0x413fde
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424eb0]
jne 0x413fe8
repz ret
jmp fcn.00414667
Function at 0x405477
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4181fc]
jne 0x405481
repz ret
jmp fcn.00408f64

Function at 0x411574
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.004089cf
and dword [ebp - 4], 0
cmp dword [0x41a1bc], 0
mov ebx, eax
jne 0x411625
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4116d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4116d6
push eax
call fcn.0040895d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41a1bc], eax
call esi
push eax
call fcn.0040895d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41a1c0], eax
call esi
push eax
call fcn.0040895d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41a1c4], eax
call esi
push eax
call fcn.0040895d
pop ecx
mov dword [0x41a1cc], eax
test eax, eax
je 0x411625
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040895d
pop ecx
mov dword [0x41a1c8], eax
mov eax, dword [0x41a1c8]
cmp eax, ebx
je 0x41167d
cmp dword [0x41a1cc], ebx
je 0x41167d
push eax
call fcn.004089d8
push dword [0x41a1cc]
mov esi, eax
call fcn.004089d8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41167d
test edi, edi
je 0x41167d
call esi
test eax, eax
je 0x411674
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411674
test byte [ebp - 0xc], 1
jne 0x41167d
or dword [ebp + 0x10], 0x200000
jmp 0x4116b6
mov eax, dword [0x41a1c0]
cmp eax, ebx
je 0x4116b6
push eax
call fcn.004089d8
pop ecx
test eax, eax
je 0x4116b6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4116b6
mov eax, dword [0x41a1c4]
cmp eax, ebx
je 0x4116b6
push eax
call fcn.004089d8
pop ecx
test eax, eax
je 0x4116b6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41a1bc]
call fcn.004089d8
pop ecx
test eax, eax
je 0x4116d6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4116d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405451
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040570f
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405490
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42e428], eax
jmp 0x40561a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054aa
test eax, eax
je 0x4055c8
test bl, 2
je 0x4055c8
mov esi, 0x42a828
push edi
push esi
call fcn.00405b91
cmp dword [ebp + 8], 0
je 0x4054c9
push 0x409360
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054cf
push edi
call fcn.00405668
cmp byte [edi], 0
jne 0x4054dd
cmp byte [0x42a828], 0x5c
jne 0x4054e8
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055be
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040564c
cmp byte [eax], 0
je 0x40552e
cmp byte [ebp - 0x1c], 0
je 0x40552e
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405544
mov al, byte [esi + 1]
test al, al
je 0x40559d
cmp al, 0x2e
jne 0x405544
cmp byte [esi + 2], 0
je 0x40559d
push esi
push ebx
call fcn.00405b91
test byte [ebp - 0x14c], 0x10
je 0x405569
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40559d
push dword [ebp + 0xc]
push edi
call fcn.00405451
jmp 0x40559d
push dword [ebp - 4]
push edi
call fcn.00405409
test eax, eax
jne 0x405595
cmp dword [ebp - 4], eax
je 0x40558d
push edi
push 0xfffffffffffffff1
call fcn.00404e7c
push 0
push edi
call fcn.00405a45
jmp 0x40559d
inc dword [0x42e428]
jmp 0x40559d
push edi
push 0xfffffffffffffff2
call fcn.00404e7c
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40550c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055c8
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40561a
cmp dword [ebp - 0xc], esi
jne 0x4055dc
inc dword [0x42e428]
jmp 0x40561a
push edi
call fcn.00405e95
test eax, eax
je 0x40561a
push edi
call fcn.00405621
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405409
test eax, eax
jne 0x405612
cmp dword [ebp - 4], esi
je 0x4055d4
push edi
push 0xfffffffffffffff1
call fcn.00404e7c
push esi
push edi
call fcn.00405a45
jmp 0x40561a
push edi
push 0xffffffffffffffe5
call fcn.00404e7c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x403b52
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4093e8
cmp edx, dword [eax]
je 0x403b74
add eax, 8
inc ecx
cmp eax, 0x409478
jl 0x403b65
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4093e8]
jne 0x403ca2
mov eax, dword [0x409c88]
cmp eax, 1
je 0x403c7c
test eax, eax
jne 0x403ba5
cmp dword [0x407234], 1
je 0x403c7c
cmp edx, 0xfc
je 0x403ca2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403bdc
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004047d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004048c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403c1f
lea eax, [ebp - 0x1a4]
push eax
call fcn.004048c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406488
push edi
call fcn.00404e40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004047d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004047e0
lea eax, [ebp - 0xa0]
push 0x406468
push eax
call fcn.004047e0
push dword [esi + 0x4093ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004047e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404db2
add esp, 0x2c
pop edi
jmp 0x403ca2
lea eax, [ebp + 8]
lea esi, [esi + 0x4093ec]
push 0
push eax
push dword [esi]
call fcn.004048c0
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 0xe4782e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422eec], 0
push esi
jne 0xe47865
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0xe4783f
mov dword [ecx*4 + 0x422ee8], eax
inc ecx
cmp ecx, 0x100
jl 0xe4783a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0xe47896
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ee8]
xor eax, esi
inc ecx
dec edx
jne 0xe47878
pop edi
not eax
pop esi
ret 0xc
Function at 0x1160303
Capabilities:
Encode data using xor

Disassembly:
mov esi, dword [eax]
cmc
xchg edx, eax
or al, 0xa8
sub edx, esp
cwde
imul ebx, dword [ecx + 0x61c3396e], 0x3a86cba9
cmp dword [esi], 0xffffff95
mov edx, 0x261d2611
add al, 0xfb
inc eax
jo 0x1160327
out dx, eax
push cs
push es
xor cl, byte [eax - 0x48cf1a04]
stosb byte es:[edi], al
push edx
push cs
pushal
outsd dx, dword [esi]
mov dh, 0x74
call 0x10f1e452
dec edi
inc esi
in eax, dx
xor dword [esi - 0x19], 0xeb4d2a45
xchg esp, eax
or dword [ecx - 0x796d162b], esi
pop ss
inc ebp
sub al, 0xed
fcmovbe st(0), st(2)
enter 0xffffffffffff8e52, 0x6b
dec eax
not ch
mov dword [ebp*4 + 0x59419ec2], esp
out 0xc1, al
bnd jno 0x1160333
or byte [esi], 0x36
arpl word [esi + 0xeb7b1bd], si
shl byte [esi - 0x5ae524ec], cl
mov byte [edx], dh
mov dword [ebp + edx + 0x52], 0x58547cda
cmc
inc esi
push esp
cmp eax, 0xb8341635
call 0xc5fb021
je 0x1160405
enter 0xffffffffffffe28d, 0xffffffffffffffd1
or byte [ebx], dl
invalid
pop edi
sahf
or al, 0xe3
mov byte [0xe9330bdd], al
dec edi
add dword [ecx + 0xf], edi
sub byte [ecx - 0x78], ah
cmc
dec eax
mov ebx, 0x6cb43054
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219