joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ca260
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.006331b0
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.0063505a
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5ca40d
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x5ca40d
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.005ca420
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.005ca420
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.005ca420
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.005ca420
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x5ca40d
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret
Function at 0x5d5670
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ecx, dword [eax + 0x7c]
push esi
cmp ebp, 0xffffffff
push edi
mov dword [esp + 0x10], ecx
jne 0x5d5725
mov edx, dword [esp + 0x1c]
mov ebp, dword [edx]
test ebp, ebp
je 0x5d56fc
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call esi
push 0x10
mov edi, eax
call esi
push 0x12
mov ebx, eax
call esi
xor ecx, ecx
test edi, 0x8000
je 0x5d56bc
mov ecx, 2
test bh, 0x80
je 0x5d56c4
or ecx, 1
test ah, 0x80
je 0x5d56cc
or ecx, 4
mov esi, dword [esp + 0x28]
push ecx
mov ecx, esi
mov eax, dword [esp + 0x14]
shr ecx, 0x10
movsx edx, cx
mov eax, dword [eax + 8]
push edx
mov edx, dword [esp + 0x24]
movsx ecx, si
push ecx
mov ecx, dword [edx + 4]
push ecx
push eax
call ebp
test eax, eax
jne 0x5d5702
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x28]
jmp 0x5d5706
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push esi
push edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 4]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call esi
push 0x10
mov edi, eax
call esi
push 0x12
mov ebx, eax
call esi
xor ecx, ecx
test edi, 0x8000
je 0x5d574a
mov ecx, 2
test bh, 0x80
je 0x5d5752
or ecx, 1
test ah, 0x80
je 0x5d575a
or ecx, 4
mov esi, dword [esp + 0x28]
push ecx
mov ecx, esi
mov edi, dword [esp + 0x1c]
shr ecx, 0x10
movsx edx, cx
movsx eax, si
push edx
push eax
push 3
push ebp
push edi
call fcn.005d5590
add esp, 0x18
test eax, eax
je 0x5d56f4
cmp ebp, 0x18
je 0x5d578d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x14]
push esi
push eax
mov eax, dword [edi + 4]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x5d7350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x658d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005ac930
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.005ac950
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.005d7280
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.005d71f0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x5d7368
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x658d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005ac930
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.005ac950
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.005d7280
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.005d71f0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x5d9770
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5d977b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5d987e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x89ad6c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x89ad6c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x89ad6c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x89ad6c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x89ad6c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x89ad6c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x89ad6c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x89ad6c]
xor eax, edx
inc ecx
dec edi
jne 0x5d9796
pop edi
test esi, esi
je 0x5d98a0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x89ad6c]
xor eax, edx
inc ecx
dec esi
jne 0x5d9882
pop esi
pop ebx
not eax
ret

Function at 0x5da0f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x5da131
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5da126
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x5da144
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x5dc310
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5dc343
push esi
call fcn.005e11b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x5dc33c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5dc3c9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5dc3b2
mov eax, dword [esi + 8]
test eax, eax
je 0x5dc367
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5dc3ae
cmp eax, 2
je 0x5dc3b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5dc35a
cmp eax, 3
je 0x5dc38d
cmp eax, 1
jne 0x5dc35a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x5dc35a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x5dc35a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.005dc400
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5dc3e9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.005dc400
add esp, 4
pop esi
ret

Function at 0x60ccc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x60cccb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x60cdce
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x89c058]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x89c058]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x89c058]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x89c058]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x89c058]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x89c058]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x89c058]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x89c058]
xor eax, edx
inc ecx
dec edi
jne 0x60cce6
pop edi
test esi, esi
je 0x60cdf0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x89c058]
xor eax, edx
inc ecx
dec esi
jne 0x60cdd2
pop esi
pop ebx
not eax
ret
Function at 0x636091
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6360b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00633f0a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x6360d4
test byte [esp + 8], 2
je 0x6360d4
call fcn.00633f7d
mov dword [eax], 0xd
call fcn.00633f86
mov dword [eax], 5
jmp 0x6360ad
xor eax, eax
ret

Function at 0x64848d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6484c5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00646477
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0064644f
jmp 0x6484d1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x649b7b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x649bbd
call fcn.006502c7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x649bbd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x649bb4
xor eax, eax
jmp 0x649bc5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00649bcb
pop edi
pop esi
pop ebx
ret 4

Function at 0x6507f7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x650825
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x650843
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0065075d
jmp 0x650843
mov eax, dword [esi + 0x14]
test eax, eax
je 0x650843
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0065075d
test edi, edi
mov eax, edi
jne 0x65082d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x936688
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009367d8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9366ae
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x93669a
add dl, dl
jne 0x9366b9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x93670c
xor eax, eax
add dl, dl
jne 0x9366c6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9367ad
add dl, dl
jne 0x9366d5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9366e0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9366eb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9366f6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x936702
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9366a5
mov eax, 1
add dl, dl
jne 0x93671a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x936725
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x936711
sub eax, ebx
mov ebx, 1
jne 0x936758
mov ecx, 1
add dl, dl
jne 0x93673e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x936749
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x936735
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9366a5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x93676f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x93677a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x936766
cmp eax, 0x7d00
jae 0x93679d
cmp eax, 0x500
jb 0x936798
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9366a5
cmp eax, 0x7f
ja 0x9367a0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9366a5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9367ce
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9366a5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40126d
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [0x4142e9]
push ebx
push esi
push 0xdf05ffff
push eax
call fcn.00401ce9
add dword [0x41431c], 0x3db40001
mov dword [0x414308], eax
mov al, byte [0x4142f6]
xor ebx, ebx
add byte [0x4142e2], al
cmp byte [0x414238], bl
pop ecx
pop ecx
jne 0x40130e
movsx eax, byte [0x4142e3]
imul eax, eax, 0x89c7ffff
mov esi, dword [0x4141f4]
mov dword [0x41431c], eax
mov al, byte [esi]
add al, 0x2b
movzx eax, al
add eax, 3
and al, 0xfc
call fcn.0040edd0
mov eax, esp
push 0x40
push esi
push eax
call fcn.0040e0e8
pop ecx
pop ecx
push eax
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
call sub.MSVCRT.dll_memcpy
mov al, byte [0x4142ee]
add esp, 0xc
sub byte [0x4142e6], al
mov byte [0x414238], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [0x414300], eax
movsx eax, byte [0x4142e4]
push eax
push 0x8087ffff
call fcn.00401e67
cmp byte [0x4142e3], bl
pop ecx
pop ecx
mov dword [0x41430c], eax
je 0x40133c
cmp byte [0x4142e9], bl
je 0x40133c
push 1
pop eax
jmp 0x40133e
xor eax, eax
add byte [0x4142e5], al
mov eax, dword [ebp + 8]
push 0x1b1fffff
mov ecx, dword [eax]
shr ecx, 0x1a
mov bl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movsx ecx, word [0x4142f6]
or ecx, 0xb337ffff
add dword [0x41431c], ecx
shl dword [eax], 6
push dword [0x414318]
call fcn.00401d79
pop ecx
mov byte [0x4142e5], al
pop ecx
mov al, bl
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
Function at 0x402206
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [0x4170cc], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ebx
mov word [0x4142ec], 1
jne 0x40222f
mov eax, dword [0x4171f8]
mov dword [0x4170cc], eax
push 0xfb85ffff
push 0xe291ffff
call fcn.00401dcc
add dword [0x41431c], eax
mov eax, dword [0x4170d0]
pop ecx
cmp eax, ebx
pop ecx
jne 0x402259
mov eax, dword [0x4171bc]
mov dword [0x4170d0], eax
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
cmp ecx, ebx
jne 0x40226a
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push ecx
call eax
mov dword [esp + 0x14], eax
push 0xebedffff
movsx eax, word [0x4142ee]
push eax
call fcn.00401ce9
add byte [0x4142e5], al
cmp dword [esp + 0x1c], 0xffffffff
pop ecx
pop ecx
je 0x402372
push ebp
xor eax, eax
cmp byte [0x4142e9], bl
push esi
push edi
push 0xe1
mov ebp, 0x414710
push ebx
setne al
add dword [0x414318], eax
push ebp
mov dword [esp + 0x20], ebx
call sub.MSVCRT.dll_memset
push dword [0x414318]
mov dword [0x414710], ebx
push 0x6971ffff
call fcn.00401bcc
add word [0x4142ee], ax
mov edi, 0x28d5
push edi
mov esi, 0x4147f4
push ebx
push esi
mov dword [0x414714], ebx
call sub.MSVCRT.dll_memset
add esp, 0x20
lea eax, [esp + 0x14]
inc word [0x4142ea]
mov dword [0x414324], 0xab1ffffe
push ebx
push eax
push edi
push esi
push 0xe1
push ebp
push 0x2d1400
push dword [esp + 0x3c]
call dword [0x4170cc]
pop edi
pop esi
test eax, eax
pop ebp
je 0x402368
movsx eax, word [0x4142ea]
or eax, dword [0x414314]
mov ecx, dword [esp + 0xc]
add dword [0x414318], eax
call fcn.0040237d
push 1
pop eax
mov word [0x4142ec], ax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x414304], eax
push dword [esp + 0x14]
call dword [0x4171b8]
mov eax, dword [esp + 4]
pop ebx
add esp, 0xc
ret 4
Function at 0x402523
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xebbfffff
push 0xa94dffff
call fcn.00401c74
add dword [0x414304], eax
pop ecx
pop ecx
lea ecx, [ebp - 4]
call fcn.0040103a
push 0x2a4dffff
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
add byte [0x4142e4], al
push 0x4b1bffff
push 0x53b7ffff
call fcn.00401e67
mov ebx, dword [ebp + 8]
mov word [0x4142f6], ax
pop ecx
mov eax, dword [ebx + 4]
pop ecx
test eax, eax
jne 0x402580
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea ecx, [ebp - 4]
call fcn.00401181
mov edi, eax
xor eax, eax
cmp word [0x4142f4], ax
setne al
mov word [0x4142ec], ax
lea eax, [edi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x414304], eax
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4025c0
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
push eax
lea ecx, [ebp - 4]
call fcn.0040180b
cmp eax, 0xffffffff
jne 0x4025f7
push esi
call fcn.0040edb0
movsx eax, word [0x4142f8]
push eax
movsx eax, byte [0x4142e8]
push eax
call fcn.00401dcc
add dword [0x414300], eax
add esp, 0xc
xor al, al
jmp 0x402661
mov eax, dword [0x41430c]
push edi
or eax, 0xcb59ffff
push esi
add dword [0x414304], eax
and byte [esi + edi], 0
mov eax, dword [0x414314]
lea eax, [eax + eax + 0x18c9ffff]
mov dword [0x414314], eax
call fcn.0040dd14
movsx eax, word [0x4142f8]
push eax
push 0x9547ffff
call fcn.00401bcc
push esi
mov dword [0x414308], eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
mov ecx, ebx
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov al, byte [0x4142f0]
push esi
sub byte [0x4142e6], al
call fcn.0040edb0
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret