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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e633
push esi
call fcn.004416f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e62c
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 0x43e6b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e6a2
mov eax, dword [esi + 8]
test eax, eax
je 0x43e657
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 0x43e69e
cmp eax, 2
je 0x43e6a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e64a
cmp eax, 3
je 0x43e67d
cmp eax, 1
jne 0x43e64a
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 0x43e64a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e64a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e6e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e6c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e6e0
add esp, 4
pop esi
ret

Function at 0x44c000
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 0x44c0a3
test eax, eax
jbe 0x44c0a3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44c0a3
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 0x44c04e
xor esi, esi
jmp 0x44c054
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44c07f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00402e20
add esi, eax
push esi
mov ebx, esi
call fcn.00402e20
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44c060
pop ebp
test edi, edi
pop edi
jne 0x44c0a3
test ebx, ebx
je 0x44c0a3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00459bb0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44c1e5
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 0x44c2fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44c2fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046ab75
mov esi, eax
test esi, esi
je 0x44c2fd
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 0x44c2fd
mov ecx, esi
call fcn.0044c150
cmp edi, eax
jge 0x44c2fd
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 0x44c283
mov dword [esp + 0x34], 1
jmp 0x44c2de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44c2fd
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.0044b700
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 0x46b519
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46b551
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.004695cd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004695a5
jmp 0x46b55d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46cc0b
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 0x46cc4d
call fcn.004728f2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46cc4d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46cc44
xor eax, eax
jmp 0x46cc55
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046cc5b
pop edi
pop esi
pop ebx
ret 4
Function at 0x472e22
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 0x472e50
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x472e6e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00472d88
jmp 0x472e6e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x472e6e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00472d88
test edi, edi
mov eax, edi
jne 0x472e58
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x584c3636
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x7f797c58
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401c15
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c54
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401c54
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c54
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401c54
cmp dword [ecx + 0x74], 0xe
jbe 0x401c54
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401000
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push edi
push 0x400
push 8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x401022
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp edi, 0x40ac40
jne 0x401031
mov dword [0x40bf94], eax
jmp 0x40103e
cmp edi, 0x40b040
jne 0x40103e
mov dword [0x40bf98], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
xor ebx, ebx
mov esi, eax
sub edi, eax
lea ecx, [ecx]
mov al, byte [edi + esi]
mov byte [esi], al
call ebp
mov cl, bl
sub cl, 0x40
xor byte [esi], cl
inc ebx
inc esi
cmp ebx, 0x3ff
jb 0x401050
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x401070
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40bf90]
push ebx
push esi
push edi
lea esi, [eax + 0x14]
mov edi, eax
mov eax, dword [esi]
push 0x40
push 0x3000
inc eax
push eax
push 0
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x4010df
mov ecx, dword [esi]
mov edx, dword [edi + 0x10]
push ecx
push edx
push eax
call fcn.00403c70
add esp, 0xc
xor eax, eax
mov eax, dword [ebp - 8]
push eax
mov ebx, 0xdefac00
add ebx, 0xed
push ebx
xor eax, eax
push eax
pop eax
mov ebx, dword [ebp - 4]
push ebx
pop esi
xor edi, edi
add edi, 0x1000
sub esp, edi
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40154d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x401557
repz ret
jmp fcn.0040170c

Function at 0x403693
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.00402571
and dword [ebp - 4], 0
cmp dword [0x40be68], 0
mov ebx, eax
jne 0x403744
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4037f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4037f5
push eax
call fcn.004024ff
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40be68], eax
call esi
push eax
call fcn.004024ff
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40be6c], eax
call esi
push eax
call fcn.004024ff
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40be70], eax
call esi
push eax
call fcn.004024ff
pop ecx
mov dword [0x40be78], eax
test eax, eax
je 0x403744
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004024ff
pop ecx
mov dword [0x40be74], eax
mov eax, dword [0x40be74]
cmp eax, ebx
je 0x40379c
Function at 0x403fd5
Capabilities:
Terminate process

Disassembly:
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
mov dword [ebp - 0x2d0], 0x10001
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x20c], ecx
mov ecx, dword [ecx - 4]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x328], 0xc0000417
mov dword [ebp - 0x324], 1
mov dword [ebp - 0x31c], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x40406b
test ebx, ebx
jne 0x40406b
push 2
call fcn.00403d52
pop ecx
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040254d
leave
ret

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 0x401e00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x481558
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 0xc]
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
movq qword [esp + 0xc], xmm0
call fcn.0040b430
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x38], 1
lea eax, [esp + 0x18]
push 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov byte [esp + 0x38], 2
lea ecx, [esp + 0xc]
push esi
call fcn.004025c0
mov esi, eax
mov byte [esp + 0x38], 1
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x401ed1
push ecx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [esp + 8], 0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402510
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0047ff74
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4025c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4816d8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
test edi, edi
jne 0x402620
lea esi, [edi + 1]
jmp 0x40275b
call fcn.00402cf0
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp word [edi], ax
jne 0x402650
xor ecx, ecx
jmp 0x402664
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402655
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x48]
call fcn.00402f90
mov byte [ebp - 4], 1
push str.58E9F916_1207_433A_AD78_4B1CF7D734FD
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
test eax, eax
jne 0x40268c
xor al, al
jmp 0x4026b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4026b6
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x48]
mov dword [esi + 8], 0
push eax
call fcn.00402bf0
xor al, al
jmp 0x4026b8
mov al, 1
test al, al
sete al
mov byte [ebp - 0x2d], al
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 8
jb 0x4026d9
push dword [ebp - 0x48]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov al, byte [ebp - 0x2d]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
test al, al
je 0x4026f5
xor esi, esi
jmp 0x40275b
push edi
lea ecx, [ebp - 0x48]
call fcn.00402e10
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.004027a0
test al, al
jne 0x402712
or esi, 0xffffffff
jmp 0x402731
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.00402a10
mov ecx, dword [esi]
test ecx, ecx
je 0x402728
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, esi
call fcn.004029b0
xor esi, esi
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 8
jb 0x402747
push dword [ebp - 0x48]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047ff74
mov esp, ebp
pop ebp
ret 4
Function at 0x40a040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482af0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
test esi, esi
je 0x40a18b
cmp byte [esi + 0x54], 0
je 0x40a18b
add esi, 0x1c
xorps xmm0, xmm0
xor bl, bl
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], bl
test esi, esi
je 0x40a0c6
mov eax, dword [esi]
test eax, eax
je 0x40a0c3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a0bd
cmp eax, 0x80
je 0x40a0bd
xor bl, bl
jmp 0x40a0c3
mov byte [esi + 4], 1
mov bl, 1
mov byte [ebp - 0x18], bl
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
cmp dword [eax + 0x14], 8
jb 0x40a0d8
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a164
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
push 0
call fcn.00416340
add esp, 4
mov byte [ebp - 4], 1
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x20], 0x10
jb 0x40a152
push dword [ebp - 0x34]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40a184
test bl, bl
je 0x40a184
mov eax, dword [esi]
test eax, eax
je 0x40a180
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047ff74
mov esp, ebp
pop ebp
ret 4
Function at 0x40b0c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
mov eax, edx
mov dword [ebp - 0x10], eax
movsx eax, al
push esi
push edi
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movdqa xmmword [ebp - 0x20], xmm0
test ecx, ecx
je 0x40b1f9
mov edi, dword [ebx + 8]
test edi, edi
je 0x40b1f9
mov esi, dword [ebx + 0xc]
test esi, esi
jle 0x40b1f9
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x40b1f9
cmp dword [ebx + 0x14], 0
je 0x40b1f9
cmp dword [eax], 0
jne 0x40b1f9
mov eax, dword [ecx + 8]
push esi
call eax
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x40b1f9
xor edx, edx
cmp esi, 0x20
jb 0x40b1bb
lea eax, [edi - 1]
add eax, esi
cmp ecx, eax
ja 0x40b164
lea eax, [esi - 1]
add eax, ecx
cmp eax, edi
jae 0x40b1bb
mov eax, esi
and eax, 0x8000001f
jns 0x40b172
dec eax
or eax, 0xffffffe0
inc eax
movdqa xmm1, xmmword [ebp - 0x20]
mov dword [ebp - 4], esi
mov esi, ecx
sub dword [ebp - 4], eax
sub esi, edi
mov dword [ebp - 0xc], esi
mov eax, edi
mov esi, dword [ebx + 0xc]
mov edi, dword [ebp - 0xc]
lea esp, [esp]
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movdqu xmmword [edi + eax - 0x20], xmm0
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm1
movdqu xmmword [ecx + edx + 0x10], xmm0
add edx, 0x20
cmp edx, dword [ebp - 4]
jl 0x40b190
mov edi, dword [ebx + 8]
cmp edx, esi
jge 0x40b1e4
sub edi, dword [ebp - 8]
add ecx, edx
sub esi, edx
mov edx, dword [ebp - 0x10]
lea esp, [esp]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, dl
mov byte [ecx - 1], al
dec esi
jne 0x40b1d0
mov esi, dword [ebx + 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x10]
mov dword [eax], ecx
mov eax, dword [ebx + 0x14]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40b850
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x49eff8
push 0x480739
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00404800
mov edx, esi
mov ecx, edi
call fcn.0040b9b0
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x40b8e5
test bl, bl
jne 0x40b98d
cmp edi, 0x1a
jne 0x40b98d
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x40b907
mov eax, dword [esi]
jmp 0x40b909
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x430], ax
push 0x40e
push eax
lea eax, [ebp - 0x42e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x430], 0
jne 0x40b951
xor ecx, ecx
jmp 0x40b96f
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b960
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.00402f90
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047ff74
mov esp, ebp
pop ebp
ret
Function at 0x40d720
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x482f36
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x840]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [esp + 0x3c]
push eax
push 0x3fe
call edi
mov ebx, eax
test ebx, ebx
je 0x40d7ef
lea eax, [esp + 0x3c]
xor esi, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x848], esi
cmp ebx, 0x3fe
jbe 0x40d819
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047fefc
add esp, 4
mov ebp, eax
mov esi, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], esi
push ebp
push ebx
call edi
test eax, eax
je 0x40d7d6
cmp eax, ebx
ja 0x40d7d6
xor ecx, ecx
mov ebx, eax
mov dword [ebp + eax*2], ecx
jmp 0x40d841
mov dword [esp + 0x848], 0xffffffff
test ebp, ebp
je 0x40d7ef
push ebp
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor al, al
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.0047ff74
add esp, 0x838
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x40d8e3
xor ecx, ecx
mov word [esp + eax + 0x3c], cx
add eax, 2
cmp eax, 0x800
jae 0x40d8e3
mov word [esp + eax + 0x3c], cx
xor eax, eax
xor edi, edi
test ebx, ebx
je 0x40d8c3
mov esi, dword [esp + 0x18]
mov ebp, 2
cmp word [esi + ebp - 2], 0
jne 0x40d8b7
cmp eax, edi
je 0x40d8b7
lea eax, [esi + eax*2]
push eax
lea ecx, [esp + 0x24]
call fcn.00402e10
mov byte [esp + 0x848], 1
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0040d900
mov byte [esp + 0x848], 0
cmp dword [esp + 0x34], 8
jb 0x40d89d
push dword [esp + 0x20]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
lea eax, [edi + 1]
mov dword [esp + 0x30], 0
inc edi
add ebp, 2
cmp edi, ebx
jb 0x40d852
mov esi, dword [esp + 0x38]
mov dword [esp + 0x848], 0xffffffff
test esi, esi
je 0x40d8dc
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
jmp 0x40d7f1
call fcn.004804d4
int3