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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x445198]
test eax, eax
jne 0x40e4f9
mov ecx, 0x445190
call fcn.0040e45f
mov eax, dword [0x445198]
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 0x40e543
test eax, eax
je 0x40e55e
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x40e583
push str.CryptProtectMemory_failed
mov esi, 0x43ff1c
push esi
call fcn.00406d0a
pop ecx
pop ecx
mov ecx, esi
call fcn.0041def4
push 2
mov ecx, esi
call fcn.00406d05
jmp 0x40e583
mov eax, dword [0x44519c]
test eax, eax
je 0x40e55e
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x40e583
push str.CryptUnprotectMemory_failed
jmp 0x40e524
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x40e582
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 0x40e574
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x40ef1a
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 0x40f1a0
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 0x40f241
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.004251a8
mov dword [esp + esi*4 + 0x30], eax
lea ebx, [ebx + 4]
inc esi
pop ecx
cmp esi, 0x10
jb 0x40f257
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 0x40f273
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 0x40f2e8
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 + 0x432760]
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 0x40f2e4
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 0x410155
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x4101d0
push ebp
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x41028f
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
jne 0x4101ac
push str.CreateThread_failed
push 0x43ff1c
call fcn.00406d0a
pop ecx
pop ecx
mov ecx, 0x43ff1c
call fcn.0041def4
push 2
mov ecx, 0x43ff1c
call fcn.00406d05
mov dword [edi], ebp
inc dword [esi + 0x84]
mov eax, dword [0x4451a8]
test eax, eax
je 0x4101c6
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x410165
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x418bbc
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.0041891d
cmp dword [ebx + 0x1c], 0
je 0x418bf5
push dword [ebx + 0x1c]
call fcn.0042281e
pop ecx
cmp dword [esp + 0x28], 0
jne 0x418c00
xor eax, eax
jmp 0x418c0a
push dword [esp + 0x28]
call fcn.00426230
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 0x418c46
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 0x43318c
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 4], eax
pop edi
cmp dword [ebx + 0x10], esi
jne 0x418cc8
test ebp, ebp
je 0x418cde
cmp dword [ebx + 0x20], esi
jne 0x418cde
cmp dword [ebx + 0x1c], esi
je 0x418cde
push dword [ebx + 0x1c]
mov ecx, ebx
call fcn.004189ef
mov esi, eax
test esi, esi
je 0x418cde
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.0042281e
pop ecx
jmp 0x418cde
test eax, eax
je 0x418cde
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 0x41907b
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 0x43403c
push 1
push ebx
push 0x43413c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41914c
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x43412c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x419143
cmp byte [ebp + 8], bl
je 0x4190ce
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 0x4190eb
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 0x4190fd
push 0x4322d4
jmp 0x419100
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x419115
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 0x419126
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 0x41913a
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 0x419223
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 0x419265
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
push 0x433394
push dword [esp + 0x10]
push dword [0x43fec4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41935b
push ebx
push esi
push dword [0x43fec4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4192b8
push esi
push dword [0x43fec4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4192b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4192bf
xor eax, eax
jmp 0x41935a
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 0x419354
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41934d
push ebx
push esi
push eax
call fcn.0041e750
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 0x419346
push ebp
push dword [esp + 0x1c]
call fcn.004191fa
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
je 0x419346
mov ecx, dword [esi + 8]
mov dword [esi + 8], ebp
test ecx, ecx
jne 0x41933e
push 0xffffff
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x41933e
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 0x4198c6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041d620
cmp word [0x44643a], 0
je 0x419962
push esi
push 6
push dword [0x43d464]
mov esi, 0x44643a
push esi
call fcn.0040b975
push eax
call fcn.00411062
test eax, eax
jne 0x419961
push 0x445438
call fcn.004196b8
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.0040f72d
lea eax, [ebp - 0x1024]
push eax
call fcn.00422803
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.0041e5f0
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 0x4199be
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43d47c], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x419a09
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 [0x45bc70], ax
xor eax, eax
mov word [0x45bc72], ax
mov dword [0x43d47c], 0x45bc70
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f5fc
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43d46c
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 0x419c21
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041d620
cmp byte [0x447440], 0
je 0x419ccf
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041b096
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 0x419ccf
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 0x419cc6
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x419caa
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.0040f72d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x419d75
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041d620
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x419d90
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x419d9d
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x419e60
movzx eax, word [esi]
test ax, ax
je 0x419e60
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 0x419dea
test edi, edi
je 0x419df4
test ebx, ebx
jne 0x419df4
test ecx, ecx
je 0x419de6
mov byte [ecx], 1
mov ebx, ebp
jmp 0x419e0b
cmp eax, 0xd
je 0x419e1e
cmp eax, 0xa
je 0x419e21
mov word [ebp], ax
add ebp, 2
mov eax, dword [esp + 0x202c]
add eax, 0xfffffffe
cmp dword [esp + 0x10], eax
jge 0x419e19
movzx eax, word [esi]
inc dword [esp + 0x10]
test ax, ax
jne 0x419dcc
jmp 0x419e21
mov byte [edx], 1
jmp 0x419e21
add esi, 2
xor eax, eax
mov word [ebp], ax
test edi, edi
je 0x419e5a
mov word [edi], ax
test ebx, ebx
je 0x419e5a
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.0040f72d
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x419e62
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18

Function at 0x419e6d
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 0x419ebc
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 0x419ec4
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 0x41c2a9
Capabilities:
Hide graphical window

Disassembly:
and dword [0x44541c], 0
push 1
push dword [esp + 8]
mov byte [0x445410], 1
mov byte [0x445411], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401294
cmp dword [0x445424], 0
jne 0x41c2e9
cmp byte [0x445416], 0
je 0x41c2f2
cmp dword [0x44540c], 0
jne 0x41c305
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41c405
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041d620
cmp byte [0x447440], 0
je 0x41c494
cmp word [0x447442], 0
je 0x41c494
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x447442
call fcn.0041b096
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 0x41c493
push dword [ebp + 8]
call fcn.00422803
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 0x41c49a
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041d620
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.0040f4b1
mov esi, eax
test esi, esi
je 0x41c4f2
movzx ecx, word [esi]
push ecx
jmp 0x41c4dd
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0040f5c8
test al, al
jne 0x41c4d6
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1004605f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100870c0]
jne 0x10046069
repz ret
jmp fcn.1004ef8a

Function at 0x1004eda7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10087268]
je 0x1004edc2
inc edi
cmp edi, 0x17
jb 0x1004edb3
cmp edi, 0x17
jae 0x1004ef42
push ebp
push 3
call fcn.10055799
cmp eax, 1
pop ecx
je 0x1004ef0e
push 3
call fcn.10055799
test eax, eax
pop ecx
jne 0x1004edf6
cmp dword [0x1008894c], 1
je 0x1004ef0e
cmp ebx, 0xfc
je 0x1004ef41
push 0x1000ae6c
mov ebx, 0x314
push ebx
mov ebp, 0x10088b00
push ebp
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee2c
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x104
mov esi, 0x10088b19
push esi
push 0
mov byte [0x10088c1d], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004ee70
push 0x1000ae54
push 0x2fb
push esi
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee70
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1004fb11
add esp, 0x14
push esi
call fcn.10055430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004eeb5
push esi
call fcn.10055430
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10088e14
push 0x1000a540
sub ecx, eax
push ecx
push eax
call fcn.1005e49a
add esp, 0x14
test eax, eax
je 0x1004eeb5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
jmp 0x1004eeb7
xor esi, esi
push 0x1000ae50
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eed7
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push dword [edi*8 + 0x1008726c]
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eef9
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x12010
push 0x1000ae28
push ebp
call fcn.1005e49a
add esp, 0xc
jmp 0x1004ef41
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1004ef41
cmp ebp, 0xffffffff
je 0x1004ef41
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008726c]
push dword [esi]
call fcn.10055430
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1005e49a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1005e4a9
pop dword [ebp - 0x18]
mov eax, 0x7d569b0e
sub eax, 0x6d50b665
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x58e01
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x443d
xor esi, esi
add esi, eax
mov edi, 0xfc7f6862
add edi, 0x138aa39e
add edi, dword [ebp - 0x18]
mov ebx, 0x651c6ae9
add ebx, 0x23c440e7
xor dword [ebp - 8], esi
mov edx, dword [edi]
add dword [ebp - 0x10], edx
sub edx, ebx
add dword [ebp - 0x14], edi
mov dword [esi], edx
add dword [ebp - 0xc], eax
add esi, 0xcdf1d91e
sub esi, 0xcdf1d91a
add edi, 0x81a34349
add edi, 0x7e5cbcbb
loop 0x1005e4ff
add eax, 0x5dff8740
add eax, 0xa2017c87
mov ebx, eax
add eax, 5
mov ecx, 0x4ffc6fed
sub ecx, 0x3ffc6fed
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40a3fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40a40a
pop dword [ebp - 0x34]
mov eax, 0xc4c13a73
add eax, 0x3b7f6997
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xdfed6273
sub dword [ebp - 0x44], 0x919b1d28
mov dword [ebp - 0x40], 0x65475e13
add dword [ebp - 0x40], 0xccebee32
mov dword [ebp - 0x3c], 0x1e85e1de
sub dword [ebp - 0x3c], 0xd2399db0
mov dword [ebp - 0x38], 0x65b90624
add dword [ebp - 0x38], 0x9a46f9dc
lea eax, [ebp - 0x44]
push eax
mov eax, 0x6fc0c9f1
add eax, 0x90816683
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xe08791f6
add dword [ebp - 0x44], 0x93ead760
mov dword [ebp - 0x40], 0xb0b486c
add dword [ebp - 0x40], 0x36611909
mov dword [ebp - 0x3c], 0x328e779c
add dword [ebp - 0x3c], 0x30e0f4d0
mov dword [ebp - 0x38], 0x65006212
sub dword [ebp - 0x38], 0x65006212
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xa9900b5f
sub eax, 0xa94dda3b
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3d363
push 0
call eax
mov ecx, 0xc749b19b
sub ecx, 0xc7496b81
xor esi, esi
add esi, eax
mov edx, 0x434400
add edx, dword [ebp - 0x34]
mov ebx, 0xcef78823
add ebx, 0x787b93d5
mov edi, dword [edx]
sub edi, ebx
xor dword [ebp - 4], ebx
mov dword [esi], edi
add dword [ebp - 0x1c], ebx
add esi, 0x3fd5d2e7
add esi, 0xc02a2d1d
add edx, 4
loop 0x40a528
add eax, 0x2b02bd9a
sub eax, 0x2b01b25f
mov ebx, eax
add eax, 0xa14cc387
sub eax, 0xa14cc382
mov ecx, 0xa483faaf
add ecx, 0x5bbc0551
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x10009f5b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10009f6a
pop dword [ebp - 0xc]
mov eax, 0x10009f6a
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x4684c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x37d5a13e
sub ecx, 0x37d54b65
xor ebx, ebx
add ebx, eax
mov edi, 0x10187200
add edi, dword [ebp - 0xc]
mov edx, 0x158228d8
add edx, 0x6aca743a
mov esi, dword [edi]
sub dword [ebp - 8], 0x9566390b
add esi, edx
sub dword [ebp - 8], eax
mov dword [ebx], esi
xor dword [ebp - 4], eax
add ebx, 0x3506f28
add ebx, 0xfcaf90dc
add edi, 0x8e3b55d2
sub edi, 0x8e3b55ce
loop 0x10009fbb
add eax, 0x2606e204
sub eax, 0x260597cd
mov ebx, eax
add eax, 0xa713cbeb
sub eax, 0xa713cbe6
mov ecx, 0xd6d7050d
sub ecx, 0xc6d7050d
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push str.SystemRoot
call fcn.004019b4
mov esi, eax
add esp, 4
test esi, esi
je 0x401139
cmp byte [esi], 0
jne 0x401146
push str.WinDir
call fcn.004019b4
add esp, 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
push edi
call ebx
push str.stub1
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._system
push edi
call ebp
push str.stub2
push esi
call ebx
push str.32drive
push edi
call ebp
push str.stub3
push esi
call ebx
push str.rset
push edi
call ebp
push str.stub4
push esi
call ebx
push str.chos
push edi
call ebp
push str.stub5
push esi
call ebx
push 0x40c370
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
pop ebx
cmp eax, 0xffffffff
jne 0x4011c1
push esi
push str.Cannot_find_the_hosts_file__Windows_directory_is
call fcn.00401020
pop esi
ret