joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4752b5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x475352
push ebx
push esi
call fcn.00475271
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00472358
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4752ff
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x475351
push edi
push eax
call fcn.004681af
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x47531f
call fcn.00468175
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x475350
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00472358
add esp, 0x20
test eax, eax
jne 0x47533e
push edi
call fcn.00468175
jmp 0x475346
push ebx
call fcn.00468175
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x475355
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x475366
pop esi
ret
push ebx
push edi
push esi
call fcn.00475271
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004681af
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x47538e
push ebx
push esi
push edi
call fcn.0042ce10
add esp, 0xc
push 0
call fcn.00468175
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x475c6f
Capabilities:
Set environment variable

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

Function at 0x4824d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4824fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4824fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41b660
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x41b671
jmp dword [eax*4 + 0x41f810]
cmp dword [0x423118], 0
je 0x41b773
push 0x42311c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x423134]
test edi, edi
je 0x41b768
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b6bb
mov edi, dword [edi + 8]
test edi, edi
je 0x41b768
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x41b6b0
test esi, esi
je 0x41b6b0
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x41b6b0
cmp dword [0x423118], 0
jne 0x41b6f0
push 0x42311c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x423118], 1
jmp case.default.0x41b671
call fcn.0041af40
jmp case.default.0x41b671
cmp dword [0x423118], 0
je case.default.0x41b671
push 0x42311c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x423134]
test edi, edi
je 0x41b7c3
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b747
mov edi, dword [edi + 8]
test edi, edi
je 0x41b7c3
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x41b740
test esi, esi
je 0x41b740
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x41b740
push 0x42311c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x423118]
cmp eax, 1
jne case.default.0x41b671
mov eax, dword [0x423134]
test eax, eax
je 0x41b7a2
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x41b790
mov dword [0x423134], 0
mov dword [0x423118], 0
push 0x42311c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x41b671
push 0x42311c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41b900
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x41c004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x41b966
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x41b966
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x41b966
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x41b966
mov edx, dword [esp + 0xc]
sub edx, dword [0x41c004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x41b956
add esi, 0x28
dec ecx
je 0x41b966
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x41b950
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x41b950
mov eax, esi
pop esi
pop edi
ret
Function at 0x402430
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a00c8]
jne 0x40243a
repz ret
jmp fcn.00405f1e

Function at 0x405b44
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.00402eb9
and dword [ebp - 4], 0
cmp dword [0x4a1a28], 0
mov ebx, eax
jne 0x405bf5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405ca6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405ca6
push eax
call fcn.00402e47
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a1a28], eax
call esi
push eax
call fcn.00402e47
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a1a2c], eax
call esi
push eax
call fcn.00402e47
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a1a30], eax
call esi
push eax
call fcn.00402e47
pop ecx
mov dword [0x4a1a38], eax
test eax, eax
je 0x405bf5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402e47
pop ecx
mov dword [0x4a1a34], eax
mov eax, dword [0x4a1a34]
cmp eax, ebx
je 0x405c4d
cmp dword [0x4a1a38], ebx
je 0x405c4d
push eax
call fcn.00402ec2
push dword [0x4a1a38]
mov esi, eax
call fcn.00402ec2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405c4d
test edi, edi
je 0x405c4d
call esi
test eax, eax
je 0x405c44
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405c44
test byte [ebp - 0xc], 1
jne 0x405c4d
or dword [ebp + 0x10], 0x200000
jmp 0x405c86
mov eax, dword [0x4a1a2c]
cmp eax, ebx
je 0x405c86
push eax
call fcn.00402ec2
pop ecx
test eax, eax
je 0x405c86
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405c86
mov eax, dword [0x4a1a30]
cmp eax, ebx
je 0x405c86
push eax
call fcn.00402ec2
pop ecx
test eax, eax
je 0x405c86
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a1a28]
call fcn.00402ec2
pop ecx
test eax, eax
je 0x405ca6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405ca8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x40de38
mov ecx, 0x67894a92
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data_1
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x5d867ffd
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4833fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00485364
test esi, esi
jne 0x483432
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00485454
jmp 0x483450
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004832a0
mov edi, eax
test esi, esi
je 0x483450
cmp dword [ebx], 0
je 0x483450
dec esi
jmp 0x483439
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x483484
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5a0008], 0x8088405
inc edx
mov dword [ebx + 0x5a0008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x48425c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5a0024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4842f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4842d4
xor eax, eax
push ebp
push 0x4842cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x484310
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4842d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x5a0024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5a0024], ax
mov esp, ebp
pop ebp
ret

Function at 0x485110
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a604c], 0
je 0x485171
cmp word [0x5a6220], 0xd7b2
jne 0x485139
cmp dword [0x5a6228], 0
jbe 0x485139
mov eax, 0x5a621c
call dword [0x5a6238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x485198
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5a0030], 0
jne 0x48518d
push 0
push 0x5a0780
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4852e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x5a0038], 0
je 0x48530e
mov edx, esi
mov eax, ebx
call dword [0x5a0038]
jmp 0x48531d
mov eax, 8
call fcn.00482f4c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x5a604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4852b0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x486b8c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x486dbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x486c0f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x486dbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x486c0f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x486dd8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x486c98
xor eax, eax
push ebp
push 0x486c91
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004869c8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x486c76
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x486df8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x486c76
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486c98
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x486db2
cmp byte [ebp - 0xd], 0
jne 0x486cdf
cmp byte [ebp - 0x12], 0
je 0x486db2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x486cf8
dec ebx
cmp byte [ebx], 0x2e
je 0x486d07
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x486cf7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x486db2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x486d44
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x486db2
cmp byte [ebp - 0xd], 0
je 0x486db2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x486db2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x489664
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4896b6
test eax, edx
je 0x4896b9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x489679
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x48969f
add ecx, 4
js 0x48968f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x48969c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4896c5
test edx, edx
jne 0x48966c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x48a0e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00485804
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x48a0fd
test al, 0x10
je 0x48a101
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x48d738
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x48d771
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00485454
jmp 0x48d77a
mov eax, ebx
mov edx, esi
call fcn.004853b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48d784
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x48d7a6
movzx eax, byte [esp]
jmp 0x48d7a8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x48de38
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x48dcb0
mov eax, dword [0x5a5930]
cmp byte [eax], 0
je 0x48deb4
mov eax, dword [0x5a54ec]
call fcn.004838d8
call fcn.004830a8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0048a49c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x48defc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x48deea
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5a5430]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5a87f8]
call fcn.00486970
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x48e7ec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48e8c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004853fc
lea eax, [ebp - 4]
call fcn.0048585c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00485804
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x48e8ac
mov eax, ebx
call fcn.00482f4c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x48e8a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00485804
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x48e88f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x48e8d4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x48e88f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e8ac
mov eax, dword [ebp - 0x10]
call fcn.00482f68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e8c9
lea eax, [ebp - 4]
call fcn.00485364
ret

Function at 0x4a0f20
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004a0c5c
dec esi
jne 0x4a0f42
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4a20b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5aa9f0
cmp dword [edi], 0
jne 0x4a2130
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5aa9ec]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5a0b94
mov ecx, 2
call fcn.004831a0
mov edx, 0x4a208c
lea eax, [esi + 5]
call fcn.004a20ac
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004a20ac
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4a2105
mov dword [0x5aa9ec], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4a59fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00485804
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4a5a54
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5a5bac]
mov dl, 1
mov eax, dword [0x4a5508]
call fcn.0048e028
call fcn.00484cd8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004a5610
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a6be4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4a6bea
ret
Function at 0x4bdae4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004857f4
xor eax, eax
push ebp
push 0x4bdc19
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4bdbec
xor edx, edx
push ebp
push 0x4bdbe5
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x4bdb31
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4bdbba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x4bdba9
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x4bdb70
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00485804
lea ecx, [ebx + 1]
mov edx, esi
call fcn.004831a0
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdbb0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x5a532c]
mov dl, 1
mov eax, dword [0x4887d0]
call fcn.0048dfec
call fcn.00484cd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdc20
lea eax, [ebp - 4]
call fcn.00485364
ret