joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460adc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47f580]
cmp dword [eax + 0x30], 0
je 0x460b86
cmp dword [ebx + 0x94], 0
jne 0x460b80
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x460a6c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x460b80
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x460b46
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x460b80
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417eb8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x460b55
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4618a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4618d5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004047f4
jmp 0x4618e2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404758
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x462c44
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x462cb2
mov eax, esi
call fcn.0044d3c0
test al, al
je 0x462cb2
mov eax, dword [ebx + 0x84]
call fcn.0044d020
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x462cb2
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x462ca6
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044d020
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00445408
jmp 0x462cb2
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00462a80
pop esi
pop ebx
ret
Function at 0x46ebbc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46ed1d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x46ed2c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
je 0x46ec14
mov ecx, dword [0x47b82c]
mov dl, 1
mov eax, dword [0x46e8f8]
call fcn.0040c430
call fcn.0040414c
mov dl, 1
mov eax, dword [0x415ea8]
call fcn.004038a8
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x46ecfb
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00404e50
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00404e50
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.00404bc8
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bc8
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x46eca0
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00404e50
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
jmp 0x46ecbf
cmp ebx, 0x103
je 0x46ecbf
mov ecx, dword [0x47b82c]
mov dl, 1
mov eax, dword [0x46e8f8]
call fcn.0040c430
call fcn.0040414c
test ebx, ebx
je 0x46ec33
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x90]
mov edx, dword [ebp - 0x1c]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ed02
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x1c]
call fcn.004038d8
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x10002565
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100025a0
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10002587
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10002598
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100025a2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1000257d
xor eax, eax
pop edi
pop esi
ret

Function at 0x100028ed
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10002535
push eax
push esi
push dword [ebp + 8]
call fcn.100024ea
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x100029c0

Function at 0x10002964
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x100029c0
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10002535
push eax
push esi
push dword [ebp + 8]
call fcn.100024ea
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10002525
jg 0x10002a07
invalid
insb byte es:[edi], dx
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
invalid
jmp 0xf7fc746
invalid
invalid
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.10002525
popal
add al, 0x2d
jne 0x1000299b
invalid
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x10002b98
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10002bd9
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x10002bd4
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x10002bbe
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10002bc6
cmp edx, ebx
jne 0x10002d14
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10002b95
add eax, dword [eax + 4]
jmp 0x10002b82
mov dword [ebp + 0xc], ebx
jmp 0x10002be4

Function at 0x10002c7b
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10002bfc
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10002c1a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10002c78
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10002c5f
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10002c68
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10002c72
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10002c54
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10002bde
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10002cc5
dec eax
je 0x10002cbc
sub eax, 3
je 0x10002cb3
mov dword [ebp - 4], 0x40
jmp 0x10002ce2
mov dword [ebp - 4], 4
jmp 0x10002cc8
mov dword [ebp - 4], 0x20
jmp 0x10002cc8
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10002d14
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
invalid
invalid
je 0x10002cef
Function at 0x1000347f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.10002535
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100024ea
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.10002525
sahf
mov bl, 0xdd
mov ebx, 0x10468
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid
Function at 0x4012e0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov eax, 0x12a8
call fcn.004cb570
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x12a4], eax
mov eax, dword [esp + 0x12ac]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x12b4]
push edi
xor edi, edi
mov dword [esi], vtable.CNTService.0
mov dword [esi + 4], eax
cmp ecx, edi
je 0x40131b
mov eax, ecx
push ebx
mov dword [esi + 8], eax
mov ebx, 1
lea eax, [esp + 0x1c]
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], 0xf01ff
mov dword [esi + 0x4c], 0x10
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esp + 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
cmp dword [esp + 0x2c], 2
mov dword [0x544fc8], esi
sete cl
mov dword [esi + 0x40], ecx
mov dword [0x544fc4], ebx
mov dword [esi + 0x18], 0x10
mov dword [esi + 0x28], edi
pop ebx
cmp dword [esi + 0x40], edi
je 0x401470
push 0x100
mov eax, 0xff
lea edx, [esp + 0xb0]
push edi
push edx
mov dword [esp + 0x1c], 0x1000
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
call fcn.004cb5a0
push 0x100
lea eax, [esp + 0x1bc]
push edi
push eax
call fcn.004cb5a0
push 0x1000
lea ecx, [esp + 0x2c8]
push edi
push ecx
call fcn.004cb5a0
add esp, 0x24
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1b4]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2bc]
push edx
lea eax, [esp + 0xc0]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x401470
lea ecx, [esp + 0x2ac]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x401470
lea edx, [esp + 0x2ac]
push edx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, eax
push edi
call fcn.004bf5dc
add esp, 4
lea ecx, [esp + 0x2ac]
push ecx
push eax
push edi
mov dword [esi + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov ecx, dword [esp + 0x12ac]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004cb553
add esp, 0x12a8
ret 8
Function at 0x401cf5
Capabilities:
Create service
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x508], eax
push ebx
push esi
mov esi, ecx
call fcn.00401620
push 0x3ff
lea eax, [esp + 0x114]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401d53
push 0x100
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004018b0
mov edx, dword [esi + 8]
push eax
push edx
push str.Unable_to_install__s____s_n
call fcn.004cb644
add esp, 0xc
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004cb553
add esp, 0x50c
ret
mov dword [esp + 8], ebx
cmp dword [esi + 0x40], ebx
jne 0x401dcd
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
lea eax, [esp + 0xc]
push eax
push ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401eb5
lea eax, [esp + 0x110]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d90
mov ecx, dword [esp + 0xc]
sub eax, edx
inc eax
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x114]
push edx
push 2
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 1
jmp 0x401eb5
push ebp
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, ebx
je 0x401ed0
mov ecx, dword [esi + 0x4c]
cmp ecx, 1
je 0x401df2
cmp ecx, 2
jne 0x401dfe
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x401e02
cmp eax, 1
je 0x401e02
xor eax, eax
jmp 0x401e05
lea eax, [esi + 0x5c]
mov edx, dword [esi + 0x68]
push edi
push edx
mov edx, dword [esi + 0x64]
push edx
mov edx, dword [esi + 0x60]
push edx
push eax
mov eax, dword [esi + 0x58]
push eax
mov eax, dword [esi + 0x54]
lea edx, [esp + 0x12c]
push edx
mov edx, dword [esi + 0x50]
push eax
mov eax, dword [esi + 0x48]
push edx
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi + 8]
push eax
push ecx
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
cmp edi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x401e65
mov eax, dword [esi + 8]
push eax
push str._s_installed._n
call fcn.004cb644
add esp, 8
push edi
call ebx
mov dword [esp + 0x10], 1
jmp 0x401e84
push 0x100
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004018b0
push eax
push str.CreateService_failed____s_n
call fcn.004cb644
add esp, 8
push ebp
call ebx
cmp dword [esp + 0x10], 0
pop edi
je 0x401eb4
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
push 7
lea ecx, [esp + 0x118]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push 0xffffffffffffffff
push 4
push str.Service_installed
mov ecx, esi
call edx
pop ebp
mov ecx, dword [esp + 0x510]
mov eax, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.004cb553
add esp, 0x50c
ret
push 0x100
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004018b0
push eax
push str.OpenSCManager_failed____s_n
call fcn.004cb644
add esp, 8
jmp 0x401eb4
Function at 0x402720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402739
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402774
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402770
lea ebx, [ebx]
cmp esi, eax
jae 0x402774
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402760
cmp esi, eax
jb 0x40277a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x408b80
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4eff2b
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
push edi
mov eax, dword [0x542c54]
xor eax, esp
push eax
lea eax, [esp + 0x214]
mov dword fs:[0], eax
call fcn.004bfb80
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408bd3
push 0x80004005
call fcn.00402700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x224]
mov dword [esp + 0x21c], 0
test eax, eax
jge 0x408bfe
lea eax, [ecx - 0x10]
jmp 0x408c69
push eax
lea ecx, [esp + 0x10]
push str..PhysicalDrive_d
push ecx
call fcn.00403410
mov edi, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408c66
push 0
push 0
push 0
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x10]
push edx
push 0x200
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x21c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.004cb553
add esp, 0x214
ret 4
Function at 0x40cbb0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4f0313
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x542c54]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.CAtaSmart.0
call fcn.00404440
xor ebx, ebx
lea ecx, [esi + 0x18]
mov dword [esp + 0x24], ebx
call fcn.004044b0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x24], 1
call fcn.004c0991
lea ecx, [esi + 0x40]
mov byte [esp + 0x24], 2
call fcn.004c0991
lea ecx, [esi + 0x54]
mov byte [esp + 0x24], 3
call fcn.004c0991
mov byte [esp + 0x24], 4
call fcn.004bfb80
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40cc3f
push 0x80004005
call fcn.00402700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x68], eax
lea ecx, [esi + 0x6c]
mov byte [esp + 0x24], 5
call fcn.004c0991
lea ecx, [esi + 0x80]
mov byte [esp + 0x24], 6
call fcn.004c0991
lea ecx, [esi + 0x94]
mov byte [esp + 0x24], 7
call fcn.004c0991
lea ecx, [esi + 0xa8]
mov byte [esp + 0x24], 8
call fcn.004c0991
lea ecx, [esi + 0xbc]
call fcn.004044d0
lea ecx, [esi + 0xd0]
call fcn.00404510
push fcn.00402da0
push fcn.00402d70
push 0x1a
push 4
lea ecx, [esi + 0x1bc]
push ecx
mov byte [esp + 0x38], 0xb
call fcn.004cd2da
push 0x9c
lea edi, [esi + 0x120]
push ebx
push edi
mov byte [esp + 0x30], 0xc
call fcn.004cb5a0
mov ebp, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
push edi
mov dword [edi], 0x9c
call ebp
cmp eax, ebx
jne 0x40ccf6
push edi
mov dword [edi], 0x94
call ebp
mov eax, dword [esi + 0x124]
mov dword [esi + 0x224], ebx
mov dword [esi + 0x228], ebx
cmp eax, 6
jae 0x40cdb2
cmp eax, 5
jne 0x40cdc3
cmp dword [esi + 0x128], 2
je 0x40cdb2
cmp eax, eax
jne 0x40cdc3
mov ebx, 1
cmp dword [esi + 0x128], ebx
jne 0x40cdc3
lea ecx, [esp + 0x14]
call fcn.00402d70
lea edx, [esi + 0x134]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0xd
call fcn.004037c0
push 0x4f4b88
push 0x4f5108
lea ecx, [esp + 0x1c]
call fcn.00407ac0
mov edi, dword [esp + 0x14]
push edi
call fcn.004cd1f8
add esp, 4
cmp eax, 2
jl 0x40cd8f
mov dword [esi + 0x224], ebx
mov dword [esi + 0x228], ebx
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cdc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40cdc3
mov eax, 1
mov dword [esi + 0x224], eax
mov dword [esi + 0x228], eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret