joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100139c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0xbc
mov dword [ebp - 8], 0
jmp 0x100139e2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 7
jge 0x10013a21
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x58d4685d]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10013a1c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x100139d9
mov eax, dword [ebp - 0xc]
mov byte [eax + 7], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10013a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x65
mov dword [ebp - 8], 0
jmp 0x10013a62
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x13
jge 0x10013aa1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x2ad1ba98]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10013a9c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10013a59
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x13], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10013ac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x92
mov dword [ebp - 8], 0
jmp 0x10013ae2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x23
jge 0x10013b21
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x57c63d2f]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10013b1c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10013ad9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x23], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10013b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x15
mov dword [ebp - 8], 0
jmp 0x10013b62
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x25
jge 0x10013ba1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x358dc5c9]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10013b9c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10013b59
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x25], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x10013bc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x71
mov dword [ebp - 8], 0
jmp 0x10013be2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x40
jge 0x10013c21
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x346529de]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10013c1c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10013bd9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x40], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10013c40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x51
mov dword [ebp - 8], 0
jmp 0x10013c62
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3e
jge 0x10013ca1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x6ba94ba4]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10013c9c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10013c59
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x3e], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10013cc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x26
mov dword [ebp - 8], 0
jmp 0x10013ce2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x38
jge 0x10013d21
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x179fed25]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10013d1c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10013cd9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x38], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10013d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0xa5
mov dword [ebp - 8], 0
jmp 0x10013d62
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x38
jge 0x10013da1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x4d0fb1f2]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10013d9c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10013d59
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x38], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x10018f3c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004db3c]
jne 0x10018f46
repz ret
jmp fcn.100194dc

Function at 0x1001ab00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1001ac08
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1001ac08
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1001ac08
push 2
push ebx
lea eax, [ebp + 8]
push eax
push esi
call fcn.10019810
add esp, 0x10
cmp eax, 2
je 0x1001ab49
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [ebp + 8], ax
jne 0x1001ab3d
push 4
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.10019810
add esp, 0x10
cmp eax, 4
jne 0x1001ab3d
add ebx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1001ab78
mov dword [eax], ebx
push 2
lea eax, [ebx + 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call fcn.10019810
add esp, 0x10
cmp eax, 2
jne 0x1001ab3d
movzx eax, word [ebp + 8]
cmp eax, 0x14c
je 0x1001abd3
cmp eax, 0x8664
jne 0x1001ab3d
push 0x108
push ebx
push edi
push esi
call fcn.10019810
add esp, 0x10
cmp eax, 0x108
jne 0x1001ab3d
cmp dword [edi], 0x4550
mov eax, 0x40
pop edi
mov ecx, 0x80004005
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf8
push ebx
push edi
push esi
call fcn.10019810
add esp, 0x10
cmp eax, 0xf8
jne 0x1001ab3d
cmp dword [edi], 0x4550
mov eax, 0x20
pop edi
mov ecx, 0x80004005
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40acf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40ad05
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ad44
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40ad40
lea ebx, [ebx]
cmp esi, edx
jae 0x40ad44
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40ad30
cmp esi, edx
jb 0x40ad49
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40b500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40b515
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x40b520
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b520
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40b550
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x40b569
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b575
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x40b570
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40bbf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acfc6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4e96d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40bc9c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40bc9c
call fcn.0040add0
mov esi, eax
jmp 0x40bd8c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40bcbf
call fcn.0040add0
jmp 0x40bd7f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x40bcdd
call fcn.0040add0
jmp 0x40bd7f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40bcfe
mov esi, 0x8007000e
jmp 0x40bd81
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004189f0
jmp 0x40bd28
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40bd3f
mov esi, 0x8007000e
jmp 0x40bd81
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40bd5f
call fcn.0040add0
jmp 0x40bd7f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040c9c0
mov esi, eax
test edi, edi
je 0x40bd8c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40bdb0
lea ecx, [ebp - 0x418]
call fcn.00419f10
jmp 0x40bdb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004712e4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40e1c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ecx]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x40e1fb
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e1f3
call fcn.0040add0
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
sub esp, 8
mov edx, 0x9d
mov ecx, str.ATL::CAtlFile::Write
call fcn.0040df60
add esp, 8
push 0x80004005
call fcn.0040abe0
int3

Function at 0x40fe10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 8], eax
jmp 0x40fe30
push 0
push 0x80
push 4
push dword [ebp + 0x14]
push 1
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 0xffffffff
jne 0x40fe7e
cmp esi, 0x20
jne 0x40fe7e
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x40fe6e
push 1
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, 0x3e8
jb 0x40fe30
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fe90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, dx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40feb8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40feaf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40feaf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40feaf
sub esp, 8
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0
push 0x80
push 2
push 0
push 0x40000000
push dword [ebp + 0xc]
call fcn.0040e130
test eax, eax
js 0x40ff20
push ecx
push ebx
push esi
lea ecx, [ebp - 8]
call fcn.0040e1c0
test eax, eax
js 0x40ff20
mov bl, 1
jmp 0x40ff22
xor bl, bl
mov eax, dword [ebp - 8]
test eax, eax
je 0x40ff30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411f30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4f2ecc]
cmp dword [eax - 0xc], 0
jne 0x411fd2
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov edx, dword [ebp - 4]
test edx, edx
js 0x411fd6
push esi
mov esi, dword [0x4f2ecc]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x411f88
push edx
mov ecx, 0x4f2ecc
call fcn.0041a8d0
mov esi, dword [0x4f2ecc]
lea eax, [ebp - 4]
push eax
push esi
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [0x4f2ecc]
pop esi
test eax, eax
jne 0x411fa3
xor ecx, ecx
jmp 0x411fba
push dword [eax - 8]
push eax
call fcn.004721a5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x411fd6
mov eax, dword [0x4f2ecc]
cmp ecx, dword [eax - 8]
jg 0x411fd6
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [0x4f2ecc]
mov word [eax + ecx*2], dx
mov eax, dword [0x4f2ecc]
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040abe0
int3
Function at 0x4169a0
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ad907
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov ebx, ecx
push str.Minidump
push ecx
call fcn.0040fc40
add esp, 4
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00419430
add esp, 0xc
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [esp + 0x30]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x416a1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
lea ecx, [esp + 0x38]
call fcn.00413470
lea ecx, [esp + 0x14]
mov dword [esp + 0xd8], 0
call fcn.0041b210
mov byte [esp + 0xd8], 1
mov ecx, dword [esp + 0x18]
mov esi, ecx
cmp ecx, dword [esp + 0x1c]
jb 0x416a6b
lea eax, [ecx + 1]
push eax
lea ecx, [esp + 0x18]
call fcn.0041b840
test al, al
jne 0x416a67
push 0x8007000e
call fcn.0040abe0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea eax, [eax + esi*4]
test eax, eax
je 0x416a80
lea ecx, [esp + 0x34]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
inc ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x28]
call fcn.004166f0
mov esi, eax
push str.Minidump_
push ecx
mov byte [esp + 0xe0], 2
call fcn.0040fc40
add esp, 4
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00419430
add esp, 0xc
push esi
mov edx, eax
mov byte [esp + 0xdc], 3
lea ecx, [esp + 0x30]
call fcn.00419370
add esp, 4
mov byte [esp + 0xd8], 4
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push ebx
call fcn.00412ee0
mov byte [esp + 0xdc], 3
add esp, 4
mov edx, dword [esp + 0x2c]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416b0b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xd8], 2
mov ecx, edi
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416b30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xd8], 1
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x416b53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x14]
call fcn.0041b730
lea ecx, [esp + 0x34]
call fcn.00415110
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416da0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, 1
mov eax, dword [esi]
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or edx, eax
jge 0x416dc6
push 0x104
call fcn.0041a8d0
push edi
push 0x104
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
neg eax
sbb edi, edi
mov eax, dword [esi]
neg edi
test eax, eax
jne 0x416de6
xor ecx, ecx
jmp 0x416df8
push dword [eax - 8]
push eax
call fcn.004721a5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x416e49
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x416e49
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
test edi, edi
pop edi
mov word [eax + ecx*2], dx
je 0x416e34
mov ecx, esi
call fcn.00419ae0
mov eax, dword [ebp + 8]
mov ecx, esi
push dword [eax]
call fcn.004199f0
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
setne al
pop ebp
ret 4
push 0x4e6654
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x80004005
push eax
call fcn.0047ad64
push 0x80070057
call fcn.0040abe0
int3
Function at 0x41aca0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4adba8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0041afc0
mov edi, eax
push edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x24], 1
mov byte [ebp - 4], 1
cmp dword [0x4f2b00], ebx
jne 0x41ad48
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 1
push ebx
push ebx
push 0x4f2b00
call esi
test eax, eax
jne 0x41ad48
push 8
push 1
push eax
push eax
push 0x4f2b00
call esi
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41ad33
movzx eax, ax
or eax, 0x80070000
test esi, esi
jne 0x41ad48
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 0x4e6654
push eax
call fcn.0047ad64
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x18]
mov byte [ebp - 0x24], 0
push 1
push dword [0x4f2b00]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
neg eax
sbb eax, eax
neg eax
jne 0x41ad9f
push 0x4e6654
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x80004005
push eax
call fcn.0047ad64
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00473b00
mov eax, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, 0x41ad9c
ret
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41cf60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4e96d0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.0047c2c0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41cfcd
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x41cfbd
cmp eax, 4
jne 0x41cfcd
cmp dword [ebp - 0x110], 0x5a
jb 0x41cfcd
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004712e4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004712e4
mov esp, ebp
pop ebp
ret
Function at 0x41cfe0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x41d05c
mov esi, dword [ebp + 8]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x41d015
push edi
mov ecx, esi
call fcn.0041a8d0
push edi
push dword [esi]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x41d03d
mov ecx, dword [esi]
test ecx, ecx
je 0x41d041
push dword [ecx - 8]
push ecx
call fcn.004721a5
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x41d05c
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x41d05c
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.0040abe0
int3

Function at 0x41dae0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4addf8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4e96d0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x4e96d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0041a520
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.0041da00
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x41db5d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.00474b4f
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x41db86
push dword [esp + 0x10]
call fcn.004712df
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004712e4
mov esp, ebp
pop ebp
ret 0xc