joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003c042
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003c08f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10025506
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
add ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x1003c0a3
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003c0a3
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret
Function at 0x1003e6cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003e716
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 1
mov eax, dword [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp - 0x18]
push dword [eax]
call fcn.1003d80c
add esp, 0x10
jmp 0x1003e727
push 0
push 0xe47
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esp, ebp
pop ebp
ret
Function at 0x10043427
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x47fd
push 0xe17
lea eax, [ebp + 8]
push eax
push 1
call fcn.100431ef
add esp, 0x14
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10043461
xor eax, eax
jmp 0x10043587
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1004347f
xor eax, eax
jmp 0x10043587
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 8]
call fcn.10042efd
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1004349d
xor eax, eax
jmp 0x10043587
push 0x3ea
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push 1
push 0x780f
push dword [ebp - 8]
call fcn.10043073
add esp, 0x20
push 1
push 0x4fa1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x34b3
lea eax, [ebp - 8]
push eax
call fcn.10043270
add esp, 0x18
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10043316
add esp, 0xc
push dword [ebp - 4]
call fcn.10042dde
pop ecx
test eax, eax
jne 0x10043512
xor eax, eax
jmp 0x10043587
push 0x7b9a
lea eax, [ebp - 4]
push eax
push 0x7277
push 1
call fcn.10043370
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1004356f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x10043549
xor eax, eax
jmp 0x10043587
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10043562
xor eax, eax
jmp 0x10043587
lea eax, [ebp - 4]
push eax
push 1
call fcn.100433f4
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10043580
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x10043584
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x1005214e
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1005216e
push 1
push 0x1034
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
jmp 0x1005218c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1005218c
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret
Function at 0x1007f8e5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008a330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10071e54
mov dword [ebp - 0x14], eax
cmp dword [0x14b215dc], esi
jne 0x1007f9d8
push 0x800
push esi
push 0x1000790c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007f965
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007fab8
push esi
push esi
push 0x1000790c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007fab8
push 0x10007924
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007fab8
push eax
call ebx
push 0x10007930
push edi
mov dword [0x14b215dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007940
push edi
mov dword [0x14b215e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007954
push edi
mov dword [0x14b215e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x14b215ec], eax
test eax, eax
je 0x1007f9d5
push 0x10007970
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x14b215e8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007f9fd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007f9f0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007fa12
push 4
pop eax
jmp 0x1007faba
cmp dword [ebp - 0x14], esi
je 0x1007fa12
push dword [0x14b215dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007f9f7
mov eax, dword [0x14b215e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007fa70
cmp dword [0x14b215ec], edi
je 0x1007fa70
push eax
call ebx
push dword [0x14b215ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007fa70
test eax, eax
je 0x1007fa70
call ecx
test eax, eax
je 0x1007fa65
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007fa65
test byte [ebp - 8], 1
jne 0x1007fa70
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007faa0
mov eax, dword [0x14b215e0]
cmp eax, edi
je 0x1007fa9d
push eax
call ebx
test eax, eax
je 0x1007fa9d
call eax
mov esi, eax
test esi, esi
je 0x1007fa9d
mov eax, dword [0x14b215e4]
cmp eax, edi
je 0x1007fa9d
push eax
call ebx
test eax, eax
je 0x1007fa9d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x14b215dc]
call ebx
test eax, eax
je 0x1007fab8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007faba
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0xc621b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00c62140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00c62140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00c62140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00c62140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xc62bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xc62c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xc7487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xc62c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xc62c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
push esi
test eax, eax
je 0x401021
cmp byte [eax + 2], 0
jne 0x401081
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x401081
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401070
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401070
push 0
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
js 0x401070
cmp dword [ebp - 8], 0
jne 0x401081
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0040108a
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402054
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 0x402074
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x40207d
cmp byte [ebx], 0
jne 0x402084
xor eax, eax
jmp 0x402119
xor esi, esi
jmp 0x4020dc
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x4020ae
cmp dword [ebp - 4], 0
je 0x4020ae
test esi, esi
jne 0x4020ae
cmp dword [ebp + 8], 0
je 0x4020aa
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x4020dc
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x4020bc
cmp ecx, 0xa
jne 0x4020c4
cmp ecx, 0xd
jne 0x4020e1
inc ebx
jmp 0x4020e1
xor ecx, ecx
mov cl, al
cmp ecx, 0x5c
jne 0x4020d9
xor ecx, ecx
mov cl, byte [ebx]
cmp ecx, 0x6e
jne 0x4020d9
inc ebx
mov al, 0xa
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x402088
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402117
mov edx, dword [ebp - 4]
test esi, esi
mov byte [edx], 0
je 0x402117
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.0040d5a0
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402121
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov al, byte [0x4134c0]
test al, al
mov byte [esp], dl
lea esi, [esp + 4]
je 0x40215d
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x402151
mov edx, 0x41210b
mov eax, ebx
call fcn.0040d674
mov edx, 0x4134c0
mov eax, ebx
call fcn.0040d674
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040d4a0
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x402186
lea edx, [ebx + 1]
jmp 0x402188
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x4021d9
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x4021b1
jmp 0x4021aa
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x4021aa
mov byte [ebx + eax], 0x20
jmp 0x4021b1
inc eax
cmp byte [ebx + eax], 0
jne 0x40219a
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x4021c6
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x4021d8
cmp edx, 0x20
jne 0x4021cf
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x4021e0
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40218f
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.004056cc
mov edi, eax
test edi, edi
je 0x40220c
mov edx, str..inf
mov eax, edi
call fcn.0040d628
test eax, eax
jne 0x40220c
mov dword [esi + 0xc], 0x4121df
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.00405c2c
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x402234
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00405ccc
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x402277
cmp byte [esp + 1], 0
jne 0x402277
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040d5a0
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040d674
lea eax, [esp + 0x440]
xor edx, edx
call fcn.00405c2c
test al, al
je 0x402340
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x4022a1
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 0x402340
cmp byte [0x412045], 0
jne 0x4022b8
cmp byte [esp], 0
je 0x4022f1
push dword [0x412810]
call sub.USER32.DLL_IsWindowVisible
mov ebx, eax
test ebx, ebx
je 0x4022d6
push 0
push dword [0x412810]
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push dword [esi + 0x38]
call sub.KERNEL32.DLL_WaitForSingleObject
test ebx, ebx
je 0x4022f1
push 1
push dword [0x412810]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x40230d
mov edx, str..exe
mov eax, edi
call fcn.0040d628
test eax, eax
je 0x402340
cmp byte [0x412045], 0
je 0x402328
cmp byte [esp], 0
jne 0x402328
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402340
cmp byte [esp], 0
je 0x402335
mov ecx, 0xc8
jmp 0x40233a
mov ecx, 0x3e8
push ecx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x40234a
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffff7e0
lea eax, [esp + 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x400]
call fcn.0040d520
mov ecx, eax
mov edx, esp
lea eax, [esp + 0x400]
call fcn.0040d5f4
test eax, eax
jne 0x4023e1
push 0x4121ec
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040d520
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x800]
mov ecx, 0x1e
xor edx, edx
call fcn.0040d4a0
mov dword [esp + 0x804], 3
mov word [esp + 0x810], 0x14
mov eax, esp
mov dword [esp + 0x808], eax
lea edx, [esp + 0x800]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x820
ret

Function at 0x40249c
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x41205c], 0
je 0x402513
cmp byte [0x4138c8], 0
je 0x402513
lea edx, [esp + 8]
mov eax, 0x4138c8
call fcn.0040246b
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 0x402513
mov eax, ebx
call fcn.0040d520
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 0x40251b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x41205c], 0
je 0x402594
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.0040246b
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402594
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 0x40258c
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040d5a0
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x402684
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 0x4027c8
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 0x412760
push 1
push 0
push 0x412770
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x4028c7
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 0x40282b
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 0x40283d
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.0040d5a0
lea eax, [ebp - 0x40c]
call fcn.004057c0
cmp byte [ebp - 0x40c], 0
je 0x40286e
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 0x412790
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x4028be
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 0x4028b5
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 0x4028d8
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 0x4029f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x412810]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x412021], 0
jne 0x402a4c
mov eax, dword [0x413cc8]
call fcn.00403e68
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x412099
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x412021], 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
and dword [esp + 8], 0xbfffffff
mov byte [esp + 0x19], 0
test bl, bl
je 0x402a98
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
jmp 0x402aa3
and dword [esp + 8], 0xfffffffe
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0x40000001
mov eax, esp
push eax
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
push 0x4120c0
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret