joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d640
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x1001dc3b
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push esi
push edi
mov eax, dword [0x1004a018]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov eax, str.Downloading__1__...
lea esi, [esp + 0x34]
call fcn.10009a20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
push 0x64
push eax
push ecx
mov dword [esp + 0x90], 0
call fcn.1001c560
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
fild qword [esp + 0x3c]
fild qword [ebp + 0x14]
sub esp, 8
fdivp st(1)
fstp qword [esp]
call sub.MSVCR100.dll_floor
add esp, 8
call fcn.1001c460
mov byte [esp + 0x30], 0x20
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x34]
mov esi, eax
call dword [sym.imp.QtCore_Ad_4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0xa
lea eax, [esp + 0x40]
push esi
push eax
call dword [sym.imp.QtCore_Ad_4.dll_public:_static_class_QString___cdecl_QString::number_int__int_]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push 0
push eax
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x90], 1
call dword [sym.imp.QtCore_Ad_4.dll_public:_class_QString___thiscall_QString::arg_class_QString_const___int__class_QChar_const__]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 2
call dword [sym.imp.QtCore_Ad_4.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
lea ecx, [esp + 0x38]
mov byte [esp + 0x80], 1
call dword [sym.imp.QtCore_Ad_4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call dword [sym.imp.QtCore_Ad_4.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [esp + 0x34]
push eax
mov esi, edi
call fcn.1000e100
lea ecx, [esp + 0x34]
mov dword [esp + 0x80], 0xffffffff
call dword [sym.imp.QtCore_Ad_4.dll_public:_void___thiscall_QString::destructor_void_]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1001ba98
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004a018]
jne 0x1001baa2
repz ret
jmp fcn.1001c017
Function at 0x404b71
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, dword [0x43f320]
test eax, eax
jne 0x404b82
xor al, al
jmp 0x404c17
cmp dword [0x43f524], 0x80
je 0x404b7b
push esi
push str.RtlImageNtHeader
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x404ba5
xor al, al
jmp 0x404c16
cmp byte [esi], 0xff
jne 0x404bb5
cmp byte [esi + 1], 0x25
jne 0x404bb5
mov eax, dword [esi + 2]
mov esi, dword [eax]
push edi
lea eax, [esp + 8]
push eax
push 0x40
push 7
lea edi, [esi - 5]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x404bd8
xor al, al
jmp 0x404c15
push ebx
push ecx
push ecx
push esi
call fcn.00404c1b
mov bl, al
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 7
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test bl, bl
je 0x404c12
mov eax, dword [0x43f524]
mov dword [eax*4 + 0x43f324], esi
inc dword [0x43f524]
mov al, bl
pop ebx
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x404c1b
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [esp + 4]
push 0xfffffffffffffffb
pop eax
mov dl, byte [eax + ecx]
cmp dl, 0x90
je 0x404c2f
cmp dl, 0xcc
jne 0x404c79
inc eax
cmp eax, 0xffffffff
jle 0x404c22
mov al, byte [ecx]
cmp al, 0x8b
je 0x404c3f
cmp al, 0x89
jne 0x404c79
cmp byte [ecx + 1], 0xff
jne 0x404c79
mov eax, 0x405082
mov byte [ecx - 5], 0xe9
sub eax, ecx
mov dword [ecx - 4], eax
lea eax, [ecx + 2]
mov dword [0x43e8b0], eax
mov eax, 0xf9eb
push 0
push 0
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
ret 0xc
xor al, al
jmp 0x404c76

Function at 0x404c7d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
mov edi, dword [ebx + 4]
cmp dword [ebx + 0xc], esi
jle 0x404cd6
push ebp
mov ebp, dword [edi]
lea eax, [esp + 0x10]
push eax
push 0x40
push 5
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x404ccc
mov eax, edi
sub eax, ebp
dec eax
mov dword [ebp + 1], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 5
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
inc esi
sub edi, 0xffffff80
cmp esi, dword [ebx + 0xc]
jl 0x404c8e
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x404cdb
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x404d2f
push edi
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esi], eax
test eax, eax
je 0x404d2f
mov ecx, dword [esp + 0x10]
push 0x20
pop eax
test ecx, ecx
jne 0x404d04
mov ecx, eax
cdq
idiv ecx
push 0x40
push 0x3000
lea eax, [edx + ecx]
mov dword [esi + 8], eax
shl eax, 7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esi + 4], eax
test eax, eax
jne 0x404d2f
mov dword [esi], edi
pop edi
pop esi
ret 8

Function at 0x404d34
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
xor esi, esi
mov dword [0x43e8b0], esi
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 8]
jge 0x404e7c
push edi
mov edi, eax
lea eax, [eax + 1]
shl edi, 7
mov dword [ecx + 0xc], eax
add edi, dword [ecx + 4]
je 0x404e7b
push ebx
mov ebx, dword [esp + 0x10]
push ebp
or ebp, 0xffffffff
mov cl, byte [esi + ebx]
cmp cl, 0x88
jb 0x404da8
cmp cl, 0x8b
ja 0x404da8
mov cl, byte [esi + ebx + 1]
mov al, cl
and al, 0xc0
cmp al, 0xc0
je 0x404dda
test al, al
jne 0x404d93
mov dl, cl
and dl, 7
cmp dl, 4
je 0x404d93
cmp dl, 5
jne 0x404dda
cmp al, 0x40
jne 0x404e79
and cl, 7
cmp cl, 4
jne 0x404dc0
add esi, 4
jmp 0x404dfe
cmp cl, 0xb8
je 0x404de6
cmp cl, 0x83
jne 0x404dc5
mov al, byte [esi + ebx + 1]
and al, 0xc0
cmp al, 0xc0
jne 0x404e79
add esi, 3
jmp 0x404dfe
cmp cl, 0x68
je 0x404de6
mov al, cl
and al, 0xf0
cmp al, 0x50
jne 0x404dd5
inc esi
jmp 0x404dfe
cmp cl, 0x6a
jne 0x404ddf
add esi, 2
jmp 0x404dfe
cmp cl, 0xe9
jne 0x404deb
mov ebp, esi
add esi, 5
jmp 0x404dfe
cmp cl, 0xff
jne 0x404e79
cmp byte [esi + ebx + 1], 0x25
jne 0x404e79
add esi, 6
cmp esi, 5
jl 0x404d67
cmp esi, 0x64
jg 0x404e79
push esi
mov dword [edi], ebx
add edi, 4
push ebx
push edi
call fcn.00413d90
mov eax, ebx
add esp, 0xc
sub eax, edi
test ebp, ebp
js 0x404e2a
add dword [edi + ebp + 1], eax
jmp 0x404e35
sub eax, 5
mov byte [esi + edi], 0xe9
mov dword [esi + edi + 1], eax
lea eax, [esp + 0x14]
mov dword [0x43e8b0], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push 0x40
push esi
push ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push eax
call ebp
test eax, eax
je 0x404e79
mov eax, 0x405082
mov byte [ebx], 0xe9
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push esi
push ebx
call edi
push eax
call ebp
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404fb2
Capabilities:
Parse pe header

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
test ebx, ebx
je 0x40507e
test edx, edx
je 0x40507e
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x40507e
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp edx, eax
jne 0x40507e
cmp dword [edx], 0x4550
jne 0x40507e
mov eax, 0xe0
cmp word [edx + 0x14], ax
jb 0x40507e
push esi
mov esi, dword [edx + 0x80]
add esi, ebx
mov dword [esp + 0xc], esi
cmp dword [esi], 0
je 0x40507d
push ebp
push edi
mov eax, dword [esi + 0xc]
add eax, ebx
push 0x4388f4
push eax
call fcn.0041eef7
pop ecx
pop ecx
test eax, eax
jne 0x40506f
mov edi, dword [esi]
add edi, ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
test eax, eax
je 0x40506f
push 0x1f
lea ebp, [ebx + 2]
add ebp, eax
push str.GetLogicalProcessorInformation
push ebp
call fcn.004183b5
add esp, 0xc
test eax, eax
jne 0x40505e
mov esi, str.DebugBreak
mov edi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
add edi, 4
mov dword [esp + 0x10], edi
mov eax, dword [edi]
test eax, eax
jne 0x405035
mov esi, dword [esp + 0x14]
add esi, 0x14
mov dword [esp + 0x14], esi
cmp dword [esi], 0
jne 0x405011
pop edi
pop ebp
pop esi
pop ebx
pop ecx
pop ecx
ret

Function at 0x40528f
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebp
push esi
xor ebp, ebp
push ebp
push ebp
push str.PATH
call ebx
mov esi, eax
test esi, esi
je 0x405321
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.mozalloc.dll_moz_xmalloc]
pop ecx
push esi
mov edi, eax
push edi
push str.PATH
call ebx
mov ebx, dword [sym.imp.mozalloc.dll_moz_free]
lea ecx, [esi - 1]
cmp ecx, eax
jne 0x40531c
push ebp
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test ebp, ebp
je 0x40531c
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.mozalloc.dll_moz_xmalloc]
pop ecx
push ebp
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x405318
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call ebx
pop ecx
push edi
call ebx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405343
Capabilities:
Terminate process

Disassembly:
cmp byte [0x43e8b4], 0
je 0x405358
call fcn.0040c3c3
mov ecx, eax
jmp fcn.0040d9a3
ret
Function at 0x4055af
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov ebp, ecx
push 0x100
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.mozalloc.dll_moz_xmalloc]
pop ecx
mov esi, eax
mov dword [esp + 0x10], 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x44
push eax
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x20]
push eax
push ebx
push ebp
xor ebx, ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebp, dword [sym.imp.mozalloc.dll_moz_free]
mov edi, eax
test edi, edi
jne 0x405669
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x405667
cmp dword [esp + 0x14], 0x44
ja 0x40566c
mov eax, dword [esp + 0x10]
cmp eax, 0x80
jbe 0x405646
xor ecx, ecx
mov edi, esi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.mozalloc.dll_moz_xmalloc]
push edi
mov esi, eax
call ebp
push ebx
call ebp
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x34]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
setne bl
push esi
call ebp
pop ecx
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x14
ret

Function at 0x4073db
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, ecx
test esi, esi
jne 0x4073f1
xor al, al
jmp 0x4074d1
mov ecx, dword [edi + 4]
push ebx
mov eax, dword [ecx + 0x3c]
push dword [eax + ecx + 0x78]
mov ecx, edi
call fcn.0040750c
mov ebx, eax
test ebx, ebx
jne 0x407410
xor al, al
jmp 0x4074d0
push ebp
mov ebp, dword [esp + 0x20]
cmp ebp, 0xffff
ja 0x407425
mov word [esi], bp
jmp 0x4074c9
push dword [ebx + 0x20]
mov ecx, edi
call fcn.0040750c
mov ecx, dword [ebx + 0x18]
mov edx, eax
mov dword [esp + 0x18], edx
mov esi, edx
lea eax, [edx + ecx*4]
mov dword [esp + 0x14], eax
cmp edx, eax
je 0x4074cd
sub eax, esi
mov ecx, edi
sar eax, 2
cdq
sub eax, edx
sar eax, 1
lea eax, [esi + eax*4]
push dword [eax]
mov dword [esp + 0x14], eax
call fcn.0040750c
mov cl, byte [ebp]
mov edx, ebp
jmp 0x407472
cmp cl, byte [eax]
jne 0x407476
inc edx
inc eax
mov cl, byte [edx]
test cl, cl
jne 0x40746a
movzx eax, byte [eax]
movzx ecx, byte [edx]
sub ecx, eax
je 0x40749f
test ecx, ecx
jle 0x407491
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add esi, 4
jmp 0x407499
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp esi, eax
jne 0x407449
jmp 0x4074a5
mov eax, dword [esp + 0x10]
mov esi, eax
test ecx, ecx
jne 0x4074cd
push dword [ebx + 0x24]
mov ecx, edi
call fcn.0040750c
sub esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [ebx + 0x10]
mov word [ecx], ax
mov al, 1
jmp 0x4074cf
xor al, al
pop ebp
pop ebx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x4074d9
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4074e9
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4074e6
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x4074e6
add ecx, 0x2b
cmp word [eax + 0x18], cx
sete al
ret
Function at 0x40b38a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x43c230]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x10]
and dword [esp + 0x1c], 0
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov ebx, dword [ebp + 0x30]
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x2c]
push eax
push ecx
push edx
push dword [ebp + 0x20]
mov dword [esp + 0x2c], ebx
push dword [ebp + 0x1c]
mov ebx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x48]
push edi
push ebx
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x40b405
xor eax, eax
inc eax
jmp 0x40b500
mov edx, esi
mov ecx, str.CreateProcessW
call fcn.0040a42d
call fcn.0040c3c3
cmp dword [eax + 4], 1
jle 0x40b4fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x18]
mov ecx, ebx
push 1
push 0x10
pop edx
mov dword [esp + 0x18], eax
call fcn.0040c53a
pop ecx
test al, al
je 0x40b4f4
call fcn.0040c4e1
mov edi, eax
test edi, edi
je 0x40b4f4
and dword [esp + 0x10], 0
lea eax, [esp + 0x68]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40b47a
cmp eax, 0x104
jae 0x40b47a
lea eax, [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
and dword [esp + 0x34], 0
add eax, edi
push 0x30
mov dword [esp + 0x20], eax
lea eax, [esp + 0x3c]
push 0
push eax
mov dword [esp + 0x24], edi
call fcn.00411c00
add esp, 0xc
mov dword [esp + 0x24], 0x10
lea eax, [esp + 0x34]
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040b8db
add esp, 0x14
test eax, eax
jne 0x40b4f4
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x3c], 0
jne 0x40b4fe
mov edx, esi
mov ecx, str.CreateProcessW
call fcn.0040a523
jmp 0x40b3fd
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040dfce
mov esp, ebp
pop ebp
ret 0x2c
Function at 0x40b517
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x43c230]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
and dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 0x30]
push ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x2c]
push eax
push ecx
push edx
push dword [ebp + 0x20]
mov dword [esp + 0x2c], ebx
push dword [ebp + 0x1c]
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x2c]
push edi
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
je 0x40b58b
xor eax, eax
inc eax
jmp 0x40b61a
mov ebx, dword [esp + 0xc]
mov ecx, str.CreateProcessA
push 2
mov edx, ebx
call fcn.0040a411
pop ecx
call fcn.0040c3c3
cmp dword [eax + 4], 1
jle 0x40b618
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push 1
push 0x10
pop edx
mov dword [esp + 0x20], eax
call fcn.0040c53a
pop ecx
test al, al
je 0x40b60e
call fcn.0040c4e1
mov dword [esp + 0x24], eax
test eax, eax
je 0x40b60e
xor ecx, ecx
xor edi, edi
mov dword [esp + 0xc], ecx
test esi, esi
je 0x40b5f0
mov ecx, esi
call fcn.0040c79c
mov edi, eax
test edi, edi
je 0x40b60e
mov ecx, dword [esp + 0xc]
test ebx, ebx
je 0x40b631
mov ecx, ebx
call fcn.0040c79c
mov ecx, eax
mov dword [esp + 0xc], eax
test ecx, ecx
jne 0x40b631
xor edx, edx
mov ecx, edi
call fcn.0040ca0e
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040dfce
mov esp, ebp
pop ebp
ret 0x2c
xor esi, esi
test edi, edi
je 0x40b640
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
jmp 0x40b644
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x40b651
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
jmp 0x40b655
mov dword [esp + 0x10], esi
lea eax, [esp + 0x68]
mov dword [esp + 0x20], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40b67c
cmp eax, 0x104
jae 0x40b67c
lea eax, [esp + 0x68]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
push 0x30
push esi
mov dword [esp + 0x34], ecx
mov eax, dword [ecx + 8]
add eax, ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], eax
lea eax, [esp + 0x40]
push eax
call fcn.00411c00
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x24], 0x10
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040ba00
add esp, 0x14
xor edx, edx
mov ecx, edi
mov esi, eax
call fcn.0040ca0e
mov ecx, dword [esp + 0xc]
xor edx, edx
call fcn.0040ca0e
test esi, esi
jne 0x40b60e
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x3c], esi
jne 0x40b618
mov edx, ebx
mov ecx, str.CreateProcessA
call fcn.0040a509
jmp 0x40b583
Function at 0x4149bc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c230]
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.004118d7
mov dword [ebp - 0x14], eax
cmp dword [0x43e5c0], esi
jne 0x414aaf
push 0x800
push esi
push 0x4226f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x414a3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x414b8f
push esi
push esi
push 0x4226f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x414b8f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414b8f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43e5c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43e5c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43e5c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43e5d0], eax
test eax, eax
je 0x414aac
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43e5cc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x414ad4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x414ac7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x414ae9
push 4
pop eax
jmp 0x414b91
cmp dword [ebp - 0x14], esi
je 0x414ae9
push dword [0x43e5c0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x414ace
mov eax, dword [0x43e5cc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x414b47
cmp dword [0x43e5d0], edi
je 0x414b47
push eax
call ebx
push dword [0x43e5d0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x414b47
test eax, eax
je 0x414b47
call ecx
test eax, eax
je 0x414b3c
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 0x414b3c
test byte [ebp - 8], 1
jne 0x414b47
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x414b77
mov eax, dword [0x43e5c4]
cmp eax, edi
je 0x414b74
push eax
call ebx
test eax, eax
je 0x414b74
call eax
mov esi, eax
test esi, esi
je 0x414b74
mov eax, dword [0x43e5c8]
cmp eax, edi
je 0x414b74
push eax
call ebx
test eax, eax
je 0x414b74
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43e5c0]
call ebx
test eax, eax
je 0x414b8f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x414b91
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dfce
mov esp, ebp
pop ebp
ret
Function at 0x405fd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
aad 0xb
xchg ebx, eax
dec edi
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x406016
cmp dword [ebp - 0x398], 0
je 0x4061e0
cmp dword [ebp + 0xc], 1
je 0x4061e0
cmp dword [ebp + 0xc], 8
jne 0x4061a8
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
invalid
test dword [esi - 7], ecx
invalid
invalid

Function at 0x407668
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412018]
jne 0x407672
repz ret
jmp fcn.00407bfa

Function at 0x4081a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x430], ax
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x218], dx
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x438], 0
push 0x105
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x434]
push ecx
push 0x105
lea edx, [ebp - 0x430]
push edx
push 0x40d928
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x408266
push 0xa
push 0x104
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.MSVCR90.dll__itow_s]
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x408288
push str.thsnYaViMRAeBoda
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.004063f0
cmp dword [ebp + 0xc], 0
je 0x4082a0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.004063f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret