joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410d9f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42aa85
call fcn.00428650
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.00410e09
push dword [esi + 0x24]
call fcn.00402153
push dword [esi + 0x18]
call fcn.00402153
push dword [esi + 0xc]
call fcn.00402153
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi], 0x42d13c
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x41221f
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x42acb0
call fcn.00428650
sub esp, 0x320
push ebx
mov dword [ebp - 0x1c], ecx
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.00402679
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp byte [esi], 0
je 0x41228c
push dword [esi + 0xc]
lea ecx, [ebp - 0x40]
push dword [esi + 8]
call fcn.00405733
push eax
mov edx, 0xdb0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0041217b
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040281c
push dword [ebp - 0x58]
call fcn.00402153
push dword [ebp - 0x40]
and byte [ebp - 4], 0
call fcn.00402153
pop ecx
pop ecx
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00402b19
lea ebx, [eax + 1]
lea eax, [ebp - 0x4c]
push ebx
push eax
mov ecx, edi
call fcn.00405733
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
lea eax, [eax + ebx*2]
push eax
call fcn.004026bc
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004121c1
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.004121c1
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040274c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00402996
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402a09
lea ecx, [ebp - 0x18]
call fcn.00402996
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402a09
lea ecx, [ebp - 0x18]
call fcn.00402996
cmp byte [esi + 1], 0
je 0x412368
mov edx, 0x3f4
lea ecx, [ebp - 0x40]
call fcn.00405970
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00402a09
push dword [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00402153
lea ecx, [ebp - 0x18]
mov dword [esp], 0x42d230
call fcn.00405733
push 0
lea edx, [ebp - 0x78]
lea ecx, [esi + 0x10]
call fcn.00405924
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x18]
push eax
call fcn.00405733
push dword [ebp + 8]
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
push dword [ebx + 4]
call esi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.user32.dll_SetWindowTextW]
mov edi, dword [edi]
push 0x110
lea eax, [ebp - 0x32c]
push 0x2b4
push eax
push 0x80
push edi
call dword [sym.imp.shell32.dll_SHGetFileInfoW]
test eax, eax
je 0x4123bf
push dword [ebp + 0xc]
push dword [ebx + 4]
call esi
push 0
push dword [ebp - 0x32c]
push 0x170
push eax
call dword [sym.imp.user32.dll_SendMessageW]
push dword [ebp - 0x18]
call fcn.00402153
push dword [ebp - 0x34]
call fcn.00402153
push dword [ebp - 0x4c]
call fcn.00402153
push dword [ebp - 0x28]
call fcn.00402153
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x412596
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x42ace8
call fcn.00428650
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
or eax, 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x38]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], 1
mov byte [esi + 3], bl
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
call fcn.00402679
lea ecx, [esi + 0x44]
mov dword [ebp - 4], ebx
call fcn.00402679
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call fcn.00402679
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 3
call fcn.0041262c
lea ecx, [esi + 0x98]
call fcn.00405733
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41405e
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x42af98
call fcn.00428650
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
push 0
call fcn.00412c39
push 1
mov ecx, esi
call fcn.004135b5
mov edx, 0x198
lea ecx, [ebp - 0x20]
call fcn.0040f4d7
mov eax, dword [eax]
lea edi, [esi + 4]
push eax
push 2
push dword [edi]
call dword [sym.imp.user32.dll_SetDlgItemTextW]
push dword [ebp - 0x20]
call fcn.00402153
mov ebx, dword [sym.imp.user32.dll_GetDlgItem]
pop ecx
push 2
push dword [edi]
call ebx
push 1
push 1
push 0xf4
push eax
call dword [sym.imp.user32.dll_SendMessageW]
push 0x1bc
push dword [edi]
call ebx
push 0
push eax
call dword [sym.imp.user32.dll_ShowWindow]
push 0x1be
push dword [edi]
call ebx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
lea ecx, [ebp - 0x50]
call fcn.004141f4
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.004141f4
lea eax, [esi + 0x200]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c8], ebx
lea ebx, [esi + 0x1d0]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
setne byte [ebp - 0xd]
call fcn.00414225
add ebx, 0x18
lea ecx, [ebp - 0x38]
push ebx
call fcn.00414225
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
je 0x414178
cmp dword [ebp - 0x4c], ebx
mov byte [esi + 0x21b], 1
jne 0x41416e
push 0x42d350
lea ecx, [ebp - 0x50]
call fcn.00405733
push 0x10
push dword [ebp - 0x50]
push dword [ebp - 0x44]
jmp 0x4141a3
cmp byte [ebp - 0xd], 0
jne 0x4141b9
cmp dword [ebp - 0x28], ebx
mov byte [esi + 0x21b], 1
je 0x4141d2
cmp dword [ebp - 0x34], ebx
jne 0x41419c
push 0x42d350
lea ecx, [ebp - 0x38]
call fcn.00405733
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
mov eax, esi
neg eax
sbb eax, eax
and eax, edi
push dword [eax]
call dword [sym.imp.user32.dll_MessageBoxW]
cmp byte [ebp - 0xd], 0
je 0x4141d2
cmp byte [esi + 0x156], 0
jne 0x4141d2
mov ecx, esi
mov byte [esi + 0x155], 1
call fcn.004145fc
jmp 0x4141db
push ebx
push dword [edi]
call dword [sym.imp.user32.dll_EndDialog]
lea ecx, [ebp - 0x50]
call fcn.00412ad7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x414dc7
Capabilities:
Get file system object information

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push edx
push ecx
call dword [sym.imp.shell32.dll_SHGetFileInfoW]
ret 0xc

Function at 0x414fd8
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
lea eax, [esp]
neg cl
sbb ecx, ecx
and cl, 1
add ecx, 0x100
or cx, 0x4010
push ecx
push 0x2b4
push eax
push 0x90
push 0x42c960
call dword [sym.imp.shell32.dll_SHGetFileInfoW]
add esp, 0x2b4
ret
Function at 0x421730
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
push esi
call dword [sym.imp.kernel32.dll_GetVersion]
cmp ax, 6
je 0x42176d
push str.SetDefaultDllDirectories
push 0x42c874
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x42176d
push 0xc00
call eax
test eax, eax
jne 0x421806
lea eax, [esp + 8]
push 0x106
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x421806
cmp eax, 0x104
ja 0x421806
cmp word [esp + eax*2 + 6], 0x5c
je 0x42179c
mov word [esp + eax*2 + 8], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x421806
push ebp
lea ecx, [esp + eax*2 + 0xc]
push edi
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [esp + 0xc], ecx
mov ebp, 0x6c
mov cl, byte [esi]
mov eax, dword [esp + 0xc]
inc esi
test cl, cl
je 0x4217db
xor dx, dx
add eax, 2
mov dl, cl
inc esi
mov word [eax - 2], dx
mov cl, byte [esi - 1]
test cl, cl
jne 0x4217c7
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], bp
mov word [eax + 6], bp
mov word [eax + 8], 0
push 8
lea eax, [esp + 0x14]
push 0
push eax
call edi
cmp byte [esi], 0
jne 0x4217bc
pop edi
pop ebp
pop esi
add esp, 0x2d4
ret
Function at 0x425002
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 1
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, 0x20
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x42506b
mov eax, 0x20
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, ecx
je 0x4250ac
lea ebx, [esi + 0xc8]
mov ebp, 0x20
cmp dword [ebx + 8], edi
je 0x425091
mov ecx, ebx
call fcn.00424cf0
add ebx, 0x28
dec ebp
jne 0x425085
mov edx, dword [esi + 0x5c]
cmp edx, edi
je 0x4250a7
mov ecx, dword [esi + 0x14]
call dword [ecx + 4]
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.00424c20
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea edx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + edx*8]
mov ecx, ebp
call fcn.00425150
mov ebx, eax
cmp ebx, edi
jne 0x42510f
lea ecx, [ebp + 0x20]
call fcn.00427270
mov ebx, eax
cmp ebx, edi
jne 0x42510f
lea ecx, [ebp + 0x1c]
call fcn.00427270
mov ebx, eax
cmp ebx, edi
jne 0x42510f
push ebp
call fcn.00405733
mov ebx, eax
cmp ebx, edi
je 0x425124
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.00425170
cmp ebx, edi
jle 0x42511f
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x425124
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x425136
cmp dword [esi + 0x40], edi
jne 0x425136
cmp dword [esi + 0x3c], edi
jne 0x425136
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret
Function at 0x4261c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push edi
push 0x98
xor ebx, ebx
lea eax, [esi + 0x110]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
lea edi, [ecx + eax]
mov dword [esi + 0x40], eax
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 0x18]
shr edx, 3
imul edx, edx, 0x54
mov ecx, edi
sub ecx, edx
add esp, 0xc
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xc], eax
mov edx, eax
cmp eax, 0xc
jb 0x42621b
mov edx, 0xc
or eax, 0xffffffff
sub eax, edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
lea eax, [edi - 0xc]
lea edx, [ecx + 0x600]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ecx
mov edx, 0x100
mov word [eax], dx
mov edx, 0x101
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
xor edx, edx
lea eax, [ecx + 2]
lea esp, [esp]
xor ecx, ecx
mov byte [eax - 2], dl
mov byte [eax - 1], 1
mov word [eax], cx
mov word [eax + 2], cx
inc edx
add eax, 6
cmp edx, 0x100
jb 0x426260
lea edx, [esi + 0x9fc]
mov dword [esp + 8], edx
push ebp
jmp 0x426290
mov edi, dword [esp + 0xc]
xor ebp, ebp
jmp 0x4262a0
movzx eax, word [ebp + 0x42dcd0]
xor edx, edx
lea ecx, [ebx + 2]
div ecx
mov edx, 0x4000
sub edx, eax
movzx ecx, dx
xor eax, eax
lea ebx, [ebx]
mov word [edi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x4262c0
add ebp, 2
add edi, 2
cmp ebp, 0x10
jb 0x4262a0
sub dword [esp + 0xc], 0xffffff80
inc ebx
cmp ebx, 0x80
jb 0x426290
mov ecx, 0x50
lea edi, [esi + 0x3bc]
lea ebx, [ecx - 0x4c]
pop ebp
mov eax, edi
mov edx, 0x10
jmp 0x426300
mov word [eax], cx
mov word [eax + 2], 0x403
add eax, ebx
dec edx
jne 0x426300
add ecx, 0x28
add edi, 0x40
cmp ecx, 0x438
jb 0x4262f4
pop edi
mov dword [esi + 0x3b8], 0x40070000
pop ebx
pop ecx
ret
Function at 0x427230
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x427258
xor eax, eax
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x427267
mov eax, 1
ret 4

Function at 0x427ee0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x433158]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x4284f0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x428533
cmp eax, 0x40
je 0x428525
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.msvcrt.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea ecx, [esi + 0x20]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebp, dword [ecx]
bswap ebp
bswap eax
mov dword [edi], ebp
mov dword [edi + 4], eax
add edi, 8
add ecx, 8
dec edx
jne 0x428578
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x41a1e8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [0x41a1ec]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0x870984], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x454]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
mov ecx, dword [0x41a1f0]
mov edx, dword [0x41a1f4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x870984], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x870980]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0x870984], 0x3eb
mov dword [0x870980], eax
mov eax, dword [0x8708d8]
cmove eax, dword [ebp - 8]
mov dword [0x8708d8], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], edx
and dword [ebp - 8], 0
mov dword [0x87097c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0x870984], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x401359
lea eax, [ebp - 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea eax, [ebp - 0x854]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0x870984], 0xb03
mov dword [ebp - 4], ecx
jne 0x40139c
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jne 0x40127f
mov edi, dword [ebp - 0x24]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bad7
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419c10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406d27
mov dword [ebp - 0x14], eax
cmp dword [0x457748], esi
jne 0x40bbca
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40bb57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bcaa
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40bcaa
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bcaa
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x457748], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45774c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x457750], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x457758], eax
test eax, eax
je 0x40bbc7
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x457754], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40bbef
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bbe2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40bc04
push 4
pop eax
jmp 0x40bcac
cmp dword [ebp - 0x14], esi
je 0x40bc04
push dword [0x457748]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40bbe9
mov eax, dword [0x457754]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40bc62
cmp dword [0x457758], edi
je 0x40bc62
push eax
call ebx
push dword [0x457758]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40bc62
test eax, eax
je 0x40bc62
call ecx
test eax, eax
je 0x40bc57
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40bc57
test byte [ebp - 8], 1
jne 0x40bc62
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40bc92
mov eax, dword [0x45774c]
cmp eax, edi
je 0x40bc8f
push eax
call ebx
test eax, eax
je 0x40bc8f
call eax
mov esi, eax
test esi, esi
je 0x40bc8f
mov eax, dword [0x457750]
cmp eax, edi
je 0x40bc8f
push eax
call ebx
test eax, eax
je 0x40bc8f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x457748]
call ebx
test eax, eax
je 0x40bcaa
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40bcac
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040391d
mov esp, ebp
pop ebp
ret
Function at 0x10004440
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b70d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10039060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], eax
jb 0x10004494
mov edx, dword [edx]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], edx
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x10004508
mov word [ebp - 0x34], ax
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x32], al
lea eax, [ebp - 0x31]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
sub eax, ecx
je 0x10004567
push eax
mov ecx, edi
call fcn.1000b5c0
mov esi, dword [edi]
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x31]
sub eax, ecx
push eax
mov dword [ebp - 0x38], eax
mov eax, ecx
push eax
push esi
call fcn.10015510
mov ecx, dword [ebp - 0x38]
add esp, 0xc
add ecx, esi
mov dword [edi + 4], ecx
jmp 0x10004567
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x20], ecx
xor edx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
xor esi, esi
mov dword [ebp - 4], edx
cmp dword [ebp - 0x28], esi
jbe 0x1000455f
mov ecx, dword [ebp - 0x24]
add ecx, esi
cmp eax, edx
je 0x10004546
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x10004553
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1000c4f0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
inc esi
cmp esi, dword [ebp - 0x28]
jb 0x10004530
mov ecx, dword [ebp - 0x20]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [edi + 8], edx
mov eax, edi
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.10013e4b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret