joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448110
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x484918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047b0fe
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00447ab0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047b02c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0047780d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0047780d
push 1
push 0
push 0
mov ecx, esi
call fcn.004777b5
push 1
push 0
push 1
mov ecx, esi
call fcn.004777b5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047b170
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x448290
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x484938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047b0fe
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00447ab0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047b02c
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x448354
cmp dword [esp + 0x40], 1
jne 0x448352
cmp ecx, eax
jge 0x448354
mov eax, ecx
cmp eax, 0xc8
jge 0x448360
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00448110
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047b170
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x448ad0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4849a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00475c2d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047b3a6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047c8fe
test eax, eax
je 0x448bec
mov ecx, dword [esp + 0x3c]
call fcn.0047b3d3
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x448bb0
push edi
mov ecx, esi
call fcn.00478988
mov ecx, esi
call fcn.00448d50
cmp dword [esp + 0x38], 1
jne 0x448be5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00478af2
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44b620
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44b653
push esi
call fcn.0044e720
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44b64c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44b6d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44b6c2
mov eax, dword [esi + 8]
test eax, eax
je 0x44b677
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44b6be
cmp eax, 2
je 0x44b6c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44b66a
cmp eax, 3
je 0x44b69d
cmp eax, 1
jne 0x44b66a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44b66a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44b66a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044b700
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44b6e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044b700
add esp, 4
pop esi
ret

Function at 0x4586a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x458706
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x458706
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4586e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x458a90
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x458ac8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x459800
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x459849
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x459cc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x485140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00459870
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004598f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004598f0
lea ecx, [esi + 0xc]
call fcn.00474594
lea ecx, [esi + 0x10]
call fcn.00474594
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045ae80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045ae80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045ae80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00474609
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00474609
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x476a23
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x476a5b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00474ab0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00474a88
jmp 0x476a67
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x478111
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x478153
call fcn.0047e0c5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x478153
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47814a
xor eax, eax
jmp 0x47815b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00478161
pop edi
pop esi
pop ebx
ret 4

Function at 0x47e5f5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47e623
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47e641
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047e55b
jmp 0x47e641
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47e641
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047e55b
test edi, edi
mov eax, edi
jne 0x47e62b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402306
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 0x402326
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x40232f
cmp byte [ebx], 0
jne 0x402336
xor eax, eax
jmp 0x4023b6
xor esi, esi
jmp 0x402379
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402360
cmp dword [ebp - 4], 0
je 0x402360
test esi, esi
jne 0x402360
cmp dword [ebp + 8], 0
je 0x40235c
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x402379
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x40236e
cmp ecx, 0xa
jne 0x402376
cmp ecx, 0xd
jne 0x40237e
inc ebx
jmp 0x40237e
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x40233a
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x4023b4
mov eax, dword [ebp - 4]
test esi, esi
mov byte [eax], 0
je 0x4023b4
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.00406b1c
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4023be
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov al, byte [0x40d968]
test al, al
mov byte [esp], dl
lea esi, [esp + 4]
je 0x4023fa
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x4023ee
mov edx, 0x40c116
mov eax, ebx
call fcn.00406bf0
mov edx, 0x40d968
mov eax, ebx
call fcn.00406bf0
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.00406a40
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x402423
lea edx, [ebx + 1]
jmp 0x402425
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x402476
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x40244e
jmp 0x402447
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402447
mov byte [ebx + eax], 0x20
jmp 0x40244e
inc eax
cmp byte [ebx + eax], 0
jne 0x402437
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x402463
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x402475
cmp edx, 0x20
jne 0x40246c
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x40247d
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40242c
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.004057cc
mov edi, eax
test edi, edi
je 0x4024a9
mov edx, str..inf
mov eax, edi
call fcn.00406ba4
test eax, eax
jne 0x4024a9
mov dword [esi + 0xc], 0x40c1e7
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.00405ccc
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x4024d1
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00405d60
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x402514
cmp byte [esp + 1], 0
jne 0x402514
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.00406b1c
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.00406bf0
lea eax, [esp + 0x440]
xor edx, edx
call fcn.00405ccc
test al, al
je 0x4025fc
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x40253e
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 0x4025fc
cmp byte [0x40c044], 0
jne 0x402555
cmp byte [esp], 0
je 0x4025ad
mov ebx, dword [0x40cc90]
test ebx, ebx
je 0x402569
push ebx
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x40256d
xor eax, eax
jmp 0x402572
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x402585
push 0
push dword [0x40cc90]
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 0x4025ad
push 1
push dword [0x40cc90]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x4025c9
mov edx, str..exe
mov eax, edi
call fcn.00406ba4
test eax, eax
je 0x4025fc
cmp byte [0x40c044], 0
je 0x4025e4
cmp byte [esp], 0
jne 0x4025e4
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x4025fc
cmp byte [esp], 0
je 0x4025f1
mov edx, 0xc8
jmp 0x4025f6
mov edx, 0x3e8
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x402606
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 [0x40c045], 0
jne 0x40268f
mov eax, esp
call fcn.004028c8
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.00406bc8
test eax, eax
jne 0x40268f
push 0x40c1f4
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.00406a9c
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x400]
mov ecx, 0x1e
xor edx, edx
call fcn.00406a40
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 0x40274a
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x40c05d], 0
je 0x4027c1
cmp byte [0x40dd70], 0
je 0x4027c1
lea edx, [esp + 8]
mov eax, 0x40dd70
call fcn.00402719
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 0x4027c1
mov eax, ebx
call fcn.00406a9c
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 0x4027c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x40c05d], 0
je 0x402842
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.00402719
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402842
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 0x40283a
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.00406b1c
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x402950
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 0x402ab8
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 0x40cbe0
push 1
push 0
push 0x40cbf0
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402bb7
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 0x402b1b
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 0x402b2d
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.00406b1c
lea eax, [ebp - 0x40c]
call fcn.0040586c
cmp byte [ebp - 0x40c], 0
je 0x402b5e
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 0x40cc10
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402bae
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 0x402ba5
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 0x402bc8
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
Function at 0x402d2c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x40cc90]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x40c019], 0
jne 0x402d88
mov eax, dword [0x40e170]
call fcn.00403fb8
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x40c099
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x40c019], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
mov dword [esp], 0x3c
mov edx, esp
push edx
push 0
push 0x43a
push esi
call sub.USER32.DLL_SendMessageA
mov byte [esp + 0x19], 0
mov dword [esp + 4], 1
test bl, bl
je 0x402de2
and dword [esp + 8], 0xbfffffff
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
or dword [esp + 4], 0x40000000
mov ecx, esp
push ecx
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push edi
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
test bl, bl
je 0x402e36
or dword [esp + 8], 0x40000000
and dword [esp + 8], 0xfffffffe
mov eax, esp
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push 0x40c0c0
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x4034e0
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x40e984
push ebx
mov ebx, 0x40d968
push esi
call fcn.0040678c
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x40351a
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x40351a
lea eax, [esi + 1]
mov edx, 0x22
call fcn.00406aac
mov esi, eax
test esi, esi
je 0x4035ca
mov edx, 0x40c0f9
mov eax, esi
call fcn.00406af0
mov esi, eax
test eax, eax
je 0x40353d
mov eax, ebx
mov edx, esi
call fcn.00406b1c
mov byte [ebp - 1], 0
xor eax, eax
xor esi, esi
jmp 0x4035ba
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
je 0x403554
mov byte [ebp - 1], 1
cmp ecx, 0x22
jne 0x40355a
inc esi
test esi, 1
jne 0x4035b9
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
jne 0x40357b
test eax, eax
je 0x403585
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x20
je 0x403585
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x4035b9
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x403595
cmp edx, 0x53
jne 0x4035b9
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x4035a6
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
jne 0x4035b9
mov dword [0x40c058], 1
mov byte [0x40c05c], 1
jmp 0x4035c1
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x403547
cmp byte [ebp - 1], 0
jne 0x4035ca
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x40ccc0], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x40dd68], eax
push 0x65
push dword [0x40ccc0]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x40dd6c], eax
lea eax, [ebp - 0xc]
call fcn.0040515c
push 0x400
push 0x40d568
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x40d568
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov edx, 0x40d568
mov eax, 0x40ccc8
call fcn.004048c0
lea eax, [ebp - 0x24]
call fcn.00403e28
lea eax, [ebp - 0x3c]
call fcn.00403e28
push 0
push 0x4010a3
lea edx, [ebp - 0x24]
push 0
mov dword [0x40e170], edx
lea ecx, [ebp - 0x3c]
push str.STARTDLG
push ebx
mov dword [0x40e174], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
mov dword [0x40cc90], eax
xor edx, edx
mov dword [0x40e174], edx
mov dword [0x40e170], edx
cmp dword [0x40cc98], 0
jne 0x40369d
cmp dword [0x40cca4], 0
jne 0x40369d
mov ecx, 4
mov edx, dword [0x40c048]
xor eax, eax
call fcn.004017f1
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00403e4c
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403e4c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004051d0
cmp byte [0x40c044], 0
je 0x4036d2
call fcn.00402606
mov eax, 0x40d4dc
mov ecx, 0x80
xor edx, edx
call fcn.00406a40
cmp dword [0x40c054], 0
jle 0x4036f6
mov eax, dword [0x40c048]
call fcn.00406854
push dword [0x40dd68]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x40dd6c]
test eax, eax
je 0x403710
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x40ccb4], 0
jne 0x403731
cmp dword [0x40cc98], 0
je 0x403731
mov eax, 0x40ccb4
mov edx, 0xff
call fcn.00406654
mov dword [0x40cc98], 2
push dword [0x40ccb4]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10