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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4443f8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x42ff04
add eax, 8
inc ebp
cmp eax, 0x444488
jb 0x42fef5
cmp ecx, dword [ebp*8 + 0x4443f8]
jne 0x4300ab
mov eax, dword [0x452adc]
cmp eax, 1
je 0x43006d
test eax, eax
jne 0x42ff30
cmp dword [0x442164], 1
je 0x43006d
cmp ecx, 0xfc
je 0x4300ab
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ff6b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x42ffb4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x43a1f4
add ebx, ecx
push ebx
call fcn.004287f0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43a1f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4443fc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0042f020
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4554c0]
test eax, eax
je 0x43007e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x430088
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4443fc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x430410
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4555c0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4305bd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x4554c0]
lea edi, [ecx*4 + 0x4554c0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4305bd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x43047e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x43048f
push 2
push ebp
push eax
call fcn.004315a0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4305ee
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x430539
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4304ea
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4304d7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4304ba
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4305df
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x430535
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4304b6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4305ae
mov eax, dword [esp + 0x18]
test eax, eax
je 0x430582
cmp eax, 5
jne 0x43056b
mov dword [0x452a5c], eax
mov dword [0x452a58], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0042fe30
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4305a2
cmp byte [ebp], 0x1a
jne 0x4305a2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x452a58], 0x1c
jmp 0x4305c7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x452a58], 9
pop edi
pop esi
pop ebp
mov dword [0x452a5c], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x430535
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43061f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x430539
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x430539
Function at 0x430f90
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x452d68]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x430fd2
call edi
mov esi, eax
test esi, esi
je 0x430fbc
mov eax, 1
jmp 0x430fcd
call ebp
mov ebx, eax
test ebx, ebx
je 0x4310df
mov eax, 2
mov dword [0x452d68], eax
cmp eax, 1
jne 0x431072
test esi, esi
jne 0x430feb
call edi
mov esi, eax
test esi, esi
je 0x4310df
cmp word [esi], 0
mov eax, esi
je 0x431005
add eax, 2
cmp word [eax], 0
jne 0x430ff3
add eax, 2
cmp word [eax], 0
jne 0x430ff3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x431064
push edi
call fcn.0042af80
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x431064
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x431056
push ebx
call fcn.0042b1d0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4310df
test ebx, ebx
jne 0x431083
call ebp
mov ebx, eax
test ebx, ebx
je 0x4310df
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x43109b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43108b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43108b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0042af80
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4310bd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x433c20
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004298a0
mov eax, dword [0x4555c0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x433d82
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x4554c0]
test byte [edx + ecx*8 + 4], 1
je 0x433d82
push 1
push ebp
push ebx
call fcn.004315a0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x433d8c
push 2
push ebp
push ebx
call fcn.004315a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x433d8c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x433d28
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00434370
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x433ccf
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00430410
add esp, 0xc
cmp eax, 0xffffffff
je 0x433ceb
sub esi, eax
test esi, esi
jle 0x433d01
jmp 0x433cc0
cmp dword [0x452a5c], 5
jne 0x433cfe
mov dword [0x452a58], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00434370
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004315a0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x433d69
push 0
push ecx
push ebx
call fcn.004315a0
add esp, 0xc
push ebx
call fcn.00432e50
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x433d69
mov dword [0x452a58], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x452a5c], eax
push 0
push edi
push ebx
call fcn.004315a0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x452a58], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x434070
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x43422e
push 0x3d
push edi
call fcn.004343f0
mov esi, eax
add esp, 8
test esi, esi
je 0x43422e
cmp edi, esi
je 0x43422e
mov dl, byte [esi + 1]
mov ecx, dword [0x452a84]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x452a80]
cmp eax, ecx
jne 0x4340c7
push eax
call fcn.00434300
add esp, 4
mov dword [0x452a80], eax
test eax, eax
jne 0x434142
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4340ee
mov eax, dword [0x452a88]
test eax, eax
je 0x4340ee
call fcn.00433ba0
test eax, eax
je 0x43413d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4340fa
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0042af80
add esp, 4
mov dword [0x452a80], eax
test eax, eax
je 0x43422e
mov dword [eax], 0
mov eax, dword [0x452a88]
test eax, eax
jne 0x43413d
push 4
call fcn.0042af80
add esp, 4
mov dword [0x452a88], eax
test eax, eax
je 0x43422e
mov dword [eax], 0
mov eax, dword [0x452a80]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00434280
mov esi, eax
add esp, 8
test esi, esi
jl 0x43423f
cmp dword [ebx], 0
je 0x43423f
test ebp, ebp
je 0x434237
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0042b1d0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x434199
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x434188
lea eax, [esi*4]
push eax
push ebx
call fcn.0042b030
add esp, 8
test eax, eax
je 0x4341b3
mov dword [0x452a80], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x434226
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0042af80
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x434226
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0042b1d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x4341b7
test ebp, ebp
jne 0x434226
test esi, esi
jge 0x434249
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0042b030
add esp, 8
test eax, eax
je 0x43422e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x452a80], eax
jmp 0x4341b7
Function at 0x402070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e520
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x473018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4020f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4020f7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4020d7
cmp esi, edx
jae 0x4020f7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4020c5
cmp esi, edx
jae 0x4020f7
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
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 0x402f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e7c5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x473018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00401c50
test eax, eax
je 0x403143
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 0x66
call fcn.00402110
mov eax, dword [ebp - 0x10]
mov edx, 0x45f3e8
mov ecx, eax
nop dword [eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x402ff6
test si, si
je 0x402ff2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x402ff6
add ecx, 4
add edx, 4
test si, si
jne 0x402fd0
xor esi, esi
jmp 0x402ffb
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40301c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x403131
call fcn.00401c50
test eax, eax
je 0x403143
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
push 7
push 6
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4030ff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4030ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4030ff
push dword [ebp - 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 5
lea edx, [eax + edi]
cmp edi, edx
jae 0x4030ff
movzx eax, word [edi]
lea edi, [edi + eax*2]
add edi, 2
sub ecx, 1
jne 0x403097
cmp edi, edx
jae 0x4030ff
cmp word [edi], cx
je 0x4030ff
test edi, edi
je 0x4030ff
movzx ebx, word [edi]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4030d6
push ebx
lea ecx, [ebp - 0x10]
call fcn.004024f0
mov esi, dword [ebp - 0x10]
movzx ecx, word [edi]
lea eax, [edi + 2]
push ecx
push eax
push ebx
push esi
call fcn.00437fd8
push eax
call fcn.00401fd0
add esp, 0x14
cmp ebx, dword [esi - 8]
jg 0x40314d
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
or ebx, 0xffffffff
push ecx
mov eax, esp
push ecx
mov dword [eax], 0x45f3b4
mov eax, esp
mov dword [eax], esi
call fcn.00402ce0
add esp, 8
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x403131
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004019d0
push 0x80070057
call fcn.004019d0
int3
Function at 0x4034a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e8a2
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x473018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x238], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], esi
push 0
push eax
mov dword [ebp - 0x234], 0
call fcn.00434cd0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403537
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00404580
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x230]
push str.WindowsPowerShell_v1.0PowerShell.exe
call fcn.00404150
cmp dword [ebp - 0x21c], 8
lea edx, [ebp - 0x230]
xorps xmm0, xmm0
cmovae edx, dword [ebp - 0x230]
mov eax, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4035a0
sub eax, edi
mov ecx, esi
sar eax, 1
push eax
push edx
call fcn.00404580
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x403602
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4035f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40363c
push ecx
push edx
call fcn.004332cf
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432e76
mov esp, ebp
pop ebp
ret
call fcn.0043c8de
int3
Function at 0x403940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e95e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x473018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov eax, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], 1
jb 0x4039b7
mov eax, dword [edi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4039fe
push 0
push eax
mov ecx, esi
call fcn.00403ec0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4039dd
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4039e5
mov edi, dword [edi]
push dword [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 0x10]
mov ecx, esi
push 0
dec eax
push eax
call fcn.00403ec0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403a20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e98d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
mov eax, dword [0x473018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x34], xmm0
cmp dword [eax + 0x14], 8
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x440
jb 0x403a84
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], str.runas
cmp dword [eax + 0x10], 0
je 0x403aa9
cmp dword [eax + 0x14], 8
jb 0x403aa6
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], 0
je 0x403abd
cmp dword [eax + 0x14], 8
jb 0x403aba
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x54]
mov dword [ebp + 8], eax
lea edx, [ebp + 8]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004041c0
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403b1b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x403b0c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403b09
cmp eax, 0xffffffff
je 0x403b1b
mov esi, 6
jmp 0x403b28
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x403b25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x403b28
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403e40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18