joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062f9
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x40b010
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 0
je 0x40634c
push 0
lea edx, [ebp - 0xc]
push edx
push 0
push 2
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov cx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov esp, ebp
pop ebp
ret
Function at 0x408a0e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4091c0
push 0x408bb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40f4d8], 0xffffffff
or dword [0x40f4dc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40f4d4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40f4d0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40f4e0], eax
call fcn.00408b5d
cmp dword [0x40ee20], 0
jne 0x408a91
push 0x408b5a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00408b42
push 0x40b00c
push 0x40b008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40f4cc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40f4c8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x40b004
push 0x40b000
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x7cb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007cb1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7cb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7cb06a
add dl, dl
jne 0x7cb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7cb0dc
xor eax, eax
add dl, dl
jne 0x7cb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7cb17d
add dl, dl
jne 0x7cb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7cb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7cb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7cb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7cb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7cb075
mov eax, 1
add dl, dl
jne 0x7cb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7cb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7cb0e1
sub eax, ebx
mov ebx, 1
jne 0x7cb128
mov ecx, 1
add dl, dl
jne 0x7cb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7cb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7cb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7cb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7cb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7cb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7cb136
cmp eax, 0x7d00
jae 0x7cb16d
cmp eax, 0x500
jb 0x7cb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7cb075
cmp eax, 0x7f
ja 0x7cb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7cb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7cb19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7cb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1002a820
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push 0x11
mov dword [0x100800c0], eax
call dword [sym.imp.MSDART.DLL_FXMemAttach]
push 0x100800ac
push dword [0x100800b0]
push 0x1000b290
push 0x1000b3b8
call dword [sym.imp.MSDATL3.dll_long_int___cdecl_LoadResourceDLL_unsigned_short_int___unsigned_short_int___void___void___]
mov esi, eax
add esp, 0x14
test esi, esi
jns 0x1002a8a0
test byte [0x1008028c], 2
je 0x1002aa3e
cmp dword [0x10084300], 0
je 0x1002aa3e
mov eax, dword [0x10084300]
push 0x49
push esi
push 0x1000b3d4
push eax
mov eax, dword [0x100840e0]
push 0x16fc00
push eax
call fcn.1002c070
add esp, 0x18
jmp 0x1002aa3e
push 0x10080098
push 1
call dword [sym.imp.ole32.dll_CoGetMalloc]
mov esi, eax
test esi, esi
jns 0x1002a8c7
test byte [0x1008028c], 2
je 0x1002aa3e
push 0x52
jmp 0x1002aa2f
cmp dword [0x100800a8], 0
jne 0x1002a90d
push 0
push 0x100800a8
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
jne 0x1002a90d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1002a8f9
movzx esi, si
or esi, 0x80070000
test byte [0x1008028c], 2
je 0x1002aa3e
push 0x5e
jmp 0x1002aa2f
cmp dword [0x10080090], 0
jne 0x1002aa0f
push 0x48
push 0x1100000
push dword [0x100800c0]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
mov ecx, eax
add esp, 0xc
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x1002a993
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x3c], 1
mov eax, dword [0x10003010]
mov dword [ecx + 8], eax
mov eax, dword [0x10003014]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10003018]
mov dword [ecx + 0x10], eax
mov eax, dword [0x1000301c]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x30], 0
jmp 0x1002a995
xor ecx, ecx
mov dword [0x10080090], ecx
test ecx, ecx
jne 0x1002a9ce
test byte [0x1008028c], 2
mov esi, 0x8007000e
je 0x1002aa42
push 0x69
mov edx, 0x1000b3d4
mov ecx, esi
call fcn.10017a80
add esp, 4
call fcn.1002aab0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10028470
mov esi, eax
test esi, esi
jns 0x1002aa0f
test byte [0x1008028c], 2
je 0x1002a9f3
push 0x6e
mov edx, 0x1000b3d4
mov ecx, esi
call fcn.10017a80
add esp, 4
mov ecx, dword [0x10080090]
test ecx, ecx
je 0x1002aa03
push ecx
call fcn.1002aa50
mov dword [0x10080090], 0
jmp 0x1002aa3e
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.100227d0
mov esi, eax
test esi, esi
jns 0x1002aa47
test byte [0x1008028c], 2
je 0x1002aa3e
push 0x7d
mov edx, 0x1000b3d4
mov ecx, esi
call fcn.10017a80
add esp, 4
test esi, esi
jns 0x1002aa47
call fcn.1002aab0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002ac00
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1007b958]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
sub eax, 0
je 0x1002ad5e
sub eax, 1
jne 0x1002adca
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x100802ac], 0
mov dword [ebp - 0x118], 0
jne 0x1002ad36
lea eax, [ebp - 0x118]
push eax
push ecx
lea ecx, [ebp - 0x114]
call fcn.1002c6f0
add esp, 8
test eax, eax
jne 0x1002acb0
push 1
call fcn.1002c350
push 0x10080274
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x100802a0
push 0
push 0
push 0
push 0
push 0x10002160
push 0
mov dword [0x10080294], 1
push 0x1002cb60
mov dword [0x10080298], 1
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
jmp 0x1002ad36
cmp dword [0x1008028c], 0
lea eax, [ebp - 0x114]
mov dword [0x100788b0], eax
mov byte [ebp - 7], 0
jne 0x1002acd2
mov dword [0x1008028c], 0xfff
cmp dword [0x100802ac], 0
jne 0x1002acf5
mov ecx, 0x23fa
call fcn.1002c460
cmp dword [0x1007d040], 0xffffffff
jne 0x1002acf5
push 1
call fcn.1002c0c2
cmp dword [0x10078008], 0x1002c190
jne 0x1002ad2c
cmp dword [ebp - 0x118], 0
je 0x1002ad2c
push 0x1000bb08
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [0x100788b0]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1000bb10
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x100788b0], 0x1000bb34
push 0
push 0x100800c4
mov dword [0x100800b0], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x1002adca
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071b90
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 0
jne 0x1002adca
push 0x100800c4
mov dword [0x10080094], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.1002c400
mov ecx, dword [0x100802a0]
mov eax, ecx
mov edx, dword [0x100802a4]
or eax, edx
je 0x1002adac
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov dword [0x100802a0], 0
mov dword [0x100802a4], 0
cmp dword [0x10080294], 0
je 0x1002adca
push 0x10080274
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x10080294], 0
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10071b90
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1002c690
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
push 0
push 2
mov dword [esi + 0x14], 0
mov byte [edi], 0
push dword [esi + 8]
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov edx, eax
test edx, edx
jne 0x1002c6da
cmp dword [ebp - 4], 1
jbe 0x1002c6da
xor ecx, ecx
cmp byte [edi], 0x3a
setne cl
mov dword [esi + 0x14], ecx
xor eax, eax
test edx, edx
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002ca90
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1007b958]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 0x114], 0
push eax
push 0
push 2
push edx
push 0
push ecx
mov dword [esi], 0
mov dword [ebp - 0x228], 0x10e
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x1002caf1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071b90
mov esp, ebp
pop ebp
ret
push 0x10e
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002cb49
cmp eax, 0x10e
jae 0x1002cb49
mov edx, 0x10e
lea ecx, [ebp - 0x224]
push 0x1000baa0
sub edx, eax
add ecx, eax
call fcn.1002ce50
test eax, eax
js 0x1002cb49
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.10071b90
mov esp, ebp
pop ebp
ret

Function at 0x1002cd30
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1007b958]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10080274
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10080298], 0
je 0x1002ce32
mov ecx, dword [0x100802a0]
mov eax, ecx
mov edx, dword [0x100802a4]
or eax, edx
je 0x1002cd8b
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov dword [0x100802a0], 0
mov dword [0x100802a4], 0
push 0x10e
lea eax, [ebp - 0x114]
mov dword [0x1008028c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002ce28
cmp eax, 0x10e
jae 0x1002ce28
mov edx, 0x10e
lea ecx, [ebp - 0x114]
push 0x1000baa0
sub edx, eax
add ecx, eax
call fcn.1002ce50
test eax, eax
js 0x1002ce28
mov ecx, dword [0x1008028c]
mov eax, ecx
not eax
mov dword [0x100802b0], 1
and eax, 0xfff
xor ecx, eax
cmp dword [0x100802ac], 0
lea eax, [ebp - 0x114]
mov dword [0x1008028c], ecx
mov dword [0x100788b0], eax
jne 0x1002ce1e
mov ecx, 0x23fa
call fcn.1002c460
cmp dword [0x1007d040], 0xffffffff
jne 0x1002ce1e
push 1
call fcn.1002c350
mov dword [0x100788b0], 0x1000bb34
mov dword [0x10080298], 0
push 0x10080274
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071b90
mov esp, ebp
pop ebp
ret
Function at 0x10072020
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 0x1007205e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10072056
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10072060
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10072046
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10072130
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10072161
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10072161
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10072161
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401ab0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 8
xor bl, bl
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004098c0
xor eax, eax
add esp, 0xc
mov ecx, 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x60], 0x44
mov word [ebp - 0x30], cx
cmp dword [ebp - 4], eax
je 0x401bb7
mov edx, dword [ebp - 0xc]
push eax
push edx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x401ba9
xor ecx, ecx
mov eax, 5
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00402f28
mov esi, eax
mov eax, str._upd
mov edx, esi
add esp, 4
sub edx, eax
jmp 0x401b60
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401b60
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0xc]
push 0
push edx
push 0x430
push 0
push 0
push 0
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
setne bl
test esi, esi
je 0x401ba9
push esi
call fcn.00403951
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x401bb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
test eax, eax
je 0x401bc5
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov edx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x1c]
push eax
call esi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x422084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
test edi, edi
je 0x401d44
test ebx, ebx
je 0x401d44
test eax, eax
je 0x401d44
lea eax, [esi + 8]
push eax
mov dword [ebp - 0xac], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 4], 0
je 0x401d37
push 0
call fcn.00406253
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xa8]
push ecx
mov dword [ebp - 0xb4], edx
call fcn.004046fd
lea edx, [ebp - 0xa8]
push edx
push str.__Y__m__d__H:_M:_S__t
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00406234
mov ecx, dword [esi + 4]
push ecx
push eax
lea edx, [ebp - 0x84]
push 1
push edx
call fcn.004044db
mov eax, edi
add esp, 0x2c
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ce0
mov ecx, dword [esi + 4]
push ecx
sub eax, edx
push eax
push 1
push edi
call fcn.004044db
mov edx, dword [esi + 4]
push edx
push 1
push 1
push 0x41c174
call fcn.004044db
mov eax, dword [ebp - 0xb0]
mov ecx, dword [esi + 4]
push eax
push ebx
push ecx
call fcn.004057b2
mov edx, dword [esi + 4]
push edx
push 2
push 1
push 0x41c150
call fcn.004044db
mov eax, dword [esi + 4]
push eax
call fcn.00404bc7
add esp, 0x40
mov ecx, dword [ebp - 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402f3e
mov esp, ebp
pop ebp
ret 4
Function at 0x402f3e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422084]
jne 0x402f48
repz ret
jmp fcn.004064ef

Function at 0x40f3f4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x422084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004072ef
and dword [ebp - 0x14], 0
cmp dword [0x4248fc], 0
mov dword [ebp - 0x18], eax
jne 0x40f4a7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f54f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40f54f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4248fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x424900], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x424904], eax
call edi
push eax
call esi
mov dword [0x42490c], eax
test eax, eax
je 0x40f4a7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x424908], eax
mov eax, dword [0x424908]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f500
cmp dword [0x42490c], ecx
je 0x40f500
push eax
call esi
push dword [0x42490c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f500
test ebx, ebx
je 0x40f500
call edi
test eax, eax
je 0x40f4f7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f4f7
test byte [ebp - 8], 1
jne 0x40f500
or dword [ebp + 0x10], 0x200000
jmp 0x40f533
mov eax, dword [0x424900]
cmp eax, dword [ebp - 0x18]
je 0x40f533
push eax
call esi
test eax, eax
je 0x40f533
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f533
mov eax, dword [0x424904]
cmp eax, dword [ebp - 0x18]
je 0x40f533
push eax
call esi
test eax, eax
je 0x40f533
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4248fc]
call esi
test eax, eax
je 0x40f54f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f551
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f3e
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401430
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b09d
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
je 0x40148b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517154
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 1
lea ecx, [ebp - 0x34]
call fcn.00403a50
push str.D:NeatForWindowsNeatDMNeatBaseNeatBaseLib.cpp
push 0x53
push str.WSAStartup___failed
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x240]
call fcn.00407b80
push 0x574b4c
lea eax, [ebp - 0x240]
push eax
call fcn.0051907e
int3

Function at 0x401cd0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x1c], eax
push esi
push esi
push 0x5581f0
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], edx
push eax
mov dword [ebp - 0x18], ecx
xor bl, bl
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x401dbe
push esi
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push str.ObjectLength
push dword [ebp - 0xc]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x401dbe
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x401dbe
push 0
push 0x20
push str.ChainingModeECB
push str.ChainingMode
push dword [ebp - 0xc]
call dword [sym.imp.bcrypt.dll_BCryptSetProperty]
test eax, eax
js 0x401dbe
push 0
push 8
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
js 0x401dbe
push 2
lea eax, [ebp - 8]
push eax
push 8
push dword [ebp - 0x1c]
push 8
push 0
push 0
push 8
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovns ebx, ecx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x401dce
push 0
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401ddc
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
test esi, esi
je 0x401df0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00517154
mov esp, ebp
pop ebp
ret