joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410340
Capabilities:
Get common file path

Disassembly:
sub esp, 0x2cc
lea eax, [esp + 0xcc]
push ebx
push ebp
push esi
push edi
push 0x200
push eax
call dword [sym.imp.Kernel32.dll_GetSystemDirectoryA]
call fcn.0040fb50
mov eax, dword [0x4a9b8c]
xor esi, esi
test eax, eax
jle 0x410397
mov edi, 0x4a9930
movsx ecx, byte [esp + 0xdc]
push ecx
call fcn.0043f6b8
movsx edx, byte [edi]
add esp, 4
cmp edx, eax
je 0x410397
mov eax, dword [0x4a9b8c]
inc esi
add edi, 0xc
cmp esi, eax
jl 0x410372
mov eax, dword [0x4a9b8c]
or ebp, 0xffffffff
cmp esi, eax
je 0x4103ad
lea eax, [esi + esi*2]
mov ebp, dword [eax*4 + 0x4a9934]
mov ebx, dword [sym.imp.Kernel32.dll_DeviceIoControl]
mov dword [0x4a9a68], 0
xor edi, edi
cmp ebp, edi
je 0x410459
call fcn.0040f870
cmp eax, 0xffffffff
je 0x410459
push edi
lea ecx, [esp + 0x18]
push str.DeviceHarddisk_dPartition0
push ecx
call fcn.0043ef3e
lea edx, [esp + 0x20]
push edx
call fcn.0040f990
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x410459
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0
push 0
push 0
push 0x70024
push esi
call ebx
test eax, eax
jne 0x41042a
call dword [sym.imp.Kernel32.dll_GetLastError]
cmp eax, 0x13
jne 0x41042a
push esi
call fcn.0040fa30
add esp, 4
jmp 0x410459
push esi
call fcn.0040fa30
push edi
call fcn.00410230
add esp, 8
cmp eax, 0xffffffff
je 0x410459
mov ecx, dword [0x4a9a68]
mov dword [ecx*4 + 0x4a9a6c], edi
mov dword [ecx*4 + 0x4a9bb8], eax
inc ecx
mov dword [0x4a9a68], ecx
inc edi
cmp edi, 0x40
jl 0x4103bf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2cc
ret

Function at 0x410510
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
lea ecx, [esp]
push 0
push eax
push 8
push ecx
push 0
push 0
push 0x41018
push edx
call dword [sym.imp.Kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x410540
or eax, 0xffffffff
add esp, 0xc
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 5]
and eax, 0xff
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 6]
and edx, 0xff
mov dword [eax], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 7]
and ecx, 0xff
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
and eax, 0xff
mov dword [ecx], eax
xor eax, eax
add esp, 0xc
ret
Function at 0x411fe8
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x48135e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x1c], ebx
call fcn.0045b3af
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 1
call fcn.0045b3af
mov ebp, dword [sym.imp.Kernel32.dll_LoadLibraryA]
mov dword [esi], method.CCommandLineInfo.virtual_0
push str.Winsrpc.dll
mov byte [esp + 0x20], 2
mov dword [0x4a9d0c], ebx
mov dword [0x4a9d18], ebx
mov dword [0x4a9d10], ebx
call ebp
mov edi, dword [sym.imp.Kernel32.dll_GetProcAddress]
push str.WinsRecordAction
push eax
mov dword [esi + 0x34], eax
call edi
mov dword [0x4a9d0c], eax
mov eax, dword [esi + 0x34]
push str.WinsABind
push eax
call edi
mov dword [0x4a9d18], eax
mov ecx, dword [esi + 0x34]
push str.WinsUnbind
push ecx
call edi
mov dword [0x4a9d10], eax
mov dword [esi + 0x30], ebx
call dword [sym.imp.Kernel32.dll_GetVersion]
push str.dhcpcsvc.dll
call ebp
push str.DhcpNotifyConfigChange
push eax
mov dword [esi + 0x2c], eax
call edi
cmp eax, ebx
mov dword [esi + 0x38], eax
jne 0x4120a8
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.Kernel32.dll_FreeLibrary]
push 1
push str.505.Load_DHCPCSVC.DLL_:_Fail.
mov ecx, 0x4aa338
call fcn.004341d0
push str.iphlpapi.dll
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x412108
push str.GetAdaptersInfo
push eax
call edi
cmp eax, ebx
mov dword [esi + 0x3c], eax
jne 0x4120d4
mov eax, dword [esi + 0x30]
push eax
jmp 0x412102
mov ecx, dword [esi + 0x30]
push str.AddIPAddress
push ecx
call edi
cmp eax, ebx
mov dword [esi + 0x40], eax
jne 0x4120ec
mov edx, dword [esi + 0x30]
push edx
jmp 0x412102
mov eax, dword [esi + 0x30]
push str.DeleteIPAddress
push eax
call edi
cmp eax, ebx
mov dword [esi + 0x44], eax
jne 0x412119
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.Kernel32.dll_FreeLibrary]
push 1
push str.508.Load_IPHLPAPI.DLL_:_Fail.
mov ecx, 0x4aa338
call fcn.004341d0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, 0x4aa4a0
jmp 0x411fd0
Function at 0x412560
Capabilities:
Check os version

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4813d0
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.Kernel32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jae 0x41263f
xor ebp, ebp
mov cl, byte [esp + 0x20]
lea eax, [ebx + 4]
test cl, cl
je 0x4125a7
lea eax, [ebx + 0x18]
cmp ebp, dword [eax + 8]
jge 0x41263f
test cl, cl
lea eax, [ebx + 4]
je 0x4125ba
lea eax, [ebx + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x24]
push ecx
mov esi, dword [eax + ebp*4]
mov eax, dword [esi + 4]
push eax
call fcn.0043f04f
add esp, 8
test eax, eax
je 0x4125eb
mov edx, dword [esp + 0x24]
push 0x4a94ac
push edx
call fcn.0043f04f
add esp, 8
test eax, eax
jne 0x41262c
mov eax, dword [esi + 0x18]
xor edi, edi
test eax, eax
jle 0x41262c
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x28]
push ecx
lea eax, [eax + edi*4]
mov eax, dword [eax]
push eax
call fcn.0043f04f
add esp, 8
test eax, eax
je 0x412632
mov edx, dword [esp + 0x28]
push 0x4a94ac
push edx
call fcn.0043f04f
add esp, 8
test eax, eax
je 0x412632
mov eax, dword [esi + 0x18]
inc edi
cmp edi, eax
jl 0x4125f4
inc ebp
jmp 0x412599
movzx ax, byte [esp + 0x2c]
mov ecx, dword [esi + 0x50]
mov word [ecx + edi*2], ax
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0
call fcn.00462276
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00462276
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x10
Function at 0x413a80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48155b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0xf003f
push 0
push str.SOFTWAREEnterpriseNT_Cluster1.0
mov edi, ecx
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x28], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x413af1
push 1
push str.501.An_error_has_occurred_while_performing_a_registry_related_operation.__s_
mov ecx, 0x4aa338
call fcn.004341d0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x404]
mov dword fs:[0], ecx
add esp, 0x410
ret
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push str.ResourceStates
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x413b3a
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x404]
mov dword fs:[0], ecx
add esp, 0x410
ret
lea eax, [esp + 0x24]
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x28]
test eax, eax
jle 0x413c02
mov ecx, dword [0x4a6c70]
mov dword [esp + 8], ecx
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
mov dword [esp + 0x41c], 0
call fcn.00415400
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00415270
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00415270
mov edx, dword [esp + 0x20]
add esp, 0x18
mov ecx, edi
push edx
call fcn.00414850
cmp eax, 0xffffffff
je 0x413c29
cmp esi, 0xffffffff
jne 0x413bb2
xor ecx, ecx
jmp 0x413bba
mov eax, dword [0x4aa48c]
mov ecx, dword [eax + esi*4]
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040dc60
cmp esi, 0xffffffff
jne 0x413bcd
xor eax, eax
jmp 0x413bd5
mov eax, dword [0x4aa48c]
mov eax, dword [eax + esi*4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x414], 0xffffffff
and ecx, 0xff
mov dword [eax + 0x40], ecx
lea ecx, [esp + 8]
call fcn.00462276
mov eax, dword [edi + 0x28]
inc esi
cmp esi, eax
jl 0x413b4f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x404]
mov dword fs:[0], ecx
add esp, 0x410
ret
lea ecx, [esp + 8]
mov dword [esp + 0x414], 0xffffffff
call fcn.00462276
mov ecx, dword [esp + 0x40c]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x410
ret
Function at 0x415b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4816e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
mov ebx, ecx
push 0x18
push 0x20
push 0x18
lea ecx, [ebx + 0x78]
push 0x18
call fcn.0045a5d7
call fcn.0047a691
mov dword [esp + 0x18], 0xac
mov dword [esp + 0x1c], 0xa6
mov dword [esp + 0x20], 0x9a
mov dword [esp + 0x24], 0xa0
mov dword [esp + 0x28], 0xad
mov dword [esp + 0x2c], 0xa7
mov dword [esp + 0x30], 0x9b
mov dword [esp + 0x34], 0xa1
mov dword [esp + 0x38], 0xaa
mov dword [esp + 0x3c], 0xa4
mov dword [esp + 0x40], 0x98
mov dword [esp + 0x44], 0x9e
mov dword [esp + 0x48], 0xab
mov dword [esp + 0x4c], 0xa5
mov dword [esp + 0x50], 0x99
mov dword [esp + 0x54], 0x9f
mov dword [esp + 0x58], 0xaf
mov dword [esp + 0x5c], 0xa9
mov dword [esp + 0x60], 0x9d
mov dword [esp + 0x64], 0xa3
mov dword [esp + 0x68], 0xb3
mov dword [esp + 0x6c], 0xb4
mov dword [esp + 0x70], 0xb7
mov dword [esp + 0x74], 0xb5
mov dword [esp + 0x78], 0x103
mov dword [esp + 0x7c], 0x104
mov dword [esp + 0x80], 0x106
mov dword [esp + 0x84], 0x105
lea edi, [esp + 0x18]
mov ebp, 0x1c
jmp 0x415ca9
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x489b74
mov dword [esp + 0x90], esi
xor esi, esi
mov si, word [edi]
call fcn.0047a691
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.00468742
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
push 0
and eax, edx
push eax
mov eax, dword [ebx + 0x7c]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Add]
lea ecx, [esp + 0x10]
call fcn.00468799
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x90], 1
call fcn.00468799
add edi, 4
dec ebp
mov dword [esp + 0x90], 0xffffffff
jne 0x415ca7
lea esi, [ebx + 0x78]
test esi, esi
jne 0x415d3b
xor eax, eax
jmp 0x415d3e
mov eax, dword [esi + 4]
mov ecx, dword [ebx + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0x1109
push ecx
call edi
push eax
call fcn.0045a5a4
test esi, esi
je 0x415d5f
mov esi, dword [esi + 4]
mov edx, dword [ebx + 0x58]
push esi
push 0
push 0x1109
push edx
call edi
push eax
call fcn.0045a5a4
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret

Function at 0x41b0a0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x41bd00
Capabilities:
Get common file path
Get disk information
Get disk information via ioctl

Disassembly:
sub esp, 0x314
push esi
lea eax, [esp + 0x118]
push 0x200
push eax
call dword [sym.imp.Kernel32.dll_GetSystemDirectoryA]
mov byte [esp + 0x11a], 0
call dword [sym.imp.Kernel32.dll_GetVersion]
cmp al, 4
jne 0x41bd99
lea ecx, [esp + 0x18]
push 0x100
lea edx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.Kernel32.dll_QueryDosDeviceA]
push 0x10
lea eax, [esp + 0x1c]
push str.DeviceHarddisk
push eax
call fcn.0044d0e0
add esp, 0xc
test eax, eax
jne 0x41be32
movsx ecx, byte [esp + 0x28]
push ecx
call fcn.0043fd38
add esp, 4
test eax, eax
je 0x41be32
lea edx, [esp + 4]
lea eax, [esp + 0x28]
push edx
push 0x4a365c
push eax
call fcn.0043f5f7
mov eax, dword [esp + 0x10]
add esp, 0xc
pop esi
add esp, 0x314
ret
push edi
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x120]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [str.._]
push 0
push 3
lea edx, [esp + 0x130]
push connect
push edx
mov dword [esp + 0x138], ecx
call dword [sym.imp.Kernel32.dll_CreateFileA]
mov esi, eax
pop edi
cmp esi, 0xffffffff
je 0x41be32
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0x14]
push 0xc
push ecx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.Kernel32.dll_DeviceIoControl]
test eax, eax
push esi
je 0x41be2c
call dword [sym.imp.Kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
add esp, 0x314
ret
call dword [sym.imp.Kernel32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
add esp, 0x314
ret
Function at 0x41c890
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1d8
mov eax, dword [esp + 0x1dc]
lea ecx, [esp + 0x110]
push eax
push str.HARDWAREDEVICEMAPScsi_s
push ecx
mov dword [esp + 0x18], 0xffffffff
call fcn.0043ef3e
add esp, 0xc
lea edx, [esp]
lea eax, [esp + 0x110]
push edx
push 0x20019
push 0
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41c8e8
or eax, 0xffffffff
add esp, 0x1d8
ret
push esi
lea ecx, [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.Type
push ecx
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x24], 1
call edi
test eax, eax
jne 0x41c9b4
mov esi, str.CdRomPeripheral
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41c952
test cl, cl
je 0x41c94e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41c952
add eax, 2
add esi, 2
test cl, cl
jne 0x41c92e
xor eax, eax
jmp 0x41c957
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41c9b4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push str.Identifier
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x100
call edi
test eax, eax
jne 0x41c9b4
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], eax
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x1e8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
add esp, 0x1d8
ret

Function at 0x41c9d0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x25c
lea eax, [esp + 0xcc]
push ebx
mov ebx, dword [esp + 0x264]
push esi
push ebx
push str.HARDWAREDEVICEMAPScsi_s
push eax
or esi, 0xffffffff
call fcn.0043ef3e
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0xd4]
push ecx
push 0x20019
push 0
push edx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41ca27
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x25c
ret
mov ecx, dword [esp + 8]
push ebp
push edi
lea eax, [esp + 0x14]
xor edi, edi
push 0x104
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x41ca96
mov ebp, dword [esp + 0x274]
lea edx, [esp + 0x14]
lea eax, [esp + 0x1a4]
push edx
push ebx
push str._s_s
push eax
call fcn.0043ef3e
lea ecx, [esp + 0x1b4]
push ebp
push ecx
call fcn.0041c890
mov esi, eax
add esp, 0x18
test esi, esi
je 0x41ca96
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
inc edi
push 0x104
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x41ca4c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
add esp, 0x25c
ret
Function at 0x41cab0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x25c
lea eax, [esp + 0xcc]
push ebx
mov ebx, dword [esp + 0x264]
push esi
push ebx
push str.HARDWAREDEVICEMAPScsi_s
push eax
or esi, 0xffffffff
call fcn.0043ef3e
add esp, 0xc
lea ecx, [esp + 8]
lea edx, [esp + 0xd4]
push ecx
push 0x20019
push 0
push edx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41cb07
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x25c
ret
mov ecx, dword [esp + 8]
push ebp
push edi
lea eax, [esp + 0x14]
xor edi, edi
push 0x104
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x41cb76
mov ebp, dword [esp + 0x274]
lea edx, [esp + 0x14]
lea eax, [esp + 0x1a4]
push edx
push ebx
push str._s_s
push eax
call fcn.0043ef3e
lea ecx, [esp + 0x1b4]
push ebp
push ecx
call fcn.0041c9d0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x41cb76
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
inc edi
push 0x104
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x41cb2c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
add esp, 0x25c
ret
Function at 0x41cb90
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2c8
lea ecx, [esp + 0x138]
push ebx
push ebp
push esi
push eax
push str.HARDWAREDEVICEMAPScsi_s
push ecx
or ebp, 0xffffffff
call fcn.0043ef3e
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x144]
push edx
push 0x20019
push 0
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41cbe6
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c8
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Driver
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, str.atapi
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41cc48
test cl, cl
je 0x41cc44
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41cc48
add eax, 2
add esi, 2
test cl, cl
jne 0x41cc20
xor eax, eax
jmp 0x41cc4d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41cc69
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c8
ret
mov edx, dword [esp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
lea ecx, [esp + 0x80]
xor esi, esi
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x41cce5
mov edi, dword [esp + 0x2e0]
mov ecx, dword [esp + 0x2dc]
lea eax, [esp + 0x80]
push eax
push ecx
lea edx, [esp + 0x218]
push str._s_s
push edx
call fcn.0043ef3e
lea eax, [esp + 0x220]
push edi
push eax
call fcn.0041cab0
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x41cce5
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x80]
inc esi
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
je 0x41cc92
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x2c8
ret
Function at 0x41cda0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0043f4ec
mov eax, dword [esp + 0x14]
mov edx, 0x4a9d7c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebx, ebx
repne scasb al, byte es:[edi]
mov al, byte [0x4a9d7c]
not ecx
dec ecx
test al, al
mov ebp, ecx
je 0x41ce33
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x10
jge 0x41cdfd
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
jmp 0x41ce02
mov esi, 0x10
mov ecx, ebx
and ecx, reloc.WSOCK32.dll_closesocket
jns 0x41ce11
dec ecx
or ecx, 0xfffffffc
inc ecx
lea edi, [esp + ecx + 0x14]
xor eax, eax
mov cl, byte [edi]
xor cl, bl
test esi, esi
mov byte [edi], cl
jle 0x41ce29
xor byte [eax + edx], cl
inc eax
cmp eax, esi
jl 0x41ce21
mov al, byte [edx + esi]
add edx, esi
inc ebx
test al, al
jne 0x41cdde
mov edx, dword [esp + 0x20]
push 0x4a4a00
push edx
call fcn.0043fb06
mov edi, eax
add esp, 8
test edi, edi
jne 0x41ce56
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret
mov eax, ebp
xor ebx, ebx
cdq
and edx, 0xf
add eax, edx
mov ebp, eax
sar ebp, 4
test ebp, ebp
jle 0x41ceb0
mov esi, 0x4a9d7c
mov eax, ebx
and eax, reloc.WSOCK32.dll_closesocket
jns 0x41ce7c
dec eax
or eax, 0xfffffffc
inc eax
mov dl, byte [esp + eax + 0x18]
lea eax, [esp + eax + 0x18]
xor dl, bl
push edi
push 1
mov cl, dl
push 0x10
push esi
mov byte [eax], dl
mov byte [esp + 0x30], cl
call fcn.0043f99c
movsx edx, byte [esp + 0x30]
push edi
push edx
call fcn.00440468
add esp, 0x18
inc ebx
add esi, 0x10
cmp ebx, ebp
jl 0x41ce6e
push edi
call fcn.0043f91f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x434330
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48552e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x32c
push ebp
push esi
push edi
mov al, byte [0x4a94ac]
mov ecx, 0x31
mov byte [esp + 0x70], al
xor eax, eax
lea edi, [esp + 0x71]
mov dword [esp + 0x340], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x4a6c70]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x34c]
mov byte [esp + 0x340], 1
test ebp, ebp
jne 0x434393
lea ebp, [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.Kernel32.dll_GetStartupInfoA]
mov edx, dword [esp + 0x348]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov dword [esp + 0x58], 1
mov word [esp + 0x5c], 2
mov dword [esp + 0x34], str.winsta0default
lea esi, [esp + 0x70]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dl, byte [edx]
xor esi, esi
cmp dl, 0x22
je 0x4343f3
push esi
push 0x20
jmp 0x4343fb
mov esi, 1
push esi
push 0x22
lea ecx, [esp + 0x350]
call fcn.004627a5
cmp eax, 0xffffffff
jne 0x434416
mov ecx, dword [esp + 0x348]
mov eax, dword [ecx - 8]
sub eax, esi
lea edx, [esp + 0xc]
push eax
push esi
push edx
lea ecx, [esp + 0x354]
call fcn.00457495
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x344], 2
call fcn.004623af
lea ecx, [esp + 0xc]
mov byte [esp + 0x340], 1
call fcn.00462276
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x138]
push eax
push ecx
push 0x200
push edx
call dword [sym.imp.Kernel32.dll_GetFullPathNameA]
lea eax, [esp + 0x138]
push 0x5c
push eax
call fcn.00440590
add esp, 8
test eax, eax
je 0x434496
lea ecx, [esp + 0x138]
push 0x5c
push ecx
call fcn.00440590
add esp, 8
mov byte [eax], 0
lea edx, [esp + 0x2c]
push ebp
lea eax, [esp + 0x13c]
push edx
push eax
push 0
push 0x30
push 0
push 0
lea ecx, [esp + 0x8c]
push 0
push ecx
push 0
call dword [sym.imp.Kernel32.dll_CreateProcessA]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jne 0x4344f4
push 1
lea ecx, [esp + 0x34c]
call fcn.004347c0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004622e4
push str.432.Run_executable___s__:_Fail_
mov ecx, 0x4aa338
call fcn.00434220
jmp 0x434539
mov edx, dword [ebp]
mov esi, dword [sym.imp.Kernel32.dll_GetPriorityClass]
push edx
call esi
test eax, eax
jne 0x43451f
mov edi, dword [sym.imp.Kernel32.dll_Sleep]
push 0x3e8
call edi
mov eax, dword [ebp]
push eax
call esi
test eax, eax
je 0x43450a
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
cmp ebp, ecx
jne 0x434539
mov edx, dword [ebp + 4]
mov esi, dword [sym.imp.Kernel32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp]
push eax
call esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], 0
call fcn.00462276
lea ecx, [esp + 0x348]
mov dword [esp + 0x340], 0xffffffff
call fcn.00462276
mov ecx, dword [esp + 0x338]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x338
ret 8