joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003405
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x100126c
xor edi, edi
push 0x1001220
xor ebx, ebx
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
cmp esi, edi
jne 0x100345c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x10034b3
test eax, eax
jle 0x1003448
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
jl 0x100359f
mov ebx, 0x80004005
jmp 0x100359f
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 0xc]
push eax
push 0x7530
push edi
push edi
push edi
push 0x401
push esi
mov ebx, 0x80004005
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10034a8
call edi
test eax, eax
je 0x100359f
jle 0x10034a4
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x10034ab
mov ebx, dword [ebp - 0xc]
test ebx, ebx
jl 0x100359f
cmp dword [ebp - 8], 0
mov esi, 0x100000
je 0x1003505
push dword [ebp - 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1003505
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1003596
cmp eax, 0xffffffff
jne 0x1003591
call edi
test eax, eax
jle 0x10034fe
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1003596
push 0x100123c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1003535
call edi
cmp eax, 2
je 0x100359f
call edi
test eax, eax
jle 0x1003531
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x100359f
mov byte [ebp - 1], 1
xor esi, esi
cmp esi, 6
jae 0x100358b
cmp byte [ebp - 1], 0
je 0x1003596
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100357b
cmp eax, 0x102
je 0x1003575
cmp eax, 0xffffffff
jne 0x1003586
call edi
test eax, eax
jle 0x1003571
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1003586
mov byte [ebp - 1], 0
jmp 0x1003586
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
test ebx, ebx
jge 0x100353b
cmp byte [ebp - 1], 0
je 0x1003596
mov ebx, 0x80004005
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1003b75
Capabilities:
Accept command line arguments

Disassembly:
push 0xf0
push 0x100a510
call fcn.0100543c
push dword [section..data]
call fcn.010053fa
pop ecx
mov dword [section..data], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1003b65
mov ecx, dword [ebp - 0xa4]
and ecx, 0x7fff
mov edi, dword [ebp - 0xa0]
cmp edi, 2
je 0x1003a0c
or ecx, 0x8000
mov edx, dword [ebp - 0xac]
mov eax, edx
shl eax, 8
mov esi, dword [ebp - 0xa8]
add eax, esi
mov dword [0x100bd9c], edi
mov dword [0x100bda4], eax
mov dword [0x100bda8], edx
mov dword [0x100bdac], esi
mov dword [0x100bda0], ecx
call fcn.0100394c
mov dword [ebp - 0xb8], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.0100532f
pop ecx
test eax, eax
jne 0x1003a5d
push 0x1c
call fcn.0100391e
pop ecx
call fcn.0100514e
test eax, eax
jne 0x1003a6e
push 0x10
call fcn.0100391e
pop ecx
mov dword [ebp - 4], ebx
call fcn.01004ad5
test eax, eax
jge 0x1003a82
push 0x1b
call fcn.01003e7b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100c91c], eax
call fcn.01004999
mov dword [0x100bd8c], eax
call fcn.010048a5
test eax, eax
jge 0x1003aa8
push 8
call fcn.01003e7b
pop ecx
call fcn.01004557
test eax, eax
jge 0x1003ab9
push 9
call fcn.01003e7b
pop ecx
push ebx
call fcn.01003fbb
pop ecx
test eax, eax
je 0x1003acb
push eax
call fcn.01003e7b
pop ecx
call fcn.010044f3
test byte [ebp - 0xd4], bl
je 0x1003ae1
movzx ecx, word [ebp - 0xd0]
jmp 0x1003ae4
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call main
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
jne 0x1003b07
push eax
call fcn.0100411b
call fcn.01004151
jmp 0x1003b48
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xb4]
jmp 0x1003b6a
mov eax, 0xff
call fcn.01005484
ret
call fcn.01005631
jmp 0x1003998
Function at 0x10041c0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x100b010]
je 0x10041e6
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x10041d4
cmp esi, 0x17
jae 0x1004340
push 3
call fcn.01006762
pop ecx
cmp eax, 1
je 0x100430a
push 3
call fcn.01006762
pop ecx
test eax, eax
jne 0x1004219
cmp dword [section..data], 1
je 0x100430a
cmp edi, 0xfc
je 0x1004340
push 0x100192c
mov edi, 0x314
push edi
mov esi, 0x100bde0
push esi
call fcn.010066f5
add esp, 0xc
test eax, eax
je 0x100424f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100575a
add esp, 0x14
mov byte [0x100befd], bl
push 0x104
mov ebx, 0x100bdf9
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004292
push 0x1001914
push 0x2fb
push ebx
call fcn.010066f5
add esp, 0xc
test eax, eax
je 0x1004292
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0100575a
add esp, 0x14
push ebx
push edi
push esi
call fcn.0100667c
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x10042b0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100575a
add esp, 0x14
push 0x1001910
push edi
push esi
call fcn.0100667c
add esp, 0xc
test eax, eax
je 0x10042d0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100575a
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x100b014]
push edi
push esi
call fcn.0100667c
add esp, 0xc
test eax, eax
je 0x10042f5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100575a
add esp, 0x14
push 0x12010
push 0x10018e8
push esi
call fcn.010064d5
add esp, 0xc
jmp 0x1004340
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x1004340
cmp edi, 0xffffffff
je 0x1004340
mov edx, dword [esi*8 + 0x100b014]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004329
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100514e
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1001958
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x10051a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10019c4
push edi
call esi
push 0x10019b8
push edi
mov dword [0x100c204], eax
call esi
push 0x10019ac
push edi
mov dword [0x100c208], eax
call esi
push 0x10019a4
push edi
mov dword [0x100c20c], eax
call esi
mov dword [0x100c210], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x100c204], ebx
je 0x10051c6
cmp dword [0x100c208], ebx
je 0x10051c6
cmp dword [0x100c20c], ebx
je 0x10051c6
cmp dword [0x100c210], ebx
jne 0x10051ea
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x100c208], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x100c204], 0x1004e12
mov dword [0x100c20c], esi
mov dword [0x100c210], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100b174], eax
cmp eax, 0xffffffff
je 0x100525d
push dword [0x100c208]
push eax
call esi
test eax, eax
je 0x100525d
call fcn.01004179
push dword [0x100c204]
call fcn.01004d14
push dword [0x100c208]
mov dword [0x100c204], eax
call fcn.01004d14
push dword [0x100c20c]
mov dword [0x100c208], eax
call fcn.01004d14
push dword [0x100c210]
mov dword [0x100c20c], eax
call fcn.01004d14
add esp, 0x10
mov dword [0x100c210], eax
call fcn.01005e3e
test eax, eax
jne 0x1005263
call fcn.01004e4f
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1004ffe
push dword [0x100c204]
call fcn.01004d9a
pop ecx
call eax
mov dword [0x100b178], eax
cmp eax, 0xffffffff
je 0x1005258
push 0x214
push 1
call fcn.0100778d
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x1005258
push esi
push dword [0x100b178]
push dword [0x100c20c]
call fcn.01004d9a
pop ecx
call eax
test eax, eax
jne 0x10052b6
push esi
call fcn.010056c7
pop ecx
jmp 0x1005258
push ebx
push esi
call fcn.01004e91
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x100525f
Function at 0x10064d5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.01004d8c
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x100c6a8], ebx
jne 0x10065ae
push ebx
push ebx
push 0x1001ad4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x1006519
xor eax, eax
jmp 0x1006672
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001ac8
push edi
call esi
cmp eax, ebx
je 0x1006512
push eax
call fcn.01004d14
mov dword [esp], 0x1001ab8
push edi
mov dword [0x100c6a8], eax
call esi
push eax
call fcn.01004d14
mov dword [esp], 0x1001aa4
push edi
mov dword [0x100c6ac], eax
call esi
push eax
call fcn.01004d14
mov dword [0x100c6b0], eax
lea eax, [ebp - 8]
push eax
call fcn.01003f34
pop ecx
pop ecx
test eax, eax
je 0x100657c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100575a
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10065ae
push 0x1001a88
push edi
call esi
push eax
call fcn.01004d14
pop ecx
mov dword [0x100c6b8], eax
cmp eax, ebx
je 0x10065ae
push 0x1001a70
push edi
call esi
push eax
call fcn.01004d14
pop ecx
mov dword [0x100c6b4], eax
mov eax, dword [0x100c6b4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1006627
cmp dword [0x100c6b8], esi
je 0x1006627
push eax
call fcn.01004d9a
pop ecx
call eax
cmp eax, ebx
je 0x10065f4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x100c6b8]
call fcn.01004d9a
pop ecx
call eax
test eax, eax
je 0x10065f4
test byte [ebp - 0x18], 1
jne 0x1006627
lea eax, [ebp - 0xc]
push eax
call fcn.01003f75
pop ecx
test eax, eax
je 0x100660f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0100575a
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x100661e
or dword [ebp + 0x10], 0x200000
jmp 0x1006658
or dword [ebp + 0x10], 0x40000
jmp 0x1006658
mov eax, dword [0x100c6ac]
cmp eax, esi
je 0x1006658
push eax
call fcn.01004d9a
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1006658
mov eax, dword [0x100c6b0]
cmp eax, esi
je 0x1006658
push dword [ebp - 4]
push eax
call fcn.01004d9a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x100c6a8]
call fcn.01004d9a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1009ce5
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x100b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.01003f34
pop ecx
test eax, eax
je 0x1009d1a
push esi
push esi
push esi
push esi
push esi
call fcn.0100575a
add esp, 0x14
push 4
pop eax
call fcn.01009f50
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1009e36
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x1009daf
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1001a50
call esi
test eax, eax
jne 0x1009d86
push 0x1001a34
call esi
test eax, eax
je 0x1009daf
push 0x10026c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1009daf
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x1009daf
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x1009daf
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.01004692
add esp, 0xc
test eax, eax
jl 0x1009e36
not esi
and dword [ebp - 8], esi
je 0x1009de1
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.01004692
add esp, 0xc
test eax, eax
jl 0x1009e36
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x1009dec
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x1009e00
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x1009e36
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1009e36
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1009e36
xor eax, eax
inc eax
jmp 0x1009e38
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01003c87
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x73b643cc
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x5f552f95
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40241b
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 0x40243b
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x402447
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x402450
cmp byte [ebx], 0
jne 0x402457
xor eax, eax
jmp 0x402508
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x4024b5
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402489
cmp dword [ebp - 4], 0
je 0x402489
cmp dword [ebp - 8], 0
jne 0x402489
cmp dword [ebp + 0x10], 0
je 0x402484
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x4024b4
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402497
cmp ecx, 0xa
jne 0x40249f
cmp ecx, 0xd
jne 0x4024ba
inc ebx
jmp 0x4024ba
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x4024b4
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x4024ba
inc esi
cmp byte [ebx], 0
jne 0x402460
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402506
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x402506
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.0040f860
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 0x402788
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 0x402811
mov eax, esp
call fcn.00405c60
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.0040f8fc
test eax, eax
jne 0x402811
push 0x414203
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040f7d0
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x400]
mov ecx, 0x1e
xor edx, edx
call fcn.0040f750
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 0x4028fa
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x41405d], 0
je 0x402971
cmp byte [0x415978], 0
je 0x402971
lea edx, [esp + 8]
mov eax, 0x415978
call fcn.004028c9
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 0x402971
mov eax, ebx
call fcn.0040f7d0
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 0x402ab8
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 0x402c20
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 0x41480c
push 1
push 0
push 0x41481c
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402d1f
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 0x402c83
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 0x402c95
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.0040f850
lea eax, [ebp - 0x40c]
call fcn.00406080
cmp byte [ebp - 0x40c], 0
je 0x402cc6
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 0x41483c
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402d16
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 0x402d0d
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 0x402e94
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x4148bc]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x414019], 0
jne 0x402ef0
mov eax, dword [0x415d78]
call fcn.0040437c
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x414099
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x414019], 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 0x402f4a
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 0x402f9e
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 0x4140c0
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x4038a4
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x41a4fc
push ebx
mov ebx, 0x415570
push esi
call fcn.00410120
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x4038de
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x4038de
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040f7e0
mov esi, eax
test esi, esi
je 0x40398e
mov edx, 0x414108
mov eax, esi
call fcn.0040f824
mov esi, eax
test eax, eax
je 0x403901
mov eax, ebx
mov edx, esi
call fcn.0040f850
mov byte [ebp - 1], 0
xor eax, eax
xor esi, esi
jmp 0x40397e
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
je 0x403918
mov byte [ebp - 1], 1
cmp ecx, 0x22
jne 0x40391e
inc esi
test esi, 1
jne 0x40397d
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
jne 0x40393f
test eax, eax
je 0x403949
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x20
je 0x403949
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x40397d
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x403959
cmp edx, 0x53
jne 0x40397d
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x40396a
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
jne 0x40397d
mov dword [0x414058], 1
mov byte [0x41405c], 1
jmp 0x403985
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40390b
cmp byte [ebp - 1], 0
jne 0x40398e
mov byte [ebx], 0
push 0x400
push 0x415170
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x415170
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x41a4f4], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x415970], eax
push 0x65
push dword [0x41a4f4]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x415974], eax
lea eax, [ebp - 0xc]
call fcn.00405644
mov edx, 0x415170
mov eax, 0x41a4e0
call fcn.00404c84
lea eax, [ebp - 0x24]
call fcn.004041ec
lea eax, [ebp - 0x3c]
call fcn.004041ec
push 0
push 0x401183
lea edx, [ebp - 0x24]
push 0
mov dword [0x415d78], edx
lea ecx, [ebp - 0x3c]
push str.STARTDLG
push ebx
mov dword [0x415d7c], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
mov dword [0x4148bc], eax
xor edx, edx
mov dword [0x415d7c], edx
mov dword [0x415d78], edx
cmp dword [0x4148c4], 0
jne 0x403a61
cmp dword [0x4148d0], 0
jne 0x403a61
mov ecx, 4
mov edx, dword [0x414048]
xor eax, eax
call fcn.004018ac
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00404210
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404210
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004056b8
cmp byte [0x414044], 0
je 0x403a96
call fcn.00402788
mov eax, 0x4150e0
mov ecx, 0x80
xor edx, edx
call fcn.0040f750
cmp dword [0x414054], 0
jle 0x403aba
mov eax, dword [0x414048]
call fcn.0040f6d4
push dword [0x415970]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x415974]
test eax, eax
je 0x403ad4
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x41a4d4], 0
jne 0x403af5
cmp dword [0x4148c4], 0
je 0x403af5
mov eax, 0x41a4d4
mov edx, 0xff
call fcn.0040c984
mov dword [0x4148c4], 2
push dword [0x41a4d4]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10