joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x423020]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x80
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x104]
push str.Program_Files
push ecx
call fcn.0040b855
add esp, 8
test eax, eax
je 0x401f05
push str.ALLUSERSPROFILE
push 0x104
lea edx, [ebp - 0x108]
push esi
push edx
call fcn.0040b785
push str.ProgramData
push esi
call fcn.0040b855
add esp, 0x18
test eax, eax
jne 0x401ecb
push str.Application_Data
push 0x104
push esi
call fcn.0040b8b5
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
push str.MyFS
push 0x104
push esi
call fcn.0040b8b5
add esp, 0xc
push 0
push esi
call edi
push 0x42056c
push 0x104
push esi
call fcn.0040b8b5
add esp, 0xc
pop edi
jmp 0x401f1a
lea eax, [ebp - 0x104]
push eax
push 0x104
push esi
call fcn.0040b3d5
add esp, 0xc
push 0x5c
push esi
call fcn.0040b6bc
add esp, 8
test eax, eax
jne 0x401f37
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
add eax, 2
mov ecx, esi
sub ecx, eax
add ecx, 0x208
sar ecx, 1
push str.lang.conf
dec ecx
push ecx
push eax
call fcn.0040b3d5
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 4]
xor edx, edx
cmp eax, 0xffffffff
setne dl
xor ecx, ebp
mov eax, edx
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x423020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
jmp 0x401fa0
movzx edx, word [ecx + 0x420570]
mov word [ebp + ecx - 0x20c], dx
add ecx, 2
test dx, dx
jne 0x401fa0
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401fc0
push esi
push edi
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x401fe0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401fe0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ecx, eax
push ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push ebx
call fcn.0040b6bc
add esp, 8
pop edi
pop esi
test eax, eax
jne 0x402029
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
add eax, 2
mov edx, ebx
sub edx, eax
add edx, 0x208
lea ecx, [ebp - 0x20c]
sar edx, 1
push ecx
dec edx
push edx
push eax
call fcn.0040b3d5
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
Function at 0x402090
Capabilities:
Check if file exists
Get disk information
Get disk size
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [0x423020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x4a8]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
mov dword [ebp - 0x4ac], ebx
lea edi, [ebp - 0x4a8]
movzx edx, word [edi]
xor ecx, ecx
mov eax, 0x424018
cmp word [eax], dx
je 0x4020ea
add eax, 0x58
inc ecx
cmp eax, 0x424388
jl 0x4020d8
jmp 0x4020f3
cmp ecx, 0xa
jl 0x4021fc
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x4021fc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4021fc
xor esi, esi
mov eax, 0x424018
lea ebx, [ebx]
cmp word [eax], bx
je 0x402130
add eax, 0x58
inc esi
cmp eax, 0x424388
jl 0x402120
cmp esi, 0xa
jne 0x402148
push edi
push str.drive__s_is_not_available
call fcn.00403ce0
add esp, 8
jmp 0x4021fc
imul esi, esi, 0x58
push ebx
lea ecx, [ebp - 0x4b8]
push ecx
push ebx
push edi
add esi, 0x424008
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dx, word [edi]
mov word [esi + 0x10], dx
mov edx, esi
mov eax, edi
sub edx, edi
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax + 0x12], cx
add eax, 2
cmp cx, bx
jne 0x402170
fild qword [ebp - 0x4b8]
sub esp, 8
fdiv qword [0x420c78]
fstp qword [esp]
push str._.2fGB
push 0x10
push 0x4c47b8
call fcn.0040b92a
add esp, 0x14
push 0x4c47b8
push edi
push str._s___s
lea edx, [ebp - 0xa8]
push 0x50
push edx
call fcn.0040b92a
mov ecx, dword [esi + 0x48]
add esp, 0x14
lea eax, [ebp - 0xa8]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 0x44]
push 0x4205d0
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0x40]
push ebx
push ebx
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x54], ebx
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402201
mov ecx, dword [ebp - 0x4ac]
sub eax, edx
sar eax, 1
lea eax, [ecx + eax + 1]
lea edi, [ebp + eax*2 - 0x4a8]
mov dword [ebp - 0x4ac], eax
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402230
sub eax, edx
sar eax, 1
jne 0x4020ce
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
mov edi, edi
cmp word [eax + 0x424018], bx
jne 0x40228a
add eax, 0x58
cmp eax, 0x370
jb 0x402250
mov eax, dword [0x4a2d0c]
push ebx
push 1
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
mov eax, 0x424054
nop
cmp dword [eax], ebx
jne 0x402279
add eax, 0x58
cmp eax, 0x4243c4
jl 0x402290
mov edx, dword [0x4a2d0c]
push 1
push 1
push edx
jmp 0x40226c
Function at 0x4022b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ebx
lea ebx, [ebx]
mov ax, word [ebp + 8]
cmp word [esi], ax
jne 0x4022d5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402319
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4022e0
sub eax, edx
sar eax, 1
lea edi, [edi + eax + 1]
lea esi, [ebx + edi*2]
mov eax, esi
lea edx, [eax + 2]
jmp 0x402300
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402300
sub eax, edx
sar eax, 1
jne 0x4022c0
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402330
Capabilities:
Get disk information
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x423020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, 0x424054
jmp 0x402370
movzx ecx, word [esi - 0x3c]
push ecx
lea ebx, [ebp - 0x404]
call fcn.004022b0
add esp, 4
test al, al
jne 0x4023c3
xor edx, edx
mov word [esi - 0x3c], dx
cmp dword [esi], edx
je 0x4023ad
mov eax, dword [esi - 8]
push str.Unpluged
push eax
call edi
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi], 0
mov edx, dword [esi - 4]
push 0x4205ec
push edx
call edi
mov eax, dword [esi - 8]
push 0x4205ec
push eax
call edi
add esi, 0x58
cmp esi, 0x4243c4
jl 0x402370
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
pop esi
xor eax, eax
pop ebx
jmp 0x4023e0
cmp word [eax + 0x424018], 0
jne 0x40241a
add eax, 0x58
cmp eax, 0x370
jb 0x4023e0
mov edx, dword [0x4a2d0c]
push 0
push 1
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
mov eax, 0x424054
nop
cmp dword [eax], 0
jne 0x40240c
add eax, 0x58
cmp eax, 0x4243c4
jl 0x402420
mov ecx, dword [0x4a2d0c]
push 1
push 1
push ecx
jmp 0x4023ff
Function at 0x402dd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x402d30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x402e42
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0x400
mov esi, eax
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [ebp - 4]
push edx
push esi
push str._d:__s
mov ecx, 0x100
mov ebx, 0x4c48e0
call fcn.00403b90
push ebx
push str.CreateThread_failed__GLE_s._n
call fcn.00403ce0
add esp, 0x14
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1410
call fcn.00417a50
mov eax, dword [0x423020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4c3d60]
push esi
mov esi, ecx
mov dword [ebp - 0x140c], esi
test eax, eax
jne 0x4036a7
push 0x200
push 0x4c43b8
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, 0x4c43b8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
push 0x4202b8
push eax
lea eax, [ebp - 0x1408]
push eax
mov byte [0x4c4ae0], 0
call fcn.0040a4b9
mov eax, dword [ebp - 0x1408]
add esp, 0xc
test eax, eax
jne 0x4036ed
push str.cannot_open
call fcn.0040bb5f
add esp, 4
push 0x200
push 0x4c43b8
push 0xffffffffffffffff
push 0x4c4ae0
jmp 0x403686
push ebx
push edi
push eax
push 1
lea ecx, [ebp - 0x1410]
push 4
push ecx
call fcn.0040a74a
mov edx, dword [ebp - 0x1408]
mov eax, dword [ebp - 0x1410]
push edx
push eax
lea ecx, [ebp - 0x1404]
push 4
push ecx
call fcn.0040a74a
mov edi, dword [ebp - 0x1410]
add esp, 0x20
xor ebx, ebx
dec edi
js 0x4037c1
mov edi, edi
lea eax, [edi + ebx]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0x1408]
sar esi, 1
mov edx, dword [ebp + esi*4 - 0x1404]
push 0
push edx
push eax
call fcn.0040bde0
mov ecx, dword [ebp - 0x1408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.0040a74a
mov eax, dword [ebp - 0x140c]
add esp, 0x1c
lea ecx, [ebp - 0x404]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4037a0
test dl, dl
je 0x40379c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4037a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x403780
xor eax, eax
jmp 0x4037a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jns 0x4037ae
lea edi, [esi - 1]
jmp 0x4037b3
jle 0x403800
lea ebx, [esi + 1]
cmp ebx, edi
jle 0x403730
mov esi, dword [ebp - 0x140c]
mov edx, dword [ebp - 0x1408]
push edx
call fcn.0040a7d4
add esp, 4
push 0x200
push 0x4c43b8
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov eax, 0x4c43b8
pop esi
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403810
sub eax, edx
lea eax, [ebp + eax - 0x403]
push eax
push 0x200
push 0x4c4ae0
call fcn.0040bc1c
mov ecx, dword [ebp - 0x1408]
push ecx
call fcn.0040a7d4
add esp, 0x10
push 0x200
push 0x4c43b8
push 0xffffffffffffffff
push 0x4c4ae0
jmp 0x4037dd
Function at 0x403860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push str.SOFTWAREMyCP
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40389e
push str.SOFTWAREMyCP
push str.Could_not_create_the_registry_key__s.
call fcn.00403c90
push ebx
lea eax, [ebp - 8]
push eax
push esi
xor edx, edx
lea ecx, [ebp - 0x10]
push ecx
push edx
mov word [esi], dx
mov edx, dword [ebp - 4]
push str.current_volume2
push edx
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebp - 4]
push eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4038e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMyCP
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40391e
push str.SOFTWAREMyCP
push str.Could_not_create_the_registry_key__s.
call fcn.00403c90
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403923
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 4]
push edx
push esi
push 1
push 0
push str.current_volume2
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x403960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x423020]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4c43b1], 0
push ebx
push esi
push edi
mov esi, str.SOFTWAREMyCPVolumes
jne 0x403989
mov esi, str.SOFTWAREMyCPVolumes2
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
push ecx
xor edi, edi
push edi
push 0x20019
push edi
push edi
push edi
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4039bd
push esi
push str.Could_not_create_the_registry_key__s.
call fcn.00403c90
push 0x206
lea eax, [ebp - 0x20e]
xor edx, edx
push edi
push eax
mov dword [ebp - 0x214], edi
mov word [ebp - 0x210], dx
call fcn.0040c810
add esp, 0xc
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x224]
push edx
mov edx, dword [ebp - 0x21c]
push edi
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x210]
push ecx
push edx
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 0x224], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x218], edi
jbe 0x403a9e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, 0x4a2d10
jmp 0x403a60
mov edx, dword [ebp - 0x21c]
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x220]
push ecx
push esi
push edi
push edx
mov dword [ebp - 0x220], 0x80
mov word [esi], ax
call ebx
test eax, eax
jne 0x403a95
inc dword [ebp - 0x214]
add esi, 0x100
inc edi
cmp edi, dword [ebp - 0x218]
jb 0x403a60
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret

Function at 0x403ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push 0xe30
push 0
push esi
call fcn.0040c810
add esp, 0xc
cmp byte [0x4c43b1], 0
mov edi, str.SOFTWAREMyCPVolumes
jne 0x403aeb
mov edi, str.SOFTWAREMyCPVolumes2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x403b1b
push edi
push str.Could_not_create_the_registry_key__s.
call fcn.00403c90
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push ecx
push edx
mov dword [ebp - 8], 0xe30
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebp - 4]
push eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403db0
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cf39
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x423020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, cl
push 0x80
xor edi, edi
lea eax, [ebp - 0x98]
mov esi, edx
push edi
push eax
mov dword [ebp - 0xb8], esi
call fcn.0040c810
push 0x80
push edi
push esi
call fcn.0040c810
and bl, 0xdf
add esp, 0x18
lea ecx, [ebx - 0x41]
cmp cl, 0x19
ja 0x403eb3
push 0x40
mov dword [ebp - 0xac], edi
call fcn.0040b151
add esp, 4
cmp eax, edi
je 0x403fc1
mov dword [eax], eax
mov dword [ebp - 0xb0], eax
mov dword [eax + 4], eax
push edi
push edi
mov dword [ebp - 4], edi
mov edx, dword [str..X:]
mov ax, word [0x420a88]
mov cl, byte [0x420a8a]
push 3
push edi
push 3
mov dword [ebp - 0x18], edx
push edi
lea edx, [ebp - 0x18]
mov dword [ebp - 0xb4], 0x5c3a58
mov word [ebp - 0x14], ax
mov byte [ebp - 0xb4], bl
mov byte [ebp - 0x14], bl
push edx
mov byte [ebp - 0x12], cl
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
jne 0x403ed4
mov dword [ebp - 4], 1
lea eax, [ebp - 0xb0]
push eax
call fcn.00404dc0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xb0]
push ecx
call fcn.0040ac8f
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
push edi
lea edx, [ebp - 0xbc]
push edx
push 0xc
lea eax, [ebp - 0xa4]
push eax
push edi
push edi
push 0x2d1080
push esi
mov dword [ebp - 0xbc], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
je 0x403f03
mov ebx, dword [ebp - 0xa0]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
cmp ebx, esi
jne 0x403f33
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00404dc0
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0xb0]
push edx
jmp 0x403eab
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push eax
push ebx
lea ecx, [ebp - 0xb0]
call fcn.00404000
add esp, 8
cmp eax, edi
jne 0x403f5d
mov dword [ebp - 4], 3
jmp 0x403f18
mov ebx, dword [ebp - 0xb0]
mov esi, dword [ebx]
cmp esi, ebx
je 0x403f9a
mov edi, 8
mov edi, edi
cmp dword [esi + 0x38], edi
lea eax, [esi + 0x24]
jb 0x403f7a
mov eax, dword [eax]
push eax
push 0x420a8c
lea eax, [ebp - 0x98]
push 0x80
push eax
call fcn.0040c1e3
mov esi, dword [esi]
add esp, 0x10
cmp esi, ebx
jne 0x403f70
mov edx, dword [ebp - 0xb8]
lea ecx, [ebp - 0x98]
push ecx
push 0x80
push edx
call fcn.0040bc1c
add esp, 0xc
mov dword [ebp - 4], 4
jmp 0x403e91
lea edx, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xc0], edi
call fcn.0040c130
push 0x421534
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xcc], vtable.std::bad_alloc.0
call fcn.0041235a
int3
Function at 0x4053b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8068
call fcn.00417a50
mov eax, dword [0x423020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
movzx ecx, byte [0x4c2d22]
neg ecx
push 0
sbb ecx, ecx
and ecx, 0x20000000
or ecx, 0x80
push ecx
push 3
push 0
push 1
push 0x80000000
push edi
mov esi, edx
mov dword [ebp - 0x8068], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40546c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea edx, [ebp - 0x8064]
push edx
push 0x400
mov esi, eax
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp - 0x8064]
push eax
push esi
push str._d:__s
mov ecx, 0x100
mov ebx, 0x4c48e0
call fcn.00403b90
push ebx
push edi
push str.Cannot_create__s__s
call fcn.00403ce0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x8060]
push ecx
call fcn.00409cb0
add esp, 4
push 0
lea edx, [ebp - 0x8064]
push edx
push 0x8000
lea eax, [ebp - 0x8004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405546
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4054b0
mov eax, dword [ebp - 0x8064]
test eax, eax
je 0x405546
push eax
lea ecx, [ebp - 0x8004]
push ecx
lea edx, [ebp - 0x8060]
push edx
call fcn.00409aa0
add esp, 0xc
test esi, esi
je 0x405522
mov eax, dword [ebp - 0x8064]
cdq
add dword [esi + 0x38], eax
mov ecx, dword [esi + 0x38]
push 0
adc dword [esi + 0x3c], edx
mov eax, dword [esi + 0x3c]
push 0x64
push eax
push ecx
call fcn.00415980
mov ecx, dword [0x4c2d1c]
push ecx
mov ecx, dword [0x4c2d18]
push ecx
push edx
push eax
call fcn.004189f0
cmp eax, dword [esi + 0x54]
je 0x405522
mov edx, dword [esi + 0x40]
push 0
push eax
push 0x402
push edx
mov dword [esi + 0x54], eax
call edi
push 0
lea eax, [ebp - 0x8064]
push eax
push 0x8000
lea ecx, [ebp - 0x8004]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4054b0
mov eax, dword [ebp - 0x8068]
lea edx, [ebp - 0x8060]
push edx
push eax
call fcn.00409b80
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
Function at 0x4058e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, 0x4c41a0
mov ecx, 0x4c2d28
mov edi, edi
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x405916
test ax, ax
je 0x405912
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x405916
add ecx, 4
add edx, 4
test ax, ax
jne 0x4058f0
xor eax, eax
jmp 0x40591b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405936
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x405850
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret
Function at 0x409cb0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.0040c810
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret

Function at 0x40a3ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423020]
jne 0x40a3b8
repz ret
jmp fcn.0040cbf1

Function at 0x41778c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004114d9
and dword [ebp - 0x14], 0
cmp dword [0x49e028], 0
mov dword [ebp - 0x18], eax
jne 0x41783f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4178e7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41fb38
push ebx
call edi
test eax, eax
je 0x4178e7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x49e028], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x49e02c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49e030], eax
call edi
push eax
call esi
mov dword [0x49e038], eax
test eax, eax
je 0x41783f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49e034], eax
mov eax, dword [0x49e034]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417898
cmp dword [0x49e038], ecx
je 0x417898
push eax
call esi
push dword [0x49e038]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417898
test ebx, ebx
je 0x417898
call edi
test eax, eax
je 0x41788f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41788f
test byte [ebp - 8], 1
jne 0x417898
or dword [ebp + 0x10], 0x200000
jmp 0x4178cb
mov eax, dword [0x49e02c]
cmp eax, dword [ebp - 0x18]
je 0x4178cb
push eax
call esi
test eax, eax
je 0x4178cb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4178cb
mov eax, dword [0x49e030]
cmp eax, dword [ebp - 0x18]
je 0x4178cb
push eax
call esi
test eax, eax
je 0x4178cb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49e028]
call esi
test eax, eax
je 0x4178e7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4178e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a3ae
leave
ret