joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416f5a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 8], eax
call fcn.004139d8
mov esi, eax
xor ecx, ecx
push 4
pop edx
mov dword [ebp - 4], esi
lea eax, [esi + esi]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042a681
or dword [ebp - 0xc], 0xffffffff
mov edi, eax
pop ecx
mov eax, esi
xor ebx, ebx
shl eax, 3
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41704a
cmp dword [ebp - 0xc], 3
jne 0x41704a
mov eax, esi
shl eax, 3
cmp dword [ebp - 0x10], eax
jne 0x41704a
lea eax, [esi + 1]
lea eax, [edi + eax*4]
push eax
lea eax, [esi - 1]
push eax
mov eax, dword [ebp - 8]
push 0x1212
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 4]
mov esi, ebx
test eax, eax
jle 0x417048
cmp dword [edi + esi*4], ebx
jle 0x417043
mov eax, dword [edi + esi*4]
push 0x4e
mov dword [ebp + 0xc], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jge 0x417040
mov dword [ebp - 0x40], 1
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], ecx
push eax
test esi, esi
jne 0x41702b
mov eax, dword [ebp - 8]
push ebx
push 0x120c
push dword [eax + 4]
jmp 0x41703a
lea eax, [esi - 1]
push eax
mov eax, dword [ebp - 8]
push 0x120c
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 4]
inc esi
cmp esi, eax
jl 0x416ff1
mov bl, 1
push edi
call fcn.0042a4b0
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41705c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
call fcn.004139d8
mov ebx, eax
xor ecx, ecx
push 4
pop edx
lea eax, [ebx + ebx]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042a681
pop ecx
mov edi, eax
lea ecx, [ebx + 1]
and dword [edi + ebx*4], 0
lea ecx, [edi + ecx*4]
push ecx
lea ecx, [ebx - 1]
push ecx
push 0x1211
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
test ebx, ebx
jle 0x4170df
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.00414e7f
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
mov dword [edi + esi*4], eax
inc esi
cmp esi, ebx
jl 0x4170c4
mov eax, ebx
shl eax, 3
push eax
push edi
push 3
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call fcn.0042a4b0
pop ecx
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a402
mov esp, ebp
pop ebp
ret 8
Function at 0x4171ed
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push edi
mov edi, ecx
je 0x417251
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
push 3
mov dword [ebp - 0x14], ecx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 8]
mov edx, ecx
sub edx, eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
sub ecx, edx
push 0x44
push ecx
push eax
push edx
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
push 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x41725c
push 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0042a402
mov esp, ebp
pop ebp
ret 4

Function at 0x41726d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov esi, ecx
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
mov ecx, esi
call fcn.00415f37
mov cl, byte [ebp + 0xc]
cmp al, cl
setne bl
mov byte [ebp - 0x15], bl
test cl, cl
je 0x41731a
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 3
call ebx
push 2
mov dword [ebp - 0x20], eax
call ebx
mov dword [ebp - 0x24], eax
cmp edi, dword [esi + 0x18]
jne 0x4172c7
and dword [ebp - 0x1c], 0
jmp 0x4172d0
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x1c], eax
cmp edi, dword [esi + 0x18]
jne 0x4172dd
mov esi, dword [esi + 0x84]
jmp 0x4172e3
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
sub ebx, dword [ebp - 0x10]
sub ebx, dword [ebp - 0x20]
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, ebx
cmp byte [ebp + 0x10], 0
je 0x4172ff
sub esi, dword [ebp - 0x24]
push 0x44
sub eax, ebx
push eax
mov eax, dword [ebp - 0x1c]
sub esi, eax
push esi
push ebx
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov bl, byte [ebp - 0x15]
jmp 0x417331
test al, al
je 0x417331
push 0
push edi
mov ecx, esi
call fcn.00415992
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a402
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417346
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [edi + 0x14]
mov ecx, edi
call fcn.00415f37
mov cl, byte [ebp + 8]
cmp al, cl
setne bl
test cl, cl
je 0x4173be
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 2
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov edx, ecx
sub edx, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cmp byte [ebp + 0xc], 0
je 0x4173a8
sub eax, dword [ebp - 0x18]
push 0x44
push eax
sub ecx, edx
push ecx
push 0
push edx
push 0
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4173d6
test al, al
je 0x4173d6
push 0
mov ecx, edi
call fcn.004178d6
push 0
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.0042a402
mov esp, ebp
pop ebp
ret 8

Function at 0x418cdb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
push 0x44ade4
call fcn.004052aa
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040399c
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0040399c
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x418dae
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418dae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x418dae
push esi
movzx esi, word [ebx]
push edi
push esi
call fcn.0042a292
push esi
mov edi, eax
push ebx
push edi
call fcn.00429850
lea eax, [edi + 0x28]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418c6c
mov ecx, dword [ebp + 0xc]
add esp, 0x18
push eax
call fcn.0040399c
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x418d6d
call fcn.00403368
push 0x44cb04
push edi
call fcn.00418f13
pop ecx
pop ecx
test eax, eax
je 0x418d87
mov ecx, dword [ebp + 0x14]
push eax
call fcn.004052aa
push 0x44cb24
push edi
call fcn.00418f13
pop ecx
pop ecx
test eax, eax
je 0x418da1
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004052aa
push edi
call fcn.0042a25a
pop ecx
pop edi
mov al, 1
pop esi
jmp 0x418db0
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
and dword [edi + 4], 0
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
lea ecx, [edi + 0xc]
mov dword [edi + 8], eax
call fcn.004067bb
mov eax, dword [ebp + 0x14]
xor esi, esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], esi
mov dword [edi + 0x2c], esi
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [edi + 0x30], eax
cmp dword [edi], esi
je 0x41a0b6
mov dword [edi + 0x1c], ebx
test ebx, ebx
je 0x41a081
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
jmp 0x41a09d
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call esi
cdq
sub eax, edx
sar eax, 1
push 1
mov dword [edi + 0x20], eax
call esi
cdq
sub eax, edx
sar eax, 1
xor esi, esi
mov dword [edi + 0x24], eax
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push 0x426cdd
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a402
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41d83f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x41d8f3
push 0x224
lea eax, [ebp - 0x228]
mov dword [ebp - 0x230], 0x22c
push esi
push eax
mov dword [ebp - 0x22c], esi
call fcn.0042a420
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41d8f3
push ebx
cmp dword [ebp - 0x228], esi
je 0x41d8d9
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d8b2
mov ecx, dword [eax]
jmp 0x41d8b4
mov ecx, esi
test eax, eax
je 0x41d8bc
mov ebx, dword [eax]
jmp 0x41d8be
mov ebx, esi
push ecx
call fcn.0042a04b
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0042f7e3
add esp, 0x10
test eax, eax
je 0x41d8ec
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41d89f
jmp 0x41d8f2
mov esi, dword [ebp - 0x228]
pop ebx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41d8ff
call fcn.00403368
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042a402
mov esp, ebp
pop ebp
ret
Function at 0x41e469
Capabilities:
Accept command line arguments

Disassembly:
push 0x14
mov eax, 0x44744f
call fcn.0042bfb7
lea eax, [ebp - 0x10]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
lea eax, [ebp - 0x10]
push ebx
push eax
push 0x44d138
call fcn.00402ebd
add esp, 0xc
test eax, eax
jne 0x41e4a7
xor al, al
jmp 0x41e5d8
xor esi, esi
inc esi
cmp dword [ebp - 0x10], esi
jle 0x41e5cf
mov eax, dword [ebx + esi*4]
movzx eax, word [eax]
push eax
call fcn.0042f3f8
pop ecx
sub eax, 0x2d
je 0x41e4f4
dec eax
dec eax
je 0x41e4f4
sub eax, 0x10
je 0x41e4f4
mov ecx, 0x45cc84
call fcn.004066d6
test eax, eax
je 0x41e5de
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + esi*4]
mov dword [ecx + edi*4], eax
inc edi
mov ecx, 0x45cc94
jmp 0x41e599
mov eax, dword [ebx + esi*4]
movzx eax, word [eax + 2]
push eax
call fcn.0042f3f8
pop ecx
sub eax, 0x36
je 0x41e5b4
sub eax, 0xf
je 0x41e5a3
sub eax, 0xa
je 0x41e57a
dec eax
je 0x41e531
sub eax, 7
jne 0x41e5de
mov byte [0x45c3c3], 1
jmp 0x41e5c5
inc esi
cmp esi, dword [ebp - 0x10]
je 0x41e5e5
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + esi*4 - 4]
mov dword [ecx + edi*4], eax
mov eax, dword [ebx + esi*4]
mov dword [ecx + edi*4 + 4], eax
lea eax, [ebp - 0x14]
push dword [ebx + esi*4]
add edi, 2
push eax
call fcn.00408287
pop ecx
pop ecx
push eax
mov ecx, 0x45cc84
call fcn.0040399c
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41e5c5
call fcn.00403368
and dword [ebp - 0x14], 0
jmp 0x41e5c5
inc esi
cmp esi, dword [ebp - 0x10]
je 0x41e5fe
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + esi*4 - 4]
mov dword [ecx + edi*4], eax
mov eax, dword [ebx + esi*4]
mov dword [ecx + edi*4 + 4], eax
add edi, 2
mov ecx, 0x45cc9c
push dword [ebx + esi*4]
call fcn.004052aa
jmp 0x41e5c5
push dword [ebx + esi*4 + 4]
mov ecx, 0x45cca0
call fcn.004052aa
inc esi
jmp 0x41e5c5
mov eax, dword [ebx + esi*4]
cmp word [eax + 4], 0x34
jne 0x41e60c
mov byte [0x45c3d0], 1
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x41e4b3
mov eax, dword [ebp + 8]
and dword [eax + edi*4], 0
mov al, 1
call fcn.0042bf85
ret
call fcn.00425ead
jmp 0x41e5d8
push 0x40
push 0x44d138
push 0x44e968
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x41e4a0
push 0x40
push 0x44d138
push 0x44e9f0
jmp 0x41e5f1
push eax
lea ecx, [ebp - 0x20]
call fcn.004051c4
mov esi, eax
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push 0x52aadc
mov dword [ebp - 4], ebx
call fcn.004051c4
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00405319
mov eax, dword [eax]
test eax, eax
je 0x41e643
mov eax, dword [eax]
jmp 0x41e645
mov eax, ebx
push 0x40
push 0x44d138
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41e663
call fcn.00403368
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x41e672
call fcn.00403368
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x41e4a0
call fcn.00403368
jmp 0x41e4a0
Function at 0x41e687
Capabilities:
Get disk information

Disassembly:
push 0x45c
mov eax, 0x447478
call fcn.0042bfea
mov eax, dword [ebp + 8]
mov ebx, 0x45d470
and dword [ebp - 0x468], 0
mov dword [ebp - 0x460], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x464], eax
mov eax, dword [0x45d4d8]
test al, 1
jne 0x41e6ec
or eax, 1
mov dword [0x45d4d8], eax
and dword [ebp - 4], 0
push 0x403355
push 0x40520e
push 0x1a
push 4
push ebx
call fcn.0042c8c4
push 0x447e35
call fcn.0042cb1e
or dword [ebp - 4], 0xffffffff
pop ecx
cmp byte [0x45d46c], 0
lea edi, [ebp - 0x28]
push 6
pop ecx
mov esi, 0x44d39c
push 0x3a
rep movsd dword es:[edi], dword [esi]
pop ecx
push 0x5c
pop edi
jne 0x41e7d8
xor esi, esi
mov dword [ebp - 0x45c], ebx
push 6
lea eax, [esi + 0x41]
mov word [ebp - 0x46], cx
mov word [ebp - 0x48], ax
lea edi, [ebp - 0x42]
xor eax, eax
mov word [ebp - 0x44], ax
pop ecx
rep stosd dword es:[edi], eax
push 0x104
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, 0x44d3b4
push edi
call fcn.0042a04b
push eax
lea eax, [ebp - 0x250]
push eax
push edi
call fcn.0042f7e3
add esp, 0x10
push 0x5c
pop edi
test eax, eax
jne 0x41e7ae
lea eax, [ebp - 0x24e]
push edi
push eax
call fcn.0042be6f
add eax, 2
push edi
push eax
call fcn.0042be6f
add eax, 2
push edi
push eax
call fcn.0042be6f
add eax, 2
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x250]
push 0x44d3e8
push eax
call fcn.00419f01
add esp, 0x28
lea eax, [ebp - 0x250]
mov ecx, ebx
push eax
call fcn.004052aa
inc esi
add ebx, 4
push 0x3a
pop ecx
cmp esi, 0x1a
jb 0x41e714
mov byte [0x45d46c], 1
mov ebx, 0x45d470
lea eax, [ebp - 0x28]
push eax
call fcn.0042a04b
mov esi, dword [ebp - 0x464]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0042f7e3
add esp, 0x10
test eax, eax
jne 0x41e82a
lea eax, [ebp - 0x28]
mov word [ebp - 0x250], di
push eax
call fcn.0042a04b
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0x24e]
push 0x103
push eax
call fcn.0042a521
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
jmp 0x41e891
xor edi, edi
mov eax, dword [ebx]
test eax, eax
je 0x41e836
mov eax, dword [eax]
jmp 0x41e838
xor eax, eax
push eax
call fcn.0042a04b
pop ecx
mov ecx, ebx
mov dword [ebp - 0x45c], eax
call fcn.004066d6
test eax, eax
je 0x41e887
mov eax, dword [ebx]
test eax, eax
je 0x41e85a
mov eax, dword [eax]
jmp 0x41e85c
xor eax, eax
push dword [ebp - 0x45c]
push eax
push esi
call fcn.0042f7e3
add esp, 0xc
test eax, eax
jne 0x41e887
mov ecx, dword [ebp - 0x45c]
push 0x5c
pop edx
movzx eax, word [esi + ecx*2]
cmp ax, dx
je 0x41e8a8
test ax, ax
je 0x41e8a8
inc edi
add ebx, 4
cmp edi, 0x1a
jb 0x41e82c
push esi
mov ecx, dword [ebp - 0x460]
call fcn.004051c4
mov eax, dword [ebp - 0x460]
call fcn.0042bf99
ret
push 0x3a
lea eax, [edi + 0x41]
mov word [ebp - 0x458], ax
pop eax
mov word [ebp - 0x456], ax
lea eax, [esi + ecx*2]
push eax
lea eax, [ebp - 0x454]
push 0x102
push eax
call fcn.0042a521
add esp, 0xc
lea eax, [ebp - 0x458]
jmp 0x41e827
Function at 0x41e8e6
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
lea ecx, [eax + 0x10]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov esi, ebx
mov dword [eax], ebx
mov eax, dword [ecx]
push edi
mov byte [ebp - 1], bl
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00420099
pop ecx
test eax, eax
je 0x41e93a
push str.Wow64EnableWow64FsRedirection
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x41e93a
push ebx
call esi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test esi, esi
je 0x41e95d
push 1
call esi
cmp edi, 0xffffffff
jne 0x41e969
xor al, al
jmp 0x41ea77
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x41e988
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41e962
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x41ea69
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x41ea5f
mov esi, dword [ecx + 0x3c]
mov eax, 0x100
add esi, ecx
test word [esi + 0x16], ax
je 0x41e9f7
movzx eax, word [esi + 4]
mov ecx, 0x8664
cmp ax, cx
je 0x41e9f7
mov ecx, 0x200
cmp ax, cx
je 0x41e9f7
push 0xf8
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41ea59
cmp dword [esi], 0x4550
jne 0x41ea59
lea ecx, [esi + 0xf8]
jmp 0x41ea15
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x41ea59
cmp dword [esi], 0x4550
jne 0x41ea59
lea ecx, [esi + 0x108]
mov al, byte [esi + 0x5e]
movzx edx, word [esi + 6]
and al, 0x40
mov byte [ebp - 1], al
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x41ea59
mov ecx, dword [ebp + 0x10]
push edx
mov dword [ecx + 8], eax
lea esi, [ecx + 0x10]
mov eax, dword [ebp + 8]
mov dword [ecx + 0xc], ebx
mov dword [ecx], eax
mov ecx, esi
call fcn.004288a4
imul eax, dword [ebp - 0x10], 0x28
push eax
push dword [ebp - 0x14]
push dword [esi]
call fcn.00429850
add esp, 0xc
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, byte [ebp - 1]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ef4d
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push 4
push ebx
push ebx
mov dword [ebp - 4], ebx
mov edi, ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x45c144
lea eax, [ebp - 8]
push eax
push ebx
push dword [0x45c140]
push 1
push 0x30
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
jmp 0x41efd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x41efdb
and dword [ebp - 4], 0
mov eax, dword [0x45c140]
test eax, eax
je 0x41efab
push eax
call fcn.0042a25a
pop ecx
add edi, 0x4000
push edi
call fcn.0042a292
pop ecx
push 0
lea ecx, [ebp - 4]
mov dword [0x45c140], eax
push ecx
push 0x45c144
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push 1
push 0x30
push 0
push esi
call ebx
test eax, eax
je 0x41ef8a
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f2e0
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
push 4
mov dword [ebp - 0x2f0], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x41f406
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2ec], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x41f3ff
push esi
cmp dword [ebp - 0x2e0], ebx
jne 0x41f3e9
push dword [ebp - 0x2e4]
push 0
push 0x4a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x41f3e9
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x41f3e2
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x41f3db
mov eax, dword [ebp - 0x2e4]
xor ecx, ecx
push ecx
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x2f8], ecx
push 0x1c
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0x318]
push eax
push ecx
push esi
call dword [0x45c634]
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x2fc]
cmove ecx, dword [ebp - 0x314]
push eax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], ecx
mov ecx, eax
push dword [eax]
call fcn.00419147
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2ec]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x41f334
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042a402
mov esp, ebp
pop ebp
ret