joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467f80
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ad0d8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x467fb9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4680cc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x467fcd
mov eax, 0xffffffc7
jmp 0x4680ce
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x467fde
cmp dword [esi + 8], eax
jne 0x467fcd
cmp dword [esi + 8], eax
jne 0x467ff7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x467ff7
mov eax, 0xffffffc7
jmp 0x4680ce
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x46800b
push eax
mov ecx, ebx
call fcn.004677b0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00438630
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x46803c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00438650
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00466f20
test eax, eax
mov dword [esp + 0x38], eax
je 0x46806f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x57ef88
call fcn.00438830
mov eax, dword [esp + 0x38]
jmp 0x4680ce
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00467de0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4680b3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00467e00
mov esi, eax
test esi, esi
jne 0x4680e3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00467de0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x468085
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x57ef88
call fcn.00438830
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x57ef88
call fcn.00438830
mov eax, esi
jmp 0x4680ce

Function at 0x46b200
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x46b260
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x46b260
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x46b260
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x46b260
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x46b2a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x471400
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ad708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a4621
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00470da0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a454f
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a0d36
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a0d36
push 1
push 0
push 0
mov ecx, esi
call fcn.004a0cde
push 1
push 0
push 1
mov ecx, esi
call fcn.004a0cde
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a4693
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x471580
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ad728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a4621
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00470da0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a454f
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x471644
cmp dword [esp + 0x40], 1
jne 0x471642
cmp ecx, eax
jge 0x471644
mov eax, ecx
cmp eax, 0xc8
jge 0x471650
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00471400
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a4693
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x471dd0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ad793
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0049f157
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a48c9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a5e21
test eax, eax
je 0x471eec
mov ecx, dword [esp + 0x3c]
call fcn.004a48f6
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x471eb0
push edi
mov ecx, esi
call fcn.004a1eb5
mov ecx, esi
call fcn.00472050
cmp dword [esp + 0x38], 1
jne 0x471ee5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a201f
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x474900
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x474933
push esi
call fcn.00477a10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47492c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4749b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4749a2
mov eax, dword [esi + 8]
test eax, eax
je 0x474957
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47499e
cmp eax, 2
je 0x4749a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47494a
cmp eax, 3
je 0x47497d
cmp eax, 1
jne 0x47494a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47494a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47494a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004749e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4749c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004749e0
add esp, 4
pop esi
ret

Function at 0x482c40
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x482ce3
test eax, eax
jbe 0x482ce3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x482ce3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x482c8e
xor esi, esi
jmp 0x482c94
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x482cbf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00439080
add esi, eax
push esi
mov ebx, esi
call fcn.00439080
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x482ca0
pop ebp
test edi, edi
pop edi
jne 0x482ce3
test ebx, ebx
je 0x482ce3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0048e710
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x482e25
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x482f3d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x482f3d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049f5a9
mov esi, eax
test esi, esi
je 0x482f3d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x482f3d
mov ecx, esi
call fcn.00482d90
cmp edi, eax
jge 0x482f3d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x482ec3
mov dword [esp + 0x34], 1
jmp 0x482f1e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x482f3d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004815e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x49ff4c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49ff84
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049dfd9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049dfb1
jmp 0x49ff90
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a163e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a1680
call fcn.004a7323
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a1680
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a1677
xor eax, eax
jmp 0x4a1688
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a168e
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a7853
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a7881
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a789f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a77b9
jmp 0x4a789f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a789f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a77b9
test edi, edi
mov eax, edi
jne 0x4a7889
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401040
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x32c
push ebx
push ebp
mov ebp, dword [esp + 0x338]
push esi
push edi
push ebp
mov byte [esp + 0x17], 0
call fcn.00405086
add esp, 4
xor eax, eax
mov ecx, 0x4a
lea edi, [esp + 0x14]
push eax
push 2
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40113f
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x13c]
push ecx
call fcn.00405086
add esp, 4
mov esi, ebp
lea eax, [esp + 0x13c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4010f6
test cl, cl
je 0x4010f2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4010f6
add eax, 2
add esi, 2
test cl, cl
jne 0x4010d2
xor eax, eax
jmp 0x4010fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401114
mov eax, dword [esp + 0x1c]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401128
lea ecx, [esp + 0x14]
push ecx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40113f
jmp 0x401091
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne byte [esp + 0x17]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret 4
Function at 0x401160
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
push esi
push edi
lea eax, [ebp - 0x25c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4012d2
lea ecx, [ebp - 0x25c]
push 0x104
lea edx, [ebp - 0x25c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4012d2
lea eax, [ebp - 0x360]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4012d2
lea ecx, [ebp - 0x158]
push str.__c__del
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x25c]
lea eax, [ebp - 0x158]
push edx
push eax
call esi
lea ecx, [ebp - 0x158]
push str.___nul
push ecx
call esi
lea edx, [ebp - 0x158]
lea eax, [ebp - 0x360]
push edx
push eax
call esi
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
pushal
push ebp
push eax
push ebx
push ecx
pop ecx
pop ebx
pop eax
pop ebp
popal
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
rep stosd dword es:[edi], eax
xor ecx, ecx
push 0x100
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], ax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x54]
push edx
push eax
push 0
push 0
push 0xc
push 0
push 0
lea ecx, [ebp - 0x360]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4012c0
mov edx, dword [ebp - 0x10]
push 0x40
push edx
call esi
mov eax, dword [ebp - 0xc]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x20
call ebx
push eax
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012e0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 4
call fcn.00401600
add esp, 4
test eax, eax
je 0x4012ff
mov ecx, eax
call fcn.00401000
mov esi, eax
jmp 0x401301
xor esi, esi
push str.dnf.exe
mov ecx, esi
call fcn.00401040
push 0x407084
mov ecx, esi
call fcn.00401040
push 0x407078
mov ecx, esi
call fcn.00401040
test esi, esi
je 0x401331
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0x407074
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401396
push ebp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40138e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x407070
push str.c:windowsdll.dll
mov ebx, eax
call fcn.004015ed
mov esi, eax
push esi
push ebp
push 1
push ebx
call fcn.004014c3
push esi
call fcn.0040146d
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
push str.c:windowsdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40143f
push 0x407054
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40143f
push 0x40704c
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0
push 0
mov ebx, eax
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x4078e0], eax
call esi
call esi
mov ecx, dword [0x4078e0]
mov dword [ecx], eax
mov edx, dword [0x4078e0]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call edi
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
call esi
test eax, eax
je 0x401433
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
call esi
test eax, eax
jne 0x401422
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00401160
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x402cc9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407158
cmp edx, dword [eax]
je 0x402ceb
add eax, 8
inc ecx
cmp eax, 0x4071e8
jl 0x402cdc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407158]
jne 0x402e19
mov eax, dword [0x4078ec]
cmp eax, 1
je 0x402df3
test eax, eax
jne 0x402d1c
cmp dword [0x4070a0], 1
je 0x402df3
cmp edx, 0xfc
je 0x402e19
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402d53
lea eax, [ebp - 0x1a4]
push 0x406404
push eax
call fcn.004041a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404290
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402d96
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404290
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406400
push edi
call fcn.004043a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4063e4
push eax
call fcn.004041a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004041b0
lea eax, [ebp - 0xa0]
push 0x4063e0
push eax
call fcn.004041b0
push dword [esi + 0x40715c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004041b0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4063b8
push eax
call fcn.0040430b
add esp, 0x2c
pop edi
jmp 0x402e19
lea eax, [ebp + 8]
lea esi, [esi + 0x40715c]
push 0
push eax
push dword [esi]
call fcn.00404290
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40295d
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00422658
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00422658
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
push 0x10
call fcn.00422658
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x1c], esp
mov eax, 9
call fcn.00422670
cmp dword [ebp - 0x1c], esp
je 0x402a13
push 6
call fcn.0042266a
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0xa
call fcn.00422670
cmp dword [ebp - 0x1c], esp
je 0x402a41
push 6
call fcn.0042266a
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0x4b4168
mov eax, 0xb
call fcn.00422670
cmp dword [ebp - 0x1c], esp
je 0x402a6d
push 6
call fcn.0042266a
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 2
mov dword [ebp - 0x1c], esp
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0xc
call fcn.00422670
cmp dword [ebp - 0x1c], esp
je 0x402b01
push 6
call fcn.0042266a
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 0xd
call fcn.00422670
cmp dword [ebp - 0x1c], esp
je 0x402b26
push 6
call fcn.0042266a
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x402b2e
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0042265e
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0042265e
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.0042265e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret