joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41254e
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00401293
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x44
push eax
push esi
push esi
push 0x410
push 1
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x28], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4125b6
mov eax, dword [ebp - 0x10]
inc esi
mov dword [0x41e55c], eax
mov ecx, dword [ebp + 8]
call fcn.00406f1d
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x412657
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 0x18], ebx
jmp 0x412759
mov eax, dword [ebp - 4]
test eax, eax
je 0x412793
inc eax
push eax
call fcn.00401000
and dword [ebp - 8], 0
mov esi, eax
pop ecx
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0x14], esi
push eax
push dword [ebp - 4]
push esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412775
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x20]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [eax + esi], bl
push dword [ebp - 8]
push esi
call fcn.00403fc7
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
mov esi, edi
shl esi, 2
push esi
call fcn.00401000
push esi
mov ebx, eax
push 0
push ebx
call fcn.00401293
mov esi, dword [ebp - 0x14]
add esp, 0x10
push edi
push ebx
push 0xffffffffffffffff
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call fcn.00401014
pop ecx
push ebx
lea ecx, [ebp - 0xc]
call fcn.0040460a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403f58
lea ecx, [ebp - 0x10]
call fcn.004040c4
mov ebx, dword [ebp - 0x18]
push ecx
mov ecx, esp
mov eax, dword [ebx]
mov esi, dword [eax + 4]
lea eax, [ebp - 0xc]
push eax
call fcn.00404656
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x10]
call fcn.00406f1d
mov ecx, dword [ebp - 0xc]
call fcn.00406f1d
and dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x412754
call fcn.00406f66
xor ecx, ecx
mov dword [ebp - 0x20], ecx
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push ecx
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x41266c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x41278e
cmp ecx, 0xe8
sete al
dec eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
inc eax
jmp 0x41278e
Function at 0x412798
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x14]
cmp dword [edi], 0
je 0x4127e4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x18]
je 0x4127dd
cmp dword [esi + 0x10], 0
je 0x412808
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4127dd
push 0xfffffffffffffffe
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, edi
call fcn.00412a13
lea ecx, [esi + 0x10]
call fcn.00412a13
lea ecx, [esi + 4]
call fcn.00412a13
lea ecx, [esi + 0xc]
call fcn.00412a13
lea ecx, [esi + 8]
call fcn.00412a13
and dword [esi + 0x18], 0
pop edi
pop esi
pop ebx
ret
Function at 0x412c20
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
push esi
push edi
push 6
xor eax, eax
mov edi, edx
inc eax
mov esi, ecx
push eax
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
push esi
mov ebx, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
movsx ecx, word [eax + 0xa]
push ecx
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 0xc]
push dword [ecx]
push eax
call fcn.0040126d
add esp, 0xc
push 2
pop eax
push edi
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, 0x802
mov word [ebp - 0xe], ax
push esi
lea eax, [ebp - 0x818]
push 0
push eax
call fcn.00401293
add esp, 0xc
lea eax, [ebp - 0x818]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_InetNtopW]
cmp byte [0x41e695], 0
jne 0x412cce
xor esi, esi
inc esi
push 0x10
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
movzx ecx, byte [0x41e695]
cmp eax, 0xffffffff
cmovne ecx, esi
mov byte [0x41e695], cl
test cl, cl
je 0x412caa
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x412f38
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x41e8c4]
push ebx
push esi
push edi
push 0x2000
mov edi, edx
mov dword [ebp - 4], eax
call fcn.00401000
mov esi, dword [ebp + 8]
mov ebx, eax
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebx], ecx
lea ecx, [ebx + 8]
push ecx
mov dword [ebx + 4], esi
call fcn.0040126d
add esp, 0x10
lea eax, [esi + 8]
push 0
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_send]
push ebx
call fcn.00401014
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412f8a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41e8c4]
push ebx
push esi
push edi
mov esi, 0x2000
mov dword [ebp - 8], eax
push esi
call fcn.00401000
push esi
mov ebx, eax
call fcn.00401000
mov esi, dword [ebp + 8]
mov edi, esi
pop ecx
pop ecx
mov ecx, eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
jmp 0x412fc6
mov ecx, dword [ebp - 4]
push 0
push 8
pop eax
sub eax, edi
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 8], eax
test eax, eax
je 0x41305a
cmp eax, 0xffffffff
je 0x41305a
push eax
push dword [ebp - 4]
lea ecx, [edi + ebx]
push ecx
call fcn.0040126d
add edi, dword [ebp + 8]
add esp, 0xc
cmp edi, 8
jl 0x412fc3
mov eax, dword [ebx]
xor edi, edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x413044
push 0
sub eax, edi
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp + 8], eax
test eax, eax
je 0x41305a
cmp eax, 0xffffffff
je 0x41305a
push eax
push dword [ebp - 4]
lea ecx, [edi + ebx]
push ecx
call fcn.0040126d
add edi, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp edi, eax
jl 0x41300d
mov ecx, dword [ebp - 0x10]
push dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
call fcn.00401014
pop ecx
jmp 0x413061
mov byte [0x41e695], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x413068
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
push edi
push 6
push 1
push 0x17
pop edi
push edi
mov bx, dx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov word [ebp - 0x20], di
lea ecx, [ebp - 0x20]
lea edi, [ebp - 0x18]
mov dword [ebp - 4], eax
movsd dword es:[edi], dword [esi]
push 0x1c
push ecx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x1e], bx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4130d6
mov esi, 0x802
lea eax, [ebp - 0x824]
push esi
push 0
push eax
call fcn.00401293
add esp, 0xc
lea eax, [ebp - 0x824]
push esi
push eax
lea eax, [ebp - 0x18]
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_InetNtopW]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4130de
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [ecx]
push ebx
push esi
push edi
push 6
push 1
push 2
pop ebx
push ebx
mov si, dx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov edi, eax
push 0x10
lea eax, [ebp - 0x14]
mov word [ebp - 0x14], bx
push eax
push edi
mov dword [ebp - 0x10], ecx
mov word [ebp - 0x12], si
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x41314c
mov esi, 0x802
lea eax, [ebp - 0x818]
push esi
push 0
push eax
call fcn.00401293
add esp, 0xc
lea eax, [ebp - 0x818]
push esi
push eax
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_InetNtopW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413153
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push pe_nt_image_headers32
mov ebx, edx
mov edi, ecx
call fcn.00401000
mov esi, eax
pop ecx
test esi, esi
je 0x413194
test edi, edi
je 0x413194
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
mov dword [esi + 0x104], ebx
push eax
push eax
push esi
push 0x412bca
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
jmp 0x41319d
push esi
call fcn.00401014
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x41337b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 2
push 0
push dword [ecx]
mov edi, edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4133f5
push 0x10
xor ebx, ebx
inc ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4133f5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4133f5
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x28]
mov dword [edi], ecx
mov cx, word [eax + 0x1a]
mov word [edi + 4], cx
mov cx, word [eax + 0x18]
mov eax, edx
and eax, ebx
mov word [edi + 6], cx
mov dword [edi + 8], eax
mov ecx, edx
mov eax, edx
shr ecx, 3
shr eax, 1
and ecx, ebx
shr edx, 5
and eax, ebx
and edx, ebx
mov dword [edi + 0xc], eax
push esi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
jmp 0x4133f7
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4134a0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push 3
push edi
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x413512
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x41c2e0
push 0x17
push edi
push 0x419380
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x413512
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push edi
push edi
push 0x80
push edi
push edi
push edi
mov dword [ebp - 0x10], edi
mov eax, dword [ecx]
push str.rootCIMV2
push ecx
call dword [eax + 0xc]
test eax, eax
jns 0x413524
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x419490
mov ecx, esi
call fcn.0040460a
mov eax, esi
pop edi
pop esi
leave
ret
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
push edx
push edi
push 0x20
push str.SELECT_Name_FROM_Win32_VideoController
mov dword [ebp - 0xc], edi
mov eax, dword [ecx]
push 0x41c2d8
push ecx
call dword [eax + 0x50]
test eax, eax
jns 0x413553
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
jmp 0x41350c
mov dword [ebp - 8], edi
jmp 0x41358f
test eax, eax
js 0x4135a9
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x28]
push edi
push edi
push edx
mov eax, dword [ecx]
push edi
push str.Name
push ecx
call dword [eax + 0x10]
test eax, eax
js 0x413586
cmp word [ebp - 0x28], 8
je 0x4135c9
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 8]
push edx
mov eax, dword [ecx]
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp eax, 1
jne 0x413558
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x413520
push dword [ebp - 0x20]
jmp 0x413517

Function at 0x413915
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push esi
push edi
push 0x208
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00401293
add esp, 0xc
lea eax, [ebp - 0x208]
push 0
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
mov ecx, edi
push eax
call fcn.0040460a
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x413b7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
je 0x413b92
lea ecx, [ebx + 0xc]
call fcn.00414047
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
call fcn.00406f77
push dword [ebp + 0x10]
mov esi, eax
push 0
push 0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
call fcn.00403fc7
mov ecx, esi
call fcn.00406f66
cmp dword [ebx], 0
je 0x413be7
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x413c34
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x18], eax
mov ecx, 0x419490
mov eax, 0x414
mov dword [ebp - 0x20], edx
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push esi
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xe], edx
mov dword [ebp - 0xa], edx
mov dword [ebp - 6], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp + 8]
neg eax
sbb esi, esi
call fcn.00406f1d
lea eax, [esi + 1]
pop esi
leave
ret
Function at 0x413c83
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push ebx
push esi
push edi
push 5
mov edi, ecx
xor ebx, ebx
pop eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
call fcn.00401bbd
lea eax, [ebp - 0x284]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x413d82
mov edi, eax
test byte [ebp - 0x284], 0x10
mov dword [ebp - 0x24], ebx
je 0x413ce2
xorps xmm0, xmm0
mov dword [ebp - 0x14], 1
movlpd qword [ebp - 0x1c], xmm0
jmp 0x413cf7
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 8]
call fcn.0040460a
push eax
lea ecx, [ebp - 0x24]
call fcn.004043c7
mov ecx, dword [ebp - 8]
call fcn.00406f1d
sub esp, 0x18
mov dword [ebp - 8], ebx
mov esi, esp
mov dword [esi], ebx
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x413d45
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
push ebx
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
call fcn.00401abc
mov ecx, ebx
call fcn.00406f1d
lea eax, [ebp - 0x284]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
pop ebx
test eax, eax
jne 0x413cc5
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.0040153f
lea ecx, [ebp - 0x34]
call fcn.00401586
mov ecx, dword [ebp + 8]
call fcn.00406f1d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413da4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov ecx, 0x208
push edi
call fcn.00406fa7
mov esi, eax
lea ecx, [ebp - 0x2c]
push 5
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x24], eax
call fcn.00401a34
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
push 0x104
call ebx
mov edi, eax
cmp edi, 0x104
jbe 0x413e12
mov ecx, esi
call fcn.00406f8d
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.00406fa7
mov esi, eax
mov dword [ebp - 0xc], eax
push esi
push edi
call ebx
xor eax, eax
mov ebx, esi
cmp word [esi], ax
je 0x413ebe
xor esi, esi
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 0x1c], esi
call fcn.0040460a
push eax
lea ecx, [ebp - 0x1c]
call fcn.004043c7
mov ecx, dword [ebp - 4]
call fcn.00406f1d
mov edi, dword [ebp - 0x1c]
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov ecx, esp
mov dword [ebp - 8], ecx
mov dword [ecx], esi
test edi, edi
je 0x413e82
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
mov ecx, dword [ebp - 8]
push edi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x2c]
call fcn.0040193f
test edi, edi
je 0x413ea0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x413ea2
mov eax, esi
lea ebx, [ebx + eax*2]
mov ecx, edi
add ebx, 2
call fcn.00406f1d
mov dword [ebp - 0x1c], esi
cmp word [ebx], si
jne 0x413e21
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.00406f8d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.004014dd
lea ecx, [ebp - 0x2c]
call fcn.00401524
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413ef9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
je 0x413f10
lea ecx, [edi + 0xc]
call fcn.00414047
push 2
push ebx
push ebx
push dword [edi + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [eax + 4]
push dword [eax]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [edi], 0
mov ebx, eax
je 0x413f46
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x413f4f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 3
push edi
push 1
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x413f83
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
jmp 0x413f88
mov dword [esi + 8], edi
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x41411e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, 0x5a4d
mov dword [esi + 0x20], edi
cmp word [edi], ax
jne 0x41421e
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x41421e
movzx ecx, word [eax + 4]
mov edx, 0x14c
cmp cx, dx
jne 0x4141b7
mov dword [esi + 0x40], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x24], eax
push dword [eax + 0x54]
push edi
call fcn.00403fc7
mov ecx, dword [esi + 0x24]
and dword [ebp + 8], 0
movzx eax, word [ecx + 0x14]
lea ebx, [ecx + 0x18]
add ebx, eax
xor eax, eax
cmp ax, word [ecx + 6]
jae 0x414216
sub esp, 0x30
mov ecx, esp
push ecx
push ebx
push edi
call fcn.00414894
lea ecx, [esi + 0x2c]
call fcn.00402b7b
mov eax, dword [esi + 0x24]
add ebx, 0x28
mov ecx, dword [ebp + 8]
inc ecx
mov dword [ebp + 8], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x41418b
jmp 0x414216
mov edx, 0x8664
cmp cx, dx
jne 0x414216
xor ebx, ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x40], ebx
lea ecx, [esi + 0x18]
push dword [eax + 0x54]
push edi
call fcn.00403fc7
mov ecx, dword [esi + 0x28]
xor edx, edx
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
mov dword [ebp + 8], eax
cmp dx, word [ecx + 6]
jae 0x414216
sub esp, 0x30
mov ecx, esp
push ecx
push eax
push edi
call fcn.00414894
lea ecx, [esi + 0x2c]
call fcn.00402b7b
mov ecx, dword [esi + 0x28]
inc ebx
mov eax, dword [ebp + 8]
add eax, 0x28
mov dword [ebp + 8], eax
movzx ecx, word [ecx + 6]
cmp ebx, ecx
jl 0x4141ec
xor eax, eax
inc eax
mov dword [esi + 0x3c], eax
jmp 0x414220
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4143f4
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
push edi
mov edi, dword [eax + 0xc]
add edi, 0x14
mov esi, dword [edi]
jmp 0x414414
mov ecx, dword [esi + 0x28]
call fcn.004144b6
test eax, eax
je 0x41441d
mov esi, dword [esi]
cmp esi, edi
jne 0x414406
xor eax, eax
pop edi
pop esi
ret
mov eax, dword [esi + 0x10]
jmp 0x41441a

Function at 0x414498
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4144b3
mov edx, dword [ecx + 0x3c]
xor eax, eax
add edx, ecx
cmp dword [edx], 0x4550
cmove eax, edx
ret
xor eax, eax
ret