joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10162e9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 3
mov esi, ecx
call dword [sym.imp.USER32.dll_SetDebugErrorLevel]
xor eax, eax
push 0x11
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
inc eax
mov dword [ebp - 0x28], eax
mov word [ebp - 0x24], ax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x54], 0x44
je 0x101632b
cmp byte [eax], bl
jne 0x101632d
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push eax
mov eax, dword [esi + 8]
and eax, 0x2000
neg eax
sbb eax, eax
push ebx
inc eax
inc eax
or eax, 0x4000220
push eax
push ebx
push ebx
push ebx
push dword [esi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x14]
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x1c], ebx
je 0x1016417
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
call edi
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x378], ecx
lea edi, [esi + 0x28]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x10163e7
mov dword [esi + 0x88], 0x10002
cmp byte [0x10692f4], bl
je 0x10163bd
mov ecx, esi
call fcn.010162a4
jmp 0x10163ce
mov ecx, dword [0x10691d4]
push esi
push 0x10162dd
call fcn.01025355
push dword [esi + 0x88]
push dword [esi + 0x30]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
cmp dword [esi + 0x24], ebx
jne 0x1016395
jmp 0x10163ee
or byte [0x10691d2], 0x10
cmp byte [0x10692f4], bl
jne 0x1016417
mov edi, 0x10691ac
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.01016047
push esi
call fcn.01044729
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x101645b
Capabilities:
Resume thread

Disassembly:
mov eax, 0x106019f
call fcn.01036ab0
mov eax, 0x100c
call fcn.01037290
mov eax, dword [0x1067a40]
push ebx
push esi
push edi
push 0x20
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov esi, ecx
call fcn.01036e40
test eax, eax
pop ecx
pop ecx
je 0x10164c0
push 0x1003
push dword [ebp + 0xc]
lea eax, [ebp - 0x1013]
push eax
mov byte [ebp - 0x1014], 0x22
call fcn.01021459
mov edi, 0x1004
push edi
push 0x10021f8
lea eax, [ebp - 0x1014]
push eax
call fcn.01021489
jmp 0x10164d5
mov edi, 0x1004
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x1014]
push eax
call fcn.01021459
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x1016504
cmp byte [eax], bl
je 0x1016504
push edi
push 0x10021f4
lea eax, [ebp - 0x1014]
push eax
call fcn.01021489
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x1014]
push eax
call fcn.01021489
push 0x40
call fcn.01044700
pop ecx
mov ecx, eax
mov dword [ebp - 0x1018], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x101652d
push dword [ebp + 0xc]
push ebx
push ebx
call fcn.01013f45
mov dword [ebp - 0x1018], eax
jmp 0x1016533
mov dword [ebp - 0x1018], ebx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1018], ebx
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
jne 0x1016550
push ebx
push ebx
push 1
push 0xc0000017
call edi
push 0x38c
call fcn.01044700
cmp eax, ebx
pop ecx
je 0x1016575
push dword [ebp - 0x1018]
mov ecx, eax
push dword [ebp + 0x18]
push esi
push dword [ebp + 8]
call fcn.01013ff2
jmp 0x1016577
xor eax, eax
cmp eax, ebx
mov dword [esi + 0x24], eax
jne 0x1016589
push ebx
push ebx
push 1
push 0xc0000017
call edi
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x68], eax
lea eax, [ebp - 0x1014]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 8], eax
cmp byte [0x10692f4], bl
je 0x10165b8
mov ecx, esi
call fcn.010162e9
jmp 0x1016606
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x101662f
push ebx
push 4
push ebx
push ebx
push esi
push 0x101641e
call fcn.010482f8
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x101662f
mov dword [eax + 0x24], ebx
mov eax, dword [esi + 0x18]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], ebx
cmp dword [esi + 0x1c], ebx
jne 0x101661c
mov ecx, dword [esi + 0x24]
push ebx
push dword [esi + 0x20]
push 0x10021d4
call fcn.01013684
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x1c], ebx
je 0x101662f
mov eax, dword [esi + 0x24]
jmp 0x1016631
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01032376
leave
ret 0x14
Function at 0x1016ac5
Capabilities:
Get geographical location
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [0x1067a40]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push 0x21
mov esi, ecx
mov ebp, 0x400
xor ebx, ebx
push ebp
mov dword [esi + 0x244], ebx
call edi
test eax, eax
je 0x1016b19
push ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.010370cc
add esp, 0xc
cmp eax, 1
je 0x1016b13
cmp eax, 2
jne 0x1016b19
mov dword [esi + 0x244], eax
push 0x10
lea eax, [esp + 0x14]
push eax
push 0x22
push ebp
mov dword [esi + 0x248], ebx
call edi
test eax, eax
je 0x1016b4e
push ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.010370cc
add esp, 0xc
cmp eax, 1
je 0x1016b48
cmp eax, 2
jne 0x1016b4e
mov dword [esi + 0x248], eax
push 0x10
lea eax, [esp + 0x14]
push eax
push 0x23
push ebp
mov byte [esi + 0x24c], bl
call edi
test eax, eax
je 0x1016b7e
push ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.010370cc
add esp, 0xc
cmp eax, 1
jne 0x1016b7e
mov byte [esi + 0x24c], al
push 0x10
lea eax, [esp + 0x14]
push eax
push 0x25
push ebp
mov byte [esi + 0x24d], bl
call edi
test eax, eax
je 0x1016bae
push ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.010370cc
add esp, 0xc
cmp eax, 1
jne 0x1016bae
mov byte [esi + 0x24d], al
push 0x10
lea eax, [esp + 0x14]
push eax
push 0x1d
push ebp
mov byte [esi + 0x24e], 0x2f
call edi
cmp eax, 2
jne 0x1016bd0
mov al, byte [esp + 0x10]
mov byte [esi + 0x24e], al
push 0x10
lea eax, [esp + 0x14]
push eax
push 0x1e
push ebp
mov byte [esi + 0x24f], 0x3a
call edi
cmp eax, 2
jne 0x1016bf2
mov al, byte [esp + 0x10]
mov byte [esi + 0x24f], al
push 0x10
lea eax, [esp + 0x14]
push eax
push 0xf
push ebp
mov byte [esi + 0x250], 0x2c
call edi
cmp eax, 2
jne 0x1016c14
mov al, byte [esp + 0x10]
mov byte [esi + 0x250], al
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
jmp fcn.01032376
Function at 0x1019177
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov eax, 0x1060416
call fcn.01036ab0
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0x10035e0
mov ebx, 0x10035d0
mov esi, ecx
push ebx
lea eax, [ebp - 0x10]
mov edi, 0x10691e0
push eax
mov ecx, edi
mov dword [ebp - 0x14], esi
call fcn.0105d2cd
and dword [ebp - 4], 0
add esi, 0x5c
push eax
mov ecx, esi
call fcn.01049035
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01048f48
push 0
push 0x10035c4
push ebx
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.0105d2cd
mov edi, dword [ebp - 0x14]
add edi, 0x60
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.01049035
or ebx, 0xffffffff
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.01048f48
mov eax, dword [esi]
cmp dword [eax - 8], 0
jne 0x1019267
mov eax, 0x105
push eax
push eax
mov ecx, esi
call fcn.010492eb
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push ebx
mov ecx, esi
call fcn.0104933a
push 0x10035ac
mov ecx, esi
call fcn.01049297
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x101923c
cmp eax, 0x10
jne 0x101925b
mov eax, 0x800
push eax
push eax
mov ecx, esi
call fcn.010492eb
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
mov ecx, esi
call fcn.0104933a
push 0x10035a4
mov ecx, edi
call fcn.01049085
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1019276
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov eax, 0x1060440
call fcn.01036ab0
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
lea eax, [ebx + 0x60]
push eax
lea ecx, [ebp - 0x18]
call fcn.01048cbd
push dword [ebp + 8]
and dword [ebp - 4], 0
push 0x1003634
lea ecx, [ebp - 0x18]
call fcn.01041e69
mov eax, dword [0x1067d18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
lea ecx, [ebp - 0x20]
lea edi, [ebx + 0x5c]
mov eax, dword [edi]
push ecx
push eax
mov byte [ebp - 4], 2
call esi
test eax, eax
mov dword [ebp + 8], eax
je 0x1019308
mov ecx, dword [edi]
push eax
mov dword [ebp - 0x1c], ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.010492eb
push eax
push dword [ebp - 0x1c]
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call fcn.0104933a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1019300
cmp eax, dword [ebp + 8]
jle 0x1019308
lea ecx, [ebp - 0x14]
call fcn.01048ed3
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0
jne 0x101931a
push edi
lea ecx, [ebp - 0x14]
call fcn.01049035
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
mov dword [ebp + 8], eax
je 0x101935a
mov edi, dword [ebp - 0x18]
push eax
push eax
lea ecx, [ebp - 0x10]
call fcn.010492eb
push eax
push edi
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0104933a
test esi, esi
je 0x1019352
cmp esi, dword [ebp + 8]
jle 0x101935a
lea ecx, [ebp - 0x10]
call fcn.01048ed3
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp dword [eax - 8], edi
jne 0x1019370
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.01049035
push 1
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x100362c
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1019403
push 0x1003618
lea ecx, [ebp + 8]
call fcn.01048fb6
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.010492d3
push 0x1003614
lea ecx, [ebp + 8]
call fcn.01049297
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.010492d3
push 0x1003610
lea ecx, [ebp + 8]
call fcn.01049297
push dword [ebp + 8]
push esi
call fcn.01023170
push 0x30
push 0x10035e8
push eax
mov ecx, ebx
mov dword [ebp - 0x1c], eax
call fcn.0104643f
lea eax, [ebp - 0x1c]
push eax
call fcn.010213af
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.01048f48
xor esi, esi
jmp 0x1019406
xor esi, esi
inc esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.01048f48
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.01048f48
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.01048f48
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x101b21b
Capabilities:
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0xd0]
sub esp, 0x150
mov eax, dword [0x1067a40]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x88c], ebx
mov dword [ebp + 0xcc], eax
jne 0x101b252
cmp dword [esi + 0x890], 0x138
jb 0x101b35f
lea eax, [esi + 0x89c]
push 0x2e
push eax
call fcn.01037a40
inc eax
cmp eax, 1
pop ecx
pop ecx
je 0x101b35f
cmp byte [eax], bl
je 0x101b35f
push eax
push 0x1004514
lea eax, [ebp - 0x7c]
push 0x106
push eax
call fcn.010213c8
lea eax, [ebp - 0x7c]
push eax
call fcn.01036acf
add esp, 0x14
lea eax, [ebp - 0x7c]
lea ecx, [esi + 0x5c]
push eax
call fcn.010420e2
test eax, eax
jge 0x101b35f
push edi
push ebx
push 0x8000080
push 3
push ebx
push 1
push 0x80000000
lea eax, [esi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x101b35e
push 0x40
lea eax, [ebp + 0x8c]
push eax
push edi
call fcn.010215fc
test eax, eax
je 0x101b357
cmp word [ebp + 0x8c], 0x5a4d
jne 0x101b357
push ebx
push ebx
push dword [ebp + 0xc8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x101b357
push 4
lea eax, [ebp - 0x80]
push eax
push edi
mov dword [ebp - 0x80], ebx
call fcn.010215fc
test eax, eax
je 0x101b357
cmp dword [ebp - 0x80], 0x4550
jne 0x101b357
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x7b]
push eax
lea ecx, [esi + 0x5c]
call fcn.01049297
lea eax, [ebp - 0x7c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x101b334
sub eax, ecx
mov byte [ebp + eax - 0x7d], bl
lea eax, [ebp - 0x7b]
push eax
push 3
push 0x8d2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x101b35e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp + 0xcc]
pop esi
pop ebx
call fcn.01032376
add ebp, 0xd0
leave
ret
Function at 0x101bebb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1060673
call fcn.01036ab0
sub esp, 0x808
mov eax, dword [0x1067a40]
push esi
mov esi, ecx
cmp byte [esi + 0x5d], 0
mov dword [ebp - 0x10], eax
jne 0x101bfb3
push edi
push 0x7ff
lea eax, [ebp - 0x810]
push eax
lea ecx, [esi + 0x274]
call fcn.01047abe
lea eax, [ebp - 0x810]
push eax
call fcn.010214ff
mov edi, eax
lea eax, [ebp - 0x10]
sub eax, edi
push eax
push edi
call fcn.01021548
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x101bf22
test al, 0x10
jne 0x101bf35
push 0
push 0x24
push 0x1004520
call fcn.01051988
cmp eax, 6
jne 0x101bfb2
push ebx
push 0x18
call fcn.01044700
pop ecx
mov dword [ebp - 0x814], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x101bf5d
push edi
push dword [esi + 0x60]
mov ecx, eax
push 1
push ebx
call fcn.0102b2f7
mov ebx, eax
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jne 0x101bf74
push ebx
push ebx
push 1
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0xffff0002
push ebx
lea edi, [esi + 0x1fc]
push edi
mov ecx, esi
call fcn.01019b3d
mov esi, eax
push esi
mov ecx, edi
call fcn.0101a11f
push eax
mov ecx, edi
call fcn.0101a1b8
push esi
mov ecx, edi
call fcn.0101a1b8
push esi
mov ecx, edi
call fcn.0101a1a1
mov ecx, edi
call fcn.01047c0f
pop ebx
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01032376
leave
ret
Function at 0x101e43c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x1067a40]
push ebx
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov byte [ebp - 0x365], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101e47e
xor al, al
jmp 0x101e5c1
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
push edi
jne 0x101e49c
mov ecx, dword [ebp + 0x10]
push ebx
call fcn.010309d1
mov byte [ebp - 0x365], al
jmp 0x101e560
cmp eax, 2
je 0x101e4c0
cmp eax, 3
je 0x101e4c0
cmp eax, 4
jne 0x101e591
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push ebx
call fcn.010275b5
jmp 0x101e491
mov edi, dword [ebp + 0x10]
mov esi, dword [edi + 0x30]
test esi, esi
jne 0x101e4d8
lea esi, [ebp - 0x364]
mov eax, esi
push eax
call fcn.01021f15
push 0x1004f80
push ebx
call fcn.010217b2
test al, al
je 0x101e559
push ebx
push 0x101da36
push esi
call fcn.0102385c
test al, al
je 0x101e559
push 0x10042b0
push ebx
call fcn.010217b2
test al, al
je 0x101e559
push edi
push ebx
call fcn.0101dadc
test al, al
je 0x101e559
push dword [ebp + 0x18]
cmp dword [ebp + 0xc], 3
push dword [ebp + 0x14]
sete al
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push edi
push ebx
call fcn.010289ca
test al, al
je 0x101e559
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push edi
push ebx
call fcn.01026d45
test al, al
je 0x101e559
push 0x1004f28
push ebx
call fcn.010217b2
test al, al
je 0x101e559
mov byte [ebp - 0x365], 1
jmp 0x101e569
mov byte [ebp - 0x365], 0
cmp byte [ebp - 0x365], 0
je 0x101e591
cmp dword [ebp + 0x28], 0
je 0x101e591
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x101e581
cmp eax, 2
je 0x101e581
cmp eax, 3
jne 0x101e591
push eax
push ebx
push dword [ebp + 0x28]
call fcn.0102a148
and byte [ebp - 0x365], al
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x365], 0
jne 0x101e5b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [ebp - 0x365]
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01032376
leave
ret 0x24
Function at 0x1021884
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
push 0x1c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp byte [ebp + 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 8]
je 0x10218ca
mov al, byte [0x10691d8]
neg al
sbb eax, eax
and eax, 0x40
add eax, 0x40
jmp 0x10218fb
test ecx, ecx
jbe 0x102190d
cmp ecx, 2
jbe 0x10218e9
cmp ecx, 4
je 0x10218e9
cmp ecx, 0x10
je 0x10218b9
cmp ecx, 0x20
je 0x10218b9
cmp ecx, 0x40
jne 0x102190d
jmp 0x10218b9
xor eax, eax
cmp byte [0x10691d8], al
setne al
lea eax, [eax*4 + 4]
cmp eax, ecx
je 0x102190d
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1021958
lea eax, [ebp + 0xc]
push eax
mov al, byte [0x10691d8]
neg al
sbb eax, eax
and eax, 0x40
add eax, 0x40
push eax
push dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
call edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1021958
xor al, al
jmp 0x102196d
cmp byte [ebp + 0x18], 0
je 0x102196b
push dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x1021ab2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov edx, dword [ebp + 8]
test edx, edx
je 0x1021b05
cmp byte [edx], 0
je 0x1021b05
push edi
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0x1005b40
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov al, cl
pop edi
jmp 0x1021b0f
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
xor al, al
leave
ret 4

Function at 0x1021b13
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1021b1a
sub eax, ecx
push eax
push dword [esp + 0xc]
push 1
push dword [esp + 0x10]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
ret 8

Function at 0x1021b3c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x1010
lea ebp, [esp - 0xf90]
call fcn.01037290
mov eax, dword [0x1067a40]
mov ecx, dword [ebp + 0xf98]
and dword [ebp - 0x78], 0
push ebx
push esi
push edi
push 0x1004438
mov dword [ebp + 0xf8c], eax
call fcn.01049085
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x800
push edi
lea eax, [ebp + 0x78c]
push eax
push 0
mov esi, 0x80000000
jmp 0x1021c58
Function at 0x1021c7e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1067a40]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1021caa
xor eax, eax
jmp 0x1021cfb
push 0x100
lea eax, [ebp - 0x104]
push eax
push 0
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1021cde
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call fcn.01021c7e
test eax, eax
jne 0x1021caa
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.01032376
leave
ret 8

Function at 0x1021d07
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x1067a40]
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0x3a
mov dword [ebp - 4], eax
jne 0x1021dd1
push ebx
mov ebx, 0x80000000
push esi
lea esi, [edi + 1]
cmp byte [esi], 0
je 0x1021dcf
cmp byte [esi], 0x3a
je 0x1021d43
inc esi
cmp byte [esi], 0
jne 0x1021d38
cmp byte [esi], 0
je 0x1021dcf
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x804]
push eax
push edi
mov byte [edi], 0x2e
push ebx
mov byte [esi], 0
mov dword [ebp + 8], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x1021dbe
push 0x800
mov byte [ebp - 5], al
push 0x1005b7c
lea eax, [ebp - 0x804]
push eax
call fcn.01021489
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1021dbe
push 0x1005b68
push dword [ebp - 0x808]
call fcn.01021c7e
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [edi], 0x3a
mov byte [esi], 0x3a
cmp byte [esi], 0x3a
mov edi, esi
je 0x1021d2c
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01032376
leave
ret 4