joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417523
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x417532
pop dword [ebp - 0x1c]
mov eax, 0x417532
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x4d8ff
push 0
mov eax, 0x9cd16eb7
sub eax, 0x9c8cbc07
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x78022011
sub ecx, 0x7801e2b7
xor ebx, ebx
add ebx, eax
mov edi, 0x488e00
add edi, dword [ebp - 0x1c]
mov edx, 0x5bc2ca7f
add edx, 0x96e2a873
xor dword [ebp - 0xc], 0x7cb5dc5f
mov esi, dword [edi]
add dword [ebp - 0x10], 0x1f24318a
sub esi, edx
mov dword [ebp - 0x18], 0x6b95ba22
mov dword [ebx], esi
sub dword [ebp - 8], 0xa3a58a7c
add ebx, 4
add edi, 4
loop 0x417588
add eax, 0xe83b
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x402ef8
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, 0x41901c
mov esi, ebx
xor edx, edx
push edi
lea ecx, [ebx + 0x8c]
sub esi, eax
mov edi, dword [eax]
mov dword [esi + eax], edi
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, edx
shr edi, 0x1f
add edx, edx
sub ecx, 4
or edi, edx
add edi, dword [eax]
add eax, 4
cmp eax, 0x419064
mov edx, edi
jl 0x402f15
mov eax, 0x419064
lea ecx, [ebx + 0x90]
mov esi, 0x100
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, edx
imul edi, edi, 0xd
imul edx, edx, 0x6800
shr edi, 0x15
or edi, edx
add ecx, 4
add edi, dword [eax]
add eax, 4
dec esi
mov edx, edi
jne 0x402f48
cmp eax, 0x41a064
jl 0x402f43
cmp edx, 0x55861a61
je 0x402f82
push str.Bad_initialization_data
jmp 0x403083
xor edi, edi
push 0xa
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
pop esi
push edi
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00402ae3
add esp, 0xc
dec esi
jne 0x402f8d
mov esi, dword [ebp - 0xc]
push 0xa
pop edi
push 1
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00402ae3
add esp, 0xc
dec edi
jne 0x402fa4
cmp esi, 0xaafe4ebd
jne 0x40307e
xor eax, eax
cmp dword [ebp - 0xc], eax
jne 0x40307e
cmp dword [ebp - 8], eax
jne 0x40307e
mov dword [ebp + 0x10], eax
mov esi, ebx
mov dword [ebp - 4], 0x12
push 4
xor ecx, ecx
pop edi
mov eax, dword [ebp + 0x10]
cdq
idiv dword [ebp + 0xc]
mov eax, dword [ebp + 8]
shl ecx, 8
movzx eax, byte [edx + eax]
or ecx, eax
inc dword [ebp + 0x10]
dec edi
jne 0x402fe7
xor dword [esi], ecx
add esi, 4
dec dword [ebp - 4]
jne 0x402fe2
mov edi, ebx
lea esi, [ebx + 0x88]
mov dword [ebp + 0x10], 9
push 0
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00402ae3
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [edi], eax
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [edi + 4], eax
mov dword [esi], eax
add edi, 8
sub esi, 8
dec dword [ebp + 0x10]
jne 0x403019
lea esi, [ebx + 0x94]
mov dword [ebp + 0x10], 4
mov edi, 0x80
push 0
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00402ae3
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi - 4], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
add esi, 8
dec edi
jne 0x403055
dec dword [ebp + 0x10]
jne 0x403050
xor eax, eax
jmp 0x40308e
push str.Error_in_crypt_block_routine
push ebx
call sub.MSVCRT.dll_strcpy
pop ecx
or eax, 0xffffffff
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4030e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418458
push 0x403218
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x42ea84], 0xffffffff
or dword [0x42ea88], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x41a1c0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x41a1bc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x42ea8c], eax
call fcn.00403217
cmp dword [0x41a070], 0
jne 0x403169
push 0x403214
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00403202
push 0x41900c
push 0x419008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x41a1b8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x41a1b4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x419004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004027a7
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x1001bd6d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1001bd7c
pop dword [ebp - 0x10]
mov eax, 0x84bbee58
add eax, 0x8b45cf24
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x773535f5
sub dword [ebp - 0x20], 0x28e2f0aa
mov dword [ebp - 0x1c], 0x3c735aad
sub dword [ebp - 0x1c], 0xa400e68
mov dword [ebp - 0x18], 0x12b5610e
sub dword [ebp - 0x18], 0xc6691ce0
mov dword [ebp - 0x14], 0xc1d1868d
add dword [ebp - 0x14], 0x3e2e7973
lea eax, [ebp - 0x20]
push eax
mov eax, 0x6f5b4d36
add eax, 0xa0a6a36e
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x9f07c37e
sub dword [ebp - 0x20], 0x2a955a28
mov dword [ebp - 0x1c], 0x38f65294
add dword [ebp - 0x1c], 0x8760ee1
mov dword [ebp - 0x18], 0xc35a9ea7
add dword [ebp - 0x18], 0xa014cdc5
mov dword [ebp - 0x14], 0xc3e8ba50
add dword [ebp - 0x14], 0x3c1745b0
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xd695755c
sub eax, 0xc69384c0
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3b2e8
push 0
call eax
mov ecx, 0x26c178ad
add ecx, 0xd93ecf94
xor edx, edx
add edx, eax
mov ebx, 0x405dd1ae
add ebx, 0xcfa4c852
add ebx, dword [ebp - 0x10]
mov esi, 0x51861676
add dword [ebp - 0xc], esi
mov edi, dword [ebx]
xor dword [ebp - 8], esi
xor edi, esi
mov dword [edx], edi
sub dword [ebp - 0xc], ebx
add edx, 0x31677cce
add edx, 0xce988336
add ebx, 0x853d640e
add ebx, 0x7ac29bf6
loop 0x1001be9a
add eax, 0x113d7
xor ebx, ebx
add ebx, eax
add eax, 0x1291e047
sub eax, 0x1291e042
mov ecx, 0xd8bb4e9b
sub ecx, 0xc8bb4e9b
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x1001cc37
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x1001ccba
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x1001cc84
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x1001cc84
cmp edi, ebx
jge 0x1001cc84
mov eax, dword [ebp + 0xc]
mov ecx, ebx
sub ecx, edi
push ecx
add eax, edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x1001ccb4
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x1001ccb4
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push dword [esi + 0x20]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop ebx
jmp 0x1001cccc
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x1001cf62
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
cmp byte [0x100269c0], al
je 0x1001cf99
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cffd
push 0x103
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1001bd6d
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1001bd6d
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.1001bd6d
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ddeb
leave
ret 0x10

Function at 0x1001d00e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100269c0], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001d03a
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001d06b
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001d069
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1001bd6d
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001d06b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001ddeb
leave
ret 8

Function at 0x1001d106
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100269c0], 0
mov eax, dword [ebp + 8]
je 0x1001d12e
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001d148
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1001bd6d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.1001ddeb
leave
ret 4

Function at 0x1001ddeb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100268b0]
jne 0x1001ddf5
repz ret
jmp fcn.1001e62c
Function at 0x6ce620
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x123000]
push edi
or ebp, 0xffffffff
jmp 0x6ce642
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6ce649
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ce638
mov eax, 1
add ebx, ebx
jne 0x6ce65b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6ce66c
jne 0x6ce68b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ce68b
dec eax
add ebx, ebx
jne 0x6ce678
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6ce650
add ebx, ebx
jne 0x6ce687
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6ce6dd
xor ecx, ecx
sub eax, 3
jb 0x6ce6a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6ce712
sar eax, 1
mov ebp, eax
jmp 0x6ce6ae
add ebx, ebx
jne 0x6ce6ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ce67c
inc ecx
add ebx, ebx
jne 0x6ce6bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ce67c
add ebx, ebx
jne 0x6ce6c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6ce6be
jne 0x6ce6da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6ce6be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6ce6fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6ce6ee
jmp 0x6ce63e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6ce6fc
add edi, ecx
jmp 0x6ce63e
pop esi
mov edi, esi
mov ecx, 0x9798
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6ce71a
cmp byte [edi], 0x28
jne 0x6ce71a
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 0x6ce71f
lea edi, [esi + 0x2cb000]
mov eax, dword [edi]
or eax, eax
je 0x6ce78e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d66ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d67f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6ce74c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2d67fc]
or eax, eax
je 0x6ce788
mov dword [ebx], eax
add ebx, 4
jmp 0x6ce769
call dword [esi + 0x2d67f8]
mov ebp, dword [esi + 0x2d6800]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x6ce7c2
sub esp, 0xffffff80
jmp 0x518d94
Function at 0x4023e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x402400
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x402409
cmp byte [ebx], 0
jne 0x402410
xor eax, eax
jmp 0x402490
xor esi, esi
jmp 0x402453
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x40243a
cmp dword [ebp - 4], 0
je 0x40243a
test esi, esi
jne 0x40243a
cmp dword [ebp + 8], 0
je 0x402436
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x402453
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402448
cmp ecx, 0xa
jne 0x402450
cmp ecx, 0xd
jne 0x402458
inc ebx
jmp 0x402458
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x402414
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x40248e
mov eax, dword [ebp - 4]
test esi, esi
mov byte [eax], 0
je 0x40248e
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.0040ee08
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402498
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov al, byte [0x41555c]
test al, al
mov byte [esp], dl
lea esi, [esp + 4]
je 0x4024d4
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x4024c8
mov edx, 0x414125
mov eax, ebx
call fcn.0040eedc
mov edx, 0x41555c
mov eax, ebx
call fcn.0040eedc
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040ed08
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x4024fd
lea edx, [ebx + 1]
jmp 0x4024ff
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x402550
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x402528
jmp 0x402521
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402521
mov byte [ebx + eax], 0x20
jmp 0x402528
inc eax
cmp byte [ebx + eax], 0
jne 0x402511
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x40253d
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x40254f
cmp edx, 0x20
jne 0x402546
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x402557
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x402506
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.00405e24
mov edi, eax
test edi, edi
je 0x402583
mov edx, str..inf
mov eax, edi
call fcn.0040ee90
test eax, eax
jne 0x402583
mov dword [esi + 0xc], 0x4141f6
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.0040693c
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x4025ab
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00406a08
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x4025ee
cmp byte [esp + 1], 0
jne 0x4025ee
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040ee08
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040eedc
lea eax, [esp + 0x440]
xor edx, edx
call fcn.0040693c
test al, al
je 0x4026d6
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402618
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 0x4026d6
cmp byte [0x414044], 0
jne 0x40262f
cmp byte [esp], 0
je 0x402687
mov ebx, dword [0x4148a8]
test ebx, ebx
je 0x402643
push ebx
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x402647
xor eax, eax
jmp 0x40264c
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x40265f
push 0
push dword [0x4148a8]
call sub.USER32.DLL_ShowWindow
push 0x7d0
push dword [esi + 0x38]
call sub.USER32.DLL_WaitForInputIdle
push 0xffffffffffffffff
push dword [esi + 0x38]
call sub.KERNEL32.DLL_WaitForSingleObject
test ebx, ebx
je 0x402687
push 1
push dword [0x4148a8]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x4026a3
mov edx, str..exe
mov eax, edi
call fcn.0040ee90
test eax, eax
je 0x4026d6
cmp byte [0x414044], 0
je 0x4026be
cmp byte [esp], 0
jne 0x4026be
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x4026d6
cmp byte [esp], 0
je 0x4026cb
mov edx, 0xc8
jmp 0x4026d0
mov edx, 0x3e8
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x4026e0
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 [0x414045], 0
jne 0x402769
mov eax, esp
call fcn.0040297c
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.0040eeb4
test eax, eax
jne 0x402769
push 0x414203
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040ed88
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x400]
mov ecx, 0x1e
xor edx, edx
call fcn.0040ed08
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 0x402824
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x41405d], 0
je 0x40289b
cmp byte [0x415964], 0
je 0x40289b
lea edx, [esp + 8]
mov eax, 0x415964
call fcn.004027f3
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 0x40289b
mov eax, ebx
call fcn.0040ed88
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 0x4028a3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x41405d], 0
je 0x40291c
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.004027f3
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x40291c
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 0x402914
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040ee08
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x402a04
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 0x402b6c
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 0x4147f8
push 1
push 0
push 0x414808
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402c6b
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 0x402bcf
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 0x402be1
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.0040ee08
lea eax, [ebp - 0x40c]
call fcn.00405f18
cmp byte [ebp - 0x40c], 0
je 0x402c12
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 0x414828
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402c62
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 0x402c59
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 0x402c7c
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