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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4461f8]
test eax, eax
jne 0x40e6b3
mov ecx, 0x4461f0
call fcn.0040e619
mov eax, dword [0x4461f8]
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
mov ecx, esi
and ecx, 0xfffffff0
cmp byte [ebp + 0x14], dl
setne dl
cmp byte [ebp + 0x10], 0
je 0x40e6fd
test eax, eax
je 0x40e718
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x40e73d
push str.CryptProtectMemory_failed
mov esi, 0x43ef80
push esi
call fcn.00406b5b
pop ecx
pop ecx
mov ecx, esi
call fcn.0041db34
push 2
mov ecx, esi
call fcn.00406b56
jmp 0x40e73d
mov eax, dword [0x4461fc]
test eax, eax
je 0x40e718
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x40e73d
push str.CryptUnprotectMemory_failed
jmp 0x40e6de
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x40e73c
push edi
mov edi, dword [ebp + 8]
add bl, 0x4b
lea ecx, [edx + edi]
lea eax, [edx + ebx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x40e72e
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x40f0d4
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x40f35a
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret 4
Function at 0x40f3fb
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x130]
xor esi, esi
lea ebx, [edi + 0x28]
push dword [ebx]
call fcn.00424f44
mov dword [esp + esi*4 + 0x30], eax
lea ebx, [ebx + 4]
inc esi
pop ecx
cmp esi, 0x10
jb 0x40f411
push 0x30
lea ebx, [esp + 0x68]
pop ebp
mov ecx, dword [ebx - 0x34]
mov esi, ecx
mov edx, dword [ebx]
mov eax, ecx
rol esi, 0xe
lea ebx, [ebx + 4]
ror eax, 7
xor esi, eax
shr ecx, 3
xor esi, ecx
mov eax, edx
mov ecx, edx
rol eax, 0xd
rol ecx, 0xf
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add esi, ecx
add esi, dword [ebx - 0x3c]
add esi, dword [ebx - 0x18]
mov dword [ebx + 4], esi
sub ebp, 1
jne 0x40f42d
mov eax, dword [edi + 4]
xor ebx, ebx
mov ecx, dword [edi]
mov ebp, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x1c]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
jmp 0x40f4a2
mov edx, dword [esp + 0x28]
mov esi, ebp
mov dword [esp + 0x28], ebp
ror esi, 0xb
mov eax, ebp
rol eax, 7
mov ecx, ebp
xor esi, eax
not ecx
and ecx, dword [esp + 0x18]
mov eax, ebp
ror eax, 6
xor esi, eax
mov eax, edx
and eax, ebp
mov ebp, dword [esp + 0x20]
xor ecx, eax
mov eax, dword [esp + 0x18]
add esi, ecx
mov dword [esp + 0x18], edx
add esi, dword [ebx + 0x431780]
mov edx, edi
add esi, dword [esp + ebx + 0x2c]
add ebx, 4
add esi, dword [esp + 0x24]
mov dword [esp + 0x24], eax
add ebp, esi
ror edx, 0xd
mov eax, edi
rol eax, 0xa
xor edx, eax
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x14]
mov ecx, eax
and eax, dword [esp + 0x10]
xor ecx, dword [esp + 0x10]
and ecx, edi
xor ecx, eax
mov eax, dword [esp + 0x10]
add edx, ecx
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
lea edi, [edx + esi]
cmp ebx, 0x100
jb 0x40f49e
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x130]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
mov ecx, dword [esp + 0x10]
add dword [edi + 4], ecx
mov ecx, eax
add dword [edi + 8], ecx
mov ecx, dword [esp + 0x20]
add dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x28]
add dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x18]
add dword [edi + 0x18], ecx
add dword [edi + 0x10], ebp
mov ecx, dword [esp + 0x24]
add dword [edi + 0x1c], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 4
Function at 0x40fab1
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x40fb0a
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
test ecx, ecx
pop ebx
setne al
mov esp, ebp
pop ebp
ret
Function at 0x41030f
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x41038a
push ebp
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x410449
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x410366
push str.CreateThread_failed
push 0x43ef80
call fcn.00406b5b
pop ecx
pop ecx
mov ecx, 0x43ef80
call fcn.0041db34
push 2
mov ecx, 0x43ef80
call fcn.00406b56
mov dword [edi], ebp
inc dword [esi + 0x84]
mov eax, dword [0x446208]
test eax, eax
je 0x410380
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x41031f
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x418a51
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, ecx
push esi
push 0
push ebp
mov dword [ebx + 8], ebp
mov byte [ebx + 0x26], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x20]
mov ecx, ebx
call fcn.004187a2
cmp dword [ebx + 0x1c], 0
je 0x418a8a
push dword [ebx + 0x1c]
call fcn.0042248e
pop ecx
cmp dword [esp + 0x28], 0
jne 0x418a95
xor eax, eax
jmp 0x418a9f
push dword [esp + 0x28]
call fcn.00425fcc
pop ecx
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x20], eax
lea eax, [esp + 0xc]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [ebx + 4], 0
je 0x418adb
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
push edi
push ebx
push dword [ebx]
sub esi, eax
lea edi, [eax + 1]
push 0
push ebp
sub esi, 2
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
push esi
push dword [esp + 0x2c]
xor esi, esi
push edi
push 0x40000000
push esi
push str.RarHtmlClassName
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x418b5d
test ebp, ebp
je 0x418b73
cmp dword [ebx + 0x20], esi
jne 0x418b73
cmp dword [ebx + 0x1c], esi
je 0x418b73
push dword [ebx + 0x1c]
mov ecx, ebx
call fcn.00418874
mov esi, eax
test esi, esi
je 0x418b73
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0042248e
pop ecx
jmp 0x418b73
test eax, eax
je 0x418b73
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
Function at 0x418ebb
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x432e1c
push 1
push ebx
push 0x432f0c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x418f8c
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x432efc
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x418f83
cmp byte [ebp + 8], bl
je 0x418f0e
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x418f2b
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
cmp dword [ebp + 0x1c], ebx
jne 0x418f3d
push 0x4312e4
jmp 0x418f40
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x418f55
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x418f66
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x418f7a
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x419063
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x4190a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push 0x4323bc
push dword [esp + 0x10]
push dword [0x43ef00]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41919b
push ebx
push esi
push dword [0x43ef00]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4190f8
push esi
push dword [0x43ef00]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4190f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4190ff
xor eax, eax
jmp 0x41919a
push ebp
push edi
push ebx
xor ebp, ebp
push 2
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x419194
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41918d
push ebx
push esi
push eax
call fcn.0041e370
add esp, 0xc
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x18]
push eax
push ebp
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x419186
push ebp
push dword [esp + 0x1c]
call fcn.0041903a
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
je 0x419186
mov ecx, dword [esi + 8]
mov dword [esi + 8], ebp
test ecx, ecx
jne 0x41917e
push 0xffffff
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x41917e
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret 4

Function at 0x41964a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041d280
cmp word [0x44749a], 0
je 0x4196e6
push esi
push 6
push dword [0x43c14c]
mov esi, 0x44749a
push esi
call fcn.0040b718
push eax
call fcn.00411261
test eax, eax
jne 0x4196e5
push 0x446498
call fcn.004194f8
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.0040f8e7
lea eax, [ebp - 0x1024]
push eax
call fcn.00422473
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.0041e210
add esp, 0x10
mov dword [ebp - 0x1c], 3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419742
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43c164], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x41978d
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x45ccd0], ax
xor eax, eax
mov word [0x45ccd2], ax
mov dword [0x43c164], 0x45ccd0
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f7b6
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43c154
mov word [edi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
mov word [edi + esi*2 - 2], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4199a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041d280
cmp byte [0x4484a0], 0
je 0x419a53
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041ae3c
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419a53
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x1000
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419a4a
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x419a2e
mov eax, ecx
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040f8e7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x419aff
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041d280
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x419b1a
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x419b27
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x419bea
movzx eax, word [esi]
test ax, ax
je 0x419bea
push ebp
mov ebp, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
mov dword [esp + 0x10], ebx
movzx eax, ax
add esi, 2
cmp eax, 0x3d
jne 0x419b74
test edi, edi
je 0x419b7e
test ebx, ebx
jne 0x419b7e
test ecx, ecx
je 0x419b70
mov byte [ecx], 1
mov ebx, ebp
jmp 0x419b95
cmp eax, 0xd
je 0x419ba8
cmp eax, 0xa
je 0x419bab
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x419ba3
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x419b56
jmp 0x419bab
mov byte [edx], 1
jmp 0x419bab
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x419be4
mov word [edi], ax
test ebx, ebx
je 0x419be4
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [esp + 0x202c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040f8e7
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x419bec
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x419bf7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov ebx, eax
neg ebx
sbb bl, bl
add bl, 1
je 0x419c46
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
dec eax
neg eax
sbb al, al
lea ebx, [eax + 1]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x419c4e
mov eax, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41c055
Capabilities:
Hide graphical window

Disassembly:
and dword [0x446470], 0
push 1
push dword [esp + 8]
mov byte [0x44646a], 1
mov byte [0x44646b], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.0040112d
cmp dword [0x446478], 0
jne 0x41c095
cmp byte [0x446468], 0
je 0x41c09e
cmp dword [0x44648c], 0
jne 0x41c0b1
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41c1b1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041d280
cmp byte [0x4484a0], 0
je 0x41c240
cmp word [0x4484a2], 0
je 0x41c240
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x4484a2
call fcn.0041ae3c
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41c23f
push dword [ebp + 8]
call fcn.00422473
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push 1
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41c246
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041d280
push esi
push dword [ebp + 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call fcn.0040f66b
mov esi, eax
test esi, esi
je 0x41c29e
movzx ecx, word [esi]
push ecx
jmp 0x41c289
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040f782
test al, al
jne 0x41c282
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x402b64
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402ba1
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402bc1
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404498
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402dcc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404228
test esi, esi
jne 0x402e03
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404318
jmp 0x402e24
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c68
mov dword [esp], eax
test esi, esi
je 0x402e24
cmp dword [ebx], 0
je 0x402e24
dec esi
jmp 0x402e0b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4033f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x425020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403490
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403470
xor eax, eax
push ebp
push 0x403469
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4034ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403470
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x425020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x425020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x427044], 0
je 0x404105
cmp word [0x427218], 0xd7b2
jne 0x4040cd
cmp dword [0x427220], 0
jbe 0x4040cd
mov eax, 0x427214
call dword [0x427230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x42506c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40412c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x425030], 0
jne 0x404121
push 0
push 0x425064
push 0x42506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e28
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405e8e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404498
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fec
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e78
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e95
lea eax, [ebp - 0x10]
call fcn.00404228
ret

Function at 0x407b70
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004046e8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x407b92
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40a958
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a991
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404318
jmp 0x40a99a
mov eax, ebx
mov edx, esi
call fcn.0040427c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a9a4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a9c5
mov al, byte [esp]
jmp 0x40a9c7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b05c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40aec4
mov eax, dword [0x426244]
cmp byte [eax], 0
je 0x40b0d8
mov eax, dword [0x42614c]
call fcn.00402ea0
call fcn.00402ab8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408010
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b120
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b10e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x426124]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x427660]
call fcn.004052d0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret