joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415f80
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x415f8e
mov eax, dword [esi]
push eax
push str.____Requirements_create:__s_n
call fcn.00401dd0
add esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x415fa6
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 0x41605e
cmp dword [0x44fa94], 0x10
lea eax, [esp + 8]
push ebx
push ebp
push 0
push eax
push dword [0x44fa90]
mov ecx, 0x44fa80
mov dword [esp + 0x1c], 0
cmovae ecx, dword [0x44fa80]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x44fa90]
test eax, eax
je 0x416032
cmp ebx, ebp
jne 0x416032
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x416019
mov eax, dword [esi]
push eax
push str.___Requirements_created:__s_n
call fcn.00401dd0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
jmp 0x41607d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x416042
mov ecx, dword [esi]
push ebp
push ebx
push eax
push ecx
push str.____Requirements_fail:__s__error:_0x_X___zu__zu_n
call fcn.00401dd0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
jmp 0x41607d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x41606e
mov ecx, dword [esi]
push eax
push ecx
push str.____CreateFile:__s__error:_0x_X_n
call fcn.00401dd0
add esp, 0xc
mov ecx, dword [esi + 0x14]
pop edi
cmp ecx, 8
jb 0x4160b3
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4160a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4160d4
mov eax, edx
push ecx
push eax
call fcn.0041fc4a
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.0041fc4a
add esp, 8
pop esi
pop ecx
ret
call fcn.0042c24f
int3
Function at 0x41a5a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d5d0
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.0041fc15
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.0041fc15
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 0x41bd50
push 0
push 0
call fcn.0042d1d3
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x41a645
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.0041f7d6
int3

Function at 0x41a660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d60f
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.0041fc15
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.0041fc15
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.00401fd0
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 0x41be00
push 0
push 0
call fcn.0042d1d3
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x41a71e
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.0041f7d6
int3

Function at 0x41a730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d60f
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.0041fc15
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.0041fc15
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.00401fd0
mov dword [esi + 0x18], 0x4175b0
mov dword [ebp + 0xc], esi
lea ebx, [edi + 4]
mov byte [ebp - 4], 3
push ebx
push 0
push esi
push 0x41be00
push 0
push 0
call fcn.0042d1d3
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x41a7ef
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.0041f7d6
int3
Function at 0x41bf30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d6f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], ebx
lea eax, [ebx + 0xc]
mov dword [ebx], vtable.std::_Associated_state_unsigned_long_int_.0
push eax
mov dword [ebx + 4], 1
call fcn.0041eb5f
lea eax, [ebx + 0x14]
push 2
push eax
call fcn.0041fa8b
lea eax, [ebx + 0x44]
push eax
call fcn.0041f5ac
mov byte [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov word [ebx + 0x74], 0
mov byte [ebx + 0x76], 0
mov dword [ebx + 0x78], 0
mov dword [ebp - 4], 0
lea edi, [ebx + 0x80]
mov dword [ebx], vtable.std::_Packaged_state_unsigned_long_int____cdecl___void__.0
mov dword [ebp - 0x14], edi
mov dword [edi + 0x24], 0
push 0x50
mov byte [ebp - 4], 1
call fcn.0041fc15
mov esi, dword [ebp + 8]
add esp, 0x14
mov dword [eax], 0x4484d0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x20], ecx
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov ecx, dword [esi + 0x28]
mov dword [eax + 0x30], ecx
mov ecx, dword [esi + 0x30]
mov dword [eax + 0x38], ecx
mov ecx, dword [esi + 0x38]
mov dword [eax + 0x40], ecx
mov cl, byte [esi + 0x40]
mov byte [eax + 0x48], cl
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x24], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41cb90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d856
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 0x41cd40
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0x44865c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
call fcn.00401ef0
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 0x41cc5f
cmp eax, 3
je 0x41cc5f
cmp eax, 6
jne 0x41cd03
mov ecx, dword [ebp - 0x20]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x41cd5c
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push ecx
cmovae eax, dword [ebp - 0x30]
push eax
push 4
push str.__
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.00408520
or dword [ebp - 0x14], 2
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x41ccd0
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ccc6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cd61
push ecx
push edx
call fcn.0041fc4a
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 0x41ccfb
mov ecx, eax
call fcn.00401fd0
add dword [esi + 4], 0x18
jmp 0x41cd03
push eax
mov ecx, esi
call fcn.0041dea0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x41cd3d
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41cd33
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cd61
push ecx
push edx
call fcn.0041fc4a
add esp, 8
mov edx, dword [ebp - 0x10]
inc edi
cmp edi, 0x1a
jb 0x41cbf0
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.00401760
call fcn.0042c24f
int3
Function at 0x41cd70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d89e
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 0x41cf54
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x44865c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00401ef0
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 0x41cf17
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 0x41cf09
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 0x41ce77
sub eax, edx
lea ecx, [ebp - 0x48]
sar eax, 1
push eax
lea eax, [ebp - 0x854]
push eax
call fcn.00401ef0
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x41cec4
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 0x41ced3
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, edi
call fcn.0040bbd0
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x41cf17
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41cf00
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cf70
push ecx
push edx
call fcn.0041fc4a
jmp 0x41cf14
push eax
push str.____WNetGetConnection_failed_0x_X_n
call fcn.00401dd0
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41cf51
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41cf47
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cf70
push ecx
push edx
call fcn.0041fc4a
add esp, 8
mov edx, dword [ebp - 0x10]
inc esi
cmp esi, 0x1a
jb 0x41cdd0
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.0042c24f
int3
Function at 0x41d380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d8bd
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.00401dd0
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x41d4f2
push dword [ebp + 8]
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41d4f2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41d4f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41d4f2
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 0x41d450
cmp eax, 0x7fffffff
ja 0x41d52f
push eax
lea ecx, [ebp - 0x2c]
call fcn.004094a0
mov esi, dword [ebp - 0x10]
push esi
push edi
mov edi, dword [ebp - 0x2c]
push edi
call fcn.004218b0
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.00421330
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 0x41d4b2
cmp esi, 0x7fffffff
ja 0x41d534
push esi
lea ecx, [ebx + 4]
call fcn.004094a0
push dword [ebp - 0x10]
mov esi, dword [ebx + 4]
push edi
push esi
call fcn.00421330
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
mov dword [ebx + 8], eax
test edi, edi
je 0x41d51c
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x41d4d5
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d539
push ecx
push edi
call fcn.0041fc4a
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.00401dd0
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.00405aa0
call fcn.00405aa0
call fcn.0042c24f
int3
Function at 0x41d540
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.00401dd0
push 0x40
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0x44
push 0
push eax
call fcn.004218b0
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 0x41d5d8
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.00401dd0
add esp, 0xc
mov byte [esp + 0xf], 0
jmp 0x41d5f1
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 0x41d627
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41d61d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d62f
push ecx
push edx
call fcn.0041fc4a
add esp, 8
mov al, byte [esp + 0xf]
mov esp, ebp
pop ebp
ret
call fcn.0042c24f
int3
Function at 0x41d990
Capabilities:
Create process on windows
Create process suspended
Get explorer pid
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d81d
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.00401dd0
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.0041fc58
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 0x41daba
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.00401dd0
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.0041fc10
add esp, 4
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp + 0x1c]
test ebx, ebx
setne bl
cmp ecx, 8
jb 0x41db13
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41db09
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41db26
push ecx
push edx
call fcn.0041fc4a
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.0042c24f
int3

Function at 0x41e1a7
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.0041e183
pop esi
leave
ret 8
Function at 0x42094c
Capabilities:
Parse pe header

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

Function at 0x430f62
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4430dc
push 0x4430d4
push str.FlsAlloc
push 0x1f
call fcn.00430de1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430f96
push dword [ebp + 8]
mov ecx, esi
call dword [0x43f2d0]
call esi
jmp 0x430f9c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x430fe0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4430ec
push 0x4430e4
push str.FlsGetValue
push 0x21
call fcn.00430de1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431017
push dword [ebp + 8]
mov ecx, esi
call dword [0x43f2d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43101f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4430f4
push 0x4430ec
push str.FlsSetValue
push 0x22
call fcn.00430de1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431059
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43f2d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x432e17
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x44f0e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x432e62
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00432fb2
test al, al
jne 0x432e5c
sub edx, 2
cmp edx, edi
jne 0x432e42
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x432e84
lea eax, [edi + 2]
cmp edx, eax
je 0x432e84
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00432d63
add esp, 0x10
jmp 0x432f7e
push esi
lea ecx, [ebp - 0x255]
call fcn.00432fb2
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x432ec7
push dword [ebp - 0x25c]
jmp 0x432e74
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x432f04
cmp word [ebp - 0x226], 0
je 0x432f25
cmp word [ebp - 0x226], ax
jne 0x432f04
cmp word [ebp - 0x224], 0
je 0x432f25
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00432d63
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x432f71
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x432ede
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x432f59
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x432f7e
push 0x432b93
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00438e70
add esp, 0x10
jmp 0x432f4e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420420
leave
ret