joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4417d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441803
push esi
call fcn.004448c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4417fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441889
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441872
mov eax, dword [esi + 8]
test eax, eax
je 0x441827
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44186e
cmp eax, 2
je 0x441872
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44181a
cmp eax, 3
je 0x44184d
cmp eax, 1
jne 0x44181a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44181a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44181a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004418b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441898
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004418b0
add esp, 4
pop esi
ret

Function at 0x44d8b0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44d953
test eax, eax
jbe 0x44d953
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44d953
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44d8fe
xor esi, esi
jmp 0x44d904
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44d92f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00406930
add esi, eax
push esi
mov ebx, esi
call fcn.00406930
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44d910
pop ebp
test edi, edi
pop edi
jne 0x44d953
test ebx, ebx
je 0x44d953
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004536f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44da95
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44dbad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44dbad
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046437f
mov esi, eax
test esi, esi
je 0x44dbad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44dbad
mov ecx, esi
call fcn.0044da00
cmp edi, eax
jge 0x44dbad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44db33
mov dword [esp + 0x34], 1
jmp 0x44db8e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44dbad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044cfb0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x464d23
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x464d5b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00462dd7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00462daf
jmp 0x464d67
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x466415
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x466457
call fcn.0046beca
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466457
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46644e
xor eax, eax
jmp 0x46645f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466465
pop edi
pop esi
pop ebx
ret 4
Function at 0x46c3fa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46c428
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46c446
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046c360
jmp 0x46c446
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46c446
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046c360
test edi, edi
mov eax, edi
jne 0x46c430
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x10001b3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10005060
cmp edx, dword [eax]
je 0x10001b60
add eax, 8
inc ecx
cmp eax, 0x100050f0
jl 0x10001b51
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10005060]
jne 0x10001c8e
mov eax, dword [0x10005370]
cmp eax, 1
je 0x10001c68
test eax, eax
jne 0x10001b91
cmp dword [0x10005374], 1
je 0x10001c68
cmp edx, 0xfc
je 0x10001c8e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10001bc8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10001f00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10001ff0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10001c0b
lea eax, [ebp - 0x1a4]
push eax
call fcn.10001ff0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10004384
push edi
call fcn.10003070
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10001f00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10001f10
lea eax, [ebp - 0xa0]
push 0x10004364
push eax
call fcn.10001f10
push dword [esi + 0x10005064]
lea eax, [ebp - 0xa0]
push eax
call fcn.10001f10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10002fde
add esp, 0x2c
pop edi
jmp 0x10001c8e
lea eax, [ebp + 8]
lea esi, [esi + 0x10005064]
push 0
push eax
push dword [esi]
call fcn.10001ff0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4059bb
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dc2
mov edi, eax
cmp edi, 0xffffffff
je 0x4059fc
test byte [esp + 0x10], 1
push esi
je 0x4059de
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x4059e4
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x4059ed
xor eax, eax
inc eax
jmp 0x4059fe
test byte [esp + 0x10], 4
jne 0x4059fc
push edi
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x405f41
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x426dc8
push 0x40a5a4
push ebx
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.kernel32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405f8f
push 1
push 0
push esi
call fcn.00405de7
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x4060ae
cmp eax, edi
jg 0x4060ae
mov esi, 0x4275c8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x4060ae
cmp eax, edi
jg 0x4060ae
push esi
push ebx
push str._ls_ls_r_n
push 0x4269c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a250]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040672b
push 4
push 0xc0000000
push esi
call fcn.00405de7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4060ae
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4060a7
push edi
push esi
push ebp
call fcn.0040672b
test eax, eax
je 0x4060a7
push str._Rename__r_n
push esi
call fcn.0040672b
test eax, eax
jne 0x406045
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40607a
add eax, 0xa
push 0x40a588
push eax
call fcn.0040672b
mov ebp, eax
test ebp, ebp
je 0x406076
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406067
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406061
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40607c
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4269c8
push eax
call fcn.00405da2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040672b
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4060b3
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x4060d6
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405f41
pop ecx
pop ecx
inc dword [0x42a2d0]
ret 8

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x401170
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x405600
push 0x68
push esi
call edi
push 0x64
push 0x405668
push 0x70
push esi
call edi
xor eax, eax
push 0x7f00
push eax
mov dword [0x4031da], esi
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6e
push esi
mov dword [ebp - 0x30], eax
call edi
mov edx, dword [ebp - 0x38]
push 0x6c
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x28], 0x6e
mov dword [ebp - 0x24], str.Clariot
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x44], 0x401480
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov ecx, dword [ebp + 0x14]
push ecx
push esi
call fcn.004013f0
add esp, 8
test eax, eax
jne 0x40123d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
invalid
je 0x401293
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea esp, [esp]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ecx
call edi
test eax, eax
jne 0x401283
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
and byte [eax], al
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
jne 0x401260
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4012d8
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4012d0
cmp al, 0x22
jne 0x4012c4
cmp byte [esi], 0x22
jne 0x4012e2
inc esi
jmp 0x4012e2
cmp al, 0x20
jle 0x4012e2
inc esi
cmp byte [esi], 0x20
jg 0x4012dc
mov al, byte [esi]
test al, al
je 0x4012ec
cmp al, 0x20
jle 0x4012d5
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401d56
push 0x403004
push section..data
call fcn.00401d3c
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40131c
movzx eax, word [ebp - 0x14]
jmp 0x40131f
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401d6e
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4013f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x4031da], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401437
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret
Function at 0x40a650
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a4b8
mov eax, dword [0x4175a0]
cmp byte [eax], 0
je 0x40a6cc
mov eax, dword [0x4174c0]
call fcn.00402dd0
call fcn.00402aa8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040788c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a714
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a702
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41749c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x418660]
call fcn.00405048
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40b414
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b478
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404374
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004073dc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b47f
lea eax, [ebp - 0xc]
call fcn.00404104
ret

Function at 0x41361c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push edi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, 0
mov edi, dword [0x419908]
shl edi, 2
xor edx, dword [esi + 0x418880]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x418908]
mov bl, dl
add ecx, dword [ebx*4 + 0x418d08]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x419108]
mov bl, dl
add ecx, dword [ebx*4 + 0x419508]
xor eax, ecx
xchg edx, eax
add esi, 4
cmp esi, edi
jne 0x413639
xchg edx, eax
xor eax, dword [esi + 0x418880]
xor edx, dword [esi + 0x418884]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x413694
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, dword [0x419908]
inc esi
shl esi, 2
xor edx, dword [esi + 0x418880]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x418908]
mov bl, dl
add ecx, dword [ebx*4 + 0x418d08]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x419108]
mov bl, dl
add ecx, dword [ebx*4 + 0x419508]
xor eax, ecx
xchg edx, eax
sub esi, 4
cmp esi, 4
jne 0x4136ac
xchg edx, eax
xor eax, dword [0x418884]
xor edx, dword [0x418880]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop esi
pop ecx
pop ebx
ret
Function at 0x401210
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push 0x32
push 0x4084c0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [0x4084c0]
xor ebx, ebx
xor esi, esi
xor ecx, ecx
cmp al, bl
je 0x401245
cmp al, 0x5c
mov byte [ecx + 0x408520], al
jne 0x40123a
mov esi, ecx
mov al, byte [ecx + 0x4084c1]
inc ecx
cmp al, bl
jne 0x40122e
mov eax, dword [esp + 0xc]
mov ecx, esi
cmp eax, ebx
je 0x401298
mov al, byte [str._system_sense3.vxd]
cmp al, bl
je 0x40126b
mov edx, str._system_sense3.vxd
inc edx
mov byte [ecx + 0x4084c0], al
inc ecx
mov al, byte [edx]
cmp al, bl
jne 0x40125d
mov al, byte [str._system_sense3.dll]
mov byte [ecx + 0x4084c0], bl
cmp al, bl
mov ecx, esi
je 0x4012d8
mov edx, str._system_sense3.dll
inc edx
mov byte [ecx + 0x408520], al
inc ecx
mov al, byte [edx]
cmp al, bl
jne 0x401281
mov byte [ecx + 0x408520], bl
pop esi
pop ebx
ret
mov al, byte [str._system32drivers_sense3.sys]
cmp al, bl
je 0x4012b4
mov edx, str._system32drivers_sense3.sys
inc edx
mov byte [ecx + 0x4084c0], al
inc ecx
mov al, byte [edx]
cmp al, bl
jne 0x4012a6
mov al, byte [str._system32_sense3.dll]
mov byte [ecx + 0x4084c0], bl
cmp al, bl
mov ecx, esi
je 0x4012d8
mov edx, str._system32_sense3.dll
inc edx
mov byte [ecx + 0x408520], al
inc ecx
mov al, byte [edx]
cmp al, bl
jne 0x4012ca
mov byte [ecx + 0x408520], bl
pop esi
pop ebx
ret
Function at 0x4017b0
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
push 1
call fcn.00401210
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 4
push 0
push 0x4084c0
push 0x408580
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
je 0x4017ff
push str._nCopy_sense3.vxd_to_system_directory
call fcn.00401e82
add esp, 4
push 0x4084c0
call ebx
and al, 0xf8
push eax
push 0x4084c0
call edi
push 0
push 0x408520
push 0x408460
call esi
test eax, eax
je 0x40182f
push str._nCopy_sense3.dll_to_system_directory
call fcn.00401e82
add esp, 4
push 0x408520
call ebx
and al, 0xf8
push eax
push 0x408520
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x401840
Capabilities:
Delete file

Disassembly:
push esi
push 1
call fcn.00401210
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 4
push 0x4084c0
call esi
test eax, eax
je 0x401869
push str._nDelete_sense3.vxd_in_system_directory
call fcn.00401e82
add esp, 4
push 0x408520
call esi
test eax, eax
pop esi
je 0x401880
push str._nDelete_sense3.dll_in_system_directory
call fcn.00401e82
pop ecx
ret

Function at 0x401890
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push 1
call fcn.00401210
add esp, 4
push 0
push 0x408520
push 0x408460
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4018d6
push str._nCopy_sense3.dll_to_system_directory
call fcn.00401e82
add esp, 4
push 0x408520
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xf8
push eax
push 0x408520
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x4018e0
Capabilities:
Delete file

Disassembly:
push 1
call fcn.00401210
add esp, 4
push 0x408520
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x401904
push str._nDelete_sense3.dll_in_system_directory
call fcn.00401e82
pop ecx
ret