joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418a92
Capabilities:
Check os version
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
push esi
lea eax, [ebp - 0xe8]
push edi
push eax
mov dword [ebp - 0xe8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xe4], 6
jb 0x418bb1
lea eax, [ebp - 0x18]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
mov edi, 0x20019
push esi
push edi
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPolicies
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x418bb1
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push str.System
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x418b13
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x418bb1
push 4
lea eax, [ebp - 0xc]
pop edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.ConsentPromptBehaviorAdmin
mov dword [ebp - 8], edi
push dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418bb1
cmp dword [ebp - 8], edi
jne 0x418bb1
cmp dword [ebp - 0xc], edi
jne 0x418bb1
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x4363a4], eax
call edi
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x1ec]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x48], str.runas
mov dword [ebp - 0x40], str._dis_auc
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
leave
ret
Function at 0x418bb5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPolicies
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x418c6f
lea eax, [ebp - 8]
push eax
push 0x2001f
push ebx
push str.System
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x418c10
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x418c6f
push 4
lea eax, [ebp - 0x14]
pop esi
mov edi, str.ConsentPromptBehaviorAdmin
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
mov dword [ebp - 0x10], esi
push dword [ebp - 8]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418c6f
cmp dword [ebp - 0x10], esi
jne 0x418c6f
cmp dword [ebp - 0x14], esi
jne 0x418c6f
mov eax, dword [ebp - 4]
push esi
mov dword [0x4363a4], eax
lea eax, [ebp - 4]
push eax
push esi
push ebx
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x418d4e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, 0x63
mov byte [0x43c50e], bl
mov dword [0x4363a4], eax
je 0x418ddf
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPolicies
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x418ddf
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push str.System
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x418db5
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x418ddf
push esi
push 4
push 0x4363a4
push 4
push ebx
push str.ConsentPromptBehaviorAdmin
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp + 8]
call esi
pop esi
pop ebx
leave
ret
Function at 0x419184
Capabilities:
Check os version
Create process on windows

Disassembly:
cmp byte [0x43c50f], 0
jne 0x4191a0
call fcn.004191af
cmp byte [0x43c50f], 0
jne 0x4191a0
call fcn.00402c75
cmp byte [0x43c50e], 0
je 0x4191ae
jmp fcn.00418c74
ret

Function at 0x41923b
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
lea eax, [ebp - 0x108]
push 0x100
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x419266
push dword [ebp + 0xc]
push str.Host_name_unavailable
jmp 0x419283
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x419294
push dword [ebp + 0xc]
push str.IP_address_unavailable
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp 0x419337
mov eax, dword [ebp + 8]
and byte [eax], 0
mov eax, dword [esi + 0xc]
cmp dword [eax], edi
je 0x419337
push ebx
xor ebx, ebx
cmp word [esi + 0xa], bx
jle 0x4192f0
mov eax, dword [esi + 0xc]
mov eax, dword [edi + eax]
movzx eax, byte [eax + ebx]
push eax
lea eax, [ebp - 8]
push 0x432540
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp + 0xc]
sub ecx, eax
lea eax, [ebp - 8]
dec ecx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strncat]
movsx eax, word [esi + 0xa]
add esp, 0x1c
inc ebx
cmp ebx, eax
jl 0x4192ae
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
mov ebx, dword [ebp + 8]
add edi, 4
pop ecx
and byte [eax + ebx - 1], 0
mov eax, dword [esi + 0xc]
cmp dword [edi + eax], 0
je 0x419329
push ebx
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp + 0xc]
sub ecx, eax
dec ecx
push ecx
push 0x43253c
push ebx
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0x10
mov eax, dword [esi + 0xc]
cmp dword [edi + eax], 0
jne 0x4192a6
pop ebx
pop edi
pop esi
leave
ret

Function at 0x41a0cb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x84]
dec eax
je 0x41a116
dec eax
je 0x41a0fb
xor eax, eax
leave
ret
cmp dword [ebp - 0x90], 5
jb 0x41a109
push 1
pop eax
leave
ret
cmp dword [ebp - 0x90], 4
ja 0x41a116
push 3
jmp 0x41a106
mov eax, dword [ebp - 0x8c]
neg eax
sbb eax, eax
add eax, 5
leave
ret
Function at 0x41d443
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor edi, edi
cmp dword [0x4390a0], 2
jne 0x41d4c4
call fcn.0041da56
test eax, eax
je 0x41d4c4
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
cmp eax, edi
je 0x41d518
lea ecx, [ebp - 4]
push ecx
push edi
push edi
push 4
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 4], edi
jne 0x41d4bc
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov dword [0x4390a8], edi
mov esi, 0x4386b4
push esi
call sub.MSVCRT.dll_strlen
cmp eax, dword [ebp + 0xc]
pop ecx
jae 0x41d518
push esi
push dword [ebp + 8]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 1
pop eax
jmp 0x41d51a
cmp dword [0x4390a8], edi
je 0x41d49b
mov eax, dword [0x4390a0]
cmp eax, edi
jbe 0x41d518
cmp eax, 2
ja 0x41d518
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x41d4b7
call esi
cmp eax, 0x4dd
jne 0x41d502
mov esi, 0x4386b4
push esi
call sub.MSVCRT.dll_strlen
pop ecx
cmp eax, ebx
jmp 0x41d4aa
call esi
push eax
push str.C:cppSCZ_SCwinvncwinvnc_vncservice.cpp_:_getusername_error__d_n
push edi
push 0x4386e8
call fcn.00405446
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41dfcc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push esi
push eax
mov esi, ecx
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x41dff0
and dword [esi], 0
jmp 0x41e000
mov ax, word [ebp - 0x190]
mov word [0x4390c0], ax
or dword [esi], 0xffffffff
mov eax, esi
pop esi
leave
ret

Function at 0x41e0f4
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], 1
cmp dword [esi + 4], 0
jl 0x41e10e
call fcn.0041e159
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
test eax, eax
mov dword [esi + 4], eax
jge 0x41e125
xor eax, eax
jmp 0x41e155
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [ebp - 4]
push 4
push ecx
push 8
push 0xffff
push eax
call edi
test eax, eax
jne 0x41e121
lea eax, [ebp - 4]
push 4
push eax
push 1
push 6
push dword [esi + 4]
call edi
neg eax
sbb eax, eax
neg eax
dec eax
pop edi
pop esi
leave
ret
Function at 0x41e21c
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jl 0x41e29d
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x10], 2
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x41e26d
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x41e29d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x41e29d
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jne 0x41e292
or eax, 0xffffffff
jmp 0x41e29f
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
leave
ret 8

Function at 0x41e2c2
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x42852a
call fcn.00427220
push ecx
push ecx
mov eax, dword [ecx + 4]
push edi
test eax, eax
mov dword [ebp - 0x10], 1
jl 0x41e2ee
push 0
push 0
push eax
call dword [sym.imp.WSOCK32.dll_accept]
mov edi, eax
test edi, edi
jge 0x41e2f2
xor eax, eax
jmp 0x41e345
push esi
push 0x2394
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x41e314
call fcn.0041e011
mov esi, eax
jmp 0x41e316
xor esi, esi
test esi, esi
je 0x41e31f
mov dword [esi + 4], edi
jmp 0x41e32f
push 2
push edi
call dword [sym.imp.WSOCK32.dll_shutdown]
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
lea eax, [ebp - 0x10]
push 4
push eax
push 1
push 6
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x41e396
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ecx + 4]
call dword [sym.imp.WSOCK32.dll_getsockname]
lea eax, [ebp - 0x14]
push 4
push eax
lea eax, [ebp - 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
test eax, eax
jne 0x41e3d8
mov eax, str._unavailable_
leave
ret

Function at 0x41e3da
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x41e405
push dword [esp + 4]
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x41e403
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x41e403
mov eax, dword [eax]
ret
xor eax, eax
ret
Function at 0x41e406
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x4390c0], 2
push ebx
push esi
push edi
mov ebx, ecx
jae 0x41e41b
xor eax, eax
jmp 0x41e458
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.WSOCK32.dll_setsockopt]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 4
push eax
mov edi, 0xffff
push 0x1006
push edi
push dword [ebx + 4]
call esi
cmp eax, 0xffffffff
je 0x41e417
lea eax, [ebp + 8]
push 4
push eax
push 0x1005
push edi
push dword [ebx + 4]
call esi
inc eax
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41e45f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ecx
mov ebx, dword [esp + 0x10]
push edi
mov edi, 0x2000
mov eax, dword [esi + 0x2390]
lea ecx, [eax + ebp]
cmp ecx, edi
jle 0x41e4d9
mov ecx, edi
sub ecx, eax
lea eax, [eax + esi + 0x68]
push ecx
push ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [esi + 0x68]
push 0
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_send]
mov ebp, dword [esi + 0x2390]
mov eax, dword [esp + 0x18]
sub ebx, ebp
add ebx, edi
and dword [esi + 0x2390], 0
lea ebp, [eax + ebp - 0x2000]
cmp ebp, edi
jbe 0x41e4d9
push 0
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x41e50e
add ebx, edi
sub ebp, edi
jmp 0x41e4be
mov eax, dword [esi + 0x2390]
push ebp
push ebx
lea eax, [esi + eax + 0x68]
push eax
call sub.MSVCRT.dll_memcpy
add dword [esi + 0x2390], ebp
mov eax, dword [esi + 0x2390]
add esp, 0xc
push 0
push eax
lea eax, [esi + 0x68]
push eax
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jne 0x41e512
xor eax, eax
jmp 0x41e51d
and dword [esi + 0x2390], 0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x41e524
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov eax, dword [esi + 0x2390]
mov dword [ebp + 8], ecx
add ecx, eax
mov edi, 0x2000
cmp ecx, edi
jle 0x41e5a6
mov ecx, edi
sub ecx, eax
lea eax, [eax + esi + 0x68]
push ecx
push ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [esi + 0x68]
push 0
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [esi + 0x2390]
mov ecx, dword [ebp + 0xc]
and dword [esi + 0x2390], 0
sub ebx, eax
lea eax, [eax + ecx - 0x2000]
add ebx, edi
cmp eax, edi
mov dword [ebp + 8], eax
jbe 0x41e5a6
push 0
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x41e5d0
sub dword [ebp + 8], edi
add ebx, edi
cmp dword [ebp + 8], edi
ja 0x41e58b
mov eax, dword [esi + 0x2390]
push dword [ebp + 8]
lea eax, [esi + eax + 0x68]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [esi + 0x2390], eax
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
xor eax, eax
jmp 0x41e5c9
Function at 0x41e703
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WSOCK32.dll_recv]
ret 8
Function at 0x42116a
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x42861c
call fcn.00427220
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
cmp dword [esi + 0x1c], 0
je 0x4211a6
mov al, byte [ebp - 0xd]
push 0x42e9d0
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x14]
push eax
push 4
push esi
push 0x420eff
push dword [0x43c9b4]
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp - 0x14]
add esp, 0x18
test eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], ecx
jne 0x4211e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x42e8a0
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [esi + 0x20]
call fcn.004214e0
pop ecx
push eax
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x421215
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x42e8a0
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x42123a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x42e8a0
push eax
call sub.MSVCRT.dll__CxxThrowException
push edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x423227
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ebx, dword [esi + 0x34]
mov ecx, dword [esi + 0x24]
sub ebx, dword [esi + 0x6c]
mov eax, dword [esi + 0x64]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x4232af
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x423272
mov eax, dword [esi + 0x38]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x423294
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x42330a
mov ecx, dword [esi + 0x6c]
push ebx
add ecx, dword [esi + 0x64]
add ecx, dword [esi + 0x30]
push ecx
push eax
call fcn.0042330f
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x4232f6
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x42330a
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x423233
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4143ba
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov edx, dword [ecx]
and edx, 7
cmp dword [ebp + 0xc], 5
jae 0x4143d1
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [ebp + 0xc]
lea edi, [ecx + eax - 4]
cmp esi, edi
jae 0x4143f8
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4143f8
inc esi
jmp 0x4143e9
mov eax, esi
sub eax, ecx
cmp esi, edi
mov dword [ebp - 8], eax
jae 0x4144e8
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x41442d
xor edx, edx
mov cl, byte [esi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x41445a
cmp cl, 0xff
je 0x41445a
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x4143dc
dec ecx
shl edx, cl
and edx, 7
je 0x414413
movzx ecx, byte [edx + 0x4179e0]
mov edi, esi
sub edi, ecx
cmp byte [edx + 0x4179d8], 0
mov cl, byte [edi + 4]
je 0x414455
test cl, cl
je 0x414455
cmp cl, 0xff
jne 0x414413
mov dword [ebp - 4], eax
jmp 0x414422
xor ebx, ebx
mov bh, cl
mov bl, byte [esi + 3]
movzx ecx, byte [esi + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x414483
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x41448a
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4144be
movzx edi, byte [edx + 0x4179e0]
push 0x18
mov eax, ebx
shl edi, 3
pop ecx
sub ecx, edi
shr eax, cl
test al, al
je 0x4144a9
cmp al, 0xff
jne 0x4144bb
push 0x20
mov eax, dword [ebp - 8]
pop ecx
push 1
sub ecx, edi
pop edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x414475
mov eax, dword [ebp - 8]
mov ecx, ebx
mov byte [esi + 1], bl
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
add eax, 5
jmp 0x4143dc
mov esi, eax
push 3
sub esi, dword [ebp - 4]
pop edi
lea ecx, [esi - 1]
shl edx, cl
and edx, 7
cmp edi, esi
sbb ecx, ecx
pop edi
not ecx
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
pop ebx
mov dword [edx], ecx
leave
ret
Function at 0x6d80a3
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.006d8253
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x6d81a1
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x6d8144
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x6d8187
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x6d815b
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x6d8176
test al, 0x40
je 0x6d816d
mov ecx, dword [edi + 0x20]
jmp 0x6d8174
test al, 0x80
je 0x6d8187
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x6d8187
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x6d8113
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret