joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b30
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x404ce2
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x404b5a
cmp ax, 0x2f
jne 0x404ce2
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x404ce2
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403fb3
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x404cac
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040140c
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401324
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040254c
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013dd
mov esi, 0x418588
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040254c
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.0040254c
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013dd
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0040254c
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040254c
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013dd
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040254c
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402775
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x404cbd
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x404cbd
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x404ce8
push dword [ebp - 0x28]
call fcn.00402c48
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x404ce9
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x406582
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406535
add esp, 0x1c
leave
ret
Function at 0x40edea
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 0x40ee10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ee10
xor al, al
jmp 0x40ee30
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00415c20
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x415800
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41bac0], ecx
add edx, 1
cmp edx, 0x100
jb 0x415802
cmp edx, 0x800
jae 0x4158eb
mov edi, edi
mov eax, dword [edx*4 + 0x41b6c0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41bac0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x41babc], eax
jb 0x4158c0
mov dword [0x41ba94], 0x415f40
call fcn.00415a30
test eax, eax
jne 0x415908
mov dword [0x41ba94], 0x415e60
ret
Function at 0x1000a3a7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000a3e6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000a3e6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000a3e6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000a3e6
cmp dword [ecx + 0x74], 0xe
jbe 0x1000a3e6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000e4b0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000e54d
push ebx
push esi
call fcn.1000e479
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000e40d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000e4fa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000e54c
push edi
push eax
call fcn.1000b1d5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000e51a
call fcn.1000b19b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000e54b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000e40d
add esp, 0x20
test eax, eax
jne 0x1000e539
push edi
call fcn.1000b19b
jmp 0x1000e541
push ebx
call fcn.1000b19b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000e7ba
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018b68
push 0x10018b60
push str.FlsAlloc
push 0x1f
call fcn.1000e6d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e7ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001711c]
call esi
jmp 0x1000e7f4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000e838
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018b78
push 0x10018b70
push str.FlsGetValue
push 0x21
call fcn.1000e6d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e86f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001711c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000e877
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018b80
push 0x10018b78
push str.FlsSetValue
push 0x22
call fcn.1000e6d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000e8b1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001711c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10015f00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10015f2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10015f2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401060
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
push ebx
push esi
push 4
push 0x3000
push 0x17c841c0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push eax
cmp eax, 0x11
je 0x401023
mov eax, eax
cld
test ecx, ecx
or eax, eax
clc
pop eax
test esi, esi
je 0x401056
nop
mov al, al
push 0x5e69ec0
push 0
push esi
call fcn.00429ec0
add esp, 0xc
push ebx
mov cl, cl
mov cl, cl
cld
pop ebx
push 0x8000
push 0x17c841c0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
pop ebx
ret
push 0
push 0x40
push 0x3000
push 0x7d0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
test eax, eax
jne 0x401088
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp section..text

Function at 0x401130
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x10], 2
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x401550
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6198
call fcn.0042b810
mov eax, dword [0x6df1f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x1370
lea eax, [ebp - 0x1374]
push 0
push eax
call fcn.00429ec0
add esp, 0xc
push str.Anice_Das__born_31_December_1985_in_Mumbai__is_a_retired_Indian_born_Dutch_speed_skater__specialized_in_sprint_distances.
lea ecx, [ebp - 0x1374]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
push 0x4e1f
lea edx, [ebp - 0x6193]
push 0
push edx
mov byte [ebp - 0x6194], 0
call fcn.00429ec0
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x6198]
push eax
push 0
push 1
push edi
mov dword [ebp - 0x6198], 0
call fcn.00420050
mov ebx, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
add esp, 4
push eax
push edi
call ebx
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
push 0
push 0
lea ecx, [ebp - 0x6198]
push ecx
lea edx, [ebp - 0x6194]
push edx
push 1
push edi
call fcn.00420050
add esp, 4
push eax
push edi
call ebx
pop edi
pop esi
test eax, eax
pop ebx
lea eax, [ebp - 0x6194]
jne 0x401683
mov eax, 0x4402a4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429f3a
mov esp, ebp
pop ebp
ret

Function at 0x403d00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x403d1f
mov eax, 1
pop ebx
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x403dcb
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x403dcb
push edi
push ebx
push 0xf8
push eax
lea edi, [esi + 0x40]
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x403d57
pop edi
mov eax, 1
pop ebx
pop ebp
ret
cmp dword [edi], 0x4550
jne 0x403dc2
mov ecx, 0x10b
cmp word [esi + 0x58], cx
jne 0x403dc2
movzx eax, word [esi + 0x46]
test ax, ax
je 0x403dc2
lea edi, [eax + eax*4]
add edi, edi
add edi, edi
add edi, edi
push edi
mov dword [esi + 0x140], edi
call fcn.0042b83b
add esp, 4
mov dword [esi + 0x138], eax
test eax, eax
jne 0x403d9e
pop edi
mov eax, 3
pop ebx
pop ebp
ret
movzx edx, word [esi + 0x54]
mov ecx, dword [esi + 0x3c]
push ebx
lea ecx, [edx + ecx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
pop edi
inc eax
pop ebx
pop ebp
ret
pop edi
mov eax, 2
pop ebx
pop ebp
ret
mov eax, 2
pop ebx
pop ebp
ret
Function at 0x405df0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x405dfe
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x405edd
mov esi, edx
shr esi, 3
push edi
jmp 0x405e20
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445058]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445058]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445058]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445058]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445058]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445058]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445058]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x445058]
add ecx, 8
sub edx, 8
dec esi
jne 0x405e20
pop edi
test edx, edx
je 0x405efa
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x445058]
inc ecx
dec edx
jne 0x405ee1
not eax
pop esi
pop ebp
ret

Function at 0x405f00
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x445058]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x445058]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x405f50
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [ebp + 0xc]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x445058]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x445058]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x40aae0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
push str.Mozilla_5.0__Linux__Android_7.0__Pixel_C_Build_NRD91D__wv__AppleWebKit_537.36__KHTML__like_Gecko__Version_4.0_Chrome_53.0.2785.124_Safari_537.36
mov dword [ebp - 4], eax
mov byte [esi], al
call fcn.0042ba80
add esp, 4
push eax
push str.Mozilla_5.0__Linux__Android_7.0__Pixel_C_Build_NRD91D__wv__AppleWebKit_537.36__KHTML__like_Gecko__Version_4.0_Chrome_53.0.2785.124_Safari_537.36
mov ecx, esi
call fcn.00404d70
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x417450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
push edi
lea eax, [ebp - 4]
push eax
push ecx
call fcn.00417340
xor edi, edi
add esp, 8
mov ebx, eax
cmp dword [ebp - 4], edi
jle 0x41749f
push esi
mov edx, dword [ebx + edi*4]
push edx
push 0
push 0x1fffff
call dword [0x6f1b30]
mov esi, eax
cmp esi, 0xffffffff
je 0x417491
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [0x6f19d8]
inc edi
cmp edi, dword [ebp - 4]
jl 0x417470
pop esi
push ebx
call fcn.0042b8cf
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4185b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e8fb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6df1f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00429c39
push 4
mov dword [ebp - 4], 0
call fcn.0042c011
mov edi, eax
add esp, 4
test edi, edi
je 0x418630
call fcn.004298f7
mov dword [edi], eax
call fcn.004296b6
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004295eb
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x418626
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00429613
jmp 0x418632
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4191a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ea48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6df1f0]
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 edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4192ce
cmp byte [edi + 0x49], bl
je 0x4192ce
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4192c2
push 8
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00429ec0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x1c], 8
jae 0x419222
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x41923a
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x419263
dec eax
je 0x419267
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4192bd
jmp 0x4192c9
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x419277
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4192a0
cmp ebx, 0x10
jae 0x419286
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0042d854
add esp, 0x10
cmp esi, eax
jne 0x4192ba
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4192c6
test esi, esi
jne 0x41922e
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040a740
jmp 0x419228
lea ecx, [ebp - 0x2c]
call fcn.004047e0
xor al, al
jmp 0x4192d0
lea ecx, [ebp - 0x2c]
call fcn.004047e0
mov al, 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.00429f3a
mov esp, ebp
pop ebp
ret
Function at 0x41ed10
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f020
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6df1f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x50]
push eax
push 0x447714
push 1
push ebx
push 0x4477e4
mov dword [ebp - 0x50], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x44]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x44], ebx
mov ecx, dword [eax]
push str.ROOTCIMV2
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x41eec4
mov ecx, dword [ebp - 0x44]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x4c]
push ecx
push ebx
push 0x20
push str.Select__From_Win32_OperatingSystem
mov dword [ebp - 0x4c], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push 0x4467f4
push eax
call edx
cmp eax, ebx
jl 0x41eec4
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x41eec4
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push edx
lea edx, [ebp - 0x48]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x54], ebx
je 0x41eeb2
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [ebp - 0x64]
push ecx
push ebx
push str.InstallDate
push eax
mov byte [ebp - 4], 2
call edx
mov ecx, dword [ebp - 0x5c]
push 1
lea eax, [ebp - 0x6c]
push eax
push ecx
call fcn.0041eb30
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x6c]
push eax
call dword [0x6f1bd4]
call dword [0x6f1b9c]
push 0x104
push ebx
push eax
call dword [0x6f1b24]
movzx ecx, word [ebp - 0x18]
movzx edx, word [ebp - 0x1a]
push ecx
movzx ecx, word [ebp - 0x24]
push edx
movzx edx, word [ebp - 0x22]
mov esi, eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x1e]
push ecx
push edx
push eax
push str._d__d__d__d:_d:_d
push esi
call dword [0x6f1994]
add esp, 0x20
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x40]
call fcn.004047e0
mov eax, esi
jmp 0x41eec9
cmp dword [ebp - 0x2c], 0x10
jb 0x41eec4
mov edx, dword [ebp - 0x40]
push edx
call fcn.00429e59
add esp, 4
mov eax, str.Unknown
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00429f3a
mov esp, ebp
pop ebp
ret