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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10032050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x10003080
xor eax, eax
jmp 0x10003147
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x100030a9
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x100030a9
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x10003147
cmp dword [esi + 0x4c], 0
je 0x10003145
mov ecx, esi
call fcn.10003a68
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100030d6
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1000a7b9
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x10003145
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x10003114
sub eax, 1
je 0x10003114
dec eax
sub eax, 1
jne 0x10003145
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x100030c8
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x10003137
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.1000b1fb
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x10003145
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x10003147
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006272
leave
ret 4

Function at 0x10003a8b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10032050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x10003ae2
cmp byte [esi + 0x3d], bl
je 0x10003ae2
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10003b1b
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x10003af3
sub eax, 1
je 0x10003af6
dec eax
sub eax, 1
jne 0x10003b1b
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006272
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003b13
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1000b1fb
add esp, 0x10
cmp edi, eax
jne 0x10003b1b
cmp byte [esi + 0x3d], bl
sete al
jmp 0x10003ae4
xor al, al
jmp 0x10003ae4

Function at 0x10013e9c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10013d12
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
test ecx, ecx
je 0x401077
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x22
jne 0x401050
cmp dword [ebp - 0xc], 0
jne 0x401041
mov dword [ebp - 0x10], 1
jmp 0x401048
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
jmp 0x40106c
cmp dword [ebp - 0xc], 0
jne 0x40106c
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x20
jne 0x40106c
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
jmp 0x401077
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
jmp 0x40101d
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x20
jne 0x40108d
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
jmp 0x401077
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 4]
movzx eax, word [edx + ecx]
cmp eax, 0x2d
jne 0x4010ee
mov ecx, 2
shl ecx, 0
mov edx, dword [ebp - 4]
movzx eax, word [edx + ecx]
cmp eax, 0x73
jne 0x4010ee
mov ecx, 2
shl ecx, 1
mov edx, dword [ebp - 4]
movzx eax, word [edx + ecx]
cmp eax, 0x20
jne 0x4010ee
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x20
jne 0x4010ee
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
jmp 0x4010d8
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004045a7
add esp, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
push section..data
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov edx, dword [ebp - 4]
push edx
call fcn.00403f22
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x401155
push str.vimrun_system__:
call fcn.00402817
add esp, 4
jmp 0x40116c
cmp dword [ebp - 8], 0
je 0x40116c
mov eax, dword [ebp - 8]
push eax
push str.shell_returned__d_n
call fcn.004011e0
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x401194
push str.Hit_any_key_to_close_this_window...
call fcn.00402977
add esp, 4
call fcn.0040430a
test eax, eax
je 0x40118f
call fcn.004040e1
jmp 0x40117f
call fcn.004040e1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40b848
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040b39b
Function at 0x401300
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x435070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x436c0c]
push esi
mov esi, ecx
sub eax, 0
je 0x4013b9
sub eax, 1
je 0x40134a
sub eax, 1
jne 0x4013dc
cmp dword [0x436c78], 0x10
mov eax, 0x436c64
cmovae eax, dword [0x436c64]
jmp 0x4013d1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.vscan.dll_int___cdecl_vscan_array_add_void___char_const__]
xor ebx, ebx
mov dword [ebp - 0x90], eax
mov edx, 1
mov ecx, ebx
shl edx, cl
test eax, edx
je 0x4013a2
mov eax, dword [str.A:_]
mov dword [ebp - 0xc], eax
mov al, byte [0x431f98]
mov byte [ebp - 8], al
lea eax, [ebx + 0x41]
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40139c
lea eax, [ebp - 0xc]
push eax
push esi
call edi
add esp, 8
mov eax, dword [ebp - 0x90]
inc ebx
cmp ebx, 0x1a
jl 0x401360
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004089f0
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x8c]
push eax
push esi
call dword [sym.imp.vscan.dll_int___cdecl_vscan_array_add_void___char_const__]
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004089f0
mov esp, ebp
pop ebp
ret

Function at 0x4016b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x435070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ecx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401712
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_failed_with__d_n
call fcn.00403990
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004089f0
mov esp, ebp
pop ebp
ret
push 0
push 0x432174
mov ecx, edi
call fcn.004037e0
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x401773
mov eax, dword [ebp - 0xc]
xor ecx, ecx
add ecx, dword [ebp - 0x10]
cdq
adc eax, 0
mov edx, eax
call fcn.00425170
mulsd xmm0, qword [0x432320]
lea eax, [ebp - 0x44]
sub esp, 8
movsd qword [esp], xmm0
push str._.4lfKB
push eax
call fcn.00403fa0
add esp, 0x10
mov ecx, edi
push eax
call fcn.00402850
lea ecx, [ebp - 0x44]
call fcn.00403a70
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4016ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
lea ecx, [ebp - 0x18]
call fcn.004015f0
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
call fcn.004015f0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004089f0
mov esp, ebp
pop ebp
ret
Function at 0x403ae0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425458
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x435070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push 0
push 0
push 3
push 0
push 1
push 9
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push 0
cmp ebx, 0xffffffff
je 0x403bab
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x1c]
mov edi, eax
cmp edi, ecx
ja 0x403b70
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + edi], 0
jmp 0x403b7d
sub eax, ecx
lea ecx, [ebp - 0x2c]
push 0
push eax
call fcn.00407720
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
cmovae eax, dword [ebp - 0x2c]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403bee
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push 0x432174
mov byte [esi], 0
call fcn.004037e0
lea ecx, [ebp - 0x2c]
call fcn.00403a70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004089f0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
cmp ecx, edi
je 0x403c1d
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
ja 0x403c10
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + ecx], 0
jmp 0x403c1d
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00407720
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00403180
jmp 0x403bc8
Function at 0x405c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425218
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x435070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x405d6b
cmp byte [ebx + 0x3d], 0
je 0x405d6b
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x405c59
xor al, al
jmp 0x405d6d
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00407610
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x405cc3
sub eax, 1
je 0x405cc7
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x405d1d
xor bl, bl
jmp 0x405d1f
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x405cff
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.004113fd
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x405cbf
cmp byte [ebx + 0x3d], 0
je 0x405d1d
test esi, esi
jne 0x405c84
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00407720
jmp 0x405c7e
mov bl, 1
cmp edx, 0x10
jb 0x405d67
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x405d5e
test byte [ebp - 0x28], 0x1f
je 0x405d3a
call fcn.0040de21
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x405d46
call fcn.0040de21
sub eax, ecx
cmp eax, 4
jae 0x405d52
call fcn.0040de21
cmp eax, 0x23
jbe 0x405d5c
call fcn.0040de21
mov eax, ecx
push eax
call fcn.00408a01
add esp, 4
mov al, bl
jmp 0x405d6d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004089f0
mov esp, ebp
pop ebp
ret
Function at 0x406280
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425846
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x435070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00408c6e
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00407c8f
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4067f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42594a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x435070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00407f03
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4068b0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0040aed5
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x434408
push eax
call fcn.0040af57
push edi
push esi
call fcn.00407d92
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004089f0
mov esp, ebp
pop ebp
ret 4

Function at 0x418398
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418217

Function at 0x41cf30
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cbf0
Function at 0x6d8f364a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
sub eax, dword [esi + 0x289c]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x292c], eax
call edi
sub eax, dword [esi + 0x28a0]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x2930], eax
mov eax, dword [esi + 0x2d4c]
test eax, eax
je 0x6d8f36b9
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x28a0]
push dword [esi + 0x289c]
push dword [esi + 0x2930]
push dword [esi + 0x292c]
push dword [esi + 0x2d4c]
call dword [sym.imp.USER32.dll_MoveWindow]
push esi
call fcn.6d8f7b5c
pop ecx
pop edi
pop esi
ret

Function at 0x6d8f3d88
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
je 0x6d8f3dbd
push edi
mov edi, 0x120
cmp dword [esp + 0x10], edi
jae 0x6d8f3db0
push eax
call fcn.6d8f4838
push 2
call fcn.6d8f4827
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
pop edi
pop esi
ret

Function at 0x6d8f7b5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x6d8f7b6b
pop dword [ebp - 0x2c]
mov eax, 0x1c8760dc
sub eax, 0xaef7e571
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xb72200ea
sub dword [ebp - 0x3c], 0x68cfbb9f
mov dword [ebp - 0x38], 0x8f1686da
add dword [ebp - 0x38], 0xa31cc56b
mov dword [ebp - 0x34], 0xae6cf216
add dword [ebp - 0x34], 0x9ddf5218
mov dword [ebp - 0x30], 0x2f787981
add dword [ebp - 0x30], 0xd087867f
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x52568bb8
add dword [ebp - 0x3c], 0x221bdd9e
mov dword [ebp - 0x38], 0xbcbf0a2e
sub dword [ebp - 0x38], 0x7b52a8b9
mov dword [ebp - 0x34], 0xbc8d56bb
sub dword [ebp - 0x34], 0x591dea4f
mov dword [ebp - 0x30], 0xfcaa21e0
sub dword [ebp - 0x30], 0xfcaa21e0
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xace18ab4
add eax, 0xc0af55ec
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x39a55
push 0
call eax
mov ecx, 0x256a0611
sub ecx, 0x2569ba45
mov ebx, eax
mov esi, 0x6d91d200
add esi, dword [ebp - 0x2c]
mov edx, 0xaf891f92
add edx, 0xbbe16058
sub dword [ebp - 4], 0x2ee95597
mov edi, dword [esi]
sub dword [ebp - 0x24], 0x44286e14
add edi, edx
xor dword [ebp - 0x20], 0xe57543cd
mov dword [ebx], edi
xor dword [ebp - 8], 0x7c5c5572
add ebx, 0x67597511
sub ebx, 0x6759750d
add esi, 0x2b46aaaf
add esi, 0xd4b95555
loop 0x6d8f7c82
add eax, 0xc4db21f2
add eax, 0x3b260011
mov ebx, eax
add eax, 0xf8ef4686
add eax, 0x710b97f
mov ecx, 0xc6f3c32d
sub ecx, 0x5964c32d
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x6d8fe17a
Capabilities:
Read file on windows

Disassembly:
cmp byte [esi], 0
push ebx
push edi
jne 0x6d8fe200
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
test ecx, ecx
je 0x6d8fe1a0
push 1
push esi
push edi
call ecx
add esp, 0xc
jmp 0x6d8fe1ad
push dword [eax + 0x38]
push 1
push 1
push esi
call ebx
add esp, 0x10
cmp eax, 1
je 0x6d8fe1c0
mov dword [0x6d919e8c], 0x66
xor eax, eax
jmp 0x6d8fe215
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
lea edi, [esi + 1]
test ecx, ecx
je 0x6d8fe1dd
movzx eax, byte [esi]
push eax
push edi
push dword [esp + 0x14]
call ecx
add esp, 0xc
jmp 0x6d8fe1ec
push dword [eax + 0x38]
movzx eax, byte [esi]
push eax
push 1
push edi
call ebx
add esp, 0x10
movzx ecx, byte [esi]
cmp eax, ecx
jne 0x6d8fe1b2
mov al, byte [edi]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
mov byte [edi], 2
jmp 0x6d8fe210
movzx eax, byte [esi + 1]
mov al, byte [eax + esi]
mov ecx, dword [esp + 0x10]
mov byte [ecx], al
inc byte [esi + 1]
dec byte [esi]
xor eax, eax
inc eax
pop edi
pop ebx
ret

Function at 0x6d90335e
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x6d90338c
push esi
call fcn.6d907b5a
cmp dword [esi + 0x40], 0
pop ecx
je 0x6d903385
xor eax, eax
mov dword [esi + 0x14], 0xcf
inc eax
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x6d9033fc
mov eax, dword [esi + 0x1b4]
cmp dword [eax + 0x10], 0
je 0x6d9033ee
mov eax, dword [esi + 8]
test eax, eax
je 0x6d9033ad
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x1b4]
push esi
call dword [eax]
pop ecx
test eax, eax
je 0x6d9033ea
cmp eax, 2
je 0x6d9033ee
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x6d9033a2
cmp eax, 3
je 0x6d9033d1
cmp eax, 1
jne 0x6d9033a2
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x6d9033a2
mov ecx, dword [esi + 0x140]
add dword [eax + 8], ecx
jmp 0x6d9033a2
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x6d90341a
cmp eax, 0xcc
je 0x6d90341a
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.6d903229
pop esi
ret

Function at 0x6d90d236
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d917070]
jne 0x6d90d240
repz ret
jmp fcn.6d90d70c

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401d4a
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [0x418714], 0
mov eax, dword [0x418714]
mov ebx, 0xffffffff
push ebx
call dword [sym.imp.USER32.DLL_GetAsyncKeyState]
mov dword [0x418ebf], eax
mov dword [0x418174], 0
mov eax, dword [0x418174]
lea edx, [edx + 0x418977]
add dword [0x4195a1], edx
sub edx, eax
shr edx, 1
add edx, eax
mov ecx, edx
add ecx, 0x94e
add dword [0x418b51], ecx
ror ecx, 2
shr ecx, 1
sub ecx, eax
add dword [0x418e06], ecx
call fcn.00402f28
mov dword [0x41818c], eax
push 0x2547545c
pop edi
push edi
mov esi, 0x1eeae871
mov eax, esi
push eax
mov eax, 0x535b7a47
mov esi, eax
push esi
mov edi, 0x174cf46c
mov ebp, edi
push ebp
push 0x418ab134
pop ebx
push ebx
push 0x21ff1beb
pop eax
push eax
push 0x67cf697b
pop edx
push edx
mov edx, 0x47777e77
push edx
mov esi, 0
mov edi, esi
push edi
push 0x30a185
pop ebx
add ebx, 0x103f1b
push dword [ebx]
pop dword [0x41855f]
mov ebx, dword [0x41855f]
call ebx
mov dword [0x418f49], eax
or eax, eax
je 0x401e19
sub ebp, edi
ret

Function at 0x5462df
Capabilities:
Encode data using xor

Disassembly:
pop ss
in al, dx
push es
cld
xor al, 0xc1
and eax, 0x446de4b6
cmp al, 0xf3
mov ecx, 0xc1368d4
and byte [edi + 0x53e4e24b], 0xdc
invalid
mov ebx, esp
inc ebp
jl 0x546291
mov ah, 0x35
stc
xor al, 0x7a
mov dh, 0x92
mov ch, 0xc
scasd eax, dword es:[edi]
pop ds
jecxz 0x5462fd
dec edx
or al, 0x14
aaa
adc ch, byte [edx]
push ebp
rcr byte [esi + 0x55], 0x52
mov dword [edx], ecx
fidivr dword [eax + 0x4e]
in al, dx
sti
enter 0xfffffffffffff045, 0x5e
inc ebx
sub al, ch
cmc
xor ah, 0xb3
out 0xdf, al
in al, 0xed
sbb edi, ecx
ficomp word [0x8defac26]
mov al, cl
invalid