joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431004
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x45a980]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43104a
cmp word [ebx], dx
jne 0x43104a
or byte [eax + edi + 0x28], 4
jmp 0x43104f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4311b2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x431192
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x431090
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4310c6
cmp eax, edx
jae 0x4310d4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x43106b
jmp 0x4311b2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43118d
cmp dword [ebp - 0x18], 0
je 0x43118d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x45a980]
test byte [eax + edi + 0x28], 0x48
je 0x431163
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x431127
mov word [esi], cx
jmp 0x43115e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x45a980]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45a980]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x45a980]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4311b2
pop eax
cmp word [ebp - 4], ax
jne 0x431173
cmp esi, ebx
jne 0x431173
mov word [esi], ax
jmp 0x4311af
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00430821
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4311b2
push 0xd
pop eax
jmp 0x43116e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x45a980]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4311ac
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4311b2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x432dea
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x456528]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x432e35
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00432f85
test al, al
jne 0x432e2f
sub edx, 2
cmp edx, edi
jne 0x432e15
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x432e57
lea eax, [edi + 2]
cmp edx, eax
je 0x432e57
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00432d36
add esp, 0x10
jmp 0x432f51
push esi
lea ecx, [ebp - 0x255]
call fcn.00432f85
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x432e9a
push dword [ebp - 0x25c]
jmp 0x432e47
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x432ed7
cmp word [ebp - 0x226], 0
je 0x432ef8
cmp word [ebp - 0x226], ax
jne 0x432ed7
cmp word [ebp - 0x224], 0
je 0x432ef8
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00432d36
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x432f44
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x432eb1
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x432f2c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x432f51
push 0x432b66
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043be90
add esp, 0x10
jmp 0x432f21
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ba65
leave
ret

Function at 0x433a0c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x433a1d
pop esi
ret
push ebx
push edi
push esi
call fcn.004339d5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042dfc2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x433a45
push ebx
push esi
push edi
call fcn.0041e000
add esp, 0xc
push 0
call fcn.0042d921
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x433e15
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00433a5a
Function at 0x436273
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042d636
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4362e2
cmp esi, dword [ebp - 4]
je 0x4362dd
cmp dword [ebp + 0xc], 0
je 0x4362dd
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4362ba
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00435dc5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4362e4
xor eax, eax
inc eax
jmp 0x4362e4
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x436349
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x456528]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042d636
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042d636
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4363c0
cmp word [ecx], dx
je 0x4363c0
mov eax, dword [0x449344]
push edi
dec eax
push eax
push 0x449230
call fcn.004362e8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x436433
cmp word [eax], dx
je 0x436433
mov eax, dword [edi]
test eax, eax
je 0x4363e4
cmp word [eax], dx
je 0x4363e4
lea eax, [ebp - 0x10]
push eax
call fcn.00435ccb
jmp 0x4363ed
lea eax, [ebp - 0x10]
push eax
call fcn.00435d66
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x43645d
mov eax, dword [0x44922c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x448f20
call fcn.004362e8
add esp, 0xc
test al, al
je 0x43645d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x436428
cmp word [eax], di
je 0x436428
lea eax, [ebp - 0x10]
push eax
call fcn.00435ccb
pop ecx
jmp 0x43645f
lea eax, [ebp - 0x10]
push eax
call fcn.00435d66
jmp 0x436425
mov eax, dword [edi]
test eax, eax
je 0x43644a
cmp word [eax], dx
je 0x43644a
lea eax, [ebp - 0x10]
push eax
call fcn.00435c80
pop ecx
jmp 0x43645d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x436528
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0043616d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x436528
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x436528
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x436528
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4364b5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042f692
test ebx, ebx
je 0x436523
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042f692
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436528
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x436528
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00429619
add esp, 0x10
xor eax, eax
inc eax
jmp 0x43652a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ba65
leave
ret
Function at 0x43dad1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0043da4d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43dc40
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43dc40
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43dbf5
jg 0x43db2d
test eax, eax
je 0x43dbeb
push 1
push 0x1000
call fcn.0042effe
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43db50
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43dbe2
push 0x8000
push ebx
call fcn.0042a73d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43db79
jg 0x43db74
cmp ecx, 0x1000
jb 0x43db79
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004303ff
add esp, 0x10
cmp eax, 0xffffffff
je 0x43dbbe
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43db74
jl 0x43dba5
test ecx, ecx
jne 0x43db66
push dword [ebp - 0xc]
push ebx
call fcn.0042a73d
push esi
call fcn.0042d921
add esp, 0xc
xor ebx, ebx
jmp 0x43dc4e
cmp byte [edi + 0x24], 0
je 0x43dbd5
cmp dword [edi + 0x20], 5
jne 0x43dbd5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43dbe0
mov ebx, dword [edi + 0x18]
jmp 0x43dbe2
xor ebx, ebx
push esi
call fcn.0042d921
pop ecx
jmp 0x43dc4e
test ecx, ecx
jg 0x43dbb7
jl 0x43dbf5
test eax, eax
jae 0x43dbb7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00430821
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43dc15
cmp byte [edi + 0x1c], 0
je 0x43dbb7
jmp 0x43dc46
push ebx
call fcn.004341ea
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43dbb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43dc4e
cmp byte [edi + 0x1c], 0
je 0x43dc4b
mov ebx, dword [edi + 0x18]
jmp 0x43dc4e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00430821
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43e240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43e26d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43e26d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406c1f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
call fcn.00406a9c
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x406c41
mov eax, 0x80070057
jmp 0x406d27
push edi
xor ecx, ecx
lea eax, [ebp - 8]
push eax
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp + 0xc]
mov edi, 0x80070057
mov dword [ebp - 8], ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406d24
cmp dword [ebp - 4], 1
je 0x406c81
cmp dword [ebp - 4], 2
je 0x406c81
cmp dword [ebp - 4], 7
jne 0x406d24
mov eax, dword [ebp - 8]
shr eax, 1
test byte [esi + 8], 0x20
mov dword [ebp - 8], eax
je 0x406ccc
mov ecx, dword [esi + 4]
cmp eax, ecx
jb 0x406c9b
mov dword [ebp - 8], ecx
mov eax, ecx
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi]
push 0
push 0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esi + 4]
mov edx, eax
test ecx, ecx
jle 0x406cc6
mov eax, dword [esi]
xor ebx, ebx
mov word [eax + ecx*2 - 2], bx
test edx, edx
jne 0x406d24
jmp 0x406d11
push eax
mov ecx, esi
call fcn.0040710f
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x406d24
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push ebx
push 0
push 0
push dword [ebp + 0xc]
add ecx, ecx
push dword [ebp + 8]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, esi
test eax, eax
je 0x406d0b
lea eax, [ebp - 0x10]
push eax
call fcn.0040713d
jmp 0x406d24
push ebx
call fcn.0040715b
cmp dword [ebp - 4], 2
je 0x406d1b
xor edi, edi
jmp 0x406d24
mov ecx, esi
call fcn.00406db0
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40790c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x10]
call fcn.004067af
push 0x4028a4
mov ecx, esi
call fcn.0040dc64
test al, al
je 0x4079c7
mov ecx, dword [esi + 0x28]
call fcn.0040e7ce
test al, al
je 0x407949
push 4
jmp 0x4079d9
mov byte [ebp - 1], bl
test ecx, ecx
je 0x40795a
xor eax, eax
cmp word [ecx], bx
setne al
jmp 0x40795c
mov eax, ebx
test al, al
je 0x407981
mov dl, byte [ecx]
movzx eax, dl
cmp ax, word [ecx]
jne 0x407981
mov al, dl
mov byte [ebp - 1], al
movzx eax, al
mov al, byte [eax + 0x410b30]
test al, al
je 0x407981
movzx ebx, al
jmp 0x4079da
push 3
push ecx
lea ecx, [ebp - 0x10]
call fcn.004068ca
test eax, eax
js 0x4079da
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
cmp ebx, 2
jne 0x4079bb
push dword [ebp - 0x10]
call fcn.0040a1c7
cmp eax, 0x15e
je 0x4079b6
cmp eax, 0x20d
jne 0x4079bb
mov ebx, 0x80
movzx eax, byte [ebp - 1]
mov byte [eax + 0x410b30], bl
jmp 0x4079da
push 0x40286c
mov ecx, esi
call fcn.00407fab
test al, al
je 0x4079da
push 5
pop ebx
lea ecx, [ebp - 0x10]
call fcn.00406a9c
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a1c7
Capabilities:
Check os version
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4100a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x23c]
push edi
call fcn.004067af
test esi, esi
je 0x40a3dd
movzx ecx, word [esi]
mov dx, 0x19
lea eax, [ecx - 0x41]
cmp dx, ax
sbb edi, edi
add ecx, 0xffffffc0
and edi, 0xffffffe0
add edi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor esi, esi
inc esi
test eax, eax
jns 0x40a2d8
xor ebx, ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push 0x4025ec
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x22c], eax
cmp eax, 0xffffffff
je 0x40a394
push ebx
lea ecx, [ebp - 0x228]
mov byte [ebp - 0x228], bl
mov dword [ebp - 0x1fc], ecx
lea ecx, [ebp - 0x230]
push ecx
push 0x1c
lea ecx, [ebp - 0x200]
mov dword [ebp - 0x200], edi
push ecx
push 0x1c
push ecx
push esi
push eax
mov dword [ebp - 0x1f8], 0x860
mov dword [ebp - 0x1f4], 0x440d
mov dword [ebp - 0x1e8], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je case.default.0x40a2aa
test byte [ebp - 0x1e8], 1
jne case.default.0x40a2aa
movzx eax, byte [ebp - 0x227]
cmp eax, 9
ja case.default.0x40a2aa
jmp dword [eax*4 + 0x40a3ff]
mov esi, 0x20d
jmp case.0x40a2aa.5
mov esi, 0x15e
jmp case.0x40a2aa.5
mov esi, 0x320
jmp case.0x40a2aa.5
push 2
pop esi
jmp case.0x40a2aa.5
mov esi, ebx
push dword [ebp - 0x22c]
jmp 0x40a38c
lea esi, [edi + 0x40]
push esi
lea eax, [ebp - 0x23c]
push 0x4025f8
push eax
call fcn.00406bac
add esp, 0xc
xor ebx, ebx
test eax, eax
js 0x40a394
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x230], eax
cmp eax, 0xffffffff
je 0x40a39d
push ebx
lea ecx, [ebp - 0x22c]
push ecx
push 0x1e0
lea ecx, [ebp - 0x1e4]
push ecx
push ebx
push ebx
push 0x70c00
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40a384
cmp dword [ebp - 0x22c], ebx
jbe 0x40a384
mov eax, dword [ebp - 0x1dc]
cmp eax, 1
je 0x40a37d
jle 0x40a384
cmp eax, 5
jle 0x40a376
cmp eax, 0xa
jle 0x40a37d
cmp eax, 0xb
je 0x40a371
cmp eax, 0xc
jne 0x40a384
xor esi, esi
inc esi
jmp 0x40a386
push 2
pop esi
jmp 0x40a386
mov esi, 0x15e
jmp 0x40a386
mov esi, 0x20d
jmp 0x40a386
mov esi, ebx
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a396
mov esi, ebx
test esi, esi
jne 0x40a3df
lea esi, [edi + 0x40]
push esi
lea eax, [ebp - 0x23c]
push 0x402608
push eax
call fcn.00406bac
add esp, 0xc
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x40a3d8
cmp eax, 3
je 0x40a3d3
jbe 0x40a3cf
cmp eax, 6
jbe 0x40a3d8
mov esi, ebx
jmp 0x40a3df
xor esi, esi
inc esi
jmp 0x40a3df
push 2
pop esi
jmp 0x40a3df
xor esi, esi
lea ecx, [ebp - 0x23c]
call fcn.00406a9c
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f200
mov esp, ebp
pop ebp
ret 4
Function at 0x40a9fc
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0x80070005
lea ecx, [ebp - 0x70]
call fcn.00407635
push edi
push 2
lea ecx, [ebp - 0x70]
call fcn.00407818
mov ebx, 0x80072af9
test eax, eax
js 0x40aa6c
lea ecx, [ebp - 0x70]
call fcn.0040790c
cmp eax, 4
jne 0x40aa6c
lea ecx, [ebp - 0x70]
call fcn.0040b64c
cmp byte [0x410c54], 0
mov esi, eax
mov dword [ebp - 4], esi
je 0x40aa6f
test esi, esi
js 0x40aa5e
lea eax, [ebp - 0x70]
push eax
call fcn.0040b91c
jmp 0x40aa6c
cmp esi, ebx
jne 0x40aa6f
push ebx
lea eax, [ebp - 0x70]
push eax
call fcn.0040b89b
mov esi, dword [ebp - 4]
test esi, esi
jns 0x40ab37
cmp esi, ebx
je 0x40ab37
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push ebx
push edi
push 0x40a960
push ebx
push ebx
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40ab34
sub esp, 0x14
push 0xfa0
push 0x4028d0
call fcn.0040dc64
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40ab2d
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40ab2d
mov eax, dword [0x410048]
cmp eax, 0x410048
je 0x40aaf7
test byte [eax + 0x44], 1
je 0x40aaf7
cmp byte [eax + 0x41], 3
jb 0x40aaf7
push dword [ebp - 4]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0xb
pop ecx
call fcn.0040a67f
cmp dword [ebp - 4], ebx
je 0x40ab05
mov dword [ebp - 4], 0x80070005
jmp 0x40ab2d
cmp byte [0x410c54], bl
je 0x40ab2d
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x40ab1e
xor eax, eax
cmp word [ecx], bx
setne al
jmp 0x40ab20
mov eax, ebx
test al, al
je 0x40ab2d
lea eax, [ebp - 0x70]
push eax
call fcn.0040b91c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x70]
call fcn.0040637d
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b987
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
sub esp, 0x14
xor eax, eax
mov edi, eax
movzx eax, byte [ebp + 0xc]
mov dword [ebp - 4], eax
push 0xea60
push 0x4028b0
call fcn.0040d1b9
mov ecx, 0x4104f0
mov dword [ebp - 0x14], eax
call fcn.0040b86f
push dword [ebp + 8]
mov esi, 0x41051c
push esi
call fcn.0040bbe1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ba02
push ebx
mov ecx, esi
call fcn.0040dc64
lea esi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jae 0x40ba32
push ebx
mov ecx, 0x41051c
call fcn.0040bdda
mov edi, dword [eax + 0x20c]
jmp 0x40ba39
push dword [ebp + 8]
mov esi, 0x41050c
push esi
call fcn.0040bbe1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ba39
push ebx
mov ecx, esi
call fcn.0040bdda
lea esi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jb 0x40ba39
mov dword [ebp - 4], 1
mov ecx, 0x4104f0
call fcn.0040b887
cmp dword [ebp - 4], 0
je 0x40bb8f
test edi, edi
js 0x40bb8f
lea ecx, [ebp - 0x10]
call fcn.004067af
lea ecx, [ebp - 0x88]
call fcn.00407635
lea ecx, [ebp - 0x20]
call fcn.004067af
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x88]
push eax
call fcn.0040768d
push ecx
lea ecx, [ebp - 0x88]
call fcn.00407b61
mov edi, eax
test edi, edi
js 0x40bb74
lea eax, [ebp - 0x10]
push eax
push 0xa
lea ecx, [ebp - 0x88]
call fcn.0040775d
mov edi, eax
test edi, edi
js 0x40bb74
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x88]
call fcn.00407f07
mov edi, eax
test edi, edi
js 0x40bb74
mov ecx, dword [ebp - 0x10]
xor edx, edx
test ecx, ecx
je 0x40badc
xor eax, eax
cmp word [ecx], dx
setne al
jmp 0x40bade
mov eax, edx
test al, al
je 0x40bb13
lea ecx, [ebp - 0x10]
call fcn.0040dc64
mov ecx, dword [ebp - 0x20]
mov edi, eax
mov esi, dword [ebp - 0x10]
call fcn.0040e6d4
cmp word [esi + edi*2 - 2], ax
jne 0x40bb10
lea ecx, [ebp - 0x10]
call fcn.00406d2f
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov word [ecx + eax*2 - 2], dx
mov ecx, dword [ebp - 0x10]
call fcn.0040a9fc
mov edi, eax
test edi, edi
jns 0x40bb74
cmp ebx, 0xffffffff
je 0x40bb74
mov ecx, 0x4104f0
call fcn.0040b86f
push dword [ebp + 8]
push 0x41051c
call fcn.0040dc64
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bb6a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 0x41051c
mov esi, eax
push ebx
mov ecx, edi
call fcn.0040bdda
push ebx
mov ecx, edi
mov dword [eax + 0x208], esi
call fcn.0040bdda
mov edi, dword [eax + 0x20c]
mov ecx, 0x4104f0
call fcn.0040b887
lea ecx, [ebp - 0x20]
call fcn.00406a9c
lea ecx, [ebp - 0x88]
call fcn.0040637d
lea ecx, [ebp - 0x10]
call fcn.00406a9c
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8