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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x260], eax
xor edi, edi
mov eax, dword [ebp + 0x10]
push 3
mov dword [ebp - 0x25c], eax
xor eax, eax
push 0x2b8
push str.keysWin32
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x258], eax
call fcn.00448410
push esi
push str._s_
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.00440af0
add esp, 0x1c
cmp eax, 0x105
jl 0x44b32f
mov dword [ebp - 0x250], 0xfffffffe
jmp 0x44b4b3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x44b4a8
xor ebx, ebx
test byte [ebp - 0x24c], 0x20
lea eax, [ebx + 1]
cmove eax, ebx
mov ebx, eax
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44b385
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
mov eax, 1
cmove edi, eax
test edi, edi
je 0x44b353
push esi
mov dword [ebp - 0x254], ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x254]
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
je 0x44b3db
lea eax, [edi*4]
push eax
push 0x2d6
push str.D:downloadpaho.mqtt.c_1.3.13_srcMQTTPersistenceDefault.c
call fcn.00448800
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x258], esi
test esi, esi
jne 0x44b3dd
mov dword [ebp - 0x250], 0xffffff9d
jmp 0x44b4b2
xor esi, esi
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44b4a8
nop dword [eax + eax]
test byte [ebp - 0x24c], 0x20
je 0x44b468
lea ecx, [ebp - 0x220]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44b412
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x2e7
push str.D:downloadpaho.mqtt.c_1.3.13_srcMQTTPersistenceDefault.c
call fcn.00448800
mov ecx, eax
add esp, 0xc
mov dword [esi], ecx
test ecx, ecx
je 0x44b3cc
lea edx, [ebp - 0x220]
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x44b440
push str..msg
push dword [esi]
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
test eax, eax
je 0x44b465
mov byte [eax], 0
add esi, 4
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44b400
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x44b400
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x260]
mov dword [eax], edi
mov eax, dword [ebp - 0x258]
mov dword [ecx], eax
jmp 0x44b4b2
mov dword [ebp - 0x250], 0xfffffffe
pop ebx
push 3
lea eax, [ebp - 0x250]
push eax
push 0x304
push str.keysWin32
call fcn.004484c0
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp - 0x250]
xor ecx, ebp
pop edi
pop esi
call fcn.0040219c
mov esp, ebp
pop ebp
ret
Function at 0x44b820
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 3
push 0xa9
push str.pstmkdir
mov dword [ebp - 4], 0
call fcn.00448410
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 0x10
test eax, eax
je 0x44b863
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [ebp - 4]
mov edx, 0xfffffffe
cmp dword [eax], 0x11
cmovne ecx, edx
mov dword [ebp - 4], ecx
push 3
lea eax, [ebp - 4]
push eax
push 0xba
push str.pstmkdir
call fcn.004484c0
mov eax, dword [ebp - 4]
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x44cad0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 3
push 0xe3
push str.MQTTProtocol_connect
mov dword [ebp - 4], 0
call fcn.00448410
mov esi, dword [ebp + 0xc]
add esp, 0xc
or dword [esi + 0x10], 8
mov eax, dword [esi + 0xac]
test eax, eax
jne 0x44cb15
push str.http_proxy
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x44cb62
push str.http:__
lea edi, [esi + 0x44]
push edi
lea ebx, [esi + 0x40]
push ebx
push eax
push esi
call fcn.0044ce80
add esp, 0x14
mov dword [ebp - 4], eax
test eax, eax
jne 0x44cc6a
push dword [ebx]
push str.Setting_http_proxy_to__s
push 0xffffffffffffffff
push 4
call fcn.00446070
mov eax, dword [edi]
add esp, 0x10
test eax, eax
je 0x44cb62
push eax
push str.Setting_http_proxy_auth_to__s
push 0xffffffffffffffff
push 4
call fcn.00446070
add esp, 0x10
mov eax, dword [esi + 0x40]
mov edi, dword [ebp + 8]
test eax, eax
je 0x44cb8a
push 0x1f90
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.0044ca10
lea ebx, [esi + 0x20]
push ebx
push dword [ebp + 0xc]
push eax
push dword [esi + 0x40]
jmp 0x44cbb1
cmp dword [ebp + 0x10], 0
mov ecx, 0x50
mov eax, 0x75b
cmovne eax, ecx
push eax
push 0
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.0044ca10
lea ebx, [esi + 0x20]
push ebx
push dword [ebp + 0xc]
push eax
push edi
call fcn.0043ec70
add esp, 0x20
mov dword [ebp - 4], eax
cmp eax, 0x2734
je 0x44cc5c
cmp eax, 0x2733
je 0x44cc5c
test eax, eax
jne 0x44cc6a
cmp dword [esi + 0x40], eax
je 0x44cbfe
mov eax, dword [esi + 0x10]
push edi
and eax, 0xfffffd7f
or eax, 0x140
push 0
push ebx
mov dword [esi + 0x10], eax
call fcn.0044e5b0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
je 0x44cc27
push edi
push 0
push ebx
call fcn.0044d4f0
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, 0xffffffea
jne 0x44cc27
mov eax, dword [esi + 0x10]
and eax, 0xfffffcff
or eax, 0xc0
jmp 0x44cc67
test eax, eax
jne 0x44cc6a
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
call fcn.0044bfa0
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
jne 0x44cc53
mov eax, dword [esi + 0x10]
and eax, 0xfffffd3f
or eax, 0x100
jmp 0x44cc67
and dword [esi + 0x10], 0xfffffc3f
jmp 0x44cc6a
mov eax, dword [esi + 0x10]
and eax, 0xfffffc7f
or eax, 0x40
mov dword [esi + 0x10], eax
push 3
lea eax, [ebp - 4]
push eax
push 0x163
push str.MQTTProtocol_connect
call fcn.004484c0
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push 3
push 0x163
push str.WebSocket_unmaskData
call fcn.00448410
mov eax, dword [ebp + 0xc]
xor ebx, ebx
add esp, 0xc
cmp dword [eax], ebx
jle 0x44e283
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 8]
xor esi, esi
cmp dword [ecx + ebx*4], esi
jbe 0x44e27c
mov ecx, dword [eax + 4]
mov edx, dword [ecx + ebx*4]
mov ecx, edi
and ecx, 3
inc edi
mov cl, byte [ecx + eax + 0x10]
xor byte [edx + esi], cl
inc esi
mov ecx, dword [eax + 8]
cmp esi, dword [ecx + ebx*4]
jb 0x44e260
inc ebx
cmp ebx, dword [eax]
jl 0x44e256
pop edi
pop esi
push 3
push 0
push 0x16c
push str.WebSocket_unmaskData
mov dword [eax + 0x10], 0
call fcn.004484c0
add esp, 0x10
pop ebx
pop ebp
ret
Function at 0x4515c0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp + 0xc], eax
xor esi, esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0x40000001
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
cmovne esi, dword [ebp + 0xc]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x451660
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x45169f
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8004
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4516a4
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret

Function at 0x453000
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00453010

Function at 0x453290
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004532a0
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
xor ecx, ecx
lea esp, [esp]
mov al, byte [ecx + edx]
cmp al, 0x41
jl 0x401023
cmp al, 0x5a
jg 0x401023
movsx eax, al
sub eax, 0x41
jmp 0x401060
cmp al, 0x61
jl 0x401033
cmp al, 0x7a
jg 0x401033
movsx eax, al
sub eax, 0x47
jmp 0x401060
cmp al, 0x30
jl 0x401043
cmp al, 0x39
jg 0x401043
movsx eax, al
add eax, 4
jmp 0x401060
cmp al, 0x2b
jne 0x40104e
mov eax, 0x3e
jmp 0x401060
cmp al, 0x2f
jne 0x401059
mov eax, 0x3f
jmp 0x401060
cmp al, 0x3d
jne 0x401095
or eax, 0xffffffff
mov dword [esp + ecx*4], eax
inc ecx
cmp ecx, 4
jl 0x401010
mov ecx, dword [esp]
cmp ecx, 0xffffffff
push edi
je 0x4010e8
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
je 0x4010e8
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
cmp esi, 0xffffffff
jne 0x40109b
cmp edx, esi
je 0x4010a8
xor eax, eax
pop esi
pop edi
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret
xor eax, eax
cmp edx, 0xffffffff
setne al
add eax, 2
jmp 0x4010ad
mov eax, 1
shl ecx, 6
or ecx, edi
shl ecx, 6
and esi, 0x3f
or ecx, esi
mov esi, dword [esp + 0x20]
and edx, 0x3f
shl ecx, 6
or ecx, edx
mov edx, ecx
shr edx, 0x10
cmp eax, 1
mov byte [esi], dl
jle 0x4010da
mov edx, ecx
shr edx, 8
mov byte [esi + 1], dl
cmp eax, 2
jle 0x40108f
mov byte [esi + 2], cl
pop esi
pop edi
add esp, 0x10
ret
xor eax, eax
pop edi
add esp, 0x10
ret

Function at 0x401810
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
push edi
push esi
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x401874
mov ecx, dword [esp + 8]
test ecx, ecx
jbe 0x40186f
cmp ecx, 2
jbe 0x401865
cmp ecx, 7
jne 0x40186f
mov ecx, dword [edi]
cmp ecx, 2
jb 0x40186f
mov dl, byte [ecx + esi - 1]
test dl, dl
jne 0x40186f
mov dl, byte [ecx + esi - 2]
jmp 0x40186b
mov ecx, dword [edi]
mov dl, byte [ecx + esi - 1]
test dl, dl
je 0x401874
mov eax, 0xd
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x401880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401899
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4018ad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4018ce
cmp esi, eax
jae 0x4018a7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4018c0
cmp esi, eax
jae 0x4018a7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4019a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x46da7c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x401a05
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
jne 0x401a05
mov ecx, dword [esp + 0xac]
call fcn.0042d9b6
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0xac]
cmp edx, 6
sbb eax, eax
inc eax
call fcn.0042d9b6
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401a30
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
jne 0x401a42
mov eax, 0x80070057
pop ecx
ret 4
push 0
push str.Pruna080806
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x401a95
push esi
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0xc]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401a94
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ecx
ret 4
Function at 0x402230
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x27c
mov eax, dword [0x46da7c]
push ebp
push esi
push edi
mov dword [esp + 0x284], eax
mov dword [esp + 0x10], 0
xor esi, esi
call fcn.0043e731
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ebp, eax
xor eax, eax
mov ecx, 0x19
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x2001f
push esi
push str.SoftwarePruna
push reloc.WS2_32.dll_accept
add ebp, 0x10
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40241a
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push eax
push 0x457970
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
push 0x457970
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401810
test eax, eax
jne 0x40231c
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4022e1
mov edx, dword [str.pruna.exe]
mov eax, dword [0x457968]
mov cx, word [0x45796c]
mov dword [edi], edx
mov dl, byte [0x45796e]
mov dword [edi + 4], eax
mov word [edi + 8], cx
push 0x457960
lea eax, [esp + 0x1c]
mov byte [edi + 0xa], dl
push eax
jmp 0x4023b6
push 0x104
lea eax, [esp + 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x7c]
mov byte [esp + eax + 0x180], cl
inc eax
test cl, cl
jne 0x402340
lea edi, [esp + 0x180]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402358
mov edx, dword [str.pruna.exe]
mov eax, dword [0x457968]
mov cx, word [0x45796c]
mov dword [edi], edx
mov dl, byte [0x45796e]
mov dword [edi + 4], eax
lea eax, [esp + 0x7c]
mov word [edi + 8], cx
push eax
mov byte [edi + 0xa], dl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea ecx, [esp + 0x80]
push ecx
push 1
push 0
push 0x457970
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x457960
lea edx, [esp + 0x80]
push edx
call fcn.0042eb51
add esp, 8
test eax, eax
jne 0x40240d
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4023d1
push esi
call edi
xor esi, esi
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x4023f2
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x278]
call fcn.0042d9b6
add esp, 0x27c
ret
test esi, esi
je 0x40241a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x40243f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x284]
pop edi
pop esi
xor eax, eax
pop ebp
call fcn.0042d9b6
add esp, 0x27c
ret
Function at 0x402b60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x453f30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov eax, dword [0x46da7c]
push esi
push edi
mov dword [esp + 0x7c], eax
xor eax, eax
mov ecx, 0x19
lea edi, [esp + 0x18]
mov dword [esp + 0x10], 4
rep stosd dword es:[edi], eax
call fcn.0043e731
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea eax, [esp + 8]
push eax
push 0x2001f
xor edi, edi
push edi
push str.SoftwarePruna
push reloc.WS2_32.dll_accept
mov dword [esp + 0x9c], 1
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402c56
push ebp
mov ebp, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push eax
push str.LastVersion
push ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
push str.LastVersion
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401810
test eax, eax
jne 0x402c4a
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c23
sub eax, edx
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call fcn.00402530
mov esi, dword [esp + 0x10]
push esi
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test ebp, ebp
je 0x402c55
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
lea eax, [esi - 0x10]
mov dword [esp + 0x88], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x80]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x78]
pop esi
call fcn.0042d9b6
add esp, 0x84
ret
Function at 0x402d50
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x453f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x457828
mov dword [esp + 0x24], 1
call fcn.00402ca0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._DOCUMENTS_
mov byte [esp + 0x28], 2
call fcn.00402ca0
mov ecx, dword [esi + 0xec]
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x28], 1
call fcn.00406c00
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402dd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push 5
push 0
push edi
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x18
ret 8
Function at 0x404ae0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [0x46da7c]
mov ecx, dword [0x457cac]
mov dword [esp + 8], eax
mov eax, dword [0x457ca8]
mov dword [esp], eax
lea eax, [esp]
mov dword [esp + 4], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404b04
push ebx
mov ebx, dword [esp + 0x18]
sub eax, edx
xor ecx, ecx
test ebx, ebx
push edi
mov edi, eax
jle 0x404b37
push esi
mov esi, dword [esp + 0x1c]
mov eax, ecx
cdq
idiv edi
mov al, byte [ecx + esi]
mov dl, byte [esp + edx + 0xc]
xor al, dl
mov byte [ecx + esi], al
inc ecx
cmp ecx, ebx
jl 0x404b20
pop esi
mov ecx, dword [esp + 0x10]
pop edi
pop ebx
call fcn.0042d9b6
add esp, 0xc
ret 8

Function at 0x4050d0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.WS2_32.dll_accept
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40512b
push esi
push str.http:__www.pruna.com_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [esp + 4]
inc eax
push eax
push str.http:__www.pruna.com_
push 1
push 0
push str.Start_Page
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x40512a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
Function at 0x406250
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x454160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x46da7c]
push ebx
push esi
mov dword [esp + 0x38], eax
push edi
xor ebx, ebx
mov dword [esp + 0x48], ebx
call fcn.0043e731
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
mov byte [esp + 0x48], 1
call fcn.0043e731
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 3
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x50], 2
mov byte [esp + 0x3c], bl
mov dword [esp + 0x3d], ebx
call fcn.004027c0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 3
call fcn.004029c0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x48], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0xc]
push edi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
lea eax, [edi - 0x10]
mov byte [esp + 0x48], 1
lea ecx, [eax + 0xc]
je 0x40639b
mov edx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40634e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x4c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40636c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406392
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [esp + 0x14]
mov eax, ebp
pop ebp
jmp 0x4063f7
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x48], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x34]
pop ebx
call fcn.0042d9b6
add esp, 0x40
ret 4