joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406870
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x198], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404234
xor eax, eax
push ebp
push 0x4069b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403dcc
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x406982
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00404244
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x406978
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x40696e
cmp dword [ebp - 4], 0
jne 0x40695a
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x198]
call fcn.00403fb4
mov edx, dword [ebp - 0x198]
mov eax, 0x4069d0
call fcn.00404388
dec eax
je 0x40696d
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x19c]
call fcn.00403fb4
mov edx, dword [ebp - 0x19c]
mov eax, 0x4069dc
call fcn.00404388
dec eax
je 0x40696d
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00403fb4
jmp 0x406978
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00403fb4
inc ebx
cmp dword [esi + ebx*4], 0
jne 0x4068eb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40698c
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069be
lea eax, [ebp - 0x19c]
mov edx, 2
call fcn.00403df0
lea eax, [ebp - 4]
call fcn.00403dcc
ret

Function at 0x406a30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404234
xor eax, eax
push ebp
push 0x406a84
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov al, bl
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404244
push eax
push 0x406a90
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a8b
lea eax, [ebp - 4]
call fcn.00403dcc
ret

Function at 0x406b2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404234
xor eax, eax
push ebp
push 0x406bbb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x101
call fcn.0040402c
push dword [ebp - 0x10c]
push 0x406bd0
push dword [ebp - 4]
mov eax, ebx
mov edx, 3
call fcn.00404104
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bc2
lea eax, [ebp - 0x10c]
call fcn.00403dcc
lea eax, [ebp - 4]
call fcn.00403dcc
ret
Function at 0x406bd4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404234
xor eax, eax
push ebp
push 0x406c63
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x101
call fcn.0040402c
push dword [ebp - 0x10c]
push 0x406c78
push dword [ebp - 4]
mov eax, ebx
mov edx, 3
call fcn.00404104
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c6a
lea eax, [ebp - 0x10c]
call fcn.00403dcc
lea eax, [ebp - 4]
call fcn.00403dcc
ret

Function at 0x406c7c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404234
xor eax, eax
push ebp
push 0x406d0b
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x101
call fcn.0040402c
push dword [ebp - 0x10c]
push 0x406d20
push dword [ebp - 4]
mov eax, ebx
mov edx, 3
call fcn.00404104
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d12
lea eax, [ebp - 0x10c]
call fcn.00403dcc
lea eax, [ebp - 4]
call fcn.00403dcc
ret

Function at 0x406d24
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404234
xor eax, eax
push ebp
push 0x406db3
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x101
call fcn.0040402c
push dword [ebp - 0x10c]
push 0x406dc8
push dword [ebp - 4]
mov eax, ebx
mov edx, 3
call fcn.00404104
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406dba
lea eax, [ebp - 0x10c]
call fcn.00403dcc
lea eax, [ebp - 4]
call fcn.00403dcc
ret
Function at 0x407324
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
xor edx, edx
mov dword [ebp - 0x194], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407399
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x190]
push eax
mov dl, 1
mov al, 1
call fcn.00404c28
push eax
call sub.wsock32.dll_WSAStartup
lea edx, [ebp - 0x194]
xor eax, eax
call fcn.00402774
mov edx, dword [ebp - 0x194]
mov ecx, dword [ebx + 4]
mov eax, ebx
call fcn.00406fd8
call sub.wsock32.dll_WSACleanup
jmp 0x407346

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404234
xor eax, eax
push ebp
push 0x40753d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.00404044
push eax
lea eax, [ebp - 4]
call fcn.0040429c
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.wsock32.dll_send
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407544
lea eax, [ebp - 4]
call fcn.00403dcc
ret
Function at 0x4096f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebx
mov ebx, eax
lea eax, [ebx + 0x44]
push eax
mov dl, 1
mov al, 2
call fcn.00404c28
push eax
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebx + 0x30], eax
mov word [ebx + 0x34], 2
mov ax, word [ebx + 4]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x36], ax
mov eax, dword [ebx + 8]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebx + 0x38], eax
push 0x10
lea eax, [ebx + 0x34]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x40975a
mov eax, ebx
call fcn.004095dc
mov eax, ebx
call fcn.004078e4
call sub.wsock32.dll_WSACleanup
cmp dword [ebx + 0x2c], 0
jne 0x4096f3
pop ebx
ret

Function at 0x409824
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x198], edx
mov dword [ebp - 0x194], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40993a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x40990d
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x409903
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4098fd
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x194]
call fcn.00403fb4
mov edx, dword [ebp - 0x194]
mov eax, 0x409950
call fcn.00404388
dec eax
je 0x4098fc
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x198]
call fcn.00403fb4
mov edx, dword [ebp - 0x198]
mov eax, 0x40995c
call fcn.00404388
dec eax
je 0x4098fc
mov eax, dword [esi + ebx*4]
mov al, byte [eax]
mov byte [edi + 4], al
mov eax, dword [esi + ebx*4]
mov al, byte [eax + 1]
mov byte [edi + 5], al
mov eax, dword [esi + ebx*4]
mov al, byte [eax + 2]
mov byte [edi + 6], al
mov eax, dword [esi + ebx*4]
mov al, byte [eax + 3]
mov byte [edi + 7], al
jmp 0x409903
inc ebx
cmp dword [esi + ebx*4], 0
jne 0x409883
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409917
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409941
lea eax, [ebp - 0x198]
mov edx, 2
call fcn.00403df0
ret

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

Disassembly:
push ebx
mov ebx, edx
mov eax, ebx
call fcn.00404244
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4099a5
and eax, 0x10
cmp eax, 0x10
je 0x4099a9
xor eax, eax
jmp 0x4099ab
mov al, 1
neg al
sbb eax, eax
pop ebx
ret
Function at 0x40a1dc
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
xor edi, edi
lea eax, [ebx + 0x10]
call fcn.00403dcc
cmp ebp, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40a245
mov eax, dword [ebx + 0x10]
mov edx, 0x40a378
call fcn.00404190
jne 0x40a214
lea eax, [ebx + 0x10]
call fcn.00403dcc
jmp 0x40a24d
mov eax, dword [ebx + 0x10]
mov edx, 0x40a384
call fcn.00404190
jne 0x40a230
lea eax, [ebx + 0x10]
mov edx, 0x40a378
call fcn.00403e20
cmp dword [ebx + 0x10], 0
jne 0x40a24d
lea eax, [ebx + 0x10]
mov edx, 0x40a384
call fcn.00403e20
jmp 0x40a24d
lea eax, [ebx + 0x10]
call fcn.00403dcc
mov eax, ebx
call fcn.0040a02c
mov eax, dword [0x40b158]
inc dword [eax]
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [esp], 2
push 0x8b
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a2a7
or edi, 0xffffffff
jmp 0x40a334
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x1bd
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a2ea
or edi, 0xffffffff
jmp 0x40a334
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x75d7
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a32d
or edi, 0xffffffff
jmp 0x40a334
mov eax, dword [0x40b170]
inc dword [eax]
test edi, edi
je 0x40a357
push esi
call sub.wsock32.dll_closesocket
lea eax, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, 0x40a390
call fcn.00404090
mov eax, ebx
call fcn.00409f04
mov ebp, eax
push 0x200
call sub.kernel32.dll_Sleep
jmp 0x40a1f1

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x430f40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
jmp 0x430f5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x430f61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x430f50
mov eax, 1
add ebx, ebx
jne 0x430f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x430f68
jne 0x430f84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430f68
xor ecx, ecx
sub eax, 3
jb 0x430f98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43100a
mov ebp, eax
add ebx, ebx
jne 0x430fa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x430fb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x430fd4
inc ecx
add ebx, ebx
jne 0x430fc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x430fb5
jne 0x430fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430fb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x430ff4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x430fe5
jmp 0x430f56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x430ff4
add edi, ecx
jmp 0x430f56
pop esi
mov edi, esi
mov ecx, 0x35f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x431012
cmp byte [edi], 6
jne 0x431012
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x431017
lea edi, [esi + 0x2e000]
mov eax, dword [edi]
or eax, eax
je 0x43108f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31fcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x32008]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x431044
mov ecx, edi
jns 0x431073
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x32010]
or eax, eax
je 0x431089
mov dword [ebx], eax
add ebx, 4
jmp 0x431061
call dword [esi + 0x3200c]
mov ebp, dword [esi + 0x32014]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4310c3
sub esp, 0xffffff80
jmp 0x403670
Function at 0x40261c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 0x10], 0
je 0x40263c
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x402648
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x402651
cmp byte [ebx], 0
jne 0x402658
xor eax, eax
jmp 0x402709
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x4026b6
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x40268a
cmp dword [ebp - 4], 0
je 0x40268a
cmp dword [ebp - 8], 0
jne 0x40268a
cmp dword [ebp + 0x10], 0
je 0x402685
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x4026b5
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402698
cmp ecx, 0xa
jne 0x4026a0
cmp ecx, 0xd
jne 0x4026bb
inc ebx
jmp 0x4026bb
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x4026b5
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x4026bb
inc esi
cmp byte [ebx], 0
jne 0x402661
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402707
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x402707
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov ecx, dword [ebp + 8]
dec ecx
lea edx, [ebp - 0x1008]
mov eax, dword [ebp - 4]
call fcn.0040fd78
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov byte [edx + ecx - 1], 0
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402711
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov eax, ebx
mov byte [esp], dl
lea esi, [esp + 4]
call fcn.0040fce8
cmp eax, 0x3f6
jae 0x402944
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040fc68
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x40275e
lea edx, [ebx + 1]
jmp 0x402760
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x4027b1
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x402789
jmp 0x402782
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402782
mov byte [ebx + eax], 0x20
jmp 0x402789
inc eax
cmp byte [ebx + eax], 0
jne 0x402772
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x40279e
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x4027b0
cmp edx, 0x20
jne 0x4027a7
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x4027b8
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x402767
cmp byte [0x415cfe], 0
je 0x4027c8
mov dword [esi + 0x14], 0x415cfe
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.004062dc
mov edi, eax
test edi, edi
je 0x4027f4
mov edx, str..inf
mov eax, edi
call fcn.0040fdf0
test eax, eax
jne 0x4027f4
mov dword [esi + 0xc], str.Install
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.00406e8c
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x40281c
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00406f58
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x40285f
cmp byte [esp + 1], 0
jne 0x40285f
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040fd68
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040fe3c
lea eax, [esp + 0x440]
xor edx, edx
call fcn.00406e8c
test al, al
je 0x402944
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402889
and dword [esi + 4], 0xfffffbff
mov dword [esi + 0x10], ebx
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402944
cmp byte [0x4158f4], 0
jne 0x4028a0
cmp byte [esp], 0
je 0x4028f6
mov ebx, dword [0x416180]
test ebx, ebx
je 0x4028b4
push ebx
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x4028b8
xor eax, eax
jmp 0x4028bd
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x4028d0
push 0
push dword [0x416180]
call sub.USER32.DLL_ShowWindow
push 0x7d0
push dword [esi + 0x38]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [esi + 0x38]
call fcn.0040294e
test ebx, ebx
je 0x4028f6
push 1
push dword [0x416180]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x402912
mov edx, str..exe
mov eax, edi
call fcn.0040fdf0
test eax, eax
je 0x402944
cmp byte [0x4158f4], 0
je 0x40292d
cmp byte [esp], 0
jne 0x40292d
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402944
mov edx, 0xc8
cmp byte [esp], 0
jne 0x40293e
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x40297c
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffffbe0
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x415044], 0
jne 0x402a05
mov eax, esp
call fcn.00405fac
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.0040fe14
test eax, eax
jne 0x402a05
push 0x41523d
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040fce8
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x400]
mov ecx, 0x1e
xor edx, edx
call fcn.0040fc68
mov dword [esp + 0x404], 3
mov word [esp + 0x410], 0x14
mov eax, esp
mov dword [esp + 0x408], eax
lea edx, [esp + 0x400]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x420
ret

Function at 0x402aee
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x4158fc], 0
je 0x402b65
cmp byte [0x416e3c], 0
je 0x402b65
lea edx, [esp + 8]
mov eax, 0x416e3c
call fcn.00402abd
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x402b65
mov eax, ebx
call fcn.0040fce8
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x402b6d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x4158fc], 0
je 0x402be6
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.00402abd
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402be6
mov dword [esp + 4], 0x400
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x410]
push eax
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x402bde
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040fd68
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x402cac
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret

Function at 0x402cb6
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0x402e14
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
push 0
call sub.OLE32.DLL_OleInitialize
lea eax, [ebp - 8]
push eax
push 0x415844
push 1
push 0
push 0x415854
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402f13
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push edi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x402e77
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x402e89
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.0040fd68
lea eax, [ebp - 0x40c]
call fcn.004063e4
cmp byte [ebp - 0x40c], 0
je 0x402eba
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edx, [ebp - 0xc]
push edx
push 0x415874
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402f0a
push 0x104
lea edx, [ebp - 0x614]
push edx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea ecx, [ebp - 0x614]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
jl 0x402f01
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call sub.OLE32.DLL_OleUninitialize
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402f24
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
push esp
call sub.SHELL32.DLL_SHGetMalloc
lea eax, [esp + 4]
push eax
push esi
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push ebx
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [esp + 4]
mov edx, dword [esp + 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
pop ecx
pop edx
pop esi
pop ebx
ret