joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006ea60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor al, al
push edi
xor edi, edi
test esi, esi
je 0x1006eb27
push ebx
mov ecx, dword [ebp + 8]
mov dl, byte [edi + ecx]
xor dl, al
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
movzx ecx, cl
xor al, 0x8c
and bl, 1
movzx eax, al
cmove eax, ecx
inc edi
cmp edi, esi
jb 0x1006ea75
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1006f7d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x10136674]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x23c]
push 0x208
push 0
push eax
mov esi, ecx
call fcn.1007bae0
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x1006f90e
mov ecx, esi
call fcn.1006fbf0
mov dword [ebp - 0x34], 0x790053
test eax, eax
jne 0x1006f89c
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0x740073
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x2c], 0x6d0065
push eax
push edi
mov dword [ebp - 0x28], 0x320033
mov dword [ebp - 0x24], 0x6e005c
mov dword [ebp - 0x20], 0x6f0074
mov dword [ebp - 0x1c], 0x6b0073
mov dword [ebp - 0x18], 0x6e0072
mov dword [ebp - 0x14], 0x2e006c
mov dword [ebp - 0x10], 0x780065
mov dword [ebp - 0xc], 0x65
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10069b58
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov dword [ebp - 0x30], 0x4e0073
mov word [ebp - 8], ax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x2c], 0x740061
push eax
push edi
mov dword [ebp - 0x28], 0x760069
mov dword [ebp - 0x24], 0x5c0065
mov dword [ebp - 0x20], 0x74006e
mov dword [ebp - 0x1c], 0x73006f
mov dword [ebp - 0x18], 0x72006b
mov dword [ebp - 0x14], 0x6c006e
mov dword [ebp - 0x10], 0x65002e
mov dword [ebp - 0xc], 0x650078
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10069b58
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
xor ecx, ebp
pop esi
call fcn.10069b58
mov esp, ebp
pop ebp
ret 4
Function at 0x10070550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f6f23
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x10136674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x101366f0]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10070440
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x10070731
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1007bae0
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x1010e198
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10070731
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x10070625
cmp eax, 2
jne 0x10070731
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x10070646
test cl, 1
jne 0x10070731
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x1007064c
jmp 0x10070731
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x10070731
call fcn.10006650
mov ecx, eax
test ecx, ecx
je 0x1007075c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.1006e4d0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x101082f0
push eax
call fcn.1001bef0
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.1006ea60
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x10070715
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100706b6
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.100707b0
push dword [0x101366f8]
lea eax, [ebp - 0x74]
push dword [0x101366f4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x100706f2
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1007070e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x10070733
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10070731
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x1007073e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069b58
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10005ea0
int3
Function at 0x100708a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f6f58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10136674]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x101366f0]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10070440
test eax, eax
je 0x100709c8
mov esi, dword [ebp - 0x18]
mov edi, dword [str.SOFTWAREComMaster]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x10070973
cmp dword [esi], 0
je 0x10070966
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10070933
mov eax, 1
jmp 0x10070994
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007096c
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x10070994
cmp dword [esi + 4], 0
jne 0x10070973
mov eax, 1
jmp 0x10070994
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100709be
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100709a6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x100709cb
xor ebx, ebx
jmp 0x10070a6f
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x10070a6f
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x10070a28
mov ecx, dword [ebx]
test ecx, ecx
je 0x10070a8e
push ecx
push eax
call fcn.10096fb8
add esp, 8
test eax, eax
je 0x10070a28
mov edx, dword [edi]
test edx, edx
je 0x10070a28
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10070a00
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x10070a33
lea eax, [edx + 0xd]
jmp 0x10070a68
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10070a40
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x1010e198
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x10070a7a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10005ea0
int3
Function at 0x100722b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10072321
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x100722ef
cmp eax, 2
jne 0x1007230b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1007231b
test ecx, ecx
je 0x10072316
test cl, 1
jne 0x1007230b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1007231b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1007a070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10136674]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jge 0x1007a090
xor eax, eax
jmp 0x1007a1a8
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.1007bae0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov dword [ebp - 0x41c], 0
jmp 0x1007a0e5
mov eax, dword [ebp - 0x41c]
add eax, 1
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
cmp ecx, dword [ebp + 8]
jge 0x1007a0ff
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x1007a0d6
lea eax, [ebp - 0x418]
push eax
mov ecx, 0x1013b320
call fcn.1007b360
jmp 0x1007a11d
lea ecx, [ebp - 0x418]
call fcn.10077020
lea ecx, [ebp - 0x420]
push ecx
mov ecx, 0x1013b320
call fcn.1007b520
push eax
lea ecx, [ebp - 0x418]
call fcn.10076f60
movzx edx, al
test edx, edx
je 0x1007a1a6
push 0x208
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.1007bae0
add esp, 0xc
lea ecx, [ebp - 0x418]
call fcn.10076fb0
add eax, 4
mov ecx, eax
call fcn.10076fa0
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1007a1a1
lea ecx, [ebp - 0x418]
call fcn.10076fb0
mov eax, dword [eax]
jmp 0x1007a1a8
jmp 0x1007a112
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10069b58
mov esp, ebp
pop ebp
ret

Function at 0x100b2b50
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b2755

Function at 0x100b2b5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b28d6

Function at 0x100b92f3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b8acd

Function at 0x100b92fe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100b8d08

Function at 0x100c766a
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100c73f1
Function at 0x100c9d80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.100ca390
add esp, 8
test al, al
je 0x100c9da5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100c9da5
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x100ca390
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x100cb840
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100cb86b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100cb86b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x11642058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x116421a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1164207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1164206a
add dl, dl
jne 0x11642089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x116420dc
xor eax, eax
add dl, dl
jne 0x11642096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1164217d
add dl, dl
jne 0x116420a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x116420b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x116420bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x116420c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x116420d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x11642075
mov eax, 1
add dl, dl
jne 0x116420ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x116420f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x116420e1
sub eax, ebx
mov ebx, 1
jne 0x11642128
mov ecx, 1
add dl, dl
jne 0x1164210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11642119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11642105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11642075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1164213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1164214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11642136
cmp eax, 0x7d00
jae 0x1164216d
cmp eax, 0x500
jb 0x11642168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11642075
cmp eax, 0x7f
ja 0x11642170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11642075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1164219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x11642075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10056220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101611d0
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.10152e18
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1005a460
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10056274
jmp dword [ecx*4 + 0x100563dc]
mov al, byte [esi]
test al, al
je 0x100562a2
cmp al, 0x20
je 0x1005628e
cmp al, 0xa1
jne 0x100562a2
cmp byte [esi + 1], al
jne 0x100562a2
test al, 0x80
je 0x1005629a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100562a2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10056281
test ecx, ecx
je case.default.0x10056274
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10056274
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100562e8
cmp dl, 0xa1
jne 0x100562dc
cmp byte [eax + 1], 0xa1
jne 0x100562dc
test ecx, ecx
jne 0x100562d4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x100562fc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10056316
jmp 0x100562fc
cmp dl, 0x20
jne 0x100562fa
test ecx, ecx
jne 0x100562f3
mov edi, eax
mov ecx, 1
jmp 0x100562fc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100562bc
cmp ecx, 1
jne case.default.0x10056274
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10056274
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10056274
mov al, byte [esi]
test al, al
je 0x1005636e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10056354
mov cl, byte [esi + 1]
test cl, cl
je 0x1005636e
cmp al, 0xa1
jne 0x10056344
cmp cl, al
je 0x10056351
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1005a6f0
inc esi
jmp 0x10056366
cmp al, 0x20
je 0x10056366
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1005a730
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1005632d
push 0
lea ecx, [esp + 0x14]
call fcn.1005a730
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1006a9e0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100563a1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x1018b7a0
call fcn.1005a660
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10152daa
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10063320
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1016196b
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.10152b1f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x100633a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1014f5a1
mov eax, dword [eax]
push 0x1027fbf4
push eax
call fcn.10119533
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10152daa
test bl, bl
je 0x100633a2
push 0x1027fbf4
lea ecx, [esp + 0xc]
call fcn.1015313a
push 0x1027fc00
lea ecx, [esp + 0xc]
call fcn.1015313a
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 0x100633de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.10152daa
jmp 0x100634a9
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 0x10063462
lea edx, [esp + 0x7c]
push 0x1027fbfc
push edx
call fcn.10119533
add esp, 8
test eax, eax
je 0x10063462
lea eax, [esp + 0x7c]
push 0x1027fbf8
push eax
call fcn.10119533
add esp, 8
test eax, eax
je 0x10063462
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 0x100633f2
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.10152daa
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 0x10064130
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 0x10064192
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 0x100641a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x101619eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10296458]
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 0x100642d8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10064206
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10152daa
xor eax, eax
jmp 0x1006434f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.10152ee7
push esi
lea ecx, [esp + 0xc]
call fcn.10153176
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1006432d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.10064130
test eax, eax
jne 0x1006432d
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 SysReAllocString
mov ecx, edi
call fcn.10064130
test eax, eax
jne 0x1006432d
lea eax, [esp + 0x14]
push 0x1027fc18
push eax
call fcn.1011a780
mov esi, eax
add esp, 8
test esi, esi
jne 0x1006430c
lea ecx, [esp + 0x14]
push 0x1027fc14
push ecx
call fcn.1011a5d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1006430c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1006430f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.10152e97
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1006421e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10152daa
xor eax, eax
jmp 0x1006434f
mov byte [esi], 0
push 0x1027fc10
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.10152daa
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

Function at 0x1006c340
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x1006c36e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret