joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4086c0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x48ad60
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4b2098]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
call fcn.00402410
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 0xc]
mov dword [esp + 0x18], 0
test eax, eax
jl 0x40871f
push 0x49004c
push ecx
call fcn.00467d3a
add esp, 8
test eax, eax
je 0x40871f
sub eax, dword [esp + 8]
sar eax, 1
jns 0x408787
push 0x48fda0
push 0
lea ecx, [esp + 0x10]
call fcn.004021b0
lea ecx, [esp + 0xc]
push ecx
call fcn.00407280
add esp, 4
mov eax, dword [eax]
push eax
push 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.004021b0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408774
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x48fda0
push 0x48fd98
lea ecx, [esp + 0x10]
call fcn.00402d90
mov ecx, dword [esp + 8]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4087cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x408bb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x486de1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4b2098]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov eax, dword [0x4b2098]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov edi, dword [esp + 0x238]
xor ebx, ebx
push 0x208
lea eax, [esp + 0x20]
push ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.00467da0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x48fd74
push str.TempAppPath
push 0x48fd60
call fcn.00405850
add esp, 0xc
test al, al
je 0x408c6d
lea edx, [esp + 0x14]
push edx
call fcn.00407280
mov ecx, dword [eax]
add esp, 4
lea edx, [esp + 0x1c]
jmp 0x408c50
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x408c50
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x408dad
push str.TempPath
lea ecx, [esp + 0x14]
push 0x48fd60
push ecx
call fcn.0040a300
add esp, 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x230], ebx
cmp eax, ebx
je 0x408d9f
push ecx
lea eax, [edx - 0x10]
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401380
lea edx, [esp + 0x1c]
add esp, 4
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.004074d0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 1
call fcn.004022f0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cf8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jl 0x408d1d
push 0x49004c
push ecx
call fcn.00467d3a
add esp, 8
cmp eax, ebx
je 0x408d1d
sub eax, dword [esp + 0x10]
sar eax, 1
jns 0x408d66
lea ecx, [esp + 0x18]
push ecx
call fcn.00407280
add esp, 4
mov eax, dword [eax]
push eax
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 2
call fcn.004021b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408d66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x48fda0
push 0x48fd98
lea ecx, [esp + 0x18]
call fcn.00402d90
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], ebx
je 0x408d9f
lea esi, [esp + 0x1c]
mov eax, edx
sub esi, edx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
cmp cx, bx
jne 0x408d90
mov dword [esp + 0x230], 0xffffffff
lea eax, [edx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00402410
mov eax, edi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00467b90
add esp, 0x224
ret
Function at 0x408e00
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x486e2e
mov eax, dword fs:[0]
push eax
sub esp, 0x7dc
mov eax, dword [0x4b2098]
xor eax, esp
mov dword [esp + 0x7d8], eax
push ebp
push esi
push edi
mov eax, dword [0x4b2098]
xor eax, esp
push eax
lea eax, [esp + 0x7ec]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x7fc]
mov esi, dword [esp + 0x804]
mov edi, dword [esp + 0x808]
mov dword [esp + 0x10], 0
push 0x7d0
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x800], 0
call fcn.00467da0
mov ecx, dword [esp + 0x80c]
add esp, 0xc
push ecx
push 0x3e8
lea edx, [esp + 0x20]
push edx
push 0x494c78
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea ecx, [esp + 0x14]
call fcn.00402410
push edi
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x800], 1
call fcn.00403080
add esp, 0xc
mov eax, dword [eax]
push eax
mov ecx, 0x4b36dc
mov byte [esp + 0x7f8], 2
call fcn.0044fa66
lea edx, [esp + 0x18]
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x408ed2
sub edx, ecx
sar edx, 1
push edx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.00402100
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x7f4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408f16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x7f4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.00402410
mov eax, dword [esp + 0x800]
add eax, 0xfffffff0
mov dword [esp + 0x7f4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408f78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x7ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x7d8]
xor ecx, esp
call fcn.00467b90
add esp, 0x7e8
ret
Function at 0x409240
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x486ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4b2098]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.0041b100
mov eax, dword [0x4b0538]
cmp eax, 1
mov dword [esp + 0x2c], 0
jge 0x40928a
mov eax, 1
mov dword [0x4b0538], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.0041c2a0
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x2c], 0xffffffff
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.0041b1d0
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test esi, esi
je 0x4092e3
push edi
call fcn.004086c0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret

Function at 0x40a1b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x487040
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b2098]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
lea ecx, [esp + 0x24]
call fcn.0044e923
mov edi, dword [esp + 0x50]
push 0
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0
call fcn.0044e99e
test eax, eax
je 0x40a20d
push edi
call fcn.004086c0
add esp, 4
test eax, eax
je 0x40a294
mov ebx, dword [esp + 0x4c]
push 0
push ebx
call fcn.0043d400
add esp, 8
mov esi, eax
push edi
test esi, esi
je 0x40a2ca
push 0
push esi
call fcn.0043d470
push esi
mov ebp, eax
call fcn.0043d4b0
add esp, 0x10
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ebp, ebp
je 0x40a294
lea ecx, [esp + 0x14]
call fcn.0044ffba
push 0
push 0
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 1
call fcn.00450432
test eax, eax
je 0x40a2bb
lea ecx, [esp + 0x14]
call fcn.0044fea5
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0044ff54
cmp esi, 0x9e
jne 0x40a2bb
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0
call fcn.004500c2
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], 0xffffffff
call fcn.0044e94c
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0
call fcn.004500c2
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], 0xffffffff
call fcn.0044e94c
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x40b800
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4872e6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4b2098]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x4b2098]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
push eax
call fcn.0040aad0
mov edi, dword [esp + 0x1c]
xor ebx, ebx
push edi
mov dword [esp + 0x274], ebx
call fcn.004086c0
add esp, 8
cmp dword [esp + 0x274], ebx
je 0x40b86e
push edi
mov ecx, 0x4b37f0
call fcn.00411c00
push 0x104
lea ecx, [esp + 0x5c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x38
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.00467da0
add esp, 0xc
lea eax, [esp + 0x58]
push str.commandline
mov ecx, 0x4b36dc
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], str.runas
mov dword [esp + 0x30], eax
call fcn.0044fa66
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401380
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x26c], 1
lea ecx, [esp + 0x10]
cmp dword [eax - 0xc], ebx
jne 0x40b8f6
push 0x12
push str.____runas_admin___
call fcn.00402100
jmp 0x40b902
push 0x13
push str._____runas_admin___
call fcn.00403160
push str.runasadmin
mov ecx, 0x4b36dc
call fcn.0044fa66
push 0x11
push str.___runas_admin___
mov ecx, eax
call fcn.00402100
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 5
mov dword [esp + 0x40], ebx
call fcn.00407280
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x38], edx
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b966
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [esi - 0x10]
mov byte [esp + 0x26c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b994
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x26c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b9bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00467b90
add esp, 0x260
ret
Function at 0x40ecb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x487918
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4b2098]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x10], esp
mov esi, esp
push eax
mov dword [esp + 0x24], 1
call fcn.00401380
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
mov byte [esp + 0x28], 2
call fcn.00401380
mov ecx, dword [esp + 0x30]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x34]
add esp, 4
push eax
push ecx
mov byte [esp + 0x2c], 1
call fcn.0040e3e0
mov esi, eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ed55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x411150
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b2098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx + 0x20]
push 0x7b6
push str.qupdater.needmsg
push eax
call dword [sym.imp.USER32.dll_SetPropW]
mov eax, dword [ebx + 0x20]
mov ecx, dword [0x4b3720]
push eax
push ecx
mov ecx, 0x4b3718
mov dword [ebp - 4], 2
call fcn.004027f0
mov eax, dword [ebx + 0x20]
xor edi, edi
xor esi, esi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x4111df
lea edx, [ebp - 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x4111df
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4111fa
push 0x40
push 0x3000
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov eax, dword [ebx + 0x20]
push eax
mov ecx, 0x4b36fc
call fcn.00402c20
mov dword [eax], edi
mov ecx, dword [ebx + 0x20]
push ecx
mov ecx, 0x4b36c0
call fcn.00402c20
mov dword [eax], esi
jmp 0x411225
cmp dword [0x4b37f8], 0
mov dword [ebp - 4], 4
jle 0x411305
call fcn.0044ba29
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411253
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [0x4b37f8]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.Found__d_files_need_to_update...
mov byte [ebp - 4], 5
call fcn.00402410
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x48fda4
mov byte [ebp - 4], 6
call fcn.00402410
lea edx, [ebp - 0x1c]
push edx
mov byte [ebp - 4], 5
call fcn.00413c80
add esp, 0xc
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.004019b0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4112d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411305
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x411305
mov eax, dword [ebx + 0x184]
cmp eax, 1
je 0x411326
cmp eax, 2
je 0x411326
mov edx, dword [ebx + 0x20]
lea ecx, [ebp - 0x1c]
push ecx
push 0
push edx
push 0x4028c0
jmp 0x411335
mov ecx, dword [ebx + 0x20]
lea eax, [ebp - 0x1c]
push eax
push 0
push ecx
push 0x40f990
push 0
push 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413630
Capabilities:
Enumerate process modules

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [esi + 8], 0xffffffff
mov dword [edi], 0
mov eax, dword [esi]
push eax
call fcn.0043e769
xor ecx, ecx
mov eax, 0x400
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043e774
add esp, 8
push edi
push 0x1000
push eax
mov dword [esi], eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x413686
shr dword [edi], 2
mov dword [esi + 8], 1
cmp dword [edi], 0x400
jae 0x413644
mov eax, dword [esi]
test eax, eax
je 0x4136a5
mov ecx, dword [esi + 8]
cmp ecx, dword [edi]
jae 0x4136a5
mov eax, dword [eax + ecx*4]
inc ecx
pop edi
mov dword [esi + 8], ecx
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x4136f0
Capabilities:
Enumerate process modules

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
lea edi, [esi + 8]
mov dword [edi], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 4], 0
je 0x413778
mov eax, dword [esi + 4]
push eax
call fcn.0043e769
xor ecx, ecx
mov eax, 0x400
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043e774
add esp, 8
push edi
push 0x1000
push eax
mov dword [esi + 4], eax
mov eax, dword [esi]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x413757
shr dword [edi], 2
mov dword [esi + 0xc], 0
cmp dword [edi], 0x400
jae 0x413710
cmp dword [esi], 0
je 0x413778
mov ecx, dword [esi + 0xc]
cmp ecx, dword [edi]
jae 0x413778
mov edx, dword [esi + 4]
mov eax, dword [edx + ecx*4]
inc ecx
pop edi
mov dword [esi + 0xc], ecx
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x413780
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
push esi
push 0x413550
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esi + 4]
mov dword [esi + 0x10], 0
test eax, eax
je 0x4137ae
cmp dword [esi + 0xc], 0
jbe 0x4137ae
mov eax, dword [eax]
mov dword [esi + 0x10], 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x414780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4882d0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebp
push esi
push edi
mov eax, dword [0x4b2098]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
call fcn.0044c7ab
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x90]
push 0x49233c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.00450651
push 0
push 0x1000
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x98], 0
call fcn.0044e462
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x8c], 1
call fcn.00414230
add esp, 4
lea ecx, [esp + 0x38]
call fcn.0044e2ab
lea ecx, [esp + 0x10]
call fcn.004508bc
lea ecx, [esp + 0x38]
mov byte [esp + 0x88], 0
call fcn.0044e424
lea ecx, [esp + 0x10]
mov dword [esp + 0x88], 0xffffffff
call fcn.004509c6
mov eax, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x7c
ret
Function at 0x41ac50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4889f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4b2098]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x4b3778]
dec eax
cmp eax, 8
ja 0x41ad6a
push 0x492b84
mov ecx, 0x4b36dc
call fcn.0044fa66
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401380
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
call fcn.0044ba29
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41acca
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [0x4b3778]
push ecx
lea edx, [esp + 0x10]
push 0x48ffe4
push edx
mov byte [esp + 0x28], 1
call fcn.004019b0
mov esi, dword [esp + 0x18]
add esp, 0xc
push esi
push 0x492b78
lea ecx, [esp + 0x18]
call fcn.00402d90
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 0
je 0x41ad29
push 1
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x1c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ad4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x1c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ad6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x41ae00
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x102c
call fcn.004688c0
mov eax, dword [0x4b2098]
xor eax, esp
mov dword [esp + 0x1028], eax
push ebx
mov ebx, dword [esp + 0x1034]
push ebp
mov ebp, dword [esp + 0x103c]
push esi
push edi
push 0
push 0
push 0
push 0
push str.MyDownload
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0
mov dword [esp + 0x18], eax
push 0x4000000
lea eax, [esp + 0x1020]
mov ecx, 8
mov esi, str.Accept:___r_n_r_n
lea edi, [esp + 0x1020]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x1024]
push ecx
push ebx
mov ebx, dword [esp + 0x28]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x41aed9
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x10]
push edx
push 0x400
lea eax, [esp + 0x20]
push eax
push esi
call edi
test eax, eax
je 0x41aed9
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x41aebc
mov edx, dword [ebp]
mov edx, dword [edx + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call edx
mov eax, dword [esp + 0x10]
cmp eax, 0x400
jb 0x41aedd
lea eax, [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x20]
push ecx
push esi
call edi
test eax, eax
jne 0x41aea0
xor al, al
jmp 0x41aeeb
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov al, 1
mov ecx, dword [esp + 0x1038]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00467b90
add esp, 0x102c
ret
Function at 0x41bfc0
Capabilities:
Delete file

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
test edx, edx
jne 0x41bfd3
xor eax, eax
jmp 0x41bff0
mov eax, edx
push ebx
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41bfe0
sub eax, ebx
sar eax, 1
pop ebx
push eax
push edx
mov ecx, edi
call fcn.00402100
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
mov ecx, dword [edi]
mov edi, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esi]
push eax
push edx
push eax
push 0
push 0
push edi
push ecx
mov ecx, esi
call fcn.0041bdb0
mov esi, eax
test esi, esi
jne 0x41c030
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov eax, esi
pop esi
ret 0x14