joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4598b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x460bb8]
cmp dword [eax + 0x30], 0
je 0x459962
cmp dword [ebx + 0x94], 0
jne 0x45995c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x459848
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45995c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x459922
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45995c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413b44
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x459931
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a4c4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45a4f9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404088
jmp 0x45a506
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45b5f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45b639
mov eax, esi
call fcn.004417e0
test al, al
je 0x45b639
mov eax, dword [ebx + 0x84]
call fcn.004414dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45b639
push 0
mov eax, dword [ebx + 0x84]
call fcn.004414dc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401081
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x424628
push 0x67
push edi
call esi
push 0x64
push 0x424560
push 0x6d
push edi
call esi
mov eax, edi
call fcn.0040121a
push ebx
mov esi, 0x425130
push esi
call fcn.00408eb4
call fcn.00402fe2
push 0x41dc68
push esi
mov dword [0x423040], eax
call fcn.00408ed3
add esp, 0x10
test eax, eax
je 0x401107
call fcn.00401954
test eax, eax
je 0x401107
call fcn.004032aa
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.0040128b
pop ecx
test eax, eax
jne 0x401129
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408dc8
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.00408de0
mov ecx, dword [0x424d78]
add esp, 0xc
test ecx, ecx
jbe 0x401176
cmp word [0x424d7c], 0
jbe 0x401176
mov esi, 0x4235dc
call fcn.00402f7e
mov ax, word [0x424d7c]
mov word [0x4235ec], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov esi, 0x3e8
mov ecx, esi
div ecx
xor edx, edx
mov ebx, 0x425340
div ecx
push edx
push 0x41dc70
push ebx
call fcn.004029b2
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00402764
lea edi, [esp + 0x10]
call fcn.004029cd
push 0x41dc88
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00408f0a
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.00408f0a
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401205
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
xor eax, eax
push eax
push 0x41de3c
mov ecx, edi
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004024fb
jmp 0x4010fa
Function at 0x4018a3
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x41dd14
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004094d2
add esp, 0xc
test eax, eax
je 0x4018d0
xor eax, eax
jmp 0x401950
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.004095af
push dword [ebp - 4]
call fcn.004097d1
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.004095af
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.0040988e
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00409bf8
push dword [ebp - 4]
call fcn.00409c8c
push ebx
lea ebx, [edi + esi]
call fcn.00403238
push 0x41dd1c
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004094d2
add esp, 0x44
pop esi
test eax, eax
jne 0x4018c9
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00409e6a
push dword [ebp - 4]
call fcn.00409c8c
xor eax, eax
add esp, 0x14
inc eax
pop edi
pop ebx
leave
ret
Function at 0x40227a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x94], 0
push esi
push edi
push 7
xor eax, eax
mov esi, ecx
pop ecx
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
push 0x68
stosw word es:[edi], ax
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00408de0
push esi
lea eax, [ebp - 0x90]
push 0x20
push eax
call fcn.00409325
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
call fcn.00402f19
mov eax, esi
push eax
lea eax, [ebp - 0x4e]
push 0x10
push eax
call fcn.00409325
add esp, 0x24
xor eax, eax
not byte [ebp + eax - 0x90]
inc eax
cmp eax, 0x68
jb 0x4022eb
push 0x41dd1c
push ebx
call fcn.004094bb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40232d
push esi
xor edi, edi
push 0x68
inc edi
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.00409e6a
push esi
mov dword [ebp - 0x94], edi
call fcn.00409c8c
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x94]
pop edi
xor ecx, ebp
pop esi
call fcn.00408dc8
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40236a
push dword [ebp + 8]
call fcn.0040307e
pop ecx
cmp eax, dword [ebp + 0x10]
jne 0x40236a
inc ebx
jmp 0x4023da
mov edi, 0x200000
push edi
call fcn.0040988e
pop ecx
mov esi, eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea edi, [ebp - 4]
call fcn.004050f4
add esp, 0xc
test eax, eax
je 0x4023d3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00408f87
pop ecx
push 0x32
mov eax, 0xc8
call fcn.00402a27
mov edi, dword [ebp - 4]
pop ecx
push eax
lea ebx, [edi + esi]
mov dword [ebp + 0x10], eax
call fcn.00403238
add edi, dword [ebp + 0x10]
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.00408d0d
add esp, 0xc
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
push esi
call fcn.0040b61b
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x402828
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x430], eax
push eax
call fcn.0040852d
pop ecx
pop ecx
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x4029a3
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.00408de0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.00408de0
add esp, 0xc
lea edi, [ebp - 0x220]
call fcn.004029cd
push 0x41dc88
mov ebx, 0x104
mov eax, edi
push ebx
push eax
call fcn.00408f0a
mov byte [ebp - 0x18], 0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x424700
stosb byte es:[edi], al
mov edi, esi
cmp word [edi], 0
je 0x40292d
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00409325
add esp, 0xc
push edi
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00408f0a
lea eax, [ebp - 0x428]
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00404861
pop ecx
test eax, eax
je 0x40292d
push 0x14
lea eax, [edi + 0x104]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00409f9b
add esp, 0xc
test eax, eax
jne 0x40292d
mov word [edi], ax
add edi, 0x118
cmp edi, 0x424c78
jl 0x4028cf
cmp word [esi], 0
je 0x40295e
push dword [ebp + 0xc]
mov eax, dword [esi + 0x100]
push dword [ebp - 0x430]
mov ecx, esi
mov dword [0x4246f4], eax
call fcn.00408765
pop ecx
pop ecx
add esi, 0x118
cmp esi, 0x424c78
jl 0x40293b
push 0x425340
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00408f0a
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40299d
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408dc8
leave
ret

Function at 0x402add
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41de04
mov ebx, eax
push 0x83
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x402b4a
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.0040b8ce
push esi
mov edi, eax
push 0
push edi
call fcn.00408de0
push esi
push ebp
push edi
call fcn.00408fc0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret
Function at 0x402c71
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov esi, 0x288
push esi
stosw word es:[edi], ax
xor ebx, ebx
call fcn.0040988e
pop ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402ce2
push dword [ebp - 0x28]
call fcn.0040b61b
push dword [ebp - 0x30]
call fcn.0040988e
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x402d9d
mov dword [ebp - 0x34], edi
cmp edi, ebx
je 0x402d9d
jmp 0x402d07
mov edi, dword [ebp - 0x34]
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x38], 0
je 0x402d24
push 6
lea eax, [edi + 0x194]
push eax
push dword [ebp - 0x38]
call fcn.00408fc0
add esp, 0xc
lea esi, [edi + 0x1ac]
test esi, esi
je 0x402d8c
lea edi, [esi + 4]
push edi
call fcn.00409f10
cmp eax, 0x10
pop ecx
jle 0x402d40
push 0x10
pop eax
xor ecx, ecx
test eax, eax
jl 0x402d60
cmp ecx, eax
jne 0x402d51
xor edx, edx
mov word [ebp + ecx*2 - 0x24], dx
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x402d48
lea eax, [ebp - 0x24]
push eax
call fcn.00402e5d
pop ecx
test eax, eax
je 0x402d82
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
push 0x10
push dword [eax + ebx*4]
call fcn.00409325
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x402d2e
mov edi, dword [ebp - 0x34]
test ebx, ebx
jg 0x402d9d
mov edi, dword [edi]
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x402d04
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x40]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x402db4
push dword [ebp - 0x28]
call fcn.0040b61b
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00408dc8
leave
ret

Function at 0x402fe2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00408de0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403066
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x403050
test eax, eax
jne 0x40303f
cmp word [ebp + 0x94], 4
jb 0x403066
inc esi
cmp eax, 2
jne 0x403046
push eax
pop esi
jae 0x40304d
cmp eax, 1
jne 0x403066
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x403066
test eax, eax
jne 0x40305e
push 4
jmp 0x403065
cmp eax, 1
jne 0x403066
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408dc8
add ebp, 0xa0
leave
ret
Function at 0x40307e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push closesocket
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x4030ad
mov edx, esi
jmp 0x4030cc
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x4030c3
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4031a3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408de0
add esp, 0xc
cmp dword [0x423040], 3
lea eax, [ebp - 0x20c]
jne 0x403209
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc88
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408f0a
add esp, 0xc
pop esi
jmp 0x403215
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x41dca8
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00408dc8
leave
ret
Function at 0x4032aa
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x29c]
sub esp, 0x31c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x298], eax
push ebx
push esi
lea eax, [ebp + 0x194]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x41de6c
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.0040bf6b
add esp, 0xc
push esi
lea eax, [ebp + 0x90]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.0040bce3
lea eax, [ebp - 0x74]
push 0x5c
push eax
call fcn.0040bf20
add esp, 0x14
cmp eax, ebx
je 0x403328
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x4033f6
lea eax, [ebp + 0x90]
push edi
push eax
call fcn.00409f10
mov esi, eax
mov edi, 0x4235f0
imul esi, esi, 3
push edi
call fcn.00409f10
add esi, eax
lea eax, [ebp + 0x194]
push eax
call fcn.00409f10
lea eax, [eax + esi + 0x32]
push eax
mov dword [ebp - 0x78], eax
call fcn.0040b8ce
push dword [ebp - 0x78]
mov esi, eax
push ebx
push esi
call fcn.00408de0
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x90]
push eax
push eax
push edi
push dword [ebp - 0x78]
push esi
call fcn.0040bf4d
add esp, 0x38
push ebx
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.00409f10
pop ecx
push eax
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x194]
push eax
push 0x41de78
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
cmp esi, ebx
je 0x4033f6
push esi
call fcn.0040b6a9
pop ecx
mov ecx, dword [ebp + 0x298]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408dc8
add ebp, 0x29c
leave
ret

Function at 0x40340d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
je 0x403456
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, ecx
pop edi
leave
ret
Function at 0x4035da
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x403683
mov ebx, 0xc00
push ebx
call fcn.0040b8ce
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403674
mov eax, dword [ebp - 4]
push 4
add eax, 0x38
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x403656
jg 0x40364a
cmp ecx, dword [ebp - 0x18]
jbe 0x403656
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x90
dec ebx
jne 0x403639
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.00417410
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x403683
push dword [ebp - 4]
call fcn.0040b6a9
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40377b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408de0
and dword [ebp - 0x214], 0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
call fcn.004034ed
push dword [ebp - 0x214]
call fcn.0040345b
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4037f3
xor eax, eax
jmp 0x4037fc
push esi
push eax
call fcn.004036ab
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408dc8
leave
ret

Function at 0x4046cd
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x404861
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.004156a0
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x41dd14
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.004094d2
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x4048bf
push 0x14
push edi
push esi
call fcn.00408de0
add esp, 0xc
xor eax, eax
jmp 0x40495a
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.004095af
push dword [ebp - 0x18]
call fcn.004097d1
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.004095af
lea eax, [ebp - 0x80]
call fcn.004046cd
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00409bf8
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x40492e
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.004046f8
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00409bf8
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x404905
xor edi, edi
push dword [ebp - 0x20]
lea esi, [ebp - 0x80]
call fcn.00404791
push dword [ebp - 0x18]
call fcn.00409c8c
mov eax, dword [ebp - 0x24]
pop ecx
pop ecx
pop ebx
cmp dword [ebp - 0x1c], eax
jae 0x404957
push 0x14
push edi
push dword [ebp - 0x20]
jmp 0x4048b0
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.00408dc8
add ebp, 0xff0
leave
ret