joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422ac0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x430
mov eax, dword [0x44d230]
mov cx, word [0x44d234]
mov dl, byte [0x44d236]
push edi
mov dword [esp + 4], eax
mov word [esp + 8], cx
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
mov byte [esp + 0xa], dl
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x16]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x450]
push eax
push ecx
push 5
mov dword [esp + 0x34], 0xa
mov dword [esp + 0x30], 6
call fcn.00427660
add esp, 0x24
test ax, ax
je 0x422b47
mov al, 1
pop edi
add esp, 0x430
ret
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x440]
pop esi
shl cl, 2
mov dl, byte [esp + eax + 0x1c]
xor dl, cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 6
jl 0x422b7a
lea ecx, [esp + 4]
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x2a], 0
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
sete al
pop edi
add esp, 0x430
ret
Function at 0x427808
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
jmp 0x42784d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x665680
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4053d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4031b0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
cmp word [eax], 0xffff
jne 0x6656e1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [eax]
push edx
push 1
push ecx
push 0x42101c
push 0x80000002
call fcn.00664a90
push 0x665718
jmp 0x665707
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
push 0x42101c
push 0x80000002
call fcn.00665540
push 0x665718
jmp 0x665707
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x30]
call esi
lea ecx, [ebp - 0x40]
call esi
ret
Function at 0x100ea904
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0x48]
je 0x10100650
and si, di
shld si, cx, cl

Function at 0x100f169d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
lea esp, [esp + 0x2c]
ja 0x101a27d5
neg al
sub ebx, edi
btr di, 0xa
test cl, cl
add ebx, esp
movzx di, cl
mov edi, ebx
jmp 0x100ea817
sub ecx, ebx
rcl si, 3
lea esi, [esp + 8]
cmp dl, bh
sub edi, 4
pushfd
mov byte [esp + 8], ch
push dword [esp + 8]
push dword [edi]
pop dword [esp + 0xc]
cmc
bt bp, cx
jmp 0x101a282b
cmp sp, 0xa200
cmp edi, ebx
jmp 0x100ef336
Function at 0x401710
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x495f34]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
mov esi, dword [esp + 0xa4]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4017b0
cmp dword [esp + 0x14], 2
jne 0x4017b0
cmp dword [esp + 8], 5
push esi
jae 0x401781
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.00402260
xor ecx, ecx
add esp, 8
test al, al
sete cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004530e5
add esp, 0x98
ret
mov edx, dword [esp + 0xa4]
push edx
call fcn.004024c0
xor ecx, ecx
add esp, 8
test al, al
sete cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004530e5
add esp, 0x98
ret
mov ecx, dword [esp + 0x98]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004530e5
add esp, 0x98
ret

Function at 0x4017d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x495f34]
xor eax, esp
push esi
mov esi, dword [esp + 0x110]
mov dword [esp + 0x108], eax
push 0x104
lea eax, [esp + 8]
push eax
mov byte [esp + 0xd], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esp + 5], 0x3a
je 0x401823
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004530e5
add esp, 0x108
ret
mov ecx, dword [esp + 4]
push esi
push ecx
call fcn.00401710
mov ecx, dword [esp + 0x110]
add esp, 8
pop esi
xor ecx, esp
call fcn.004530e5
add esp, 0x108
ret

Function at 0x402260
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x468b3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x495f34]
xor eax, esp
push ebx
mov dword [esp + 0x124], eax
movsx eax, byte [esp + 0x138]
push edi
mov edi, dword [esp + 0x140]
push eax
lea ecx, [esp + 0x1c]
push 0x46f3b0
push ecx
xor ebx, ebx
call fcn.004533fa
add esp, 0xc
push 0x104
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x402356
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.004532e6
mov edx, dword [0x495150]
add esp, 4
push edx
lea ecx, [esp + 0x10]
call fcn.00451bf0
lea ecx, [esp + 0xc]
mov dword [esp + 0x138], ebx
call fcn.00451ad0
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00453260
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x402341
lea ecx, [esp + 0xc]
call fcn.00451ad0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402320
sub eax, edx
push edi
add esi, eax
push 0x46f3ac
push esi
call fcn.0045321d
add esp, 0xc
cmp eax, 1
jne 0x402341
mov bl, al
lea ecx, [esp + 0xc]
mov dword [esp + 0x138], 0xffffffff
call fcn.00451af0
pop esi
mov ecx, dword [esp + 0x12c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004530e5
add esp, 0x130
ret
Function at 0x402380
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x20
mov eax, dword [0x495f34]
xor eax, esp
push ebx
mov dword [esp + 0x20], eax
movsx eax, byte [esp + 0x28]
push esi
push eax
lea ecx, [esp + 0x10]
push str.._c:
push ecx
xor bl, bl
call fcn.004533fa
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4023fc
push 0
lea eax, [esp + 0xc]
push eax
push 0xc
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4023f5
mov edx, dword [esp + 0x1c]
mov dword [edi], edx
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004530e5
add esp, 0x20
ret

Function at 0x402750
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x495f34]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, 2
jb 0x402783
cmp byte [esp + 1], 0x3a
mov al, byte [esp]
je 0x402785
mov al, 0x43
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004530e5
add esp, 0x108
ret
Function at 0x402dc0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x468b9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x283c
call fcn.004535d0
mov eax, dword [0x495f34]
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, ebp
push esi
mov dword [esp + 0x2840], eax
mov eax, dword [0x495158]
push edi
push eax
lea ecx, [esp + 0x18]
call fcn.00451bf0
mov ecx, dword [ebp + 8]
push ecx
xor edi, edi
mov ecx, eax
mov dword [esp + 0x2858], edi
call fcn.00451ad0
push eax
lea edx, [esp + 0x38]
push edx
call fcn.004533fa
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x2854], 0xffffffff
call fcn.00451af0
push edi
push edi
push 3
push edi
push 3
push edi
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402f98
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
xor eax, eax
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
lea edx, [esp + 0x14]
push edx
push 0x2710
mov ecx, 0x9c4
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x13c]
push eax
push 0xc
lea ecx, [esp + 0x38]
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402f3f
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x402ed6
lea edx, [esp + eax + 0x130]
push 0x64
push edx
lea eax, [ebx + 4]
push eax
call fcn.00453460
add esp, 0xc
mov eax, dword [esp + 0x140]
test eax, eax
je 0x402ef7
push 0x64
lea ecx, [esp + eax + 0x134]
push ecx
lea edx, [ebx + 0x68]
push edx
call fcn.00453460
add esp, 0xc
mov eax, dword [esp + 0x144]
test eax, eax
je 0x402f1b
push 0x64
lea eax, [esp + eax + 0x134]
push eax
lea ecx, [ebx + 0x130]
push ecx
call fcn.00453460
add esp, 0xc
mov eax, dword [esp + 0x148]
test eax, eax
je 0x402f3f
lea edx, [esp + eax + 0x130]
push 0x64
push edx
lea eax, [ebx + 0xcc]
push eax
call fcn.00453460
add esp, 0xc
xor eax, eax
push eax
mov ecx, 0x9c4
lea edi, [esp + 0x134]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push 0x2710
lea edx, [esp + 0x13c]
push edx
push eax
push eax
push 0x2d0c10
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402f8d
push 0x64
lea eax, [esp + 0x144]
push eax
add ebx, 0xcc
push ebx
call fcn.00453460
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402f9d
mov eax, 0xb
mov ecx, dword [esp + 0x284c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2844]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004530e5
mov esp, ebp
pop ebp
ret
Function at 0x403330
Capabilities:
Set registry value

Disassembly:
sub esp, 0x168
mov eax, dword [0x495f34]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [0x4978d0]
test eax, eax
je 0x403483
push 0x4951fc
push 0x4951bc
push 0x49517c
push str.SOFTWARE_s_s_s
lea eax, [esp + 0x74]
push 0x100
push eax
mov dword [esp + 0x18], 0
call fcn.0045360d
add esp, 0x18
push 0
lea ecx, [esp + 4]
push ecx
push 0x497888
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4033c4
xor al, al
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.004530e5
add esp, 0x168
ret
push esi
push edi
xor eax, eax
mov ecx, 0x18
lea edi, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
call fcn.00453693
push eax
call fcn.00453664
add esp, 8
call fcn.00453671
mov esi, eax
shl esi, 0x10
call fcn.00453671
add esi, eax
mov eax, dword [esp + 0x174]
add eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x174], eax
mov edi, 4
lea esp, [esp]
lea eax, [esp + 0x174]
push eax
call fcn.00403270
mov eax, dword [esp + 0x178]
mov dword [esp + edi + 0x10], eax
lea ecx, [eax + eax]
sub ecx, esi
add edi, 4
add esp, 4
cmp edi, 0x60
mov dword [esp + 0x174], ecx
jb 0x403410
mov eax, dword [esp + 8]
push 0x60
lea edx, [esp + 0x10]
push edx
push 3
push 0
push 0x46f400
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.004530e5
add esp, 0x168
ret
mov ecx, dword [esp + 0x164]
xor ecx, esp
mov al, 1
call fcn.004530e5
add esp, 0x168
ret

Function at 0x4039d0
Capabilities:
Access the windows event log

Disassembly:
push ecx
push esi
push 0x49524c
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0xc]
mov dword [esp + 4], eax
je 0x403a0e
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
pop ecx
ret
Function at 0x403cd0
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468bd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
mov eax, dword [0x495f34]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x320], eax
mov al, byte [ebp + 0xc]
test al, al
push edi
mov dword [ebp - 0x10], esp
je 0x403d23
mov eax, dword [0x4978d4]
xor edi, edi
cmp eax, edi
jne 0x403d5c
mov dword [0x49541c], 0x2000000c
mov eax, dword [ebp - 0x320]
test eax, eax
je 0x403d35
mov edx, dword [0x49541c]
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x49541c]
neg eax
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
and eax, 0x19
pop ebx
call fcn.004530e5
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [ebp - 0x31c]
push ecx
push edi
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x31c], 1
call esi
mov edx, dword [ebp - 0x31c]
push edx
call fcn.00451d0e
mov ecx, dword [ebp - 0x31c]
mov edx, dword [0x4978d4]
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x31c]
push eax
push ecx
push ebx
push edx
call esi
test eax, eax
je 0x403f09
mov esi, 0x104
push esi
mov dword [0x49541c], edi
call fcn.00451d0e
add esp, 4
push esi
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esi - 2]
cmp eax, ecx
jbe 0x403dea
push edi
add esi, 0x104
call fcn.00453fec
push esi
call fcn.00451d0e
add esp, 8
jmp 0x403dc0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x318]
push eax
push 0
push 0
push edi
call fcn.00454081
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x318]
push edx
push 0
push 0
push edi
call fcn.00453ff1
mov eax, dword [ebx + 0xc]
push eax
call fcn.0045395c
push edi
call fcn.0045395c
push 0x103
lea ecx, [ebp - 0x118]
push 0x4951fc
push ecx
call fcn.004536cc
lea edx, [ebp - 0x118]
push edx
call fcn.0045395c
mov eax, dword [ebx + 0xc]
add esp, 0x40
test eax, eax
je 0x403e63
push edi
push eax
call fcn.0045375f
add esp, 8
test eax, eax
jne 0x403e6d
mov dword [0x49541c], 0x2000000d
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x403e88
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.0045375f
add esp, 8
test eax, eax
jne 0x403e92
mov dword [0x49541c], 0x2000000e
test byte [ebx], 0x10
jne 0x403ea3
mov dword [0x49541c], 0x2000000f
jmp 0x403f00
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x403ef6
push 0x49524c
push eax
call fcn.00453811
add esp, 8
test eax, eax
jne 0x403ef6
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x403f00
push str..System
push eax
call fcn.00453811
add esp, 8
test eax, eax
je 0x403f00
mov eax, dword [ebx + 0x1c]
push str.LocalSystem
push eax
call fcn.00453811
add esp, 8
test eax, eax
je 0x403f00
mov dword [0x49541c], 0x20000011
jmp 0x403f00
mov dword [0x49541c], 0x20000010
push edi
call fcn.00453fec
add esp, 4
push ebx
call fcn.00453fec
add esp, 4
jmp 0x403d23
Function at 0x4045b0
Capabilities:
Access the windows event log

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
xor ecx, ecx
cmp eax, 2
setne cl
push edi
mov dword [0x4978a8], edx
mov edx, dword [0x497894]
mov dword [0x4978a0], eax
mov eax, dword [esp + 0x10]
push 0x49789c
mov dword [0x4978a4], ecx
mov ecx, dword [esp + 0x18]
push edx
mov dword [0x49789c], 0x10
mov dword [0x4978ac], 0
mov dword [0x4978b0], eax
mov dword [0x4978b4], ecx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov edi, eax
test edi, edi
jne 0x40464d
push esi
push 0x49524c
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], str.SetServiceStatus_failed
je 0x404648
push edi
lea eax, [esp + 0x10]
push eax
push edi
push 1
push edi
push edi
push edi
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov eax, edi
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x40a620
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x14
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], 0x40a070
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0x49524c
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x40a695
push esi
push 0x49524c
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
mov dword [esp + 4], str.StartServiceCtrlDispatcher___failed
je 0x40a68e
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor eax, eax
pop esi
add esp, 0x14
ret
xor eax, eax
add esp, 0x14
ret

Function at 0x40a710
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub eax, 0
push ebx
je 0x40a730
dec eax
je 0x40a728
dec eax
jne 0x40a77e
mov ebx, dword [0x497a20]
jmp 0x40a736
mov ebx, dword [0x497a1c]
jmp 0x40a736
mov ebx, dword [0x497a18]
test ebx, ebx
je 0x40a77e
cmp ebx, 1
jne 0x40a74e
call fcn.00402750
mov ecx, dword [esp + 0xc]
mov byte [ecx], al
mov al, bl
pop ebx
ret
cmp ebx, 0x41
jb 0x40a77e
cmp ebx, 0x5a
ja 0x40a77e
lea edx, [esp + 8]
mov dword [esp + 8], 0x5c3a41
push edx
mov byte [esp + 0xc], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40a77e
mov eax, dword [esp + 0xc]
mov byte [eax], bl
mov al, 1
pop ebx
ret
xor al, al
pop ebx
ret

Function at 0x40b610
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x497a00
call esi
push 0x4979e8
call esi
push 0
push 0
push 0
push 0x40b5a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x40c980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x469418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
mov dword [esp + 0x1c], 0x46f58c
mov dword [esp + 0x28], 0x7ebbcba2
mov dword [esp + 0x14], 0x46fa10
xor eax, eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x40]
mov word [esp + 8], ax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x46f9dc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 8]
push eax
mov byte [esp + 0x40], 2
call fcn.0040c6b0
mov edx, dword [esp + 0x24]
add esp, 8
push 0xd1e0863c
push 0x6ee61963
push 0xcdadd022
lea ecx, [esp + 0x28]
call dword [edx]
mov ecx, dword [esi]
xor eax, 0x507ed26d
mov eax, dword [ecx + eax*8 + 4]
mov ecx, dword [esp + 0x44]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 8]
push ecx
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x454388
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x486900
call fcn.00456d70
mov edi, 0x94
mov eax, edi
call fcn.004535d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x497df8], ecx
mov eax, dword [esi + 4]
mov dword [0x497e04], eax
mov edx, dword [esi + 8]
mov dword [0x497e08], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x497dfc], esi
cmp ecx, 2
je 0x4543e8
or esi, 0x8000
mov dword [0x497dfc], esi
shl eax, 8
add eax, edx
mov dword [0x497e00], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x454421
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x454421
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x454439
cmp eax, 0x20b
je 0x454426
mov dword [ebp - 0x1c], edi
jmp 0x45444d
cmp dword [ecx + 0x84], 0xe
jbe 0x454421
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x454447
cmp dword [ecx + 0x74], 0xe
jbe 0x454421
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00458186
pop ecx
test eax, eax
jne 0x454461
push 0x1c
call fcn.00454364
pop ecx
call fcn.00457a2a
test eax, eax
jne 0x454472
push 0x10
call fcn.00454364
pop ecx
call fcn.0045b8bf
mov dword [ebp - 4], edi
call fcn.0045b6c1
test eax, eax
jge 0x45448b
push 0x1b
call fcn.0045433f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4995c4], eax
call fcn.0045b59f
mov dword [0x497c5c], eax
call fcn.0045b4fd
test eax, eax
jge 0x4544b1
push 8
call fcn.0045433f
pop ecx
call fcn.0045b2ca
test eax, eax
jge 0x4544c2
push 9
call fcn.0045433f
pop ecx
push 1
call fcn.00457dd8
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4544d8
push eax
call fcn.0045433f
pop ecx
mov eax, dword [0x497e18]
mov dword [0x497e1c], eax
push eax
push dword [0x497e10]
push dword [0x497e0c]
call fcn.0040a620
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x454507
push esi
call fcn.00457f05
call fcn.00457f27
jmp 0x454539
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00456dab
ret