joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a2070
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
cmp dword [esi + 0x10], 0
je 0x100a2243
push edi
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.10054fb0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x100a2230
push 0x10434c48
push edi
call fcn.100aa445
add esp, 8
mov dword [ebp - 0x208], eax
test eax, eax
je 0x100a2230
push eax
push edi
push dword [ebp - 0x20c]
mov ecx, esi
call fcn.10054fb0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100a2222
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x208]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100a2222
mov eax, dword [ebp - 0x210]
mov edi, dword [ebp + 0xc]
movzx ecx, word [eax]
mov edi, dword [edi]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov esi, dword [edi]
mov dword [ebp - 0x220], ecx
cmp esi, edi
je 0x100a2220
nop dword [eax]
cmp dword [esi + 0x24], 8
lea ebx, [esi + 0x10]
jb 0x100a214d
mov eax, dword [ebx]
jmp 0x100a214f
mov eax, ebx
push eax
push ecx
push str.StringFileInfo_08lx_s
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.100a2960
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100a21cd
mov edx, dword [ebp - 0x218]
cmp word [edx], 0
jne 0x100a219e
xor ecx, ecx
jmp 0x100a21c3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x21c], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a21b0
sub ecx, dword [ebp - 0x21c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x18]
call fcn.10058060
cmp byte [esi + 0xd], 0
jne 0x100a2212
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100a21f2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100a2212
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100a21e6
jmp 0x100a2212
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100a2210
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x100a2210
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100a2200
mov esi, eax
mov ecx, dword [ebp - 0x220]
cmp esi, edi
jne 0x100a2140
mov bl, 1
push dword [ebp - 0x208]
call fcn.100a9a1f
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x100a2a30
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102eb2bb
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x104230a4]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x1c8], eax
xor eax, eax
mov dword [ebp - 0x118], 7
mov dword [ebp - 0x11c], 0
mov word [ebp - 0x12c], ax
push 0x288
mov dword [ebp - 4], eax
call fcn.101fff31
add esp, 4
mov dword [ebp - 0x1c0], 0x288
mov ebx, eax
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1c4], ebx
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x100a2ad4
push ebx
call fcn.101ff0c2
push dword [ebp - 0x1c0]
call fcn.101fff31
add esp, 8
mov dword [ebp - 0x1c4], eax
mov ebx, eax
lea eax, [ebp - 0x1c0]
push eax
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x100a2c3c
mov esi, ebx
test ebx, ebx
je 0x100a2c49
lea edi, [esi + 0x1b0]
push 0x1040fb1c
push edi
call fcn.101fefe0
add esp, 8
test eax, eax
je 0x100a2c2c
push str.0.0.0.0
push edi
call fcn.101fefe0
add esp, 8
test eax, eax
je 0x100a2c2c
push str.127.0.0.1
push edi
call fcn.101fefe0
add esp, 8
test eax, eax
je 0x100a2c2c
lea ebx, [esi + 0x10c]
push str.Virtual
push ebx
call fcn.101fb3f0
add esp, 8
test eax, eax
jne 0x100a2c2c
push str.Bluetooth
push ebx
call fcn.101fb3f0
add esp, 8
test eax, eax
jne 0x100a2c2c
push str.VNIC
push ebx
call fcn.101fb3f0
add esp, 8
test eax, eax
jne 0x100a2c2c
push 0x104
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.101fd960
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02x__02x__02x__02x__02x__02x
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.100a32c0
push 0x40
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.10203940
push 0x28
lea eax, [ebp - 0x1bc]
push edi
push eax
call fcn.10203940
add esp, 0x48
lea eax, [esi + 0x1c0]
push 0x28
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.10203940
mov ecx, dword [ebp - 0x1c8]
lea eax, [ebp - 0x1bc]
add esp, 0xc
push eax
call fcn.100a3540
mov esi, dword [esi]
test esi, esi
jne 0x100a2af3
mov ebx, dword [ebp - 0x1c4]
test ebx, ebx
je 0x100a2c49
push ebx
call fcn.101ff0c2
add esp, 4
mov eax, 1
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.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x100a2e90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Print debug messages
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1043511c]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10434ab4]
mov edi, dword [ebp + 0x10]
cmp eax, dword [ecx + 4]
jle 0x100a2ecc
jmp 0x100a2f95
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100a2ee0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x100a2ee7
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jne 0x100a2f25
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push esi
cmp eax, 0xffffffff
je 0x100a2f7a
lea eax, [ebp - 0x2c]
push eax
call fcn.100a31d0
add esp, 8
mov ecx, edi
push eax
call fcn.10055690
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x100a2f61
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10059a80
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, 0xfffffffe
pop edi
xor ecx, ebp
pop esi
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push 0x10434ab4
call fcn.100a9b58
add esp, 4
cmp dword [0x10434ab4], 0xffffffff
jne 0x100a2ecc
lea eax, [ebp - 0x1bc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100a2fd2
push str.WSAStartup_error___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x100a2fd2
push 0x102ee3f0
call fcn.100a9a0a
push 0x10434ab4
call fcn.100a9b19
add esp, 8
jmp 0x100a2ecc
Function at 0x100a2ff0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x104
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x108]
push 0
push eax
mov dword [ebp - 0x118], 0
call fcn.101fd960
push 0x288
call fcn.100a9677
mov esi, eax
mov dword [ebp - 0x110], eax
add esp, 0x10
test esi, esi
je 0x100a3056
push 0x288
push 0
push esi
call fcn.101fd960
add esp, 0xc
jmp 0x100a305e
xor esi, esi
mov dword [ebp - 0x110], esi
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x288
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
xor bl, bl
cmp eax, 0x6f
jne 0x100a30aa
push 0x288
push esi
call fcn.100a9669
push dword [ebp - 0x10c]
call fcn.100a9c5c
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], esi
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
push edi
test eax, eax
jne 0x100a315a
mov edi, esi
test esi, esi
je 0x100a3172
nop dword [eax]
lea esi, [edi + 0x1ac]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 4]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100a30f0
test dl, dl
je 0x100a30ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100a30f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x100a30d0
xor eax, eax
jmp 0x100a30f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x100a3105
test bl, bl
jne 0x100a3150
mov esi, dword [esi]
test esi, esi
jne 0x100a30c6
jmp 0x100a3150
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
push str._02x__02x__02x__02x__02x__02x
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.100a32c0
add esp, 0x24
mov bl, 1
mov edi, dword [edi]
test edi, edi
jne 0x100a30c0
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x100a3172
push 0x288
push eax
call fcn.100a9669
add esp, 8
mov ebx, dword [ebp - 0x114]
pop edi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [ebp - 0x108], 0
jne 0x100a3197
xor ecx, ecx
jmp 0x100a31a9
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a31a0
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, ebx
push eax
call fcn.10058600
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x100a3200
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push edi
mov edi, dword [ebp + 0x10]
push 0x100
push 0
push eax
mov dword [ebp - 0x10c], 0
call fcn.101fd960
add esp, 0xc
mov dword [ebp - 0x108], 0x100
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100a3291
push 0
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push 0x1040fb1c
mov byte [esi], 0
call fcn.10058600
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.100a2db0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x100a35c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x4bc]
push esi
mov esi, dword [ebp + 0xc]
push 0x3e8
push 0
push eax
mov dword [ebp - 0x4c0], ebx
mov dword [ebp - 0x4c4], esi
call fcn.101fd960
xor eax, eax
push 0xc8
push eax
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
lea eax, [ebp - 0xd4]
push eax
call fcn.101fd960
add esp, 0x18
test ebx, ebx
je 0x100a378b
test esi, esi
je 0x100a378b
push 0xc
push str.DeviceMup_
push ebx
call fcn.1020494e
add esp, 0xc
test eax, eax
jne 0x100a3668
push 0x102f9c9c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x100a373e
xor edi, edi
cmp word [ebp - 0x4bc], di
je 0x100a373e
lea esi, [ebp - 0x4bc]
xor ebx, ebx
nop word [eax + eax]
push 0x102f9e50
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100a371a
push 0x102f9e58
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100a371a
movzx eax, word [esi]
mov word [ebp - 0xc], ax
movzx eax, word [ebp + ebx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100a3746
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [ebp - 0x4c0]
mov esi, eax
push esi
lea eax, [ebp - 0xd4]
push eax
push ebx
call fcn.1020494e
add esp, 0xc
test eax, eax
je 0x100a3759
add edi, 4
lea esi, [ebp - 0x4bc]
lea ebx, [edi + edi]
add esi, ebx
cmp word [esi], 0
jne 0x100a36a0
mov ebx, dword [ebp - 0x4c0]
mov esi, dword [ebp - 0x4c4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x4c4]
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebx + esi*2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x100a3c80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push edi
mov edi, dword [ebp + 8]
push 0x104
push 0
push eax
mov dword [ebp - 0x110], 0
call fcn.101fd960
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x100a3cf9
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], eax
mov byte [edi], al
cmp byte [ebp - 0x108], al
je 0x100a3d4c
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a3cf0
jmp 0x100a3d67
lea eax, [ebp - 0x114]
push eax
push 4
lea eax, [ebp - 0x10c]
push eax
push esi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x100a3d2b
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
push esi
call sub.KERNEL32.dll_K32GetModuleFileNameExA
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [ebp - 0x108], 0
jne 0x100a3d50
xor ecx, ecx
jmp 0x100a3d69
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a3d60
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.10058600
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x100a3d90
Capabilities:
Enumerate processes on remote desktop session host
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], eax
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push ebx
mov dword [ebp - 0x30], eax
or edi, 0xffffffff
call sub.WTSAPI32.dll_WTSOpenServerW
mov esi, eax
test esi, esi
je 0x100a3ecd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
push esi
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
xor ecx, ecx
test eax, eax
push esi
cmovne edi, ecx
call sub.WTSAPI32.dll_WTSCloseServer
test edi, edi
jne 0x100a3ecd
mov dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x28], ebx
jle 0x100a3ec0
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x30]
push dword [edi + eax + 8]
call fcn.101fefe0
add esp, 8
test eax, eax
jne 0x100a3e4e
mov eax, dword [ebp - 0x20]
push dword [edi + eax + 4]
lea eax, [ebp - 0x1c]
push eax
call fcn.100a3c80
or ebx, 1
add esp, 8
mov dword [ebp - 0x24], ebx
cmp dword [eax + 0x14], 0x10
jb 0x100a3e3a
mov eax, dword [eax]
push dword [ebp - 0x34]
push eax
call fcn.101fefe0
add esp, 8
test eax, eax
jne 0x100a3e4e
mov bl, 1
jmp 0x100a3e50
xor bl, bl
mov eax, dword [ebp - 0x24]
test al, 1
je 0x100a3e72
and eax, 0xfffffffe
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x100a3e72
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.10059a80
test bl, bl
je 0x100a3eaa
mov eax, dword [ebp - 0x20]
mov eax, dword [edi + eax + 4]
test eax, eax
je 0x100a3eaa
cmp eax, 0xffffffff
je 0x100a3eaa
push eax
push 0
push 0x42b
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100a3eaa
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
add edi, 0x10
mov ebx, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x28]
jl 0x100a3e03
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100a3ecd
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x100a3ee0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100a3f42
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101fd960
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
test eax, eax
jne 0x100a3f54
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.101fd960
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.100a35c0
add esp, 0x14
test eax, eax
je 0x100a3f3b
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.1009b550
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.100a9f90
mov esp, ebp
pop ebp
ret

Function at 0x100a4740
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], 4
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x34]
cmp ax, 9
je 0x100a4772
cmp ax, 6
je 0x100a4772
xor ecx, ecx
jmp 0x100a4777
mov ecx, 1
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
test ecx, ecx
mov edx, 0x100
mov eax, 0x200
cmovne eax, edx
or eax, 0x20019
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a47ce
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a47ce
mov ecx, dword [ebp + 0x14]
mov esi, 1
mov eax, dword [ebp - 4]
mov dword [ecx], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100a47e0
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x14]
push 0x105
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x10c]
push 0
push eax
mov dword [ebp - 0x11c], 1
call fcn.101fd960
add esp, 0xc
mov dword [ebp - 0x118], 0x105
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x144]
cmp ax, 9
je 0x100a485c
cmp ax, 6
je 0x100a485c
xor ecx, ecx
jmp 0x100a4861
mov ecx, 1
lea eax, [ebp - 0x110]
xor esi, esi
push eax
test ecx, ecx
mov edx, 0x100
mov eax, 0x200
cmovne eax, edx
or eax, 0x20019
push eax
push esi
push dword [ebp - 0x114]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100a48f1
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
push edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100a48f1
cmp byte [ebp - 0x10c], al
jne 0x100a48c4
xor ecx, ecx
jmp 0x100a48d9
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a48d0
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x120]
lea eax, [ebp - 0x10c]
push eax
call fcn.10058600
mov esi, 1
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x100a4910
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x14]
push 0x20a
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x21c], 1
call fcn.101fd960
add esp, 0xc
mov dword [ebp - 0x218], 0x105
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x244]
cmp ax, 9
je 0x100a498c
cmp ax, 6
je 0x100a498c
xor ecx, ecx
jmp 0x100a4991
mov ecx, 1
lea eax, [ebp - 0x214]
xor esi, esi
push eax
test ecx, ecx
mov edx, 0x100
mov eax, 0x200
cmovne eax, edx
or eax, 0x20019
push eax
push esi
push ebx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a4a27
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a4a27
cmp word [ebp - 0x210], si
jne 0x100a49f4
xor ecx, ecx
jmp 0x100a4a0f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a4a00
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x210]
push eax
call fcn.10058060
mov esi, 1
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret