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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [0x100a2ac], 0
je 0x1006a6a
mov eax, 0x3eb
jmp 0x1006aeb
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1006a83
push ebx
call fcn.0100679a
test al, al
jne 0x1006a83
mov eax, 0x3eb
jmp 0x1006aea
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x1c]
push edi
lea edx, [ecx + 0x18]
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0xc], esi
mov esi, dword [ebp + 0x20]
push edx
mov edx, dword [ebp + 0x18]
mov dword [ecx + 0x10], esi
mov esi, dword [ebp + 0x24]
push 0x100a2d4
push dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov dword [ecx + 0x14], esi
lea ecx, [ecx + edx + 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1006ae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x1006ae4
test ebx, ebx
je 0x1006ae6
push ebx
call fcn.010067cb
jmp 0x1006ae6
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x20
Function at 0x401110
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
je 0x401147
push fcn.00401020
call fcn.00401020
add esp, 4
mov dword [ebp - 0x434], eax
jmp 0x401151
mov dword [ebp - 0x434], 0
push 0x424
lea eax, [ebp - 0x428]
push 0
push eax
mov dword [ebp - 0x42c], 0x428
call fcn.004072b0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0xc
call esi
push eax
push 8
call fcn.00402e20
mov dword [ebp - 0x430], eax
cmp eax, 0xffffffff
je 0x4011ee
lea ecx, [ebp - 0x42c]
push ecx
push eax
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x4011ce
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x410]
cmp eax, dword [ebp - 0x434]
je 0x4011b7
push eax
push ebx
push esi
push edi
call fcn.00401040
mov eax, dword [ebp - 0x430]
lea edx, [ebp - 0x42c]
push edx
push eax
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4011a0
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407299
mov esp, ebp
pop ebp
ret 0x10
call esi
push eax
push str.CreateToolhelp32Snapshot__d__Failed
call fcn.00402fa0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407299
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401300
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
cmp dword [0x420100], 0
jne 0x40134b
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x18]
mov dword [0x420100], edx
cmp dword [ebp + 0x18], 0
je 0x401358
mov ecx, esi
call fcn.00401220
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x401920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.004072b0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.004072b0
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x401a02
push esi
push edi
lea edx, [ebp - 0x664]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4019d9
mov ecx, dword [ebp - 0x660]
mov edx, dword [ebp - 0x65c]
push ecx
push edx
push 0x419614
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.0040787a
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4019f2
push 0x104
mov ecx, 0x420304
call fcn.00403520
push eax
lea ecx, [ebp - 0x20c]
push ecx
call edi
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x20c]
push eax
push ebx
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407299
mov esp, ebp
pop ebp
ret

Function at 0x401a20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push str.TBHInstall_Entering...
call fcn.00402fa0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004072b0
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00401920
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x624], esi
test esi, esi
je 0x401aa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401aa8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401b47
mov ecx, dword [ebp + 8]
push 0
mov dword [0x4202b8], ecx
call fcn.00401740
add esp, 4
lea ecx, [ebp - 0x620]
call fcn.004023c0
test ebx, ebx
je 0x401b11
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x401b11
lea eax, [edi + edi]
call fcn.00407330
mov esi, esp
test esi, esi
je 0x401b0b
push edi
push esi
push 0xffffffffffffffff
xor edx, edx
push ebx
push edx
push 3
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov esi, dword [ebp - 0x624]
jmp 0x401b13
mov esi, dword [ebp - 0x624]
xor eax, eax
push eax
lea ecx, [ebp - 0x620]
call fcn.00402580
call fcn.00401380
test esi, esi
je 0x401b2f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.TBHInstall_Leaving...
call fcn.00402fa0
add esp, 4
lea ecx, [ebp - 0x620]
call fcn.00402400
xor eax, eax
lea esp, [ebp - 0x630]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407299
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004072b0
push esi
push 0x419dbc
lea edx, [ebp - 0x20c]
push 0x103
push edx
call fcn.0040787a
add esp, 0x1c
lea eax, [ebp - 0x214]
push eax
push edi
lea ecx, [ebp - 0x210]
push ecx
push 0
lea edx, [ebp - 0x20c]
push edx
push SysReAllocString
mov dword [ebp - 0x210], 1
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.00407299
mov esp, ebp
pop ebp
ret
Function at 0x402410
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004072b0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call fcn.00408041
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 4
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x104
lea edx, [ebp - 0x20c]
push edx
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
add edi, 0x20c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push str.TBH.cab
push esi
call ebx
push str.InstallDll.cab
push edi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
push edi
call ebx
mov ecx, dword [0x4202b8]
push esi
push 0x419ebc
push 0x6b
push ecx
call fcn.00404d10
add esp, 0x10
test eax, eax
je 0x402518
mov edx, dword [0x4202b8]
push edi
push 0x419ebc
push 0x6a
push edx
call fcn.00404d10
add esp, 0x10
test eax, eax
je 0x402518
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407299
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00407299
mov esp, ebp
pop ebp
ret

Function at 0x402580
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
xor ebx, ebx
mov word [ebp - 0x20c], ax
call fcn.004072b0
add esp, 0xc
mov ecx, esi
call fcn.00402410
test eax, eax
je 0x4025d7
push edi
mov ecx, esi
call fcn.00402530
test eax, eax
je 0x4025d7
mov ebx, 1
lea edi, [esi + 4]
push 1
push edi
call fcn.00405720
push 1
add esi, 0x20c
push esi
call fcn.00405720
add esp, 0x10
push 0x104
push edi
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x402634
push eax
lea edx, [ebp - 0x20c]
push edx
call fcn.00405720
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00407299
mov esp, ebp
pop ebp
ret 4
Function at 0x402b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov dword [ebp - 0x418], eax
xor ebx, ebx
mov word [ebp - 0x414], cx
call fcn.004072b0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004072b0
add esp, 0x18
cmp dword [0x420518], ebx
jne 0x402b9d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407299
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea edx, [ebp - 0x414]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402c40
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.dllcache
lea ecx, [ebp - 0x20c]
push ecx
call esi
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 1
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x402c40
push edi
push esi
call fcn.00402a60
test eax, eax
je 0x402c39
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0x41c]
push edx
mov edx, dword [ebp - 0x418]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00407299
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402f20
Capabilities:
Check os version
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x402f80
cmp dword [ebp - 0x114], 6
jb 0x402f80
push 0x104
push esi
push 0x41a0e4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407299
mov esp, ebp
pop ebp
ret
push 0x104
push 0x41a0d4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00407299
mov esp, ebp
pop ebp
ret
Function at 0x402fa0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2104
call fcn.004089a0
mov eax, dword [0x41f19c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
call fcn.00402ef0
add esp, 4
test eax, eax
je 0x4031ff
push 0x41a140
push 0
mov ecx, 0x4206f8
call fcn.00405a90
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x4031ff
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4031f8
push 0x1ffe
push eax
lea ecx, [ebp - 0x2102]
push ecx
mov word [ebp - 0x2104], ax
call fcn.004072b0
add esp, 0xc
cmp byte [0x4205e0], 0
jne 0x403031
push 0x4205e0
call fcn.00402f20
add esp, 4
xor edx, edx
push 0xfe
push edx
lea eax, [ebp - 0x102]
push eax
mov word [ebp - 0x104], dx
call fcn.004072b0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00408979
push eax
push 0x41a138
lea edx, [ebp - 0x104]
push 0x80
push edx
call fcn.00408892
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x2104]
push 0x1000
push ecx
call fcn.00408208
xor edx, edx
push 0xfe
push edx
lea eax, [ebp - 0x102]
push eax
mov word [ebp - 0x104], dx
call fcn.004072b0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00408876
push eax
push 0x41a138
lea edx, [ebp - 0x104]
push 0x80
push edx
call fcn.00408892
add esp, 0x4c
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x2104]
push 0x1000
push ecx
call fcn.00408208
xor edx, edx
push 0xfe
push edx
lea eax, [ebp - 0x102]
push eax
mov word [ebp - 0x104], dx
call fcn.004072b0
add esp, 0x18
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x41a118
lea ecx, [ebp - 0x104]
push 0x80
push ecx
call fcn.00408892
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x2104]
push 0x1000
push eax
call fcn.00408208
lea eax, [ebp - 0x2104]
add esp, 0x24
lea edx, [eax + 2]
jmp 0x403150
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403150
sub eax, edx
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
sar eax, 1
mov ecx, 0x1000
push 0xffffffffffffffff
sub ecx, eax
push ecx
lea edx, [ebp + eax*2 - 0x2104]
push edx
call fcn.00408796
push 0x41a114
lea eax, [ebp - 0x2104]
push 0x1000
push eax
call fcn.00408208
push 0x41a110
push 0x4205e0
call fcn.00408520
mov esi, eax
add esp, 0x28
test esi, esi
je 0x4031f1
lea ecx, [ebp - 0x2104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4031c5
xor eax, eax
jmp 0x4031e1
lea edi, [eax + eax]
mov eax, edi
call fcn.00407330
mov eax, esp
push 3
push edi
lea edx, [ebp - 0x2104]
push edx
push eax
call fcn.00402680
push esi
push eax
call fcn.0040835e
push esi
call fcn.004082ea
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esp, [ebp - 0x2110]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407299
mov esp, ebp
pop ebp
ret
Function at 0x4034a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push edi
test ecx, ecx
je 0x40351a
mov edi, dword [ebp + 0x18]
push edi
call fcn.00403490
add esp, 4
cmp ecx, eax
jl 0x40351a
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov word [esi], ax
mov byte [ebp + 0x13], al
mov al, 0x40
add al, 0x40
mov byte [ebp + 0x13], al
nop
xor eax, eax
test edi, edi
jle 0x403510
mov dl, byte [ebp + 8]
push ebx
lea esp, [esp]
nop
nop
mov ecx, dword [ebp + 0x14]
mov cl, byte [eax + ecx]
xor cl, byte [ebp + 0x13]
nop
mov ebx, eax
and ebx, 3
mov bl, byte [ebx + 0x41a1e0]
add bl, dl
xor bl, cl
movzx ecx, bl
mov word [esi + eax*2], cx
nop
xor ecx, ecx
mov word [esi + eax*2 + 2], cx
inc eax
cmp eax, edi
jl 0x4034e0
pop ebx
nop
pop esi
mov eax, 1
pop edi
pop ebp
ret
xor eax, eax
pop edi
pop ebp
ret
Function at 0x4042e0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41719b
mov eax, dword fs:[0]
push eax
mov eax, 0x2744
call fcn.004089a0
mov eax, dword [0x41f19c]
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 eax, dword [0x41f014]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x274c], ebx
mov dword [ebp - 0x2748], eax
push ebx
lea ecx, [ebp - 0x2748]
push 0x41a2c0
push ecx
mov dword [ebp - 4], ebx
call fcn.004042c0
mov edx, dword [ebp - 0x2748]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4044b2
xor eax, eax
push ebx
mov dword [ebp - 0x2740], eax
mov dword [ebp - 0x273c], eax
mov dword [ebp - 0x2738], eax
mov dword [ebp - 0x2734], eax
mov dword [ebp - 0x2730], eax
lea eax, [ebp - 0x2750]
push eax
push 0x18
lea ecx, [ebp - 0x2744]
push ecx
push ebx
push ebx
push 0x70000
push esi
mov dword [ebp - 0x2744], ebx
mov dword [ebp - 0x2750], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x4044a3
mov edx, dword [ebp - 0x273c]
push edx
push 0x41a2b8
push edi
call fcn.004042c0
xor eax, eax
mov dword [ebp - 0x272c], eax
mov dword [ebp - 0x2728], eax
push 0x270f
mov dword [ebp - 0x2724], eax
lea eax, [ebp - 0x271f]
push ebx
push eax
mov dword [ebp - 0x272c], ebx
mov dword [ebp - 0x2728], ebx
mov byte [ebp - 0x2720], bl
call fcn.004072b0
add esp, 0x18
push ebx
lea ecx, [ebp - 0x2750]
push ecx
push 0x2710
lea edx, [ebp - 0x2720]
push edx
push 0xc
lea eax, [ebp - 0x272c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4044a3
mov eax, dword [ebp - 0x2710]
cmp eax, ebx
je 0x404447
lea ecx, [ebp + eax - 0x2720]
push ecx
lea ecx, [edi + 4]
call fcn.00403b00
mov eax, dword [ebp - 0x2708]
cmp eax, ebx
je 0x404461
lea edx, [ebp + eax - 0x2720]
push edx
lea ecx, [edi + 8]
call fcn.00403b00
mov eax, dword [ebp - 0x2714]
cmp eax, ebx
je 0x40447b
lea eax, [ebp + eax - 0x2720]
push eax
lea ecx, [edi + 0xc]
call fcn.00403b00
mov eax, dword [ebp - 0x270c]
cmp eax, ebx
je 0x404495
lea ecx, [ebp + eax - 0x2720]
push ecx
lea ecx, [edi + 0x10]
call fcn.00403b00
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4044b8
mov edi, dword [ebp - 0x274c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4044b8
mov edi, dword [ebp - 0x274c]
mov eax, dword [ebp - 0x2748]
lea edx, [eax - 0xc]
cmp edx, dword [0x41f010]
je 0x4044e0
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4044e0
push esi
call fcn.00407c23
add esp, 4
mov eax, edi
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.00407299
mov esp, ebp
pop ebp
ret
Function at 0x404d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
je 0x404d6a
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
jne 0x404d6a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404d33
sub eax, edx
sar eax, 1
je 0x404d6a
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp + 0x14], ebx
call fcn.00404c80
add esp, 0x14
test eax, eax
jne 0x404d72
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jbe 0x404deb
push ebx
push 0x20
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x14], eax
cmp eax, 0xffffffff
je 0x404deb
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
jmp 0x404da3
mov eax, dword [ebp + 0x14]
mov esi, 0x1000
cmp edi, 0x1000
ja 0x404db2
mov esi, edi
push 0
lea edx, [ebp - 8]
push edx
push esi
push ebx
push eax
sub edi, esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404de1
add ebx, esi
test edi, edi
jne 0x404da0
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406600
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
jne 0x406613
mov eax, 1
pop ebp
ret
xor edx, edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov word [eax + 0x1c], dx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
pop ebp
ret