joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68c870
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x68c8c1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x68c8a8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x68c898
jmp 0x68c8c1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x68c8a9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6a16d8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x6a1706
mov eax, ebx
call fcn.006a2194
cmp dword [ebx + 0x40], 0
je 0x6a16ff
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x6a1777
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x6a1769
cmp dword [ebx + 8], 0
je 0x6a1728
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x6a173a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x6a1769
cmp dword [ebx + 8], 0
je 0x6a171b
cmp eax, 3
je 0x6a174d
dec eax
jne 0x6a171b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x6a171b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x6a171b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x6a1795
cmp dword [ebx + 0x14], 0xcc
je 0x6a1795
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.006a17a0
pop ebx
ret

Function at 0x6b809c
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6b81ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x3e8
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.0040b840
lea eax, [ebp - 0x14]
mov edx, 0x6b81c8
call fcn.0040ba2c
mov eax, dword [ebp - 0x14]
call fcn.0040b81c
push eax
call sub.KERNEL32.DLL_GetDriveTypeW
cmp eax, 3
je 0x6b8122
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.0040b840
lea eax, [ebp - 0x18]
mov edx, 0x6b81c8
call fcn.0040ba2c
mov eax, dword [ebp - 0x18]
call fcn.0040b81c
push eax
call sub.KERNEL32.DLL_GetDriveTypeW
cmp eax, 2
je 0x6b8122
mov esi, 0x3e8
jmp 0x6b8192
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x6b81d8
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.0040b840
push dword [ebp - 0x20]
push 0x6b81c8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040bb0c
mov eax, dword [ebp - 0x1c]
call fcn.0040b81c
push eax
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x6b8192
push 0
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x2d1080
push ebx
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
je 0x6b8192
mov esi, dword [ebp - 0xc]
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b81b4
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040ad3c
ret
Function at 0x6b8494
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x6b850a
push dword fs:[eax]
mov dword fs:[eax], esp
mov bx, 0x44
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040b840
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x6b8524
call fcn.0040ba84
mov eax, dword [ebp - 4]
call fcn.0040b81c
push eax
call sub.KERNEL32.DLL_GetDriveTypeW
dec eax
jne 0x6b84e8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040b0bc
jmp 0x6b84ef
inc ebx
cmp bx, 0x5b
jne 0x6b84b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6b8511
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040ad3c
ret
Function at 0x6bac24
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6bad11
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6bad30
push ebx
push 0x6bad40
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040bb0c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040801c
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], di
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.004280e0
mov eax, dword [ebp - 0x5c]
call fcn.0040b81c
push eax
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040b81c
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x6bacf3
jmp 0x6bacd2
mov eax, dword [0x71fe00]
mov eax, dword [eax]
call fcn.0062bd30
push 0x32
mov eax, dword [ebp - 0x58]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
jne 0x6bacc6
mov eax, dword [ebp - 0x58]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6bad18
lea eax, [ebp - 0x5c]
call fcn.0040acdc
lea eax, [ebp - 4]
call fcn.0040acdc
ret

Function at 0x6bad48
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040adc0
lea esi, [ebp - 0x40]
xor eax, eax
push ebp
push 0x6bae12
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.0040801c
mov dword [esi], 0x3c
mov dword [esi + 4], 0x140
call sub.user32.dll_GetActiveWindow
mov dword [esi + 8], eax
mov eax, 0x6bae20
mov dword [esi + 0xc], eax
mov eax, 0x6bae2c
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 4]
mov edx, 0x6bae48
call fcn.0040ba84
mov eax, dword [ebp - 0x44]
call fcn.0040b81c
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x1c], eax
push esi
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x6badf4
mov ebx, dword [esi + 0x38]
jmp 0x6baddf
mov eax, dword [0x71fe00]
mov eax, dword [eax]
call fcn.0062bd30
push 0x32
mov eax, dword [esi + 0x38]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
jne 0x6badd3
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6bae19
lea eax, [ebp - 0x44]
call fcn.0040acdc
lea eax, [ebp - 4]
call fcn.0040acdc
ret
Function at 0x6d2aec
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff998
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x668], ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x6d2c7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x668]
mov eax, dword [0x71fe00]
mov eax, dword [eax]
call fcn.0062c874
mov eax, dword [ebp - 0x668]
lea edx, [ebp - 4]
call fcn.00428250
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040b81c
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x6d2c53
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, esi
call fcn.0040b81c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x6d2b8c
call fcn.0040a4cc
jmp 0x6d2c5a
cmp ebx, dword [ebp - 0x10]
jne 0x6d2b9b
call fcn.0040a4cc
jmp 0x6d2c5a
xor eax, eax
push ebp
push 0x6d2c35
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, edi
lea eax, [ebp - 0x664]
call fcn.00407da8
call fcn.00407088
mov edx, 1
lea eax, [ebp - 0x664]
call fcn.004081d0
call fcn.00407088
lea eax, [ebp - 0x14]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
push 0
lea edx, [ebp - 0x414]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x664]
call fcn.00407fa4
call fcn.00407088
cmp dword [ebp - 0x14], 0
jne 0x6d2bd0
lea eax, [ebp - 0x664]
call fcn.00407fc4
call fcn.00407088
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6d2c3c
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6d2c82
lea eax, [ebp - 0x668]
call fcn.0040acdc
lea eax, [ebp - 4]
call fcn.0040acdc
ret

Function at 0x6d3270
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6d3341
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x1c]
movzx edx, bl
add dx, 0x30
call fcn.0040b840
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x6d3360
call fcn.0040ba84
mov eax, dword [ebp - 0x18]
call fcn.0040b81c
push eax
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x6d3326
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x7405c
push ebx
call sub.KERNEL32.DLL_DeviceIoControl
test eax, eax
je 0x6d3320
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6d3348
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040ad3c
ret
Function at 0x6d34b4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test esi, esi
js 0x6d34d6
mov edi, dword [ebx + esi*4]
dec esi
push edi
jns 0x6d34cf
mov dword [ebp + 0xc], esp
mov ebx, ecx
test ebx, ebx
js 0x6d34e6
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x6d34df
mov edx, esp
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x4012c8]
call fcn.0040c720
mov ecx, dword [ebp + 8]
inc ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [0x4012c8]
call fcn.0040c720
xor eax, eax
push ebp
push 0x6d35d5
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.006d3384
lea ecx, [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.006d3384
mov dword [ebp - 0x2e], ebx
mov dword [ebp - 0x2a], 2
mov eax, dword [ebp - 8]
mov dword [ebp - 0x26], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x22], eax
mov word [ebp - 0x1e], 0x115
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2e]
push eax
call sub.shell32.dll_SHFileOperationW
mov ebx, eax
lea eax, [ebp - 8]
mov edx, dword [0x6b8070]
call fcn.0040da48
lea eax, [ebp - 0xc]
mov edx, dword [0x6b8070]
call fcn.0040da48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6d35dc
lea eax, [ebp - 0xc]
mov edx, dword [0x6b8070]
mov ecx, 2
call fcn.0040c438
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
inc ecx
mov edx, dword [0x4012c8]
call fcn.0040c438
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
inc ecx
mov edx, dword [0x4012c8]
call fcn.0040c438
ret
Function at 0x4019f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4064a8
push 0x405898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40a618], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40a614], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40a610], ecx
shr eax, 0x10
mov dword [0x40a60c], eax
call fcn.00404100
test eax, eax
jne 0x401a5a
push 0x1c
call fcn.00402120
add esp, 4
mov dword [ebp - 4], 0
call fcn.004023c0
call fcn.00404e90
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40a9d0], eax
call fcn.00401fc0
mov dword [0x40a5f4], eax
test eax, eax
je 0x401a8d
mov eax, dword [0x40a9d0]
test eax, eax
jne 0x401a97
push 0xffffffffffffffff
call fcn.00401b90
add esp, 4
call fcn.00401950
call fcn.00405190
call fcn.00405150
mov esi, dword [0x40a9d0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401b76
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401ade
test al, al
je 0x401ade
and eax, 0xff
push eax
call fcn.00404140
add esp, 4
test eax, eax
je 0x401ab8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401ab8
cmp byte [esi], 0x22
jne 0x401ae7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401af7
cmp al, 0x20
ja 0x401af7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401ae7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401b18
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401b1d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401b90
jmp 0x401b5b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401ae7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401b76
Function at 0x401fc0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40a758]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402002
call edi
mov esi, eax
test esi, esi
je 0x401fec
mov eax, 1
jmp 0x401ffd
call ebp
mov ebx, eax
test ebx, ebx
je 0x40210f
mov eax, 2
mov dword [0x40a758], eax
cmp eax, 1
jne 0x4020a2
test esi, esi
jne 0x40201b
call edi
mov esi, eax
test esi, esi
je 0x40210f
cmp word [esi], 0
mov eax, esi
je 0x402035
add eax, 2
cmp word [eax], 0
jne 0x402023
add eax, 2
cmp word [eax], 0
jne 0x402023
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402094
push edi
call fcn.00403b40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402094
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402086
push ebx
call fcn.00403b60
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40210f
test ebx, ebx
jne 0x4020b3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40210f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4020cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4020bb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4020bb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403b40
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4020ed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4021e0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x407558
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402204
add eax, 8
inc ebp
cmp eax, 0x4075e8
jb 0x4021f5
cmp ecx, dword [ebp*8 + 0x407558]
jne 0x4023ab
mov eax, dword [0x40a5fc]
cmp eax, 1
je 0x40236d
test eax, eax
jne 0x402230
cmp dword [0x4073b4], 1
je 0x40236d
cmp ecx, 0xfc
je 0x4023ab
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40226b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4022b4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x406788
add ebx, ecx
push ebx
call fcn.00405970
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406768
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40755c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403e40
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40a8c0]
test eax, eax
je 0x40237e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402388
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40755c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x405350
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40a648]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40536f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40a644], 1
mov byte [0x40a640], bl
jne 0x4053c9
mov ecx, dword [0x40a9c8]
test ecx, ecx
je 0x4053b7
mov esi, dword [0x40a9c4]
sub esi, 4
cmp esi, ecx
jb 0x4053b7
mov eax, dword [esi]
test eax, eax
je 0x4053b0
call eax
mov ecx, dword [0x40a9c8]
sub esi, 4
cmp esi, ecx
jae 0x4053a2
push 0x407014
push 0x407010
call fcn.00405400
add esp, 8
push 0x40701c
push 0x407018
call fcn.00405400
add esp, 8
test ebx, ebx
jne 0x4053f0
push ebp
mov dword [0x40a648], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4031d4
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
call fcn.004031a0
push str.LocalFastMM_PID________
push 0
push 4
call sub.KERNEL32.DLL_OpenFileMappingA
mov ebx, eax
test ebx, ebx
jne 0x4031f4
xor eax, eax
pop esi
pop ebx
ret
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.DLL_MapViewOfFile
mov esi, dword [eax]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
pop esi
pop ebx
ret

Function at 0x403280
Capabilities:
Read file via mapping

Disassembly:
push ebx
call fcn.00402870
test eax, eax
jne 0x4032dd
cmp dword [0x412408], 0
jne 0x4032dd
call fcn.004031d4
test eax, eax
jne 0x4032d9
push str.LocalFastMM_PID________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
push 0
push 0
push 0
mov ebx, eax
push 2
push ebx
mov dword [0x412408], ebx
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [eax], fcn.00403896
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
mov eax, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x404b54
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [0xa345c635], al
and al, 0xc6
inc ebp
movsb byte es:[edi], byte [esi]
and al, dh
inc ebp
movsd dword es:[edi], dword [esi]
invalid
invalid
inc ebp
Function at 0x4089b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4089e5
jmp 0x408a1c
call fcn.00408968
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004045ec
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004045ec
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x408a88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40f0bc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x408b62
cmp dword [0x40f0b8], 0
jne 0x408b62
cmp dword [0x40f2a0], 0
je 0x408b1c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00408868
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408b02
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00408868
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408b02
lea ebx, [ebp - 0x84]
jmp 0x408b03
inc ebx
call fcn.00408a40
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x408b9d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40f0c0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004045ec
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40f0c3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x408b9d
cmp dword [0x40f0b8], 0
je 0x408b7c
cmp dword [0x40f0b8], 0xffffffff
je 0x408b9d
push esi
call dword [0x40f0b8]
pop ecx
mov eax, dword [0x40f0bc]
test eax, eax
je 0x408b9d
cmp dword [0x40f0bc], 0xffffffff
je 0x408b9d
cmp byte [eax], 0
je 0x408b9d
push esi
push eax
call fcn.004089b8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret