joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42abcb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x42abf9
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x42ac00
cmp ebx, dword [eax + 4]
jae 0x42ac00
xor eax, eax
jmp 0x42adf0
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42ac11
xor eax, eax
inc eax
jmp 0x42adef
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42ac27
cmp ecx, edx
jae 0x42ad6c
cmp dword [eax + 4], 0
je 0x42ac30
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42ac18
cmp dword [ebp + 8], 0
je 0x42ac52
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42ad6c
cmp eax, esi
jae 0x42ad6c
mov eax, dword [0x436848]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42ac77
cmp dword [esi*4 + 0x436850], edi
je 0x42ad70
inc esi
cmp esi, eax
jl 0x42ac65
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42adec
cmp dword [ebp - 8], 0x1000000
jne 0x42adec
test byte [ebp - 0xc], 0xcc
je 0x42acf5
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42adec
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42adec
cmp word [eax + 0x18], 0x10b
jne 0x42adec
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42adec
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42acf5
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42acf5
test byte [ecx + 0x27], 0x80
jne 0x42ad6c
push 1
push 0x436890
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42ac09
mov ecx, dword [0x436848]
test ecx, ecx
mov edx, ecx
jle 0x42ad29
lea eax, [ecx*4 + 0x43684c]
cmp dword [eax], edi
je 0x42ad29
dec edx
sub eax, 4
test edx, edx
jg 0x42ad1d
test edx, edx
jne 0x42ad5a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42ad36
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42ad4e
lea eax, [edx*4 + 0x436850]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42ad3c
cmp ecx, 0x10
jge 0x42ad5a
inc ecx
mov dword [0x436848], ecx
push 0
push 0x436890
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42ac09
xor eax, eax
jmp 0x42adef
test esi, esi
jle 0x42ac09
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x436890
call ebx
test eax, eax
jne 0x42ac09
cmp dword [esi*4 + 0x436850], edi
je 0x42adc6
mov eax, dword [0x436848]
lea esi, [eax - 1]
test esi, esi
jl 0x42adb4
cmp dword [esi*4 + 0x436850], edi
je 0x42adb0
dec esi
jns 0x42ada4
test esi, esi
jge 0x42adc4
cmp eax, 0x10
jge 0x42adbf
inc eax
mov dword [0x436848], eax
lea esi, [eax - 1]
jmp 0x42adc6
je 0x42adde
xor ecx, ecx
test esi, esi
jl 0x42adde
lea eax, [ecx*4 + 0x436850]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42adcc
push 0
push 0x436890
call ebx
jmp 0x42ac09
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42afb1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x436900]
mov eax, dword [0x4353ac]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x42b177
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x436920]
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 - 0x80], ebx
je 0x42b177
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x42b01b
xor eax, eax
jmp 0x42b18b
test al, 0x20
je 0x42b02c
push 2
push edi
push edi
push ecx
call fcn.0042c437
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42b101
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x42b148
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x42b08e
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42b07f
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x42b061
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42b0ce
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x42b0da
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x42b055
jmp 0x42b0dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x42b172
cmp dword [ebp + 0x3a4], edi
je 0x42b148
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x42b13a
mov dword [0x4364b4], eax
jmp 0x42b17e
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42b12c
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x42b0dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x42b0dc
push dword [ebp + 0x3a4]
call fcn.0042b8f0
pop ecx
jmp 0x42b188
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42b160
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x42b014
mov dword [0x4364b0], 0x1c
mov dword [0x4364b4], edi
jmp 0x42b188
sub eax, dword [ebp - 0x7c]
jmp 0x42b18b
and dword [0x4364b4], 0
mov dword [0x4364b0], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00421df2
add ebp, 0x39c
leave
ret
Function at 0x42c0c7
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x433580
call fcn.00425098
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4368c4], edi
jne 0x42c10b
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42c0f6
mov dword [0x4368c4], ebx
jmp 0x42c10b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42c10b
mov dword [0x4368c4], 2
mov eax, dword [0x4368c4]
cmp eax, ebx
jne 0x42c12b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x42c1ee
cmp eax, 2
je 0x42c134
cmp eax, edi
jne 0x42c15c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x42c147
mov eax, dword [0x4365ac]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x42c163
xor eax, eax
jmp 0x42c1ee
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004224a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x42c196
cmp esi, edi
jne 0x42c1ac
push dword [ebp - 0x20]
call fcn.004229e2
pop ecx
mov esi, eax
cmp esi, edi
je 0x42c15c
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x42c1df
cmp dword [ebp + 0x14], edi
jne 0x42c1c9
push edi
push edi
jmp 0x42c1cf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x42c1eb
push esi
call fcn.00422508
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004250d3
ret
Function at 0x42c1f7
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x433590
call fcn.00425098
xor esi, esi
cmp dword [0x4368c8], esi
jne 0x42c23b
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42c226
mov dword [0x4368c8], edi
jmp 0x42c23b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42c23b
mov dword [0x4368c8], 2
mov eax, dword [0x4368c8]
cmp eax, 2
je 0x42c31c
cmp eax, esi
je 0x42c31c
cmp eax, 1
jne 0x42c280
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x42c269
mov eax, dword [0x4365ac]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x42c287
xor eax, eax
jmp 0x42c32e
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004224a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x42c2bd
cmp edi, esi
jne 0x42c2d8
lea eax, [ebx + ebx]
push eax
call fcn.004229e2
pop ecx
mov edi, eax
cmp edi, esi
je 0x42c280
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42c30b
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x42c2f5
push esi
push esi
jmp 0x42c2fb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x42c317
push edi
call fcn.00422508
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x42c32e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004250d3
ret
Function at 0x42c91c
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 [0x436900]
push edi
jae 0x42caf1
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x436920]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x42caf1
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x42c9c7
test dl, 2
jne 0x42c9c7
test dl, 0x48
je 0x42c991
cmp byte [eax + 5], 0xa
je 0x42c991
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 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 [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42c9da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x42c9c2
mov dword [0x4364b4], ecx
jmp 0x42caf8
cmp eax, 0x6d
jne 0x42c9ce
xor eax, eax
jmp 0x42cb05
push eax
call fcn.0042b8f0
pop ecx
jmp 0x42cb02
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x42caec
test eax, eax
je 0x42ca01
cmp byte [ebx], 0xa
jne 0x42ca01
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x42ca0a
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x42cae6
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x42cad6
cmp al, 0xd
je 0x42ca3c
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x42cac8
dec ecx
cmp dword [ebp - 8], ecx
jae 0x42ca56
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x42ca51
add dword [ebp - 8], 2
jmp 0x42caaa
mov dword [ebp - 8], eax
jmp 0x42cac4
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42ca7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42cac4
cmp dword [ebp - 0x10], 0
je 0x42cac4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42ca9f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42caaa
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42cac7
cmp ebx, dword [ebp + 0xc]
jne 0x42caaf
cmp byte [ebp - 1], 0xa
jne 0x42caaf
mov byte [ebx], 0xa
jmp 0x42cac7
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042af25
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42cac8
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x42ca20
jmp 0x42cae6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x42cae6
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x42cb05
and dword [0x4364b4], 0
mov dword [0x4364b0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10027b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a4a60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.10099c18
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10028d50
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10027b74
jmp dword [ecx*4 + 0x10027cdc]
mov al, byte [esi]
test al, al
je 0x10027ba2
cmp al, 0x20
je 0x10027b8e
cmp al, 0xa1
jne 0x10027ba2
cmp byte [esi + 1], al
jne 0x10027ba2
test al, 0x80
je 0x10027b9a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10027ba2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10027b81
test ecx, ecx
je case.default.0x10027b74
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10027b74
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10027be8
cmp dl, 0xa1
jne 0x10027bdc
cmp byte [eax + 1], 0xa1
jne 0x10027bdc
test ecx, ecx
jne 0x10027bd4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x10027bfc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10027c16
jmp 0x10027bfc
cmp dl, 0x20
jne 0x10027bfa
test ecx, ecx
jne 0x10027bf3
mov edi, eax
mov ecx, 1
jmp 0x10027bfc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10027bbc
cmp ecx, 1
jne case.default.0x10027b74
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10027b74
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10027b74
mov al, byte [esi]
test al, al
je 0x10027c6e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10027c54
mov cl, byte [esi + 1]
test cl, cl
je 0x10027c6e
cmp al, 0xa1
jne 0x10027c44
cmp cl, al
je 0x10027c51
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10028fe0
inc esi
jmp 0x10027c66
cmp al, 0x20
je 0x10027c66
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10029020
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10027c2d
push 0
lea ecx, [esp + 0x14]
call fcn.10029020
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10032150
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10027ca1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100acb50
call fcn.10028f50
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10099baa
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10028900
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x100a4ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x100d0718]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.100287a0
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100289a2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10028a5b
mov edx, dword [esi + 8]
push edx
call fcn.10030ed0
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x100289f2
cmp eax, 0x80000301
jne 0x100289c0
mov eax, dword [esi]
jmp 0x100289cd
push 0
push esi
push 0x7d1
call fcn.100363b0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10028a50
jmp 0x10028a4a
cmp eax, 0x80000004
jne 0x10028a21
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10028a50
jmp 0x10028a4a
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x10028a50
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10028a50
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10099baa
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1002cc30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a4e2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1009991f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1002ccb2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1009773a
mov eax, dword [eax]
push 0x100c4ce0
push eax
call fcn.10089884
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10099baa
test bl, bl
je 0x1002ccb2
push 0x100c4ce0
lea ecx, [esp + 0xc]
call fcn.10099f3a
push 0x100c4cec
lea ecx, [esp + 0xc]
call fcn.10099f3a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1002ccee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.10099baa
jmp 0x1002cdb9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x1002cd72
lea edx, [esp + 0x7c]
push 0x100c4ce8
push edx
call fcn.10089884
add esp, 8
test eax, eax
je 0x1002cd72
lea eax, [esp + 0x7c]
push 0x100c4ce4
push eax
call fcn.10089884
add esp, 8
test eax, eax
je 0x1002cd72
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1002cd02
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.10099baa
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x1002d5c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1002d622
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x1002d630
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a4eab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100d0718]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x1002d768
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1002d696
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10099baa
xor eax, eax
jmp 0x1002d7df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.10099ce7
push esi
lea ecx, [esp + 0xc]
call fcn.10099f76
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x100c4d20
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1002d7bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.1002d5c0
test eax, eax
jne 0x1002d7bd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.1002d5c0
test eax, eax
jne 0x1002d7bd
lea eax, [esp + 0x14]
push 0x100c4cfc
push eax
call fcn.1008a900
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002d79c
lea ecx, [esp + 0x14]
push 0x100c4cf8
push ecx
call fcn.1008a880
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002d79c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1002d79f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.10099c97
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1002d6ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10099baa
xor eax, eax
jmp 0x1002d7df
mov byte [esi], 0
push 0x100c4cf4
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.10099baa
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4