joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008f9d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x1002ba8
call fcn.0100a2d0
mov edi, 0x94
mov eax, edi
call fcn.01009450
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1013604], ecx
mov eax, dword [esi + 4]
mov dword [0x1013610], eax
mov edx, dword [esi + 8]
mov dword [0x1013614], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1013608], esi
cmp ecx, 2
je 0x1008ffd
or esi, 0x8000
mov dword [0x1013608], esi
shl eax, 8
add eax, edx
mov dword [0x101360c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1009038
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009038
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1009050
cmp eax, 0x20b
je 0x100903d
mov dword [ebp - 0x1c], esi
jmp 0x1009064
cmp dword [ecx + 0x84], 0xe
jbe 0x1009038
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x100905e
cmp dword [ecx + 0x74], 0xe
jbe 0x1009038
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0100a27f
pop ecx
test eax, eax
jne 0x1009090
cmp dword [0x10135f4], 1
jne 0x100907d
call fcn.01009a93
push 0x1c
call fcn.010098ca
push 0xff
call fcn.0100974b
pop ecx
pop ecx
mov dword [ebp - 4], esi
call fcn.0100a0ba
test eax, eax
jge 0x10090a4
push 0x1b
call fcn.01008f78
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1014b54], eax
call fcn.01009f94
mov dword [0x10135ec], eax
call fcn.01009ef2
test eax, eax
jge 0x10090ca
push 8
call fcn.01008f78
pop ecx
call fcn.01009ca6
test eax, eax
jge 0x10090db
push 9
call fcn.01008f78
pop ecx
call fcn.0100977b
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x10090ee
push eax
call fcn.01008f78
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01009c3d
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x100910f
movzx eax, word [ebp - 0x34]
jmp 0x1009112
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.01003b83
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x1009130
push edi
call fcn.0100988a
call fcn.010098ac
jmp 0x1009162
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0100a309
ret
Function at 0x10098ca
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x1010010]
je 0x10098ea
inc eax
cmp eax, 0x12
jb 0x10098db
shl eax, 3
cmp edx, dword [eax + 0x1010010]
mov dword [ebp + 8], eax
jne 0x1009a88
mov ecx, dword [0x10135f4]
cmp ecx, 1
je 0x1009a5d
test ecx, ecx
jne 0x100991c
cmp dword [0x1010004], 1
je 0x1009a5d
cmp edx, 0xfc
je 0x1009a88
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1009957
push 5
pop ecx
mov esi, 0x1002f2c
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009966
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100999e
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100997e
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1002f28
push ebx
call fcn.0100c960
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10099a3
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1010014]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10099ba
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01009450
mov edx, esp
push 6
pop ecx
mov esi, 0x1002f0c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10099e6
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10099f2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1009a0b
mov eax, dword [ebp + 8]
mov esi, 0x1002f08
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1010014]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1009a26
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1009a32
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1002ee0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100c85c
add esp, 0xc
jmp 0x1009a88
mov ecx, dword [eax + 0x1010014]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1009a68
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a31a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01009450
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100a3af
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1013604]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x100a3af
cmp eax, 1
je 0x100a3c7
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100a3af
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x100a384
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x100a3ab
xor eax, eax
inc eax
jmp 0x100a3e3
cmp esi, ebx
jae 0x100a3b3
xor eax, eax
jmp 0x100a3e3
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1013604]
jmp 0x100a3c9
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100c85c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1013794], ebx
push esi
push edi
jne 0x100c8dc
push 0x100347c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100c917
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003470
push edi
call esi
test eax, eax
mov dword [0x1013794], eax
je 0x100c917
push 0x1003460
push edi
call esi
push 0x100344c
push edi
mov dword [0x1013798], eax
call esi
cmp dword [0x1013604], 2
mov dword [0x101379c], eax
jne 0x100c8dc
push 0x1003430
push edi
call esi
test eax, eax
mov dword [0x10137a4], eax
je 0x100c8dc
push 0x1003418
push edi
call esi
mov dword [0x10137a0], eax
mov eax, dword [0x10137a0]
test eax, eax
je 0x100c921
call eax
test eax, eax
je 0x100c908
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10137a4]
test eax, eax
je 0x100c908
test byte [ebp - 8], 1
jne 0x100c921
cmp dword [0x1013610], 4
jb 0x100c91b
or byte [ebp + 0x12], 0x20
jmp 0x100c940
xor eax, eax
jmp 0x100c950
or byte [ebp + 0x12], 4
jmp 0x100c940
mov eax, dword [0x1013798]
test eax, eax
je 0x100c940
call eax
mov ebx, eax
test ebx, ebx
je 0x100c940
mov eax, dword [0x101379c]
test eax, eax
je 0x100c940
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1013794]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100d1d2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x1014a28]
push ebx
push esi
push edi
jae 0x100d357
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x1014a40]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x100d357
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x100d226
xor eax, eax
jmp 0x100d36b
test al, 0x20
je 0x100d237
push 2
push edi
push edi
push ecx
call fcn.0100e80a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100d2f3
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x100d32b
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x100d28d
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100d27e
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x100d263
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100d2cd
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x100d2d6
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x100d257
jmp 0x100d2d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x100d352
cmp dword [ebp + 8], edi
je 0x100d32b
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x100d320
mov dword [0x10135fc], eax
jmp 0x100d35e
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100d315
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x100d2d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x100d2d8
push dword [ebp + 8]
call fcn.0100da05
pop ecx
jmp 0x100d368
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100d340
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x100d21f
mov dword [0x10135f8], 0x1c
mov dword [0x10135fc], edi
jmp 0x100d368
sub eax, dword [ebp - 0x10]
jmp 0x100d36b
and dword [0x10135fc], 0
mov dword [0x10135f8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100d825
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x1014a28]
push edi
jae 0x100d9ec
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x1014a40]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x100d9ec
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x100d8cb
test dl, 2
jne 0x100d8cb
test dl, 0x48
je 0x100d895
mov al, byte [eax + 5]
cmp al, 0xa
je 0x100d895
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100d8de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x100d8c6
mov dword [0x10135fc], ecx
jmp 0x100d9f3
cmp eax, 0x6d
jne 0x100d8d2
xor eax, eax
jmp 0x100da00
push eax
call fcn.0100da05
pop ecx
jmp 0x100d9fd
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x100d9e7
test edx, edx
je 0x100d901
cmp byte [edi], 0xa
jne 0x100d901
or al, 4
jmp 0x100d903
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x100d9e1
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x100d9d1
cmp al, 0xd
je 0x100d937
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x100d9c3
dec ecx
cmp dword [ebp - 8], ecx
jae 0x100d951
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x100d94c
add dword [ebp - 8], 2
jmp 0x100d9a5
mov dword [ebp - 8], eax
jmp 0x100d9bf
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100d979
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100d9bf
cmp dword [ebp - 0x10], 0
je 0x100d9bf
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x100d99a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x100d9a5
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x100d9c2
cmp edi, dword [ebp + 0xc]
jne 0x100d9aa
cmp byte [ebp - 1], 0xa
jne 0x100d9aa
mov byte [edi], 0xa
jmp 0x100d9c2
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0100d146
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x100d9c3
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x100d91b
jmp 0x100d9e1
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x100d9e1
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x100da00
and dword [0x10135fc], 0
mov dword [0x10135f8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100e117
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
and byte [ebp - 1], bl
cmp eax, ebx
mov dword [ebp - 8], ebx
je 0x100e142
cmp eax, 1
je 0x100e142
jle 0x100e14a
cmp eax, 3
jle 0x100e142
cmp eax, 4
jne 0x100e14a
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
jmp 0x100e175
mov dword [0x10135f8], 0x16
mov dword [0x10135fc], ebx
or eax, 0xffffffff
jmp 0x100e2fb
inc eax
cmp byte [eax], 0
jne 0x100e162
lea ecx, [eax + 1]
cmp byte [ecx], 0
je 0x100e175
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], 0
jne 0x100e162
push esi
mov esi, dword [0x1014a28]
push edi
push 0x11
xor eax, eax
cmp esi, ebx
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x64], 0x44
je 0x100e1b8
lea eax, [esi - 1]
mov ecx, eax
sar ecx, 5
mov ecx, dword [ecx*4 + 0x1014a40]
mov edx, eax
and edx, 0x1f
cmp byte [ecx + edx*8 + 4], 0
jne 0x100e1b8
dec esi
dec eax
cmp esi, ebx
jne 0x100e19a
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x32], ax
movzx eax, ax
push 1
push eax
call fcn.0100e642
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
jne 0x100e1e6
mov dword [0x10135f8], 0xc
or eax, 0xffffffff
jmp 0x100e2f9
mov dword [eax], esi
mov eax, dword [ebp - 0x30]
xor edi, edi
cmp esi, edi
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x100e22f
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x1014a40]
mov edi, ebx
and edi, 0x1f
lea edi, [eax + edi*8]
mov al, byte [edi + 4]
test al, 0x10
jne 0x100e21b
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x100e221
and byte [ecx], 0
or dword [edx], 0xffffffff
inc ebx
inc ecx
add edx, 4
cmp ebx, esi
jl 0x100e1f8
mov eax, dword [ebp - 0x30]
xor edi, edi
cmp byte [ebp - 1], 0
je 0x100e262
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x100e247
mov ebx, esi
jmp 0x100e24a
push 3
pop ebx
cmp edx, ebx
jge 0x100e25b
and byte [ecx], 0
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x100e23e
mov dword [ebp - 8], 8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push edi
push dword [ebp + 0x14]
mov dword [0x10135f8], edi
push dword [ebp - 8]
mov dword [0x10135fc], edi
push 1
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
mov ebx, eax
call fcn.01009385
cmp esi, edi
pop ecx
jne 0x100e2b0
push ebx
call fcn.0100da05
pop ecx
jmp 0x100e1de
cmp dword [ebp + 8], 2
jne 0x100e2bc
push edi
call fcn.0100989b
cmp dword [ebp + 8], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x100e2e9
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x20]
call esi
jmp 0x100e2f2
cmp dword [ebp + 8], 4
je 0x100e2e2
mov edi, dword [ebp - 0x20]
push dword [ebp - 0x1c]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100e541
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100e561
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100da05
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x100e582
test byte [esp + 8], 2
je 0x100e582
mov dword [0x10135f8], 0xd
mov dword [0x10135fc], 5
jmp 0x100e55d
xor eax, eax
ret

Function at 0x100e8b2
Capabilities:
Clear file content

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
cmp edi, dword [0x1014a28]
jae 0x100ea0e
mov eax, edi
sar eax, 5
mov eax, dword [eax*4 + 0x1014a40]
mov ecx, edi
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x100ea0e
push 1
push esi
push edi
call fcn.0100d146
or ebp, 0xffffffff
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0xc], eax
je 0x100ea0a
push 2
push esi
push edi
call fcn.0100d146
add esp, 0xc
cmp eax, ebp
je 0x100ea0a
push ebx
mov ebx, dword [esp + 0x1c]
sub ebx, eax
test ebx, ebx
jle 0x100e9b6
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
jne 0x100e94e
mov dword [0x10135f8], 0xc
or esi, 0xffffffff
jmp 0x100e9f6
push 0x8000
push edi
call fcn.0100ea47
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov eax, 0x1000
cmp ebx, eax
jge 0x100e96a
mov eax, ebx
push eax
push ebp
push edi
call fcn.0100d1d2
add esp, 0xc
cmp eax, 0xffffffff
je 0x100e982
sub ebx, eax
test ebx, ebx
jg 0x100e95f
jmp 0x100e998
cmp dword [0x10135fc], 5
jne 0x100e995
mov dword [0x10135f8], 0xd
or esi, 0xffffffff
push dword [esp + 0x18]
push edi
call fcn.0100ea47
pop ecx
pop ecx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100e9f6
jge 0x100e9f6
push 0
push dword [esp + 0x20]
push edi
call fcn.0100d146
push edi
call fcn.0100dbf2
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebp
jne 0x100e9f6
mov dword [0x10135f8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10135fc], eax
push 0
push dword [esp + 0x14]
push edi
call fcn.0100d146
add esp, 0xc
mov eax, esi
pop ebx
jmp 0x100ea1b
mov eax, ebp
jmp 0x100ea1b
mov dword [0x10135f8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x401000
Capabilities:
Enumerate processes
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
mov ebx, edx
mov dword [esp + 4], ebx
push esi
push edi
test ecx, ecx
je 0x40108e
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40108e
push 0x124
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x128
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
xor esi, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401082
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax]
lea eax, [esp + 0x10]
inc esi
push eax
push edi
call ebx
test eax, eax
jne 0x401070
cmp esi, 0x28
jg 0x40108a
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x40115f
push 0x100
lea eax, [esp + 0x14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movaps xmm0, xmmword [str.SoftwareMicrosoftWindowsCurrentVersionRu]
lea eax, [esp + 0xc]
push eax
movups xmmword [esp + 0x144], xmm0
lea eax, [esp + 0x144]
mov word [esp + 0x174], 0x6e
movaps xmm0, xmmword [0x4031c0]
movups xmmword [esp + 0x154], xmm0
push eax
movaps xmm0, xmmword [0x4031d0]
push 0x80000001
movups xmmword [esp + 0x16c], xmm0
mov dword [esp + 0x144], 0x4b435546
mov dword [esp + 0x148], 0x303633
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40115f
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401130
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
push eax
push 1
push 0
lea eax, [esp + 0x148]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004013f4
mov esp, ebp
pop ebp
ret
Function at 0x401180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xa
push 0x64
push 0
mov dword [ebp - 0x294], edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401388
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x298], eax
test eax, eax
je 0x401388
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401388
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x401388
push edi
mov ecx, 0x23
lea edi, [ebp - 0x290]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x28c]
push ecx
mov ecx, dword [ebp - 0x290]
call section..text
mov eax, dword [ebp - 0x298]
mov esi, dword [ebp - 0x294]
add eax, 0xffffff74
push eax
mov dword [esi], eax
call fcn.00401402
push dword [esi]
lea ecx, [ebx + 0x8c]
mov dword [ebp - 0x298], eax
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi]
xor edi, edi
push 0x100
mov dword [ebp - 0x294], eax
lea eax, [ebp - 0x204]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x2c
xor eax, eax
nop dword [eax]
mov ecx, eax
mov byte [ebp + eax - 0x104], al
and ecx, 0x7f
mov cl, byte [ebp + ecx - 0x284]
mov byte [ebp + eax - 0x204], cl
inc eax
cmp eax, 0x100
jl 0x401270
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov dl, byte [ebp + esi - 0x104]
movzx eax, byte [ebp + esi - 0x204]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4012c6
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
inc esi
mov byte [ebp + edi - 0x104], dl
cmp esi, 0x100
jl 0x4012a0
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x294], ebx
jbe 0x40136f
inc esi
and esi, 0x800000ff
jns 0x401303
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [ebp + esi - 0x104]
movzx edx, cl
add edi, edx
and edi, 0x800000ff
jns 0x40131f
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
mov byte [ebp + edi - 0x104], cl
movzx eax, byte [ebp + esi - 0x104]
mov ecx, dword [ebp - 0x298]
add eax, edx
movzx eax, al
movzx eax, byte [ebp + eax - 0x104]
xor byte [ebx + ecx], al
inc ebx
cmp ebx, dword [ebp - 0x294]
jb 0x4012f2
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013f4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x298]
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013f4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004013f4
mov esp, ebp
pop ebp
ret