joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415b59
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x419d58
call fcn.0040c958
mov eax, dword [0x41c390]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x415bfd
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0040aaf0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x415bea
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x415bfd
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x415c18
cmp byte [edi + 1], 0x3a
jne 0x415c18
movzx eax, byte [edi]
push eax
call fcn.00415fce
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x415c28
push edi
call fcn.004098e8
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.004098d0
call fcn.0040c993
ret

Function at 0x415d9d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x415dcb
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x415dd0
cmp eax, 1
je 0x415dd0
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x415dd4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41c390]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x415e4c
push ebx
call fcn.00415d9d
test eax, eax
pop ecx
jne 0x415e1b
call fcn.0040f77c
mov dword [eax], 0xf
call fcn.0040f773
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004098d0
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x415e5e
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x415e0e
inc eax
cmp eax, 0x104
ja 0x415e0e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x415e96
cmp eax, dword [ebp + 0x10]
jg 0x415e79
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040be42
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x415eab
call fcn.0040f773
mov dword [eax], 0xc
jmp 0x415e0e
cmp eax, dword [ebp + 0x10]
jle 0x415eab
call fcn.0040f773
mov dword [eax], 0x22
jmp 0x415e0e
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0040a9f0
pop ecx
pop ecx
jmp 0x415e10
Function at 0x402280
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x4051e6], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.immortable
push str.Odios
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4022c8
xor eax, eax
jmp 0x4022e3
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403750
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
call fcn.00403880
push 0x405004
push section..data
call fcn.00403850
add esp, 8
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x4037d1
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
test edx, edx
je 0x4037bb
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
je 0x4037bb
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
jmp 0x40379b
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x4037cf
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
jmp 0x4037e7
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x20
jle 0x4037e7
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
jmp 0x4037d1
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x403807
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x20
jg 0x403807
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x4037e7
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x403818
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x54], eax
jmp 0x40381f
mov dword [ebp - 0x54], 0xa
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call section..text
mov dword [ebp - 0x50], eax
call fcn.004038f0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4011f0
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f018
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x41407c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
push 0x1000
call fcn.00403a81
add esp, 4
mov dword [ebp - 0x3c], eax
push 0x1000
mov eax, dword [ebp - 0x3c]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00402530
mov dword [ebp - 4], 0
push 0x41220c
lea ecx, [ebp - 0x2c]
call fcn.00402660
lea ecx, [ebp - 0x2c]
call fcn.00402680
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0xffffffff
je 0x4012c2
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401294
mov ecx, dword [ebp - 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x30]
push edx
push str.count:_d_n
call fcn.00403b15
add esp, 8
cmp dword [ebp - 0x30], 0xa
jge 0x4012e2
push 1
call fcn.00403fa8
jmp 0x401303
mov dword [ebp - 0x184], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402640
mov eax, dword [ebp - 0x184]
jmp 0x401312
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004033bf
mov esp, ebp
pop ebp
ret
Function at 0x401330
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.00407bd0
add esp, 0xc
push 0x3c
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00407bd0
add esp, 0xc
mov edx, dword [ebp + 0x24]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00407bd0
add esp, 0xc
mov ecx, dword [ebp + 0x24]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.00407bd0
add esp, 0xc
mov eax, dword [ebp + 0x24]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00407bd0
add esp, 0xc
mov edx, dword [ebp + 0x24]
push edx
push 0
mov eax, dword [ebp + 0x18]
push eax
call fcn.00407bd0
add esp, 0xc
mov ecx, dword [ebp + 0x24]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
push edx
call fcn.00407bd0
add esp, 0xc
mov eax, dword [ebp + 0x24]
push eax
push 0
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.00407bd0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov edx, dword [ebp + 0x24]
sub edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x24]
sub eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x24]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x24]
sub edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x24]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x24]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x401451
mov eax, dword [ebp - 0x40]
jmp 0x401454
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret
Function at 0x401920
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1240
call fcn.0040a4d0
mov eax, dword [0x41407c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1024], str.vmware.exe
mov dword [ebp - 0x1020], str.vboxservice.exe
mov dword [ebp - 0x101c], str.vboxtray.exe
mov dword [ebp - 0x1018], str.vmtoolsd.exe
mov dword [ebp - 0x1014], str.vmwaretray.exe
lea eax, [ebp - 4]
push eax
push 0x1000
lea ecx, [ebp - 0x1010]
push ecx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x40198a
xor eax, eax
jmp 0x401aed
mov edx, dword [ebp - 4]
shr edx, 2
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
jmp 0x4019a5
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jae 0x401aeb
mov edx, dword [ebp - 8]
cmp dword [ebp + edx*4 - 0x1010], 0
je 0x401ae6
mov eax, dword [str._unknown_]
mov dword [ebp - 0x1230], eax
mov ecx, dword [0x4122cc]
mov dword [ebp - 0x122c], ecx
mov edx, dword [0x4122d0]
mov dword [ebp - 0x1228], edx
mov eax, dword [0x4122d4]
mov dword [ebp - 0x1224], eax
mov ecx, dword [0x4122d8]
mov dword [ebp - 0x1220], ecx
push 0x1f4
push 0
lea edx, [ebp - 0x121c]
push edx
call fcn.00407bd0
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + eax*4 - 0x1010]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1234], eax
cmp dword [ebp - 0x1234], 0
je 0x401ae6
lea edx, [ebp - 0x1238]
push edx
push 4
lea eax, [ebp - 0x123c]
push eax
mov ecx, dword [ebp - 0x1234]
push ecx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x401a7e
push 0x104
lea edx, [ebp - 0x1230]
push edx
mov eax, dword [ebp - 0x123c]
push eax
mov ecx, dword [ebp - 0x1234]
push ecx
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
mov dword [ebp - 0x1240], 0
jmp 0x401a99
mov edx, dword [ebp - 0x1240]
add edx, 1
mov dword [ebp - 0x1240], edx
cmp dword [ebp - 0x1240], 5
jae 0x401ad9
lea eax, [ebp - 0x1230]
push eax
mov ecx, dword [ebp - 0x1240]
mov edx, dword [ebp + ecx*4 - 0x1024]
push edx
call fcn.00403558
add esp, 8
test eax, eax
jne 0x401ad7
mov eax, dword [ebp - 0x1234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x401aed
jmp 0x401a8a
mov ecx, dword [ebp - 0x1234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40199c
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004033bf
mov esp, ebp
pop ebp
ret

Function at 0x401ca0
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401cb9
mov eax, 1
jmp 0x401cbb
xor eax, eax
pop ebp
ret
Function at 0x4033bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41407c]
jne 0x4033c9
repz ret
jmp fcn.0040427c

Function at 0x408a00
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41407c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404d9f
and dword [ebp - 0x14], 0
cmp dword [0x415e44], 0
mov dword [ebp - 0x18], eax
jne 0x408ab3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408b5b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408b5b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x415e44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x415e48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x415e4c], eax
call edi
push eax
call esi
mov dword [0x415e54], eax
test eax, eax
je 0x408ab3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x415e50], eax
mov eax, dword [0x415e50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408b0c
cmp dword [0x415e54], ecx
je 0x408b0c
push eax
call esi
push dword [0x415e54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408b0c
test ebx, ebx
je 0x408b0c
call edi
test eax, eax
je 0x408b03
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408b03
test byte [ebp - 8], 1
jne 0x408b0c
or dword [ebp + 0x10], 0x200000
jmp 0x408b3f
mov eax, dword [0x415e48]
cmp eax, dword [ebp - 0x18]
je 0x408b3f
push eax
call esi
test eax, eax
je 0x408b3f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408b3f
mov eax, dword [0x415e4c]
cmp eax, dword [ebp - 0x18]
je 0x408b3f
push eax
call esi
test eax, eax
je 0x408b3f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x415e44]
call esi
test eax, eax
je 0x408b5b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408b5d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004033bf
leave
ret
Function at 0x1060058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10601a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x106007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106006a
add dl, dl
jne 0x1060089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10600dc
xor eax, eax
add dl, dl
jne 0x1060096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106017d
add dl, dl
jne 0x10600a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10600b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10600bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10600c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10600d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1060075
mov eax, 1
add dl, dl
jne 0x10600ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10600f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10600e1
sub eax, ebx
mov ebx, 1
jne 0x1060128
mov ecx, 1
add dl, dl
jne 0x106010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1060119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1060105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1060075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x106013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x106014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1060136
cmp eax, 0x7d00
jae 0x106016d
cmp eax, 0x500
jb 0x1060168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1060075
cmp eax, 0x7f
ja 0x1060170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1060075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x106019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1060075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403000
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x4595d8]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x4595dc]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.00402ff0
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x4595e0]
mov edx, dword [0x4595e4]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea esp, [esp]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x460dcc]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x40308c
mov dword [0x460dc8], 0xedeb2e40
jmp 0x4030a7
cmp eax, 0x3eb
jne 0x4030a7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x460858], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x460dcc], 0x9e6
mov dword [0x460dc4], 0xf4ea3dee
jne 0x4030e0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
xor dword [ebp - 4], esi
cmp dword [0x460dcc], 0x213
jne 0x40315c
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
lea eax, [ebp - 0x4c4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [ebp - 0xcc4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x460dcc], 0xc
jne 0x403180
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov eax, ebx
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
lea ecx, [edi + ebx]
xor esi, ecx
cmp dword [0x460dcc], 0xb03
jne 0x4031bb
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
xor esi, dword [ebp - 4]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x403060
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4031f0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x460dcc]
mov ecx, dword [0x46085c]
shr eax, 3
test eax, eax
jbe 0x40327c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov edi, ecx
mov dword [ebp - 4], eax
lea ebx, [ebx]
cmp dword [0x460dcc], 0x959
jne 0x40326a
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
call esi
push 0
push 0
call esi
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
call fcn.00403000
add edi, 8
sub dword [ebp - 4], 1
jne 0x403220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a2d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458d68]
jne 0x40a2da
repz ret
jmp fcn.0040da01

Function at 0x40c272
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407813
and dword [ebp - 4], 0
cmp dword [0x45e854], 0
mov ebx, eax
jne 0x40c323
push 0x402410
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c3d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402404
push edi
call esi
test eax, eax
je 0x40c3d4
push eax
call fcn.004077a1
mov dword [esp], 0x4023f4
push edi
mov dword [0x45e854], eax
call esi
push eax
call fcn.004077a1
mov dword [esp], 0x4023e0
push edi
mov dword [0x45e858], eax
call esi
push eax
call fcn.004077a1
mov dword [esp], 0x4023c4
push edi
mov dword [0x45e85c], eax
call esi
push eax
call fcn.004077a1
pop ecx
mov dword [0x45e864], eax
test eax, eax
je 0x40c323
push 0x4023ac
push edi
call esi
push eax
call fcn.004077a1
pop ecx
mov dword [0x45e860], eax
mov eax, dword [0x45e860]
cmp eax, ebx
je 0x40c37b
cmp dword [0x45e864], ebx
je 0x40c37b
push eax
call fcn.0040781c
push dword [0x45e864]
mov esi, eax
call fcn.0040781c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c37b
test edi, edi
je 0x40c37b
call esi
test eax, eax
je 0x40c372
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c372
test byte [ebp - 0xc], 1
jne 0x40c37b
or dword [ebp + 0x10], 0x200000
jmp 0x40c3b4
mov eax, dword [0x45e858]
cmp eax, ebx
je 0x40c3b4
push eax
call fcn.0040781c
pop ecx
test eax, eax
je 0x40c3b4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c3b4
mov eax, dword [0x45e85c]
cmp eax, ebx
je 0x40c3b4
push eax
call fcn.0040781c
pop ecx
test eax, eax
je 0x40c3b4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e854]
call fcn.0040781c
pop ecx
test eax, eax
je 0x40c3d4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c3d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret