joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcdb0
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x50c0f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa8], ecx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x10]
mov dword [eax + 0x590], 0
mov ecx, dword [ebp - 0xa8]
cmp dword [ecx + 4], 0
jne 0x49daa9
mov dword [ebp - 0xc0], 8
mov dword [ebp - 0xbc], 0x800
lea edx, [ebp - 0xc0]
push edx
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x49da63
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xa8]
call fcn.0049d2d0
mov dword [ebp - 0xb0], 0x40030000
push 0
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x18]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
push 0
mov ecx, dword [ebp - 0xb0]
push ecx
push 0
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x10]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
call fcn.004255e0
push eax
mov ecx, dword [ebp - 0xa8]
call fcn.0042e910
push 1
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x10]
call fcn.00424b80
push eax
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x10]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
call fcn.00424fd0
mov ecx, dword [eax]
push ecx
push 0x30
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x10]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xb8]
call fcn.00420d00
mov byte [ebp - 0xa9], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.0041fcd0
movzx edx, byte [ebp - 0xa9]
test edx, edx
je 0x49db24
call fcn.0049d6f0
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 0x10]
mov dword [edx + 0x588], eax
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x588]
push edx
push 0
push 0x465
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0xa8]
mov byte [eax + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5fa8
mov esp, ebp
pop ebp
ret 4
Function at 0x49dbf0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x49dc35
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 4]
jne 0x49dc26
mov edx, dword [ebp + 0x14]
mov dword [edx], 1
xor eax, eax
jmp 0x49dcad
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 8], eax
jmp 0x49dc02
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x590], 0
jne 0x49dc9b
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
add eax, 0x588
push eax
push 0
push 0x466
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ecx + 0x590], 1
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x10]
call fcn.0049dce0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4a54b0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd380
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x50c0f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0042e5c0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004a5640
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0x18
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], vtable.DuiLib::INotifyUI.0
mov edx, dword [ebp - 0x10]
add edx, 0x1c
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [eax], vtable.DuiLib::IDialogBuilderCallback.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], vtable.DuiLib::CMenuWnd.0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], vtable.DuiLib::CMenuWnd.1.0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], vtable.DuiLib::CMenuWnd.2.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], vtable.DuiLib::CMenuWnd.3.0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
add eax, 0x2c
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0x4e524c
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00422400
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x76c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x770], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x774], 6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4a8620
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x50c0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x76c], ecx
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x770], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x20]
mov dword [edx + 0x774], eax
cmp dword [ebp + 8], 0
jne 0x4a86ae
call fcn.004a8220
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 0xc]
call edx
cmp dword [ebp + 0x1c], 0
je 0x4a86ae
call fcn.004a8220
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x14]
call eax
cmp dword [ebp - 0x28], 0
je 0x4a86bf
mov ecx, dword [ebp - 0x28]
add ecx, 0x10
mov dword [ebp - 0x38], ecx
jmp 0x4a86c6
mov dword [ebp - 0x38], 0
call fcn.004a8220
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x76c], 0
jne 0x4a86f7
mov ecx, dword [ebp + 0x18]
call fcn.004255e0
mov dword [ebp - 0x40], eax
jmp 0x4a871a
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x76c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x76c]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
call fcn.004255e0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x24]
call fcn.0041fa80
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 8], edx
push 0
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 0xc], edx
push 0x88
push SysReAllocString
push 0
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.0042e910
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4a8795
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x2c], eax
jmp 0x4a8778
push 5
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b5fa8
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4b2940
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x50c0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
sub edx, 0x21
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0xd
ja case.0x4b29a5.8
mov eax, dword [ebp - 0x214]
jmp dword [eax*4 + 0x4b2a3c]
mov ecx, dword [ebp - 0x210]
or ecx, 0x100
mov dword [ebp - 0x210], ecx
cmp dword [ebp + 0x10], 0
je 0x4b29d6
mov edx, dword [ebp - 0x210]
or edx, 0x1000000
mov dword [ebp - 0x210], edx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004b8400
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x210]
shl edx, 0x10
push edx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041fb30
mov ecx, dword [ebp - 0x218]
or ecx, 1
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b5fa8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b29ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x50c0f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
sub edx, 0x21
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0xd
ja case.0x4b29a5.8
mov eax, dword [ebp - 0x214]
jmp dword [eax*4 + 0x4b2a3c]
mov ecx, dword [ebp - 0x210]
or ecx, 0x100
mov dword [ebp - 0x210], ecx
cmp dword [ebp + 0x10], 0
je 0x4b29d6
mov edx, dword [ebp - 0x210]
or edx, 0x1000000
mov dword [ebp - 0x210], edx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.004b8400
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x210]
shl edx, 0x10
push edx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041fb30
mov ecx, dword [ebp - 0x218]
or ecx, 1
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b5fa8
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4cdb44
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cd9ba
Function at 0x40e160
Capabilities:
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x1c], ecx
mov eax, 2
mov word [ebp - 8], ax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
not edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov eax, dword [ebp + 0xc]
shr eax, 0x18
and eax, 0xff
mov ecx, 4
imul edx, ecx, 0
mov dword [ebp + edx - 0x2c], eax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, 4
shl ecx, 0
mov dword [ebp + ecx - 0x2c], eax
mov edx, dword [ebp + 0xc]
shr edx, 8
and edx, 0xff
mov eax, 4
shl eax, 1
mov dword [ebp + eax - 0x2c], edx
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
mov edx, 4
imul eax, edx, 3
mov dword [ebp + eax - 0x2c], ecx
xor ecx, ecx
mov word [ebp - 4], cx
jmp 0x40e1fc
mov dx, word [ebp - 4]
add dx, 1
mov word [ebp - 4], dx
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
cmp eax, ecx
jge 0x40e262
mov edx, dword [ebp - 0x14]
shl edx, 4
mov eax, dword [ebp - 0x14]
shr eax, 5
xor edx, eax
add edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
and ecx, 3
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + ecx*4 - 0x2c]
xor edx, eax
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x10]
shr eax, 5
xor edx, eax
add edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
shr ecx, 0xb
and ecx, 3
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + ecx*4 - 0x2c]
xor edx, eax
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
jmp 0x40e1f0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x4116e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4116ef
pop dword [ebp - 0x2c]
mov eax, 0x4748a2bc
sub eax, 0x47078bcd
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3fb0e
push 0
mov eax, 0x4cad840f
sub eax, 0x4c6b31f7
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x4f87
xor edi, edi
add edi, eax
mov edx, 0xfe018a70
sub edx, 0xfdbe3670
add edx, dword [ebp - 0x2c]
mov esi, 0xaf50a77c
xor dword [ebp - 0xc], 0x9c06a9b9
mov ebx, dword [edx]
sub dword [ebp - 8], 0x1348f5b
sub ebx, esi
add dword [ebp - 0xc], ecx
mov dword [edi], ebx
xor dword [ebp - 8], 0x2fec97ae
add edi, 4
add edx, 4
loop 0x411744
add eax, 0x4cad6856
sub eax, 0x4cac3767
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc4829df6
add ecx, 0x3bbd620a
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x40df14
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40df23
pop dword [ebp - 0x44]
mov eax, 0x40df23
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x41790
push 0
mov eax, 0xf9034eac
sub eax, 0xf8c0fc94
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x31944bab
add ecx, 0xce6c0b0b
xor edi, edi
add edi, eax
mov edx, 0x71c361ab
add edx, 0x8e7ff255
add edx, dword [ebp - 0x44]
mov esi, 0x63f7f0bd
sub esi, 0xad239788
sub dword [ebp - 0x18], 0x745e799a
mov ebx, dword [edx]
xor dword [ebp - 0x14], 0xe27f8405
sub ebx, esi
xor dword [ebp - 0x34], edi
mov dword [edi], ebx
add dword [ebp - 0x18], 0x70517559
add edi, 4
add edx, 0xf3942097
sub edx, 0xf3942093
loop 0x40df7f
add eax, 0x14dab
mov ebx, eax
add eax, 0x2e0bf1db
add eax, 0xd1f40e2a
mov ecx, 0xfb6ba6a8
add ecx, 0x4d45958
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4014a2
Capabilities:
Get common file path

Disassembly:
push 0x18
push 0x47e998
call fcn.00423190
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0x800
lea ecx, [ebp - 0x24]
call fcn.00401434
mov ebx, eax
mov dword [ebp - 0x1c], ebx
push ebx
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x401598
xor ecx, ecx
mov word [ebx + eax*2], cx
push 0x49128c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push eax
push edi
push str._1_X__2_X__3_X_.tmp
call fcn.00401388
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x20], esi
mov ecx, esi
call fcn.00401420
mov edx, dword [ebp - 0x24]
lea ecx, [edx + 2]
add ecx, eax
mov edi, 0x800
cmp ecx, edi
jb 0x40154d
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push section..data
call fcn.0042a8c0
add esp, 0xc
xor eax, eax
call fcn.004231d5
ret
movzx eax, word [ebx + edx*2 - 2]
cmp eax, 0x2f
je 0x401569
push 0x5c
pop ecx
cmp eax, ecx
je 0x401569
mov word [ebx + edx*2], cx
xor eax, eax
mov word [ebx + edx*2 + 2], ax
push esi
push edi
push ebx
call fcn.0041efae
or dword [ebp - 0x28], 0xffffffff
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0040144e
mov esi, eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push section..data
call fcn.0042a8c0
add esp, 0x18
mov eax, esi
jmp 0x401547
mov dword [ebp - 4], 0xfffffffe
call fcn.004015a6
jmp 0x401545

Function at 0x4016eb
Capabilities:
Read file via mapping

Disassembly:
push 0x18
push 0x47e9f8
call fcn.00423190
mov esi, ecx
mov dword [ebp - 0x28], esi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x1d], bl
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.00401661
mov esi, eax
mov edi, edx
cmp edi, ebx
jl 0x40179a
jg 0x401723
cmp esi, ebx
jbe 0x40179a
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x40179a
mov ecx, dword [ebp - 0x28]
call fcn.004012ea
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], ecx
test ecx, ecx
je 0x40179a
push ebx
push ebx
push ebx
push 4
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xc], ecx
test ecx, ecx
je 0x40179a
push ebx
push ebx
push ebx
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
test eax, eax
je 0x40179a
mov dword [ecx + 4], esi
mov dword [ecx + 8], edi
mov byte [ebp - 0x1d], 1
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push section..data
call fcn.0042a8c0
add esp, 0xc
mov eax, dword [ebp - 0x24]
jmp 0x4017a8
mov dword [ebp - 4], 0xfffffffe
call fcn.004017b1
xor eax, eax
call fcn.004231d5
ret
Function at 0x403881
Capabilities:
Get hostname

Disassembly:
push 0xc
mov eax, 0x46a71f
call fcn.0042a279
mov edi, ecx
and dword [ebp - 0x18], 0
push 0x20
call fcn.0041f6b4
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4038cb
mov eax, dword [ebp - 0x10]
mov ecx, edi
lea eax, [esi + eax*2]
push eax
push esi
call fcn.00404bdd
jmp 0x403932
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f
jne 0x403926
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f6b4
mov ebx, eax
pop ecx
test esi, esi
je 0x4038fc
push esi
call fcn.0041f6bd
pop ecx
lea eax, [ebp - 0x10]
mov esi, ebx
push eax
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x403926
mov eax, dword [ebp - 0x10]
mov ecx, edi
lea eax, [ebx + eax*2]
push eax
push ebx
call fcn.00404bdd
test ebx, ebx
je 0x40393d
push ebx
jmp 0x403937
push 0x477d20
mov ecx, edi
call fcn.00403e52
test esi, esi
je 0x40393d
push esi
call fcn.0041f6bd
pop ecx
mov eax, edi
call fcn.0042a247
ret

Function at 0x403945
Capabilities:
Get user security identifier

Disassembly:
push 0x28
mov eax, 0x46a742
call fcn.0042a279
mov edi, edx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push eax
push 0x400
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], ebx
call fcn.00404667
mov esi, dword [ebp - 0x34]
test edi, edi
je 0x403a12
mov eax, dword [ebp - 0x30]
sub eax, esi
mov dword [ebp - 0x14], 0x44
sar eax, 1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x403a0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403a0d
cmp dword [ebp - 0x14], 0x44
ja 0x403a12
cmp dword [ebp - 0x10], 0x400
jbe 0x4039f1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], esi
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.00404667
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
setne bl
test esi, esi
je 0x403a1d
push esi
call fcn.00415976
pop ecx
mov al, bl
call fcn.0042a247
ret
Function at 0x403af7
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0x23c
mov eax, 0x46a7bd
call fcn.0042a2ac
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x248], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
xor ebx, ebx
mov dword [ebp - 4], edi
inc ebx
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x248], ebx
call fcn.00403a25
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x403b6b
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x23c]
push dword [ebp - 0x244]
cmovae ecx, dword [ebp - 0x23c]
lea eax, [ecx + eax*2]
push eax
push ecx
push dword [esi + 4]
mov ecx, esi
call fcn.00404cb2
xor eax, eax
mov dword [ebp - 0x240], edi
push 0x208
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push edi
push eax
call fcn.0042ccd0
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403bfe
lea eax, [ebp - 0x224]
push 0x478450
push eax
call fcn.0041f6c2
pop ecx
pop ecx
test eax, eax
je 0x403bc2
xor ecx, ecx
mov word [eax + 2], cx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x240]
push eax
push edi
push edi
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x403bfe
push dword [ebp - 0x244]
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
lea eax, [ebp - 0x240]
push eax
push dword [esi + 4]
call fcn.00404cb2
push edi
push ebx
lea ecx, [ebp - 0x23c]
call fcn.004041d3
mov eax, esi
call fcn.0042a25b
ret

Function at 0x403c13
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0xc
mov eax, 0x46a7ed
call fcn.0042a279
mov esi, ecx
xor eax, eax
xor ebx, ebx
push 0xf0000000
inc ebx
mov dword [ebp - 4], eax
push ebx
push eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x403c8c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor edi, edi
push edi
test eax, eax
je 0x403c83
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x403c9e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00403f7f
mov al, bl
call fcn.0042a247
ret
push 0x10
mov ecx, esi
call fcn.00403f2b
mov eax, dword [esi + 4]
sub eax, dword [esi]
push edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi]
push 2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x10]
test eax, eax
je 0x403c7c
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x403c8e