joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019c9a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, edx
lea eax, [ecx + 0x1c]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
lea eax, [eax + ebx*4]
mov dword [ebp - 4], eax
cmp dword [ecx + ebx*4 + 0x1c], edi
jne 0x1019cb38
mov esi, dword [ecx]
mov dword [ebp - 0x38], str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov dword [ebp - 0x34], str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_DESC
mov dword [ebp - 0x30], str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov dword [ebp - 0x2c], str.INSERT_INTO__Q._q_content_VALUES__s_
mov dword [ebp - 0x28], str.REPLACE_INTO__Q._q_content_VALUES__s_
mov dword [ebp - 0x24], str.DELETE_FROM__Q._q_content_WHERE_id_
mov dword [ebp - 0x20], str.REPLACE_INTO__Q._q_docsize_VALUES_____
mov dword [ebp - 0x1c], str.DELETE_FROM__Q._q_docsize_WHERE_id_
mov dword [ebp - 0x18], str.SELECT_sz_FROM__Q._q_docsize_WHERE_id_
mov dword [ebp - 0x14], str.REPLACE_INTO__Q._q_config_VALUES_____
mov dword [ebp - 0x10], str.SELECT__s_FROM__s_AS_T
cmp ebx, 0xa
ja case.0x1019ca22.5
movzx eax, byte [ebx + 0x1019cb68]
jmp dword [eax*4 + 0x1019cb54]
push dword [esi + 0x24]
push dword [esi + 0x34]
push str.SELECT__s_FROM__s_AS_T
jmp 0x1019cacd
mov eax, dword [esi + 0x28]
push eax
push eax
push eax
push dword [esi + 0x24]
push dword [esi + 0x34]
push dword [ebp + ebx*4 - 0x38]
call fcn.100e2630
add esp, 0x18
jmp 0x1019cad5
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x34]
push str.SELECT__s_FROM__s_T_WHERE_T._Q_
call fcn.100e2630
add esp, 0x10
jmp 0x1019cad5
mov eax, dword [esi + 0xc]
inc eax
mov dword [ebp - 8], eax
add eax, eax
cdq
add eax, 1
adc edx, edi
push edx
push eax
call fcn.100dfcb0
mov edi, eax
add esp, 8
test edi, edi
je 0x1019cadb
mov ecx, dword [ebp - 8]
xor eax, eax
test ecx, ecx
jle 0x1019caa1
mov word [edi + eax*2], 0x2c3f
inc eax
cmp eax, ecx
jl 0x1019ca96
push edi
mov byte [edi + eax*2 - 1], 0
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + ebx*4 - 0x38]
call fcn.100e2630
push edi
mov ebx, eax
call fcn.100dfd40
add esp, 0x14
jmp 0x1019cad7
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + ebx*4 - 0x38]
call fcn.100e2630
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x1019cae2
mov edi, 7
jmp 0x1019cb38
mov ecx, dword [esi]
xor eax, eax
cmp dword [ebp - 0xc], 2
mov edx, ebx
push 0
push dword [ebp - 4]
setg al
push 0
lea eax, [eax*4 + 0x81]
push eax
push 0xffffffffffffffff
call fcn.1013a960
add esp, 0x14
mov edi, eax
push ebx
call fcn.100dfd40
add esp, 4
test edi, edi
je 0x1019cb38
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1019cb38
push dword [esi]
call fcn.10162a50
add esp, 4
push eax
push 0x102682b4
call fcn.100e2630
add esp, 8
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
push ecx
mov dword [eax], ecx
call fcn.10105890
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1019e560
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ecx]
lea ebx, [ecx + 0x3c]
xor esi, esi
mov dword [ebp - 4], edx
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xc], eax
cmp dword [ebx], esi
jne 0x1019e5c1
push dword [edi + 8]
push dword [edi + 4]
push str.SELECT_sz_FROM__Q._q_docsize_WHERE_id_
call fcn.100e2630
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x1019e59c
lea esi, [eax + 7]
jmp 0x1019e5c1
mov ecx, dword [edi]
mov edx, eax
push 0
push ebx
push 0
push 0x85
push 0xffffffffffffffff
call fcn.1013a960
add esp, 0x14
mov esi, eax
push dword [ebp - 8]
call fcn.100dfd40
add esp, 4
mov edi, dword [ebx]
push edi
call fcn.10105890
add esp, 4
test esi, esi
jne 0x1019e65d
push dword [ebp + 0xc]
lea ebx, [esi + 1]
push dword [ebp + 8]
push ebx
push edi
call fcn.101079a0
push edi
call fcn.101066b0
add esp, 0x14
cmp eax, 0x64
jne 0x1019e63f
push esi
push edi
call fcn.10106c00
push esi
push edi
mov dword [ebp - 0x10], eax
call fcn.10106cb0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], esi
cmp dword [ebp - 0xc], esi
jle 0x1019e638
cmp esi, eax
jge 0x1019e63f
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
lea ecx, [esi + ecx]
call fcn.101a0e60
add dword [ebp - 4], 4
add esi, eax
mov eax, dword [ebp - 8]
inc eax
cmp eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
jl 0x1019e611
xor ecx, ecx
cmp esi, eax
cmove ebx, ecx
push edi
call fcn.10105890
add esp, 4
test ebx, ebx
je 0x1019e65f
test eax, eax
mov ecx, 0x10b
cmove eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101a07b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], edx
cmp ecx, 0x80
jge 0x101a07d1
lea edx, [ecx - 0x41]
cmp edx, 0x19
lea eax, [ecx + 0x20]
cmova eax, ecx
mov esp, ebp
pop ebp
ret
cmp ecx, 0x10000
jge 0x101a087f
push ebx
xor eax, eax
mov dword [ebp - 8], 0xffffffff
push esi
mov ebx, 0xa2
mov dword [ebp - 4], eax
push edi
add eax, ebx
mov esi, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
movzx edx, word [edi*4 + 0x10260610]
lea eax, [edi + 1]
sub esi, edx
mov edx, edi
cmovs edx, dword [ebp - 8]
test esi, esi
mov dword [ebp - 8], edx
cmovs eax, dword [ebp - 4]
mov dword [ebp - 4], eax
lea eax, [edi - 1]
cmovs ebx, eax
mov eax, dword [ebp - 4]
cmp ebx, eax
jge 0x101a07f1
mov ebx, dword [ebp - 8]
movzx edx, word [edx*4 + 0x10260610]
pop edi
pop esi
movzx eax, byte [ebx*4 + 0x10260613]
add eax, edx
cmp ecx, eax
jge 0x101a0866
movzx eax, byte [ebx*4 + 0x10260612]
xor edx, ecx
and edx, eax
test edx, 1
jne 0x101a0866
shr eax, 1
movzx eax, word [eax*2 + 0x10261ae0]
add eax, ecx
movzx ecx, ax
mov eax, dword [ebp - 0xc]
pop ebx
test eax, eax
je 0x101a088d
xor edx, edx
cmp eax, 2
sete dl
call fcn.1017c9a0
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x10400]
cmp eax, 0x27
lea eax, [ecx + 0x28]
jbe 0x101a088f
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x101a26f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 8]
mov bl, byte [esi + 0x1e4]
mov byte [esi + 0x1e4], 3
mov byte [edi], 0
call fcn.101a2610
test eax, eax
jne 0x101a272a
mov byte [edi], 3
mov byte [esi + 0x1e4], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1f0], 0
jne 0x101a2745
mov byte [edi], 1
xor eax, eax
mov byte [esi + 0x1e4], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
push str.SELECT_pwsqlite_crypt__1_pw___isAdmin_FROM___w_.sqlite_user_WHERE_uname_2
push esi
call fcn.101a2570
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x101a276c
lea eax, [edi + 7]
mov byte [esi + 0x1e4], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push dword [esi + 0x1e8]
mov edx, 1
mov ecx, edi
push dword [esi + 0x1ec]
call fcn.101077a0
push 1
push 0
push 0xffffffffffffffff
push dword [esi + 0x1f0]
mov edx, 2
mov ecx, edi
call fcn.101077a0
push edi
call fcn.101066b0
add esp, 0x24
cmp eax, 0x64
jne 0x101a27cc
push 0
push edi
call fcn.10106f50
add esp, 8
test eax, eax
je 0x101a27cc
push 1
push edi
call fcn.10106f50
add esp, 8
add al, 2
jmp 0x101a27ce
mov al, 1
mov ecx, dword [ebp + 8]
push edi
mov byte [ecx], al
call fcn.101057b0
add esp, 4
mov byte [esi + 0x1e4], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101a31c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ecx + 0x1c]
xor ebx, ebx
sub edi, 6
mov dword [ebp - 0x28], ecx
xor eax, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jle 0x101a31f6
mov ecx, edi
mov esi, edx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor esi, esi
test edi, edi
jle 0x101a3248
nop dword [eax]
cmp ebx, dword [ecx + 0x1c]
ja 0x101a3384
cmp esi, edi
jge 0x101a322c
nop dword [eax]
cmp eax, 4
jge 0x101a322c
mov edi, dword [ebp - 0x28]
lea edx, [eax + ebx*4]
mov ecx, dword [ebp + esi*4 - 0x24]
inc eax
inc esi
mov dword [edi + edx*4 + 0x20], ecx
mov edi, dword [ebp - 0x2c]
cmp esi, edi
jl 0x101a3210
cmp eax, 4
lea ecx, [ebx + 1]
cmovne ecx, ebx
mov ebx, ecx
xor ecx, ecx
cmp eax, 4
cmovne ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0x28]
cmp esi, edi
jl 0x101a3200
cmp ebx, dword [ecx + 0x1c]
ja 0x101a3384
mov esi, 0x10262640
nop word [eax + eax]
movzx ecx, byte [ebp + edi*4 - 0x27]
mov dl, byte [ebp - 0x24]
xor dl, byte [ecx + str.cw]
mov byte [ebp - 0x24], dl
movzx ecx, byte [ebp + edi*4 - 0x26]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x23], cl
movzx ecx, byte [ebp + edi*4 - 0x25]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x22], cl
movzx ecx, byte [ebp + edi*4 - 0x28]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x21], cl
movzx ecx, byte [esi]
add esi, 4
xor cl, dl
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x24], cl
mov edx, 1
cmp edi, 8
je 0x101a32d0
cmp edi, edx
jle 0x101a332e
nop word [eax + eax]
mov ecx, dword [ebp + edx*4 - 0x28]
xor dword [ebp + edx*4 - 0x24], ecx
inc edx
cmp edx, edi
jl 0x101a32c0
jmp 0x101a332e
mov ecx, dword [ebp + edx*4 - 0x28]
xor dword [ebp + edx*4 - 0x24], ecx
inc edx
cmp edx, 4
jl 0x101a32d0
movzx ecx, byte [ebp - 0x18]
mov edx, 5
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x14], cl
movzx ecx, byte [ebp - 0x17]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x13], cl
movzx ecx, byte [ebp - 0x16]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x12], cl
movzx ecx, byte [ebp - 0x15]
movzx ecx, byte [ecx + str.cw]
xor byte [ebp - 0x11], cl
nop dword [eax + eax]
mov ecx, dword [ebp + edx*4 - 0x28]
xor dword [ebp + edx*4 - 0x24], ecx
inc edx
cmp edx, 8
jl 0x101a3320
xor esi, esi
test edi, edi
jle 0x101a3375
mov ecx, dword [ebp - 0x28]
cmp ebx, dword [ecx + 0x1c]
ja 0x101a3375
cmp esi, edi
jge 0x101a335c
cmp eax, 4
jge 0x101a335c
mov edi, dword [ebp - 0x28]
lea edx, [eax + ebx*4]
mov ecx, dword [ebp + esi*4 - 0x24]
inc eax
inc esi
mov dword [edi + edx*4 + 0x20], ecx
mov edi, dword [ebp - 0x2c]
cmp esi, edi
jl 0x101a3340
cmp eax, 4
lea ecx, [ebx + 1]
cmovne ecx, ebx
mov ebx, ecx
xor ecx, ecx
cmp eax, 4
cmovne ecx, eax
mov eax, ecx
cmp esi, edi
jl 0x101a3334
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
cmp ebx, dword [ecx + 0x1c]
jbe 0x101a3260
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d506b
mov esp, ebp
pop ebp
ret
Function at 0x101a9d40
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push dword [esi]
push 0x400
push 1
push dword [esi + 0x20]
call fcn.101f9043
add esp, 0x10
test eax, eax
jne 0x101a9d60
or eax, 0xffffffff
pop esi
ret
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x18], 1
pop esi
movsx eax, byte [eax]
ret
Function at 0x101acd40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea edx, [ebp - 5]
push edi
push 1
mov eax, dword [esi + 0x640]
dec eax
cmp dword [esi + 0x644], eax
jne 0x101acd76
mov byte [ebp - 5], 0x86
call fcn.101acc60
add esp, 4
jmp 0x101acd9f
mov byte [ebp - 5], 6
mov byte [ebp - 6], 0x80
call fcn.101acc60
mov eax, dword [esi + 0x640]
lea edx, [ebp - 6]
dec eax
mov ecx, esi
push 1
mov dword [esi + 0x644], eax
call fcn.101acc60
add esp, 8
mov eax, dword [esi + 0x640]
xor edi, edi
test eax, eax
je 0x101acdd2
nop dword [eax + eax]
mov eax, dword [esi + 0x648]
lea edx, [esi + edi]
mov ecx, dword [esi + 0x640]
xor eax, edi
inc edi
mov al, byte [eax + esi]
mov byte [edx + ecx], al
mov eax, dword [esi + 0x640]
cmp edi, eax
jb 0x101acdb0
mov ecx, dword [ebp - 4]
add eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.101d506b
mov esp, ebp
pop ebp
ret
Function at 0x101af100
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022f9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
push 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x34], 0
je 0x101af26e
push 0
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0x16
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x101af26c
push 0
mov edx, dword [ebp - 0x30]
shr edx, 1
add edx, 1
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x88
call fcn.1004fb10
push 0
lea eax, [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x88
call fcn.100571e0
push eax
push 0
push 0x16
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x101af259
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 4
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0x20000013
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ecx, dword [ebp + 8]
add ecx, 0x70
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x88
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.101b4eb9
add esp, 8
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
call fcn.10006200
push eax
call fcn.101ae9a0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002520
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x7c], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], 0
mov al, 1
jmp 0x101af283
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov dword [edx + 0x80], eax
xor al, al
jmp 0x101af283
jmp 0x101af281
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], eax
xor al, al
jmp 0x101af283
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret 4
Function at 0x101af2a0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x25], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x101af300
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], eax
jmp 0x101af37f
cmp dword [ebp - 0x20], 0
jne 0x101af308
jmp 0x101af37f
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.100061f0
add eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.1000d9a0
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.1000d9d0
push eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x101af35c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], eax
cmp dword [ebp - 0x24], 0
je 0x101af36a
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x20]
je 0x101af36c
jmp 0x101af37f
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x20], 0
ja 0x101af2d3
mov ecx, dword [ebp + 8]
add ecx, 0x34
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.101b4d48
add esp, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x34
call fcn.10006350
lea ecx, [ebp - 0x1c]
call fcn.10002520
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret 4
Function at 0x101b1bf0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x128
push 0
lea eax, [ebp - 0x12c]
push eax
call fcn.101ee530
add esp, 0xc
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x101b1cc9
mov dword [ebp - 0x12c], 0x128
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x101b1cbc
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
call fcn.10006200
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x101b1ca5
cmp dword [ebp + 0xc], 0
je 0x101b1c97
mov ecx, dword [ebp - 0x114]
cmp ecx, dword [ebp + 0xc]
je 0x101b1c97
jmp 0x101b1ca5
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x134], edx
jmp 0x101b1cbc
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x101b1c6a
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
Function at 0x101b20c0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022fd28
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1029912c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x70]
cdq
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 8]
push edx
push 0
push 0x418
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x101b211e
jmp 0x101b226f
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0xd]
call fcn.10002590
push eax
push 0x1000
lea ecx, [ebp - 0x3c]
call fcn.101b1440
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x18], eax
jae 0x101b2250
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x101b2172
jmp 0x101b2250
cmp dword [ebp - 0x48], 0x1000
jne 0x101b2242
cmp dword [ebp - 0x44], 1
je 0x101b2242
lea ecx, [ebp - 0x3c]
call fcn.100245b0
cmp eax, dword [ebp - 0x4c]
jae 0x101b21a2
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.100247e0
lea edx, [ebp - 0x20]
push edx
push 0x40
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x101b2242
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10006660
push eax
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.10006660
push eax
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x101b2242
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x101b2242
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.10006660
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.101b18f0
add esp, 0x10
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x18], ecx
jmp 0x101b2149
cmp dword [ebp - 0x14], 0
je 0x101b2260
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10081db0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x101b39e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022fe88
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.101b4170
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
call fcn.100063d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.101d5a20
add esp, 4
cmp dword [ebp + 0xc], 0
jne 0x101b3a5f
lea edx, [ebp - 0x40]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.101b4120
add esp, 4
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10006200
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10002520
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret

Function at 0x101b4000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022ff9b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x134], 0
push 0x104
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.101ee530
add esp, 0xc
push 0x10234cc0
lea ecx, [ebp - 0x12c]
call fcn.100063d0
mov dword [ebp - 4], 0
mov dword [ebp - 0x130], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jl 0x101b40b4
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x101b40b4
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x12c]
call fcn.100024f0
cmp dword [ebp - 0x130], 0
je 0x101b40ca
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10006390
mov edx, dword [ebp - 0x134]
or edx, 1
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.10002520
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret