joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1b854
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x1b86b
mov dword [eax], ebx
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xc0000023
je 0x1b8b5
cmp edi, 0xc0000034
je 0x1b902
cmp edi, ebx
jge 0x1b902
push edi
push 0x16e
push 0x1c084
push 0x1c822
push ebx
push 0x65
call dword [sym.imp.ntoskrnl.exe_DbgPrintEx]
add esp, 0x18
jmp 0x1b902
cmp dword [ebp + 0x10], ebx
je 0x1b902
push 0x73525349
push dword [ebp - 4]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
test ebx, ebx
jne 0x1b8d7
mov edi, 0xc000009a
jmp 0x1b902
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
jl 0x1b8f6
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
jmp 0x1b902
push 0x73525349
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1b910
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
push 0x13550
call fcn.00010748
and dword [ebp - 0x1c], 0
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebx]
add esi, 0x410
push 0x73525349
push esi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
mov dword [ebp + 0x18], edi
test edi, edi
jne 0x1b949
mov eax, 0xc000009a
jmp 0x1b9bd
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1b9a2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1b974
mov ecx, dword [edi + 4]
mov dword [eax], ecx
cmp dword [ebp + 0x14], 0
je 0x1b99d
mov eax, dword [ebx]
test eax, eax
jbe 0x1b99d
mov ecx, dword [edi + 8]
cmp eax, ecx
jb 0x1b989
mov eax, ecx
mov dword [ebx], eax
push eax
lea eax, [edi + 0xc]
push eax
push dword [ebp + 0x14]
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
jmp 0x1b9a2
mov eax, dword [edi + 8]
mov dword [ebx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0001b9c8
push 0x73525349
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x1c]
call fcn.0001078d
ret 0x14
Function at 0x1ba54
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x1bab9
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
leave
ret 0x14

Function at 0x1bac4
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x240
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, esi
jl 0x1bb1f
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
leave
ret 8

Function at 0x1cc3d
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.0001cc04
pop ebp
jmp fcn.0001ca86
Function at 0x485d60
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dbc8b
push eax
mov eax, 0x2023c
mov dword fs:[0], esp
call fcn.004d5830
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [esp + 0x20258], ebx
jne 0x485daa
push str.4_799
call fcn.004a4b10
add esp, 4
mov dword [esp + 0x20258], eax
cmp eax, ebx
je 0x485fa2
mov eax, dword [esp + 0x20258]
cmp word [eax], bx
je 0x485fa2
mov eax, dword [esp + 0x2025c]
cmp eax, ebx
je 0x485fa2
cmp word [eax], bx
je 0x485fa2
push ebp
push 0x528
push ebx
lea ebp, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], 0x294
call fcn.004caea7
add esp, 8
cmp eax, ebx
jne 0x485e08
push ebx
call fcn.004ca991
add esp, 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
jmp 0x485e15
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov word [eax], cx
push esi
mov dword [esp + 0x20254], ebx
cmp edi, ebx
je 0x485e9e
cmp word [edi], bx
je 0x485e9e
push 0x5c
push edi
call fcn.004ca9cb
add esp, 8
test eax, eax
jne 0x485e88
push 0x106
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x1c]
push 0x5c
push eax
call fcn.004cb9fc
add esp, 8
cmp eax, ebx
je 0x485e5f
xor ecx, ecx
mov word [eax + 2], cx
push 1
push ebx
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x1c]
call fcn.004148c0
push 1
push ebx
push edi
call fcn.004148c0
mov ebp, dword [esp + 0x14]
mov eax, esi
call fcn.00414e80
mov edi, eax
jmp 0x485eef
push ebx
lea eax, [esp + 0x20]
push eax
push 0x118
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
jmp 0x485eef
mov edx, dword [0x51cbbc]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x118
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
lea eax, [esp + 0x1c]
push 0x2e
push eax
call fcn.004cb9fc
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x485eef
push 0x50d114
call fcn.004a4b10
mov edx, esi
add esp, 4
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x485ee0
cmp edi, 0x104
ja 0x485f95
mov ecx, dword [esp + 0x20264]
cmp word [ecx], bx
je 0x485f95
xor edx, edx
push 0x4f0b28
mov word [esp + 0x250], dx
call fcn.004a4b10
mov ecx, dword [esp + 0x20268]
mov edx, dword [esp + 0x20264]
add esp, 4
push ebp
push 0xffff
mov esi, eax
lea eax, [esp + 0x254]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x24c]
push esi
push eax
call fcn.004c9bad
add esp, 8
test eax, eax
je 0x485f95
mov eax, dword [esp + 0x2025c]
lea ebx, [esp + 0x24c]
call fcn.00414350
lea ecx, [esp + 0x10]
call fcn.00413fb0
mov al, 1
pop esi
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x2023c]
mov dword fs:[0], ecx
add esp, 0x20248
ret
lea ecx, [esp + 0x10]
call fcn.00413fb0
xor al, al
jmp 0x485f7c
mov ecx, dword [esp + 0x20244]
pop edi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x20248
ret
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40687b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ebx
invalid
inc esi
invalid

Function at 0x402640
Capabilities:
Check os version
Get file version info

Disassembly:
sub esp, 0xa8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
mov dword [0x40a060], 0xffffffff
push eax
mov dword [esp + 0x18], 0x9c
call esi
test eax, eax
jne 0x402694
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push ecx
call esi
test eax, eax
jne 0x402694
pop edi
pop esi
add esp, 0xa8
ret
lea edx, [esp + 0xc]
push edx
push str.kernel32.dll
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x4026b2
pop edi
pop esi
add esp, 0xa8
ret
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4026cb
pop edi
pop esi
add esp, 0xa8
ret
mov eax, dword [esp + 0xc]
push edi
push esi
push eax
push str.kernel32.dll
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4026f5
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0xa8
ret
lea ecx, [esp + 0x10]
push ebx
lea edx, [esp + 0xc]
push ecx
push edx
push 0x40a37c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40280c
mov eax, dword [esp + 0xc]
push edi
mov esi, dword [eax + 8]
mov bx, word [eax + 8]
shr esi, 0x10
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp si, 6
jne 0x40276e
cmp bx, 1
jne 0x402750
pop ebx
mov dword [0x40a060], 4
mov eax, dword [0x40a060]
pop edi
pop esi
add esp, 0xa8
ret
test bx, bx
jne 0x4027a5
pop ebx
mov dword [0x40a060], 3
mov eax, dword [0x40a060]
pop edi
pop esi
add esp, 0xa8
ret
cmp si, 5
jne 0x4027c4
mov ecx, dword [esp + 0x20]
mov eax, 2
cmp ecx, eax
jne 0x402786
mov dword [0x40a060], eax
cmp bx, 1
jne 0x4027e8
pop ebx
mov dword [0x40a060], 1
mov eax, dword [0x40a060]
pop edi
pop esi
add esp, 0xa8
ret
cmp bx, 1
jbe 0x402816
pop ebx
mov dword [0x40a060], 5
mov eax, dword [0x40a060]
pop edi
pop esi
add esp, 0xa8
ret
cmp si, 0xa
jne 0x402806
test bx, bx
jne 0x402816
pop ebx
mov dword [0x40a060], 6
mov eax, dword [0x40a060]
pop edi
pop esi
add esp, 0xa8
ret
test bx, bx
jne 0x402816
pop ebx
mov dword [0x40a060], 0
mov eax, dword [0x40a060]
pop edi
pop esi
add esp, 0xa8
ret
cmp si, 4
ja 0x402816
mov dword [0x40a060], 0xffffffff
mov eax, dword [0x40a060]
pop ebx
pop edi
pop esi
add esp, 0xa8
ret
Function at 0x4057f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x406ec7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0x2c]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
mov dword [esi + 0x30], 0x407c4c
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], 0x407c4c
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], 0x407c4c
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], 0x407c4c
lea ebp, [esi + 0x50]
push 0x40a968
mov ecx, edi
mov byte [esp + 0x20], 4
mov dword [ebp], 1
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [esi], 0x407c48
call sub.MFC42.DLL_CString::operator_1
mov ecx, 0x36c
xor eax, eax
lea edi, [esi + 0x70]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x6c], ebx
push 0x58c4fa
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.GDI32.dll_CreatePen]
push 2
push 6
mov dword [esi + 4], 1
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call edi
push eax
lea ecx, [esi + 0x30]
call fcn.00406574
push 0x58c4fa
push 2
push 6
call edi
push eax
lea ecx, [esi + 0x40]
call fcn.00406574
push 0x58c4fa
push 2
push 6
call edi
push eax
lea ecx, [esi + 0x38]
call fcn.00406574
push 0x58c4fa
push 2
push 6
call edi
push eax
lea ecx, [esi + 0x48]
call fcn.00406574
push ebx
lea eax, [esi + 0x60]
push ebp
push eax
call sub.gdiplus.dll_GdiplusStartup
mov eax, esi
pop edi
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x405d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406fd0
mov eax, dword fs:[0x2000]
push eax
mov byte fs:[0], ah
sub esp, 0x38
push ebp
push edi
mov edi, ecx
mov dword [esp + 0x38], 0x40000000
mov dword [esp + 0x14], 0x407c60
mov ebp, esp
and al, 0x50
mov dword [esp + 0x48], 0
test ebp, ebp
jne 0x405d78
mov dword [esp + 0x14], 0x407860
lea ecx, [eax + 0x14]
mov dword [esp + 0x48], 1
call fcn.00406400
pop edi
pop ebp
mov ecx, dword [esp + 0x38]
test eax, 0xd
add byte [ebx + 0x4c244c5], al
add byte [ebx - 0x7aacefb9], cl
rcl byte [esi + 0x4f], 0x84
xchg edx, eax
add byte [edx], al
add byte [ebx + 0x24548d08], cl
adc byte [edx + 0x50], dl
mov eax, dword [edi + 0x10]
push ebx
test eax, eax
push esi
dec edi
test byte [edx - 0x74fffe00], dl
or byte [ebp + 0x52102454], cl
push eax
call dword [ecx + 0x18]
mov eax, dword [edi + 0x10]
lea edx, [esp + 0x58]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], eax
call 0x486392
lea edx, [esp + 0x2c]
lea ecx, [esi + 0x34]
push edx
invalid
Function at 0x40e630
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x40ec58
call fcn.0040e998
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40fc60
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40e458
cmp eax, esi
jne 0x40e44b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40e45b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e42f
xor esi, esi
inc esi
cmp dword [0x40fc64], esi
jne 0x40e46d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40e4a7
cmp dword [0x40fc64], ebx
jne 0x40e4a1
mov dword [0x40fc64], esi
push 0x4011ec
push 0x4011e0
call fcn.0057f000
pop ecx
pop ecx
test eax, eax
je 0x40e4a7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40e57c
mov dword [0x40f08c], esi
cmp dword [0x40fc64], esi
jne 0x40e4ca
push 0x4011dc
push 0x4011d4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40fc64], 2
test edi, edi
jne 0x40e4d7
xor eax, eax
mov ecx, 0x40fc60
xchg dword [ecx], eax
cmp dword [0x40fc68], 0
je 0x40e503
push 0x40fc68
call fcn.0040e7f0
pop ecx
test eax, eax
je 0x40e503
push ebx
push 2
push ebx
mov esi, dword [0x40fc68]
mov ecx, esi
call dword [0x410144]
call esi
push dword [0x40f098]
push dword [0x40f094]
push dword [0x40f090]
call fcn.0040923f
add esp, 0xc
mov dword [0x40f088], eax
cmp dword [0x40f0a0], 0
jne 0x40e561
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40f08c], 0
jne 0x40e575
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40f088]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0040e8e5
jmp 0x40e413

Function at 0x40e6d4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40ec78
call fcn.0040e998
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e734
cmp eax, 0xffffffff
je 0x40e734
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40e72d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40e72d
cmp edx, 0x10000000
jae 0x40e72d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40e72a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40e7a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40e7de
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40e7d6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40e7e0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40e7c6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x71b313a4
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x7f0a1f04
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x1004c83
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01002df0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004ce9
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10062b8]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1004ced
xor eax, eax
jmp 0x1004cfa
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x1001cc37
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x1001ccba
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x1001cc84
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x1001cc84
cmp edi, ebx
jge 0x1001cc84
mov eax, dword [ebp + 0xc]
mov ecx, ebx
sub ecx, edi
push ecx
add eax, edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x1001ccb4
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x1001ccb4
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push dword [esi + 0x20]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop ebx
jmp 0x1001cccc
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x1001cf62
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
cmp byte [0x100269c0], al
je 0x1001cf99
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cffd
push 0x103
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1001e0e7
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1001e0e7
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.1001e0e7
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ddeb
leave
ret 0x10

Function at 0x1001d00e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100269c0], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001d03a
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001d06b
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001d069
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1001e0e7
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001d06b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001ddeb
leave
ret 8