joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a50
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x10018
call fcn.00424510
mov eax, dword [esp + 0x1001c]
push edi
xor edi, edi
mov dword [esp + 0xc], ecx
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
mov byte [esp + 0x23], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x409a98
xor al, al
pop edi
add esp, 0x10018
ret 0x1c
push ebx
mov ebx, dword [esp + 0x1002c]
push ebp
mov ebp, dword [esp + 0x1002c]
push esi
xor esi, esi
cmp ebx, edi
mov dword [esp + 0x1c], edi
jl 0x409ac5
jg 0x409abd
cmp ebp, 0xfffffff
jbe 0x409ac5
mov dword [esp + 0x1c], 8
mov ecx, dword [esp + 0x1c]
mov eax, ebp
mov edx, ebx
call fcn.004245b0
mov ecx, dword [esp + 0x10044]
push eax
push 0
push 0x406
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, ebp
or ecx, ebx
je 0x409c74
mov edx, dword [esp + 0x10044]
mov eax, dword [edx]
cmp byte [eax], 0
jne 0x409c68
test ebx, ebx
jl 0x409ba8
jg 0x409b20
cmp ebp, 0x10000
jbe 0x409ba8
mov eax, dword [esp + 0x10038]
test eax, eax
je 0x409b61
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push 0x10000
push edi
push esi
push edx
push eax
call fcn.00409440
test al, al
je 0x409c6f
mov ecx, dword [esp + 0x14]
xor eax, eax
sub ebp, ecx
sbb ebx, eax
add esi, ecx
adc edi, eax
jmp 0x409c0b
mov edx, dword [esp + 0x10040]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10040]
push 0x10000
push edi
lea ecx, [esp + 0x34]
push esi
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push 0x80
call fcn.004090f0
test al, al
je 0x409c6f
mov ecx, dword [esp + 0x14]
xor eax, eax
sub ebp, ecx
sbb ebx, eax
add esi, ecx
adc edi, eax
jmp 0x409c0b
mov eax, dword [esp + 0x10038]
test eax, eax
je 0x409bd4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push ebp
push edi
push esi
push edx
push eax
call fcn.00409440
test al, al
je 0x409c6f
jmp 0x409c03
mov edx, dword [esp + 0x10040]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10040]
push ebp
push edi
lea ecx, [esp + 0x34]
push esi
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push 0x80
call fcn.004090f0
test al, al
je 0x409c6f
mov ecx, dword [esp + 0x14]
xor ebp, ebp
xor ebx, ebx
lea edx, [esp + 0x24]
push 0
push edx
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409c6f
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp edx, eax
jne 0x409c6f
mov ecx, dword [esp + 0x1c]
push 0
mov eax, esi
mov edx, edi
call fcn.004245b0
push eax
mov eax, dword [esp + 0x1004c]
push 0x402
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebp
or eax, ebx
jne 0x409af8
jmp 0x409c74
mov byte [esp + 0x13], 1
jmp 0x409c74
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10018
ret 0x1c
Function at 0x40cf00
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1004
call fcn.00424510
push ebx
mov ebx, dword [esp + 0x1010]
push ebp
mov ebp, dword [esp + 0x1010]
lea eax, [esp + 8]
push esi
push eax
push ebx
push ebp
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40cf7e
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x14]
push 0x1000
push ecx
push eax
push edx
call edi
test eax, eax
jne 0x40cf7d
test esi, esi
je 0x40cf7d
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0040cf00
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x10]
push 0x1000
push edx
push 0
push eax
call edi
test eax, eax
je 0x40cf4e
pop edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40cfa8
test esi, esi
je 0x40cfa8
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1004
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1004
ret

Function at 0x411120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x118]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411251
or ecx, eax
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0x104
jl 0x411163
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
lea eax, [esi + 1]
lea ecx, [esp + 0x1c]
push eax
push ebx
push ecx
call fcn.00424780
lea edx, [esp + 0x28]
push 0x5c
push edx
call fcn.00424a30
mov ebp, dword [esp + 0x140]
mov edi, dword [esp + 0x13c]
add esp, 0x14
test eax, eax
je 0x4111da
lea ecx, [esp + esi + 0x1b]
cmp eax, ecx
jne 0x4111ad
lea edx, [esp + 0x1c]
push 0x5c
push edx
mov byte [eax], 0
call fcn.00424a30
add esp, 8
test eax, eax
je 0x4111da
mov byte [eax], 0
mov eax, dword [esp + 0x130]
push eax
push ebp
lea ecx, [esp + 0x24]
push edi
push ecx
call fcn.00411120
add esp, 0x10
test al, al
jne 0x4111da
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0xc
push edx
push ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x411222
test edi, edi
je 0x411215
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00416de0
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret
cmp byte [ebp], 0
jne 0x411247
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x130]
mov byte [ecx], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x110
ret
Function at 0x4114a0
Capabilities:
Write file on windows

Disassembly:
mov al, byte [ecx + 4]
push esi
test al, al
je 0x4114d6
mov esi, dword [ecx + 8]
cmp esi, 0xffffffff
je 0x4114d6
mov edx, dword [esp + 8]
test edx, edx
je 0x4114d6
push edi
lea eax, [esp + 0xc]
push 0
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
ret 4
Function at 0x413ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44d2b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x45043c
mov edx, dword [0x45fe70]
lea ecx, [esi + 8]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [ecx], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov edx, dword [0x45fe70]
mov dword [esi + 0x18], edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov edx, dword [0x45fe70]
mov dword [esi + 0x28], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, dword [0x45fe70]
mov dword [esi + 0x38], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x14], 4
mov dword [esi], 0x450410
mov dword [esi + 0x3c], eax
call fcn.00438910
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x4145b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44d3f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ebp
push esi
push edi
mov edi, ecx
push 0x91
mov ecx, dword [esp + 0x30]
push 0x90
lea esi, [edi + 0x48]
mov dword [edi + 0x154], ecx
mov ecx, esi
mov dword [edi + 0x14c], eax
mov dword [edi + 0x158], edx
call fcn.00405000
mov eax, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x1037
push eax
call ebp
mov ecx, dword [esi + 0x1c]
or al, 0x30
push eax
push ebx
push 0x1036
push ecx
call ebp
push ebx
push 0x82
push ebx
push str.Name
push ebx
mov ecx, esi
call fcn.00404570
push ebx
push 0x3c
push 1
push str.Size
push 1
mov ecx, esi
call fcn.00404570
push ebx
push 0x73
push ebx
push str.Modified
push 2
mov ecx, esi
call fcn.00404570
push ebx
push 0x73
push ebx
push str.Created
push 3
mov ecx, esi
call fcn.00404570
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x44f7ec
mov dword [esp + 0x20], ebx
call fcn.00448108
mov eax, dword [eax + 0xc]
push 0x2000
push ebx
push ebx
push ebx
push 0x82
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
lea ecx, [esp + 0x14]
call fcn.0043bffd
push 0
push 5
push 0x11
push 0x10
lea ebx, [edi + 0x144]
push 0x10
mov ecx, ebx
call fcn.0043337e
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
push 0xff00ff
and eax, edx
mov edx, dword [edi + 0x148]
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
test ebx, ebx
je 0x4146e4
mov ebx, dword [ebx + 4]
mov eax, dword [esi + 0x1c]
push ebx
push 1
push 0x1003
push eax
call ebp
push eax
call fcn.0043334b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x120]
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0043c054
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x416c30
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
sub esp, 0x348
push ebx
push esi
push edi
mov edi, dword [esp + 0x358]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416c58
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x348
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
mov bl, 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call fcn.00416bb0
lea edx, [esp + 0x10]
push edx
call fcn.00416bf0
lea eax, [esp + 0x14]
push 0x45f588
lea ecx, [esp + 0x11c]
push eax
push ecx
call fcn.00416e80
add esp, 0x14
lea edx, [esp + 0x214]
lea eax, [esp + 0x110]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x416cd2
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x348
ret
lea ecx, [esp + 0x214]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ecx
push edi
call ebp
test eax, eax
je 0x416d90
lea edx, [esp + 0x244]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x118]
push eax
push ecx
call fcn.00416e80
mov edx, dword [esp + 0x224]
add esp, 0xc
and edx, 0x10
cmp dl, 0x10
je 0x416d2e
lea eax, [esp + 0x114]
push eax
call fcn.00416dc0
add esp, 4
test eax, eax
jne 0x416d7d
jmp 0x416d7b
mov esi, 0x45f584
lea eax, [esp + 0x244]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x416d5e
test cl, cl
je 0x416d5a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x416d5e
add eax, 2
add esi, 2
test cl, cl
jne 0x416d3a
xor eax, eax
jmp 0x416d63
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416d7d
lea eax, [esp + 0x114]
push eax
call fcn.00416c30
add esp, 4
test al, al
jne 0x416d7d
xor bl, bl
lea ecx, [esp + 0x218]
push ecx
push edi
call ebp
test eax, eax
jne 0x416cec
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
pop ebp
je 0x416dad
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x416dad
xor bl, bl
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x348
ret

Function at 0x416dc0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret
Function at 0x41a880
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a8fa
mov esi, dword [esp + 0x14]
test esi, esi
je 0x41a8fa
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41a8fa
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
sub edi, esi
xor ebp, ebp
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x41a8fa
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x41a8e8
mov edx, esi
cmp edi, ebx
jb 0x41a8f2
add edx, ebx
cmp edi, edx
jbe 0x41a906
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x41a8da
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x14
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebp
sub edi, ebx
mov dword [edx], ebp
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 0x14
Function at 0x41b540
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp], ebx
push edi
mov edx, dword [esi + 0xc]
cmp edx, 0xffffffff
je 0x41b6f4
cmp edx, ebx
je 0x41b6f4
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x41b644
call fcn.0041b520
mov edx, dword [esp + 0x48]
mov ecx, eax
mov eax, dword [esp + 0x44]
call fcn.00425730
mov ecx, dword [esi + 0xc]
mov edi, eax
lea eax, [esp + 0x10]
push ebx
push eax
mov ebp, edx
push edi
push ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41b5c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41b5c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword [edx], eax
xor eax, eax
pop ebx
add esp, 0x30
ret 0x14
cmp edi, ebx
jne 0x41b62e
cmp dword [esp + 0x10], ebp
jne 0x41b62e
mov ecx, esi
call fcn.0041b520
mov edx, dword [esp + 0x54]
mov ecx, eax
shl edx, cl
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x14]
push 0
push eax
push edx
mov edx, dword [esi + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b613
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x30
ret 0x14
mov ecx, esi
call fcn.0041b520
mov edx, dword [esp + 0x14]
mov ecx, eax
shr edx, cl
pop edi
pop esi
pop ebp
pop ebx
mov eax, edx
add esp, 0x30
ret 0x14
mov eax, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword [eax], 0x85670a04
xor eax, eax
pop ebx
add esp, 0x30
ret 0x14
cmp eax, 1
jne 0x41b6e1
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x18]
push ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x22], eax
mov dword [esp + 0x1c], ecx
movsx eax, byte [esi + 0x10]
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x28], ecx
sub eax, 0x40
lea ecx, [esp + 0x54]
mov dword [esp + 0x2c], eax
push ecx
lea eax, [esp + 0x2c]
push 0x1c
push eax
lea ecx, [esp + 0x34]
push 0x1c
push ecx
push 6
push edx
mov dword [esp + 0x70], ebx
mov word [esp + 0x3c], di
mov word [esp + 0x42], bx
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x50], 0x7305
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41b6d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [ebp], eax
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x14
pop edi
mov dword [ebp], 0x85670a05
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 0x14
pop edi
mov dword [ebp], 0x85670a02
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 0x14
Function at 0x41b8d0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x764
mov eax, dword [esp + 0x768]
push ebx
push esi
push edi
mov edi, ecx
push 0xff00ff
push 4
push 0x10
lea esi, [edi + 0x44]
push 0x8f
mov ecx, esi
mov dword [esp + 0x24], edi
mov dword [edi + 0x3c], eax
call fcn.004333a6
test esi, esi
je 0x41b908
mov esi, dword [esi + 4]
mov ecx, dword [edi + 0x1c]
push esi
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.0043334b
lea edx, [esp + 0x370]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x370]
mov dword [esp + 0xc], 0
test al, al
lea ebx, [esp + 0x370]
je 0x41bb08
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
cmp edi, 2
mov dword [esp + 0x14], edi
je 0x41b972
cmp edi, 3
je 0x41b972
cmp edi, 6
jne 0x41bacc
lea eax, [esp + 0x144]
xor ebp, ebp
push 0x104
push eax
push ebp
push ebp
push ebp
lea ecx, [esp + 0x54]
push 0x104
push ecx
push ebx
mov byte [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x41b9e0
lea edx, [esp + 0x144]
push str.NTFS
push edx
call fcn.0042a710
add esp, 8
test eax, eax
jne 0x41b9be
mov ebp, 2
jmp 0x41ba0f
push 3
lea eax, [esp + 0x148]
push 0x45f9b4
push eax
call fcn.004288a0
add esp, 0xc
test eax, eax
jne 0x41ba0f
mov ebp, 1
jmp 0x41ba0f
mov edi, str.REMOVABLE
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x144]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov al, byte [esp + 0x40]
test al, al
jne 0x41ba41
mov edi, str.Local_Disk
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
movsx ecx, byte [ebx]
push ecx
call fcn.00424637
add esp, 4
lea edx, [esp + 0x144]
movsx esi, al
push edx
lea eax, [esp + 0x44]
push esi
push eax
lea ecx, [esp + 0x254]
push str.__s___c:__:__s
push ecx
call fcn.00423e53
mov edx, dword [esp + 0x24]
and ebp, 0xff
lea eax, [esp + 0x25c]
add esp, 0x14
shl ebp, 8
mov dword [esp + 0x24], eax
add ebp, esi
xor eax, eax
cmp edi, 2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x27
sete al
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], 0x12c
mov dword [esp + 0x40], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.0043344d
cmp eax, 0xffffffff
je 0x41bacc
inc dword [esp + 0x10]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ebx + ecx + 1]
lea ebx, [ebx + ecx + 1]
test al, al
jne 0x41b952
mov eax, dword [esp + 0x10]
pop ebp
test eax, eax
je 0x41bb08
mov edx, dword [esp + 0x14]
push 0
push 0
push 0x14e
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x764
ret 4
Function at 0x41bb30
Capabilities:
Get disk information

Disassembly:
sub esp, 0x238
push esi
mov esi, ecx
push 0
push 0
mov eax, dword [esi + 0x1c]
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x41bb5d
xor al, al
pop esi
add esp, 0x238
ret 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x20
push ecx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.00433436
test eax, eax
jne 0x41bb85
xor al, al
pop esi
add esp, 0x238
ret 8
mov ecx, dword [esp + 0x240]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x244]
mov byte [ecx], al
sar eax, 8
and eax, 0xff
cmp eax, 1
mov dword [esi], eax
je 0x41bc46
cmp eax, 2
je 0x41bc46
mov dl, byte [ecx]
lea eax, [esp + 0x34]
push 0x104
push eax
push 0
push 0
mov byte [esp + 0x14], dl
push 0
lea ecx, [esp + 0x14c]
push 0x104
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x25], 0x3a
mov byte [esp + 0x26], 0x5c
mov byte [esp + 0x27], 0
mov byte [esp + 0x158], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x41bc52
lea eax, [esp + 0x34]
push str.NTFS
push eax
call fcn.0042a710
add esp, 8
test eax, eax
jne 0x41bc27
mov eax, 2
mov dword [esi], eax
mov al, 1
pop esi
add esp, 0x238
ret 8
push 3
lea ecx, [esp + 0x38]
push 0x45f9b4
push ecx
call fcn.004288a0
add esp, 0xc
test eax, eax
jne 0x41bc52
mov eax, 1
mov dword [esi], eax
mov al, 1
pop esi
add esp, 0x238
ret 8
push 0xffffffffffffffff
push 0x10
push 0xef22
call fcn.0043f476
xor al, al
pop esi
add esp, 0x238
ret 8

Function at 0x41bd00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41bd56
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x4513c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41bd49
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41bd58
xor eax, eax
pop esi
leave
ret 4
Function at 0x42bb03
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x463590
cmp edx, dword [eax]
je 0x42bb25
add eax, 8
inc ecx
cmp eax, 0x463620
jl 0x42bb16
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x463590]
jne 0x42bc53
mov eax, dword [0x4670d0]
cmp eax, 1
je 0x42bc2d
test eax, eax
jne 0x42bb56
cmp dword [0x460ab4], 1
je 0x42bc2d
cmp edx, 0xfc
je 0x42bc53
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42bb8d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042a7e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004262c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42bbd0
lea eax, [ebp - 0x1a4]
push eax
call fcn.004262c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x455908
push edi
call fcn.00424780
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042a7e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042a7f0
lea eax, [ebp - 0xa0]
push 0x4558e8
push eax
call fcn.0042a7f0
push dword [esi + 0x463594]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042a7f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042de14
add esp, 0x2c
pop edi
jmp 0x42bc53
lea eax, [ebp + 8]
lea esi, [esi + 0x463594]
push 0
push eax
push dword [esi]
call fcn.004262c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret