joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a59073c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a59090c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.4a507f78
push eax
call sub.kernel32.dll_GetModuleHandleA
test eax, eax
jne 0x4a5908f6
xor eax, eax
push ebp
push 0x4a5908ec
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor esi, esi
jmp 0x4a5908cd
cmp dword [ebp - 0x1c], 0x1000
jne 0x4a5908c7
cmp dword [ebp - 0x18], 1
je 0x4a5908c7
cmp esi, dword [ebp - 0x28]
je 0x4a5908c7
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jne 0x4a5908c7
push 0x104
lea eax, [ebp - 0x236]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
test eax, eax
jbe 0x4a5908c7
mov eax, dword [ebp - 0x28]
call fcn.4a5572ac
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4a5908c7
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a5908c7
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4a5908c7
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x4a5ed3f0]
mov esi, dword [esi]
mov eax, 0x4a59091c
mov ecx, 0xe
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x4a590888
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x4a5ed3f0]
mov esi, dword [esi]
mov eax, 0x4a59092c
mov ecx, 0x10
mov edx, dword [ebp - 0x10]
call esi
inc eax
sete dl
mov eax, dword [ebp - 0x28]
call fcn.4a58fe44
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x4a5ed3f0]
mov esi, dword [esi]
mov eax, 0x4a590940
mov ecx, 0xc
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x4a5908c7
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.4a58fc64
mov esi, dword [ebp - 0x28]
add ebx, dword [ebp - 0x20]
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x4a590788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a5908f6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a590913
lea eax, [ebp - 4]
call fcn.4a50763c
ret
Function at 0x4a592bac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.4a50763c
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.4a507f78
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4a592c71
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.4a507f78
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0xc], 0
je 0x4a592c68
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4a592c62
cmp dword [ebp - 0x10], 1
jne 0x4a592c54
mov eax, ebx
mov edx, esi
mov ecx, 0
call fcn.4a507c94
jmp 0x4a592c62
push 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.4a5077d4
push esi
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a5a5314
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
cmp dword [0x4a5eb078], 0
je 0x4a5a5359
push esp
push 0x40
push 4
mov eax, dword [0x4a5eb078]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a5a5359
mov eax, dword [0x4a5eb078]
mov edx, dword [0x4a5eb07c]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x4a5eb078]
push eax
call sub.kernel32.dll_VirtualProtect
xor eax, eax
mov dword [0x4a5eb078], eax
cmp dword [0x4a5eb080], 0
je 0x4a5a539d
push esp
push 0x40
push 4
mov eax, dword [0x4a5eb080]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a5a539d
mov eax, dword [0x4a5eb080]
mov edx, dword [0x4a5eb084]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x4a5eb080]
push eax
call sub.kernel32.dll_VirtualProtect
xor eax, eax
mov dword [0x4a5eb080], eax
xor eax, eax
mov dword [0x4a5f41b4], eax
pop edx
ret

Function at 0x4a5a6f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
test esi, esi
sete byte [ebp - 9]
cmp byte [ebp - 9], 0
jne 0x4a5a6f9f
xor ebx, ebx
jmp 0x4a5a6f98
cmp edi, dword [ebp - 4]
jne 0x4a5a6f97
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push edi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a5a6f9f
mov eax, dword [ebp - 8]
mov dword [esi + ebx*4], eax
mov byte [ebp - 9], 1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [esi + ebx*4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x4a5a6f9f
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4a5a6f61
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5a6fac
Capabilities:
Allocate or change rwx memory
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
xor ecx, ecx
push ebp
push 0x4a5a70c7
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x4a5a7029
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x4a5a701f
mov eax, dword [ebp - 4]
add eax, 0x3c
mov eax, dword [eax]
add eax, dword [ebp - 4]
cmp dword [eax], 0x4550
jne 0x4a5a701f
cmp word [eax + 0x18], 0x20b
jne 0x4a5a7016
add eax, 0x18
mov eax, dword [eax + 0x70]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x4a5a701f
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a5a7033
cmp dword [ebp - 0x14], 0
je 0x4a5a70bd
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
dec eax
test eax, eax
jl 0x4a5a70bd
inc eax
xor ebx, ebx
mov edx, dword [esi + 0x1c]
add edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
add edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jne 0x4a5a70b9
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.4a5a6f40
test al, al
je 0x4a5a70bd
mov eax, dword [esi + 0x1c]
add eax, dword [ebp - 4]
lea eax, [eax + ebx*4]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0x40
push 4
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a5a70a9
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov dword [esi], eax
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
jmp 0x4a5a70bd
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.4a5a6f40
jmp 0x4a5a70bd
inc ebx
dec eax
jne 0x4a5a704b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a5a70d1
movzx eax, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a5a70e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov ebp, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.4a5169c4
mov edi, eax
test edi, edi
je 0x4a5a7177
cmp dword [edi + 0x80], 0
je 0x4a5a7177
mov eax, dword [edi + 0x80]
cmp eax, dword [edi + 0x50]
jae 0x4a5a7177
mov esi, dword [edi + 0x80]
add esi, dword [esp]
test esi, esi
je 0x4a5a7177
jmp 0x4a5a7163
mov ebx, dword [esp]
add ebx, dword [esi + 0x10]
jmp 0x4a5a715b
cmp ebp, dword [ebx]
jne 0x4a5a7158
lea eax, [esp + 8]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a5a7158
mov eax, dword [esp + 4]
mov dword [ebx], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x4a5a7129
add esi, 0x14
cmp dword [esi + 0xc], 0
je 0x4a5a7177
cmp dword [esi + 0x10], 0
je 0x4a5a7177
mov eax, dword [edi + 0x50]
cmp eax, dword [esi + 0x10]
ja 0x4a5a7121
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a5a904c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a5a9251
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
xor edx, edx
mov eax, dword [0x4a5eb108]
call fcn.4a51e798
mov dword [0x4a5f4224], eax
xor edx, edx
mov eax, dword [0x4a5eb10c]
call fcn.4a51e798
mov dword [0x4a5f4228], eax
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 5
call fcn.4a5080ac
lea eax, [ebp - 4]
call fcn.4a507bb8
mov byte [eax], 0x72
lea eax, [ebp - 4]
call fcn.4a507bb8
mov byte [eax + 1], 0x64
lea eax, [ebp - 4]
call fcn.4a507bb8
mov byte [eax + 2], 0x65
lea eax, [ebp - 4]
call fcn.4a507bb8
mov byte [eax + 3], 0x63
lea eax, [ebp - 4]
call fcn.4a507bb8
mov byte [eax + 4], 0x20
lea edx, [ebp - 0x10]
mov eax, dword [0x4a5eb17c]
call fcn.4a511f3c
push dword [ebp - 0x10]
push 0x4a5a9270
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.4a510ea4
push dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 4
call fcn.4a507e30
mov eax, dword [ebp - 4]
call fcn.4a507f78
push eax
push 0
push 0
call fcn.4a50d6c0
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4a5a922e
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [0x4a5f4218], edi
mov eax, dword [ebp - 8]
mov dword [0x4a5f421c], eax
cmp dword [0x4a5f4224], 0
je 0x4a5a9177
cmp dword [0x4a5f4228], 0
jne 0x4a5a91fd
mov dl, 1
mov eax, dword [0x4a5eb0a8]
call fcn.4a51e8a4
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x4a5a9212
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x4a5a9212
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x4a5a9212
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x4a5a9212
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x4a5a9212
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a5a9212
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x4a5f4220], edx
mov edx, 0x4a5a8ffc
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0xc]
push edx
push 4
push eax
call sub.kernel32.dll_VirtualProtect
mov bl, 1
jmp 0x4a5a9212
push 0x4a5a8fa8
push 0xffffffffffffffff
call dword [0x4a5f4224]
mov dword [esi], eax
cmp dword [esi], 0
setne bl
test bl, bl
jne 0x4a5a922e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5a9258
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.4a5076a8
lea eax, [ebp - 4]
call fcn.4a50763c
ret
Function at 0x4a5a9274
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x4a5f4224], 0
je 0x4a5a928c
cmp dword [0x4a5f4228], 0
jne 0x4a5a92cd
mov dl, 1
mov eax, dword [0x4a5eb0a8]
call fcn.4a51e8a4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a5a92d4
mov eax, dword [0x4a5f4220]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
jmp 0x4a5a92d4
push eax
call dword [0x4a5f4228]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a5ab114
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
cmp byte [0x4a5eb41d], 0
jne 0x4a5ab135
push esp
push 0x201
call sub.wsock32.dll_WSAStartup
mov byte [0x4a5eb41d], 1
mov al, 1
add esp, 0x190
ret

Function at 0x4a5ab23c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.4a507f78
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4a5ab29c
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a5ab2fc
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffee0
mov edi, edx
mov ebx, eax
call fcn.4a5ab114
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x4a5ab3bd
mov word [esp + 0xc], 2
mov eax, ebx
call fcn.4a507f78
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 0x10], eax
push edi
call sub.wsock32.dll_htons
mov word [esp + 0xe], ax
mov dword [esp + 8], 1
lea eax, [esp + 8]
push eax
push 0x8004667e
push esi
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [esp + 0x10]
push eax
push esi
call sub.wsock32.dll_connect
mov dword [esp], 2
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], esi
push esp
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0
call sub.wsock32.dll_select
test eax, eax
setg bl
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0x8004667e
push esi
call sub.wsock32.dll_ioctlsocket
test bl, bl
jne 0x4a5ab3bd
push esi
call sub.wsock32.dll_closesocket
xor esi, esi
mov eax, esi
add esp, 0x120
pop edi
pop esi
pop ebx
ret

Function at 0x4a5ab43c
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffaf4
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
call fcn.4a50763c
mov dword [esp + 0x408], 1
mov dword [esp + 0x40c], ebx
mov dword [esp], edi
xor eax, eax
mov dword [esp + 4], eax
push esp
push 0
push 0
lea eax, [esp + 0x414]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x4a5ab4b9
push 0
push 0x400
lea eax, [esp + 0x10]
push eax
push ebx
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jle 0x4a5ab4b9
mov eax, esi
xor ecx, ecx
mov edx, ebx
call fcn.4a5080ac
test ebx, ebx
jle 0x4a5ab4b9
mov edx, dword [esi]
lea eax, [esp + 8]
mov ecx, ebx
call fcn.4a504a94
add esp, 0x50c
pop edi
pop esi
pop ebx
ret
Function at 0x4a5ab4c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.4a50770c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4a5ab4ee
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x4a5ab57e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov esi, 3
xor edi, edi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.4a5ab3cc
test al, al
je 0x4a5ab551
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
lea ecx, [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
call fcn.4a5ab43c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.4a507a74
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
mov edi, eax
cmp dword [ebp + 8], 0
je 0x4a5ab548
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
setne bl
test bl, bl
jne 0x4a5ab560
cmp edi, 0x5dc
ja 0x4a5ab560
dec esi
jne 0x4a5ab503
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5ab585
lea eax, [ebp - 0x10]
call fcn.4a50763c
lea eax, [ebp - 4]
call fcn.4a50763c
ret
Function at 0x4a5b55c4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov edi, eax
push 0x4a5f4318
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4a5b5643
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4a5f433c
mov edx, edi
call fcn.4a507a74
mov eax, 0x4a5f4340
mov edx, esi
call fcn.4a507a74
mov byte [0x4a5f4344], bl
cmp dword [0x4a5ed2d4], 0
jne 0x4a5b562b
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4a5b5344
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4a5ed2d4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5b564a
push 0x4a5f4318
call sub.kernel32.dll_LeaveCriticalSection_1
ret

Function at 0x4a5bc974
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x4a5bc990
xor eax, eax
mov dword [esi], eax
xor ebx, ebx
mov eax, esi
call fcn.4a507618
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.4a5082f8
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4a5bca33
mov dword [ebp - 0x10], 0x104
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4a5bca2a
mov eax, esi
mov edx, dword [ebp - 0x10]
call fcn.4a508410
cmp dword [ebp - 0x10], 0
je 0x4a5bca0b
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi]
call fcn.4a5082f8
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x4a5bca0b
xor ebx, ebx
jmp 0x4a5bca0d
mov bl, 1
test bl, bl
je 0x4a5bca23
mov eax, dword [esi]
call fcn.4a5082f8
mov edx, eax
mov eax, esi
call fcn.4a508350
jmp 0x4a5bca2a
mov eax, esi
call fcn.4a507618
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a5bca40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.4a5082f8
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExW
test eax, eax
jne 0x4a5bcab8
mov ebx, esi
test ebx, ebx
je 0x4a5bca87
sub ebx, 4
mov ebx, dword [ebx]
mov eax, ebx
add eax, eax
add eax, 2
push eax
mov eax, esi
call fcn.4a5082f8
push eax
push 1
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete al
mov ebx, eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a5d308c
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x114], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a5d31ab
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, ebx
call fcn.4a523254
mov ebx, eax
mov eax, 0x7fffffff
call fcn.4a504cb0
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, ebx
call fcn.4a523254
mov ebx, eax
push 0x104
lea eax, [ebp - 0x10d]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov byte [ebp - 0x10a], 0
push 0x104
lea eax, [ebp - 0x10d]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x104
lea eax, [ebp - 0x10d]
push eax
lea eax, [ebp - 0x10d]
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4a5d3146
lea edx, [ebp - 4]
mov ecx, 4
mov eax, ebx
call fcn.4a523254
mov ebx, eax
call fcn.4a546f30
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.4a5450d4
cdq
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, ebx
not eax
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
lea edx, [ebp - 0x114]
mov eax, 1
call fcn.4a544c50
mov edx, dword [ebp - 0x114]
mov eax, esi
mov ecx, 0
call fcn.4a508124
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5d31b2
lea eax, [ebp - 0x114]
call fcn.4a507618
ret

Function at 0x4a5d7630
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
mov esi, eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edx, dword [0x4a5d73b0]
call fcn.4a508938
xor eax, eax
push ebp
push 0x4a5d76e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.4a50763c
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.4a507a20
lea eax, [ebp - 8]
mov edx, edi
call fcn.4a507abc
lea eax, [ebp - 4]
call fcn.4a50763c
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0x4a5d743c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov esi, eax
test esi, esi
je 0x4a5d76bc
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.4a507a74
cmp dword [ebx], 0
jne 0x4a5d76ca
mov eax, ebx
mov edx, edi
call fcn.4a507a74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5d76ed
lea eax, [ebp - 0x10]
mov edx, dword [0x4a5d73b0]
call fcn.4a508a10
ret