joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b1760
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004aaada
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x48b763
xor al, al
jmp 0x48b88f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x48b785
xor al, al
jmp 0x48b88f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x48b798
xor al, al
jmp 0x48b88f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x48b7ac
xor al, al
jmp 0x48b88f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0049ef12
test eax, eax
jne 0x48b7e0
xor al, al
jmp 0x48b88f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x4f41e4
mov dword [esp + 0x20], ebp
call fcn.004aaada
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004a7a25
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004a7a7c
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x48b874
mov ax, word [ebx]
test ax, ax
je 0x48b866
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0048b8b0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x48b84a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004a7a7c
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x48bdb0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004a90d5
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x48bdf6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0048f9e8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x5133b8
push ecx
call fcn.004915ef
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x48c560
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x48c5a9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x48ca20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b19d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0048c5d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0048c650
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0048c650
lea ecx, [esi + 0xc]
call fcn.004a0bba
lea ecx, [esi + 0x10]
call fcn.004a0bba
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0048dbe0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0048dbe0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0048dbe0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a0c2f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a0c2f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48ddd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x48de36
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x48de36
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x48de17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4a2fe5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a301d
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.004a108a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a1062
jmp 0x4a3029
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a47e3
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 0x4a4825
call fcn.004aaada
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a4825
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a481c
xor eax, eax
jmp 0x4a482d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a4833
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ab00a
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 0x4ab038
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ab056
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aaf70
jmp 0x4ab056
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab056
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aaf70
test edi, edi
mov eax, edi
jne 0x4ab040
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001a3a3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001a3e2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a3e2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a3e2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001a3e2
cmp dword [ecx + 0x74], 0xe
jbe 0x1001a3e2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001d0ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001d14a
push ebx
push esi
call fcn.1001d076
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d00a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d0f7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d149
push edi
push eax
call fcn.1001b0ed
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d117
call fcn.1001bb52
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d148
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d00a
add esp, 0x20
test eax, eax
jne 0x1001d136
push edi
call fcn.1001bb52
jmp 0x1001d13e
push ebx
call fcn.1001bb52
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001d3b7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024d10
push 0x10024d08
push str.FlsAlloc
push 0x1f
call fcn.1001d2d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d3eb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002314c]
call esi
jmp 0x1001d3f1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d435
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024d20
push 0x10024d18
push str.FlsGetValue
push 0x21
call fcn.1001d2d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d46c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002314c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001d474
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024d28
push 0x10024d20
push str.FlsSetValue
push 0x22
call fcn.1001d2d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d4ae
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002314c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10022a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401570
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401720
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40166e
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401611
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401654
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401628
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401643
test al, 0x40
je 0x40163a
mov ecx, dword [edi + 0x20]
jmp 0x401641
test al, 0x80
je 0x401654
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401654
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4015e0
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x12b5140
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.DATA
lea edi, [esi - 0xb13000]
lea eax, [edi + 0xe6897c]
push dword [eax]
mov dword [eax], 0x1fa73027
push eax
push edi
jmp 0x12b516a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x12b5171
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12b5160
mov eax, 1
add ebx, ebx
jne 0x12b5183
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x12b5194
jne 0x12b51b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12b51b3
dec eax
add ebx, ebx
jne 0x12b51a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x12b5178
add ebx, ebx
jne 0x12b51af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x12b5205
xor ecx, ecx
sub eax, 3
jb 0x12b51cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x12b523a
sar eax, 1
mov ebp, eax
jmp 0x12b51d6
add ebx, ebx
jne 0x12b51d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12b51a4
inc ecx
add ebx, ebx
jne 0x12b51e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x12b51a4
add ebx, ebx
jne 0x12b51f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x12b51e6
jne 0x12b5202
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x12b51e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x12b5224
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x12b5216
jmp 0x12b5166
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x12b5224
add edi, ecx
jmp 0x12b5166
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x49219
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x12b5246
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x12b524b
lea edi, [esi + 0xeab000]
mov eax, dword [edi]
or eax, eax
je 0x12b52bc
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xec5ba4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xec5ecc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x12b5271
mov ecx, edi
jns 0x12b52a0
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xec5ed4]
or eax, eax
je 0x12b52b6
mov dword [ebx], eax
add ebx, 4
jmp 0x12b528e
call dword [esi + 0xec5ed0]
mov ebp, dword [esi + 0xec5ed8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x2bf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x12b52f0
sub esp, 0xffffff80
jmp 0xd63ec0
Function at 0x1002612
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push 0x1001348
push 0x80000002
call esi
test eax, eax
jne 0x10026bc
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call esi
test eax, eax
je 0x100265d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10026bc
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001324
push dword [ebp - 8]
add esi, esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10026a9
cmp dword [ebp - 0x10], 1
jne 0x10026a9
push dword [ebp - 8]
mov word [esi + edi - 2], bx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
cmp dword [ebp - 0xc], ebx
setne al
jmp 0x10026be
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [edi], bx
call esi
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100279f
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2224
call fcn.010050c0
mov eax, dword [0x100700c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push eax
push 0x2000
lea eax, [ebp - 0x2224]
push eax
mov dword [edi], ebx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10028cc
shr dword [ebp - 0x210], 2
mov eax, 0x800
cmp dword [ebp - 0x210], eax
jbe 0x1002814
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], ebx
jbe 0x10028c6
push esi
lea esi, [ebp + ebx*4 - 0x2224]
push dword [esi]
call fcn.0100259f
test eax, eax
je 0x10028a7
mov esi, dword [esi]
cmp dword [ebp - 0x21c], esi
je 0x10028a7
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10028a7
lea eax, [ebp - 0x224]
push eax
push 4
lea eax, [ebp - 0x218]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x10028a0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x10028a0
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10028b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp - 0x210]
jb 0x1002821
jmp 0x10028c5
mov eax, dword [ebp + ebx*4 - 0x2224]
mov dword [edi], esi
mov dword [ebp - 0x214], eax
pop esi
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01004dc3
leave
ret 8
Function at 0x1002ab2
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x4d8]
test ebx, ebx
mov dword [ebp - 4], ebx
je 0x1002bd0
cmp ebx, 0xff
ja 0x1002bd0
mov eax, dword [edi + 0x4b0]
dec eax
jne 0x1002bd0
test ebx, ebx
push esi
jbe 0x1002b5a
lea esi, [edi + 0x8dc]
mov dword [ebp + 8], ebx
cmp dword [esi + 0x3fc], 0
jne 0x1002b0c
push 0
push edi
call fcn.010028df
test eax, eax
jne 0x1002b0c
and dword [esi], eax
cmp dword [esi], 0
je 0x1002b52
push dword [esi - 0x3fc]
call fcn.01002a05
test eax, eax
jne 0x1002b2a
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi]
and dword [esi - 0x3fc], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
and dword [esi + 0x3fc], 0
dec dword [edi + 0x4d8]
jne 0x1002b52
and dword [edi + 0x4dc], 0
add esi, 4
dec dword [ebp + 8]
jne 0x1002af5
cmp ebx, dword [edi + 0x4d8]
je 0x1002bca
and dword [ebp + 8], 0
lea eax, [ebx - 1]
test eax, eax
jbe 0x1002bca
lea esi, [edi + 0x4e0]
mov edi, dword [sym.imp.msvcrt.dll_memmove]
cmp dword [esi + 0x3fc], 0
jne 0x1002bbc
sub ebx, dword [ebp + 8]
lea eax, [esi + 4]
lea ebx, [ebx*4 - 4]
push ebx
push eax
push esi
call edi
push ebx
lea eax, [esi + 0x400]
push eax
lea eax, [esi + 0x3fc]
push eax
call edi
push ebx
lea eax, [esi + 0x7fc]
push eax
lea eax, [esi + 0x7f8]
push eax
call edi
mov ebx, dword [ebp - 4]
add esp, 0x24
inc dword [ebp + 8]
lea eax, [ebx - 1]
add esi, 4
cmp dword [ebp + 8], eax
jb 0x1002b79
xor eax, eax
inc eax
pop esi
jmp 0x1002bd2
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x1002daa
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100700c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
call fcn.010026f0
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x1002e2c
push esi
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1002e21
push dword [ebp - 0x1c]
push ebx
push esi
push dword [ebp - 0x18]
push 0x420
push esi
push esi
push esi
push dword [ebp - 8]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002e61
call fcn.01002a2d
test eax, eax
je 0x1002e61
push dword [ebp - 0x1c]
mov eax, dword [0x10013e0]
push ebx
push esi
push esi
push 0x4000000
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [0x10013e4]
push esi
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
call fcn.01004dc3
leave
ret 0x10
Function at 0x1002e78
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x100700c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x4dc], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x4d8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c4], eax
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x520]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x4d4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x4bc]
push eax
mov dword [ebp - 0x520], 0x44
call fcn.01001bdd
xor edi, edi
cmp dword [ebp - 0xc], 3
mov dword [ebp - 0x4c0], edi
je 0x1002f2b
lea eax, [ebp - 0x264]
mov dword [ebp - 0x518], eax
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x520]
push eax
push ebx
push esi
call fcn.01002daa
cmp eax, edi
mov dword [ebp - 0x4c0], eax
jne 0x1002f68
cmp dword [ebp - 0xc], 3
je 0x1002f2b
call fcn.01002a67
test eax, eax
je 0x1002f60
cmp dword [ebp + 0x10], edi
je 0x1002f60
cmp dword [ebp + 0x10], edi
je 0x1002fb6
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x520]
push eax
push edi
push edi
push 0x4000000
push edi
push edi
push edi
push ebx
push esi
mov dword [ebp - 0x518], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x4c0], eax
cmp dword [ebp - 0x4c0], edi
je 0x1002fb6
mov eax, dword [ebp - 0x4dc]
cmp eax, edi
je 0x1002f7a
mov ecx, dword [ebp - 0x4cc]
mov dword [eax], ecx
mov eax, dword [ebp - 0x4d8]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1002f94
mov ecx, dword [ebp - 0x4d4]
mov dword [eax], ecx
jmp 0x1002f9c
push dword [ebp - 0x4d4]
call esi
mov eax, dword [ebp - 0x4c4]
cmp eax, edi
je 0x1002fae
mov ecx, dword [ebp - 0x4c8]
mov dword [eax], ecx
push dword [ebp - 0x4d0]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c0]
pop edi
pop esi
pop ebx
call fcn.01004dc3
leave
ret 0x18

Function at 0x100310c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
mov word [edi], si
cmp dword [ebx + 8], esi
jne 0x100312b
push 8
pop eax
jmp 0x10031a1
lea eax, [ebp - 4]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x100319e
lea eax, [ebp - 8]
push eax
push 1
push esi
push 0x10013f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], eax
call esi
cmp dword [ebp + 8], 0
jne 0x100319e
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push edi
push eax
push 0
push dword [ebx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [ebp + 8], eax
jne 0x100318a
cmp dword [ebp - 0xc], 1
je 0x100318e
and word [edi], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and word [edi + eax*2 - 2], 0
push dword [ebp - 8]
call esi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8