joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f47
Capabilities:
Create service
Persist via run registry key
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
push str.CreatePoweroffService_start
call fcn.00403cd9
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [ebp + 8]
call fcn.00409cd3
add esp, 0x10
test eax, eax
je 0x40a096
push ebx
mov esi, reloc.WSOCK32.dll_bind
push str.SYSTEMCurrentControlSetServicesP0WER0FFParameters
push esi
call fcn.0040a791
add esp, 0xc
cmp dword [ebx + 0x750], 1
jne 0x409fce
push str.Creating_WIN98_service
call fcn.00403cd9
lea eax, [ebp - 0x104]
push eax
push str.P0WER0FF
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push esi
call fcn.004062c5
add esp, 0x14
test al, al
je 0x409feb
push 0x41b1f0
push dword [ebp + 8]
push ebx
jmp 0x40a083
push str.Creating_real_NT_service
call fcn.00403cd9
pop ecx
xor esi, esi
push 2
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, esi
jne 0x409ffa
push dword [ebp + 8]
push ebx
call fcn.00403ed4
pop ecx
jmp 0x40a095
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x104]
push esi
push eax
push 1
push 2
push 0x110
mov eax, str.P0WER0FF
push 0xf0010
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
cmp ebx, esi
jne 0x40a03e
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00403ed4
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40a096
push str.Starting_service
call fcn.00403cd9
pop ecx
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40a071
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00403ed4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ecx
pop ecx
push ebx
call esi
push edi
call esi
jmp 0x40a096
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x41b1a8
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00403df2
add esp, 0xc
push str.CreatePoweroffService_end
call fcn.00403cd9
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a09b
Capabilities:
Delete service
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push str.RemovePoweroffService_start
call fcn.00403cd9
mov ebx, dword [ebp + 0xc]
pop ecx
cmp dword [ebx + 0x750], 1
jne 0x40a0e9
push str.Deleting_WIN98_service
call fcn.00403cd9
mov dword [esp], str.P0WER0FF
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push reloc.WSOCK32.dll_bind
call fcn.004064b6
add esp, 0xc
test al, al
je 0x40a10a
push 0x41b2c0
jmp 0x40a169
push str.Deleting_NT_service
call fcn.00403cd9
mov dword [esp], 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40a117
push dword [ebp + 8]
push ebx
call fcn.00403ed4
pop ecx
pop ecx
jmp 0x40a191
push 0x10000
push str.P0WER0FF
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40a142
push dword [ebp + 8]
push ebx
call fcn.00403ed4
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40a191
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40a158
push dword [ebp + 8]
push ebx
call fcn.00403ed4
pop ecx
pop ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0x41b294
push dword [ebp + 8]
push ebx
call fcn.00403df2
add esp, 0xc
push str.SYSTEMCurrentControlSetServicesP0WER0FFParameters
push reloc.WSOCK32.dll_bind
call fcn.00406503
push str.RemovePoweroffService_end
call fcn.00403cd9
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40a460
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push str.IsPoweroffServiceRunning_start
call fcn.00403cd9
mov eax, dword [ebp + 0xc]
pop ecx
cmp dword [eax + 0x750], 1
je 0x40a4e9
push closesocket
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40a4e9
push 4
push str.P0WER0FF
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40a4b1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40a4e9
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x40a4ce
call esi
push edi
call esi
jmp 0x40a4e9
call esi
push edi
call esi
cmp dword [ebp - 0x18], 4
jne 0x40a4de
push 1
pop eax
jmp 0x40a4eb
push str.IsPoweroffServiceRunning_stop
call fcn.00403cd9
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40a4ef
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push str.StartPoweroffService_start
call fcn.00403cd9
mov esi, dword [ebp + 0xc]
pop ecx
cmp dword [esi + 0x750], 1
je 0x40a57e
push 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40a52c
push dword [ebp + 8]
push esi
call fcn.00403ed4
pop ecx
jmp 0x40a588
push 0x10
push str.P0WER0FF
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40a556
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00403ed4
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40a589
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40a572
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00403ed4
pop ecx
pop ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push str.StartPoweroffService_end
call fcn.00403cd9
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x40a58d
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push str.StopPoweroffService_start
call fcn.00403cd9
mov ebx, dword [ebp + 0xc]
pop ecx
cmp dword [ebx + 0x750], 1
je 0x40a61e
push 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40a5ce
push dword [ebp + 8]
push ebx
call fcn.00403ed4
pop ecx
jmp 0x40a628
push 0x20
push str.P0WER0FF
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40a5f6
push dword [ebp + 8]
push ebx
call fcn.00403ed4
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40a629
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40a612
push dword [ebp + 8]
push ebx
call fcn.00403ed4
pop ecx
pop ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push str.StopPoweroffService_end
call fcn.00403cd9
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40bbe0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push str.InitializeSockets_start
call fcn.00403cd9
pop ecx
lea eax, [ebp - 0x190]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x40bc1a
push str.InitializeSockets_end_because_WSAStartup_failed
call fcn.00403cd9
pop ecx
or eax, 0xffffffff
leave
ret
cmp byte [ebp - 0x190], 1
jne 0x40bc3e
xor eax, eax
mov al, byte [ebp - 0x18f]
cmp al, 1
jne 0x40bc3e
push str.InitializeSockets_end
call fcn.00403cd9
pop ecx
xor eax, eax
leave
ret
call dword [sym.imp.WSOCK32.dll_WSACleanup]
movzx eax, byte [ebp - 0x190]
push eax
xor eax, eax
mov al, byte [ebp - 0x18f]
movzx eax, al
push eax
push str.InitializeSockets_end__version_d._d
call fcn.00403cd9
add esp, 0xc
push 0xfffffffffffffffe
pop eax
leave
ret
Function at 0x40bcaa
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push str.CreateServerSocket_start
call fcn.00403cd9
mov esi, dword [ebp + 0xc]
or edi, 0xffffffff
pop ecx
cmp dword [esi + 0x120], edi
je 0x40bcd6
push esi
push dword [ebp + 8]
call fcn.0040bf99
pop ecx
pop ecx
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, edi
mov dword [esi + 0x120], eax
jne 0x40bcf3
push str.socket
jmp 0x40bd6b
mov ax, word [esi + 0x228]
mov word [ebp - 0x10], 2
push eax
call dword [sym.imp.WSOCK32.dll_htons]
push 0
mov word [ebp - 0xe], ax
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [esi + 0x120]
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, edi
jne 0x40bd33
push str.bind
jmp 0x40bd6b
push 1
push dword [esi + 0x120]
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, edi
jne 0x40bd4c
push str.listen
jmp 0x40bd6b
push 8
push 0x3e8
push dword [ebp + 8]
push dword [esi + 0x120]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
cmp eax, edi
jne 0x40bd77
push str.WSAAsyncSelect
push esi
call fcn.0040b6b6
pop ecx
mov eax, edi
pop ecx
jmp 0x40bd84
push str.CreateServerSocket_end
call fcn.00403cd9
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40be39
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov al, byte [0x41f314]
push ebx
push esi
push edi
push 0x19
mov byte [ebp - 0x70], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x6f]
push str.ReadFromClientSocket_start
rep stosd dword es:[edi], eax
call fcn.00403cd9
mov esi, dword [ebp + 0xc]
pop ecx
push 0
lea eax, [ebp - 0x70]
push 0x64
push eax
push dword [esi + 0x124]
call dword [sym.imp.WSOCK32.dll_recv]
mov ebx, eax
test ebx, ebx
jne 0x40be8c
push esi
push dword [ebp + 8]
call fcn.0040bf4b
pop ecx
pop ecx
jmp 0x40bf39
cmp ebx, 0xffffffff
jne 0x40beaf
push str.send
push esi
call fcn.0040b6b6
push esi
push dword [ebp + 8]
call fcn.0040bf4b
add esp, 0x10
or eax, ebx
jmp 0x40bf46
and byte [ebp + ebx - 0x70], 0
lea eax, [ebp - 0x70]
push eax
push str.Received_data_from_client:__s
call fcn.00403cd9
and dword [ebp - 8], 0
pop ecx
test ebx, ebx
pop ecx
jle 0x40bf39
mov edi, 0x41f360
mov eax, dword [ebp - 8]
lea esi, [ebp + eax - 0x70]
mov al, byte [ebp + eax - 0x70]
cmp al, 0xa
jne 0x40bef8
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408dbf
add esp, 0xc
and byte [0x41f360], 0
jmp 0x40bf31
cmp al, 0xd
je 0x40bf31
push edi
call fcn.0040c940
cmp eax, 0x1f4
pop ecx
jb 0x40bf1c
push str.Command_too_long
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040832f
jmp 0x40beec
mov al, byte [esi]
and byte [ebp - 1], 0
mov byte [ebp - 2], al
lea eax, [ebp - 2]
push eax
push edi
call fcn.0040c6b0
pop ecx
pop ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
jl 0x40bed1
push str.ReadFromClientSocket_end
call fcn.00403cd9
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c41f
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push str.get_broadcast_addr_start
call fcn.00403cd9
mov esi, dword [sym.imp.WSOCK32.dll_inet_addr]
pop ecx
push dword [esp + 0x14]
call esi
mov edi, dword [sym.imp.WSOCK32.dll_ntohl]
push eax
call edi
push dword [esp + 0x18]
mov ebx, eax
call esi
push eax
call edi
mov ecx, eax
and ecx, ebx
not eax
or ecx, eax
push ecx
call dword [sym.imp.WSOCK32.dll_htonl]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push dword [esp + 0x14]
call fcn.0040c6a0
push dword [esp + 0x18]
push str.get_broadcast_addr_end__addr_s
call fcn.00403cd9
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x40c484
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push esi
mov al, 0xff
push dword [ebp + 0x10]
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], al
push dword [ebp + 0xc]
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov byte [ebp - 7], al
xor eax, eax
lea edi, [ebp - 6]
push str.WakeOnLan_start__ip_s__mask_s__mac_s
mov dword [ebp - 0x1c], 1
stosd dword es:[edi], eax
call fcn.00403cd9
push dword [ebp + 0x10]
lea eax, [ebp - 0x60]
push dword [ebp + 0xc]
push eax
call fcn.0040c41f
mov al, byte [esi + 1]
push eax
call fcn.0040c400
mov bl, al
mov al, byte [esi]
push eax
call fcn.0040c400
shl al, 4
add bl, al
mov al, byte [esi + 2]
push eax
mov byte [ebp - 0x18], bl
call fcn.0040c400
mov bl, al
mov al, byte [esi + 3]
push eax
shl bl, 4
call fcn.0040c400
add bl, al
mov al, byte [esi + 4]
push eax
mov byte [ebp - 0x17], bl
call fcn.0040c400
mov bl, al
mov al, byte [esi + 5]
push eax
shl bl, 4
call fcn.0040c400
add bl, al
mov al, byte [esi + 6]
push eax
mov byte [ebp - 0x16], bl
call fcn.0040c400
mov bl, al
mov al, byte [esi + 7]
push eax
shl bl, 4
call fcn.0040c400
add bl, al
mov al, byte [esi + 8]
push eax
mov byte [ebp - 0x15], bl
call fcn.0040c400
add esp, 0x40
mov bl, al
mov al, byte [esi + 9]
push eax
shl bl, 4
call fcn.0040c400
add bl, al
mov al, byte [esi + 0xa]
push eax
mov byte [ebp - 0x14], bl
call fcn.0040c400
mov bl, al
shl bl, 4
mov al, byte [esi + 0xb]
push eax
call fcn.0040c400
add bl, al
lea eax, [ebp - 0xc]
push 6
push eax
lea eax, [ebp - 0xe0]
mov byte [ebp - 0x13], bl
push eax
call fcn.0040cb80
add esp, 0x18
lea esi, [ebp - 0xda]
push 0x14
pop edi
lea eax, [ebp - 0x18]
push 6
push eax
push esi
call fcn.0040cb80
add esp, 0xc
add esi, 6
dec edi
jne 0x40c59c
lea eax, [ebp - 0x60]
mov word [ebp - 0x2c], 2
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 7
mov dword [ebp - 0x28], eax
call dword [sym.imp.WSOCK32.dll_htons]
push 0
push 2
push 2
mov word [ebp - 0x2a], ax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c5fa
push str.socket
push dword [ebp + 8]
call fcn.0040b6b6
pop ecx
pop ecx
push 0xfffffffffffffffb
pop eax
jmp 0x40c683
lea eax, [ebp - 0x1c]
push 4
push eax
push 0x20
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x40c626
push str.setsockopt
push dword [ebp + 8]
call fcn.0040b6b6
pop ecx
pop ecx
push 0xfffffffffffffffa
jmp 0x40c65f
push str.Sending_magic_packet
call fcn.00403cd9
pop ecx
lea eax, [ebp - 0x2c]
push 0x10
push eax
push 0
lea eax, [ebp - 0xe0]
push 0x7e
push eax
push esi
call dword [sym.imp.WSOCK32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40c66b
push str.sendto
push dword [ebp + 8]
call fcn.0040b6b6
pop ecx
pop ecx
push 0xfffffffffffffff9
pop edi
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, edi
jmp 0x40c683
test esi, esi
jl 0x40c676
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
push str.WakeOnLan_end
call fcn.00403cd9
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x404d5d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x404d6c
pop dword [ebp - 0x20]
mov eax, 0x56e5874b
add eax, 0xa95ac621
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x7b8de9f
add dword [ebp - 0x30], 0x469966ac
mov dword [ebp - 0x2c], 0x1b708521
sub dword [ebp - 0x2c], 0xe93d38dc
mov dword [ebp - 0x28], 0x34ed4a05
add dword [ebp - 0x28], 0x175efa29
mov dword [ebp - 0x24], 0x3b0e28f3
sub dword [ebp - 0x24], 0x3b0e28f3
lea eax, [ebp - 0x30]
push eax
mov eax, 0x40df3c5d
sub eax, 0x409e6c11
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xa93c1c21
add dword [ebp - 0x30], 0xcb364d35
mov dword [ebp - 0x2c], 0x313074a7
sub dword [ebp - 0x2c], 0xefc41332
mov dword [ebp - 0x28], 0x27dd4c56
add dword [ebp - 0x28], 0x3b922016
mov dword [ebp - 0x24], 0x38f6adbf
sub dword [ebp - 0x24], 0x38f6adbf
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x38b33
push 0
call eax
mov ecx, 0xa41bee9a
sub ecx, 0xa41ba99b
xor esi, esi
add esi, eax
mov edx, 0x55cab0e4
sub edx, 0x558900e4
add edx, dword [ebp - 0x20]
mov ebx, 0xdda55cdd
xor dword [ebp - 0x10], 0x448b42e8
mov edi, dword [edx]
sub dword [ebp - 0x1c], 0xc3b130c
xor edi, ebx
add dword [ebp - 0xc], edx
mov dword [esi], edi
sub dword [ebp - 0xc], edx
add esi, 0x46c6798c
sub esi, 0x46c67988
add edx, 0xd302c7d
sub edx, 0xd302c79
loop 0x404e85
add eax, 0x106cf
mov ebx, eax
add eax, 5
mov ecx, 0xf691bdf0
sub ecx, 0xf651bdf0
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x574677
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edi, [ebp*4]
pushal
jmp 0x574699
lea esp, [esp + 2]
lea ebp, [esp + 0x1c]
cmc
jne 0x574615
je 0x574657
adc al, 0x8d
sbb eax, 0x86239764
push ds
mov ebx, gs
xchg edi, eax
out dx, eax
mul cl
mov esi, dword [esp + 0x2c]
lea ebp, [esp + edi]
pushal
pop di
mov bx, 0x5b17
jmp 0x57462b
lea edi, [ebp*4]
pushal
jmp 0x574699
bswap eax
xchg ecx, eax
lea esp, [esp + 2]
mov ecx, ebp
lea esp, [esp + 2]
jmp 0x574647
sub esp, 0x84
mov edi, esp
xchg edx, ebx
mov ecx, 0xe455876
jmp 0x574661

Function at 0x579093
Capabilities:
Encode data using base64

Disassembly:
xor bl, 0x9c
lea edi, reloc.MSVCRT.dll_strncpy
jmp 0x579063

Function at 0x617ef7
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop cx
jmp 0x617d82
setg bl
stc
cpuid
pop ecx
xchg dword [esp + 0xc], eax
rcr bl, 0
jmp 0x617dce
mov ch, byte [esp + 0x19]
xchg dx, si
pop esi
xchg cx, bx
neg cx
jmp 0x617de4
sub esp, 1
bsf dx, sp
lea ebp, [edx + esi]
shr bx, 3
bsr si, ax
mov edi, ebp
jmp 0x617db8
mov ah, byte [esp + 0x10]
std
pop word [esp + 0xc]
sub esp, 0x1f
mov dword [esp + 0xe], eax
xchg byte [esp + 0x2e], ah
jmp 0x617e52
mov bx, 0x19ad
mov ecx, ebp
cmp cl, cl
mov si, ax
bsf si, sp
jmp 0x617e82
xchg word [esp + 0x29], si
mov word [esp + 0x1c], bp
lea ebp, [esp + edx]
pop word [esp + 0xa]
pop esi
not cl
jmp 0x617e15
xchg word [esp], bx
not cx
mov si, word [esp]
mov ax, word [esp + 0x24]
mov eax, 0x6948f407
mov bp, sp
jmp 0x617e2b
lea esp, [esp + 0x2a]
cpuid
bsr cx, dx
lea ebx, [esi + edi]
bswap esi
jmp 0x617ec6
mov dword [esp + 0xa], eax
bt cx, dx
cpuid
neg cl
xchg word [esp + 0x11], dx
jmp 0x617e6c
mov eax, dword [esp]
call fcn.00617eb0
seto bh
sub esp, 5
mov eax, dword [esp + 6]
bswap esi
clc
lea esp, [esp + 8]
jmp 0x617f1f
bt ebx, ebx
lea ebp, [ebp*4]
call fcn.00617efd
cmp bh, byte [ebp + 0x2cc7342d]
or al, 0xfe
dec bh
cpuid
mov cl, byte [esp + 2]
mov dl, byte [esp + 1]
lea esp, [esp]
mov cx, ax
pop ebx
jmp 0x617ee1

Function at 0x6182a9
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov al, ah
lea ecx, reloc.MSVCRT.dll_strncpy
pop ebp
push word [esp + 1]
jmp 0x618345
mov edi, 0xda5cf4ec
jmp 0x618293
mov dx, 0xa693
mov dh, al
inc ax
neg ecx
not edx
bsf bx, cx
jmp 0x618315
lea ebx, [ecx + esi]
cmc
bt ax, si
xchg word [esp], cx
bsf eax, ebp
cmc
jmp 0x6182b0
mov di, 0x5b61
lea esp, [esp + 2]
cpuid
sete ah
jmp 0x618327
dec edi
pop si
mov word [esp], ax
bsf ax, cx
rdtsc
mov dword [esp], edi
jmp 0x6182d8
rdtsc
neg bx
sub esp, 4
cpuid
not dx
xchg byte [esp], dl
jmp 0x6182ee
or ebp, 0x6d2852d6
cmc
bt ebp, edi
mov byte [esp], dh
mov word [esp], sp
mov word [esp], di
jmp 0x61835c
mov edx, 0x3428b501
xchg bh, dh
mov dword [esp], esi
xchg cx, di
pop cx
mov byte [esp], cl
jmp 0x6182c6
lea esp, [esp]
lea edx, reloc.MSVCRT.dll_strncpy
mov si, word [esp + 1]
lea esi, [edx + ebp]
add esp, 0
add esp, 0
jmp 0x6183b3
push word [esp]
add ebp, eax
sub esp, 0xe
lea ebp, [edx*4]
mov byte [esp], bh
mov cx, bx
jmp 0x61839d
Function at 0x61a146
Capabilities:
Access peb ldr_data

Disassembly:
lea esp, [esp + 2]
mov dword [esp + 0x18], esi
push ax
lea esp, [esp + 2]
mov dword [esp + 0x14], edi
lea esp, [esp + 0x14]
jmp 0x61a163
lea esp, [esp + 2]
pushfd
jmp 0x61a11d
mov eax, dword [eax]
jmp 0x61a171
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x61a14d
mov eax, dword [eax + 8]
jmp 0x61a1a8
push eax
jmp 0x61a005
Function at 0x409ac0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4778db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00469f59
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409b42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004677b0
mov eax, dword [eax]
push 0x4c4210
push eax
call fcn.00459874
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046a1e4
test bl, bl
je 0x409b42
push 0x4c4210
lea ecx, [esp + 0xc]
call fcn.0046a5c0
push 0x4c7d8c
lea ecx, [esp + 0xc]
call fcn.0046a5c0
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x409b7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046a1e4
jmp 0x409c49
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409c02
lea edx, [esp + 0x7c]
push 0x4c7d88
push edx
call fcn.00459874
add esp, 8
test eax, eax
je 0x409c02
lea eax, [esp + 0x7c]
push 0x4c7d84
push eax
call fcn.00459874
add esp, 8
test eax, eax
je 0x409c02
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409b92
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046a1e4
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40a440
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a4a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc