joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445d7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445db4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445d95
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445da4
or bl, 4
test esi, 0x20000000
je 0x445daf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c45c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44c46e
add esp, 0xfffffff0
call fcn.00403588
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c7f4
mov eax, dword [0x452e44]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c800
mov eax, dword [0x452e50]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c80c
mov eax, ebx
call fcn.0044c818
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x414a7c]
call fcn.0040324c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x414a7c]
call fcn.0040324c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x414a7c]
call fcn.0040324c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x414a7c]
call fcn.0040324c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x414a7c]
call fcn.0040324c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x448c34
push eax
push 0
push 0
mov eax, dword [0x452f9c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e218]
call fcn.0041f65c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e218]
call fcn.0041f65c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e218]
call fcn.0041f65c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044cc38
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44cb14
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44cb14
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44cb14
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c5ab
call fcn.004035e0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44c8f8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44caa3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44ca84
mov dl, 1
mov eax, dword [0x414e98]
call fcn.0040324c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403fb4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44ca73
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043a92c
test al, al
je 0x44ca66
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44cab4
lea eax, [ebp - 0x254]
call fcn.00408e84
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44ca66
xor eax, eax
push ebp
push 0x44ca5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44caec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44ca48
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404224
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44ca48
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404224
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ca66
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44c969
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418974
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44caaa
lea eax, [ebp - 0x260]
call fcn.00403fb4
ret

Function at 0x44d3d8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x454bb4]
cmp byte [eax + 0xa5], 0
jne 0x44d449
cmp dword [0x454bcc], 0
jne 0x44d40a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44d394
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x454bcc], eax
cmp dword [0x454bc8], 0
jne 0x44d425
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x454bc8], eax
cmp dword [0x454bd0], 0
jne 0x44d449
push esp
push 0
push 0
push 0x44d338
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x454bd0], eax
pop edx
ret
Function at 0x44d540
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44d557
add esp, 0xfffffff0
call fcn.00403588
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c7f4
mov eax, dword [0x452f88]
cmp word [eax + 2], 0
jne 0x44d57f
mov eax, dword [0x452f88]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044ec18
mov eax, dword [0x453034]
cmp word [eax + 2], 0
jne 0x44d599
mov eax, dword [0x453034]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044ee10
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414a7c]
call fcn.0040324c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414a7c]
call fcn.0040324c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41e9c8]
call fcn.00424610
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44d720
mov eax, dword [0x452ea8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004249e0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44f3b0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x452ea8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c53c
test eax, eax
je 0x44d68e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408878
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c564
test eax, eax
je 0x44d6a2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404224
mov eax, dword [0x452d98]
cmp byte [eax], 0
jne 0x44d6d6
mov eax, ebx
call fcn.0044d848
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044f58c
mov eax, ebx
call fcn.0044ff50
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44d716
call fcn.004035e0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44dac8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x454bb4]
cmp dword [eax + 0x30], 0
je 0x44db72
cmp dword [ebx + 0x94], 0
jne 0x44db6c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44da58
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44db6c
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 0x44db32
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44db6c
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.00416de4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44db41
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44e6d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44e709
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.004040a4
jmp 0x44e716
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404008
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44f768
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44f7a9
mov eax, esi
call fcn.00436134
test al, al
je 0x44f7a9
mov eax, dword [ebx + 0x84]
call fcn.00435ed4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44f7a9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00435ed4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4278f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.LYzrrUgK
lea edi, [esi - 0x10000]
mov dword [edi + 0x1c708], 0x10d12fd2
push edi
or ebp, 0xffffffff
jmp 0x42791a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427921
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427910
mov eax, 1
add ebx, ebx
jne 0x427933
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427928
jne 0x427944
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427928
xor ecx, ecx
sub eax, 3
jb 0x427958
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4279ca
mov ebp, eax
add ebx, ebx
jne 0x427963
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x427970
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x427994
inc ecx
add ebx, ebx
jne 0x427980
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x427975
jne 0x427991
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427975
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4279b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4279a5
jmp 0x427916
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4279b4
add edi, ecx
jmp 0x427916
pop esi
lea edi, [esi + 0x25000]
mov eax, dword [edi]
or eax, eax
je 0x427a13
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x27218]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x27284]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4279d1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2728c]
or eax, eax
je 0x427a0d
mov dword [ebx], eax
add ebx, 4
jmp 0x4279ee
call dword [esi + 0x27288]
mov ebp, dword [esi + 0x27290]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x427a47
sub esp, 0xffffff80
jmp section.WRgfGBxY
Function at 0x1004a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
mov edx, dword [ecx + 0x24]
mov dword [eax + 0x24], edx
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x28], edx
mov edx, dword [ecx + 0x2c]
mov dword [eax + 0x2c], edx
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x30], edx
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x34], edx
mov edx, dword [ecx + 0x38]
or dword [eax + 0x3c], 0xffffffff
mov dword [eax + 0x38], edx
mov dl, byte [ecx + 0x3c]
mov byte [eax + 0x40], dl
mov edx, dword [eax + 0x2c]
xor ebx, ebx
cmp edx, ebx
mov byte [eax + 0x41], bl
jne 0x1004aef
mov dword [eax + 0x44], ebx
jmp 0x1004b22
cmp edx, 3
je 0x1004b1b
cmp edx, 5
je 0x1004b1b
cmp edx, 2
je 0x1004b1b
cmp edx, 1
je 0x1004b08
cmp edx, 4
jne 0x1004b22
mov dl, byte [eax + 0x30]
not dl
movzx edx, dl
shr edx, 5
and edx, 1
mov dword [eax + 0x44], edx
jmp 0x1004b22
mov dword [eax + 0x44], 1
mov dword [eax + 0x48], ebx
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x58], edx
mov edx, dword [ecx + 0x44]
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 0x48]
mov dword [eax + 0x60], edx
mov edx, dword [ecx + 0x50]
mov dword [eax + 0x68], edx
mov edx, dword [ecx + 0x54]
mov dword [eax + 0x6c], edx
mov edx, dword [ecx + 0x58]
mov dword [eax + 0x70], edx
mov edx, dword [ecx + 0x5c]
mov dword [eax + 0x74], edx
mov edx, dword [ecx + 0x60]
mov dword [eax + 0x78], edx
mov edx, dword [ecx + 0x64]
mov dword [eax + 0x7c], edx
mov edx, dword [ecx + 0x68]
mov dword [eax + 0x80], edx
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x84], edx
mov edx, dword [ecx + 0x70]
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x88], edx
mov edx, dword [ecx + 0x74]
mov dword [eax + 0x90], edx
mov edx, dword [ecx + 0x78]
mov dword [eax + 0x94], edx
mov edx, dword [ecx + 0x7c]
mov dword [eax + 0x98], edx
mov edx, dword [ecx + 0x80]
mov dword [eax + 0x9c], edx
mov ecx, dword [ecx + 0x84]
mov dword [eax + 0xa4], ebx
mov dword [eax + 0xa0], ecx
pop ebx
pop ebp
ret 8
Function at 0x10056c1
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
mov dword [eax], ebx
mov eax, 0x4830
push edi
mov dword [ebp - 4], eax
push eax
jmp 0x100572b
mov ecx, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push ebx
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push edx
push esi
push ebx
push ebx
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100573c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.01015544
cmp edi, 0x7a
pop ecx
jne 0x1005746
add dword [ebp - 4], 0x2400
push dword [ebp - 4]
call fcn.01015554
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x10056dd
jmp 0x10057d0
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x100584c
mov eax, 0x1008
mov dword [ebp - 4], eax
push eax
jmp 0x10057a3
mov ecx, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push ebx
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push edx
push esi
push ebx
push ebx
push 0x7400c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10057b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.01015544
cmp edi, 0x7a
pop ecx
jne 0x1005850
add dword [ebp - 4], 0x800
push dword [ebp - 4]
call fcn.01015554
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x1005751
jmp 0x10057d0
mov eax, dword [esi]
lea eax, [eax + eax*8]
shl eax, 4
add eax, 0x30
push eax
call fcn.01015554
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x10057d7
push esi
call fcn.01015544
pop ecx
mov eax, 0x8007000e
jmp 0x1005855
mov dword [edi], ebx
mov eax, dword [esi]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
mov dword [edi + 8], eax
cmp dword [esi], ebx
mov dword [ebp + 8], ebx
jbe 0x1005840
lea ecx, [esi + 0x1c]
lea eax, [edi + 0x40]
mov dword [eax - 0x10], ebx
mov edx, dword [ecx - 0x14]
mov dword [eax - 8], edx
mov edx, dword [ecx - 0x10]
mov dword [eax - 4], edx
mov edx, dword [ecx - 0xc]
inc dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ecx - 8]
mov dword [eax + 4], edx
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov dl, byte [ecx + 7]
mov byte [eax + 0xc], dl
mov dl, byte [ecx + 4]
mov byte [eax + 0x10], dl
mov dl, byte [ecx + 5]
mov byte [eax + 0x11], dl
mov dl, byte [ecx + 6]
mov byte [eax + 0x12], dl
mov edx, dword [ecx - 4]
mov dword [eax + 0x14], edx
mov edx, dword [ebp + 8]
add ecx, 0x20
add eax, 0x90
cmp edx, dword [esi]
jb 0x10057f1
push esi
call fcn.01015544
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [eax], edi
xor eax, eax
jmp 0x1005855
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10095c5
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x102164c]
push edi
push 0x47
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
pop edi
jae 0x100960b
xor eax, eax
jmp 0x1009615
cmp dword [ebp - 0x118], 2
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.0101522e
leave
ret

Function at 0x1009624
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x102164c]
push edi
push 0x47
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x11c], 5
pop edi
jne 0x1009671
cmp dword [ebp - 0x118], eax
sete al
mov ecx, dword [ebp - 4]
call fcn.0101522e
leave
ret
Function at 0x100ef6a
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x102164c]
push ebx
push esi
push edi
push 0x12
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov ebx, 0x1001768
push ebx
mov dword [ebp - 0x54], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
cmp eax, esi
mov dword [ebp - 0x40], eax
je 0x100f0a1
cmp eax, 0xffffffff
je 0x100f0a1
lea ecx, [ebp - 0x20]
push ecx
push esi
push ebx
push esi
mov dword [ebp - 0x44], esi
push eax
jmp 0x100f08c
push esi
lea eax, [ebp - 0x48]
push eax
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x100f0a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100f0a1
push dword [ebp - 0x48]
call fcn.01015554
mov edi, eax
cmp edi, esi
pop ecx
je 0x100f0a1
lea eax, [ebp - 0x3c]
push eax
push esi
mov dword [edi], 6
push dword [ebp - 0x48]
lea eax, [ebp - 0x20]
push edi
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x100f0b5
push esi
push 0x80
push 3
push esi
push 4
push 0xc0000000
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x50], eax
je 0x100f0b5
push esi
lea ecx, [ebp - 0x58]
push ecx
push 0xc
lea ecx, [ebp - 0x64]
push ecx
push esi
push esi
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4c], esi
je 0x100f0b5
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp + 8]
je 0x100f0be
push edi
call fcn.01015544
inc dword [ebp - 0x44]
pop ecx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x44]
push ebx
push esi
push dword [ebp - 0x40]
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x100efb9
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101522e
leave
ret 0xc
push edi
call fcn.01015544
pop ecx
jmp 0x100f0a1
lea ebx, [edi + 4]
push ebx
call fcn.0101633d
cmp dword [ebp + 0x10], eax
pop ecx
ja 0x100f0dd
mov esi, 0x80004005
push edi
call fcn.01015544
pop ecx
mov eax, esi
jmp 0x100f0a6
push ebx
push dword [ebp - 0x54]
call fcn.01016fec
pop ecx
pop ecx
jmp 0x100f0d2

Function at 0x100f485
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, esi
mov dword [0x102292c], eax
je 0x100f4c5
push 0x1022934
push esi
push esi
push 0x100f36a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x1022930], eax
jne 0x100f4c9
push dword [0x102292c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret
Function at 0x100f4f4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push 0xfffffffffffffff5
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x14], ebx
je 0x100f5bf
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
test al, 2
je 0x100f53b
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x100f53b
xor eax, eax
inc eax
jmp 0x100f53d
xor eax, eax
push edi
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x100f5be
cmp eax, esi
push esi
je 0x100f560
lea eax, [ebp - 8]
push eax
push edi
call fcn.0101633d
pop ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x100f5be
push esi
push esi
push esi
push 0xffffffffffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
call ebx
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x100f5be
push eax
call fcn.01017480
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
je 0x100f5be
push esi
push esi
push dword [ebp - 0x10]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
call edi
push eax
call ebx
cmp eax, esi
je 0x100f5b5
push esi
lea ecx, [ebp - 8]
push ecx
dec eax
push eax
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call fcn.0101749c
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4