joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dd40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e9a6
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 0x41def0
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0x44950c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
call fcn.00401e30
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 0x41de0f
cmp eax, 3
je 0x41de0f
cmp eax, 6
jne 0x41deb3
mov ecx, dword [ebp - 0x20]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x41df0c
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.004085b0
or dword [ebp - 0x14], 2
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x41de80
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41de76
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41df11
push ecx
push edx
call fcn.00420d85
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 0x41deab
mov ecx, eax
call fcn.00402010
add dword [esi + 4], 0x18
jmp 0x41deb3
push eax
mov ecx, esi
call fcn.0041f050
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x41deed
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41dee3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41df11
push ecx
push edx
call fcn.00420d85
add esp, 8
mov edx, dword [ebp - 0x10]
inc edi
cmp edi, 0x1a
jb 0x41dda0
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.00401660
call fcn.0042d25f
int3
Function at 0x41df20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e9ee
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 0x41e104
push 2
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x44950c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00401e30
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 0x41e0c7
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 0x41e0b9
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 0x41e027
sub eax, edx
lea ecx, [ebp - 0x48]
sar eax, 1
push eax
lea eax, [ebp - 0x854]
push eax
call fcn.00401e30
mov byte [ebp - 4], 2
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x41e074
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 0x41e083
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, edi
call fcn.0040bc60
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp ecx, 8
jb 0x41e0c7
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e0b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e120
push ecx
push edx
call fcn.00420d85
jmp 0x41e0c4
push eax
push str.____WNetGetConnection_failed_0x_X_n
call fcn.00401d10
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41e101
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e0f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e120
push ecx
push edx
call fcn.00420d85
add esp, 8
mov edx, dword [ebp - 0x10]
inc esi
cmp esi, 0x1a
jb 0x41df80
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.0042d25f
int3
Function at 0x41e530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ea0d
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.00401d10
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x41e6a2
push dword [ebp + 8]
push 0x65
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
je 0x41e6a2
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x41e6a2
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41e6a2
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 0x41e600
cmp eax, 0x7fffffff
ja 0x41e6df
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409530
mov esi, dword [ebp - 0x10]
push esi
push edi
mov edi, dword [ebp - 0x2c]
push edi
call fcn.004228c0
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.00422340
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 0x41e662
cmp esi, 0x7fffffff
ja 0x41e6e4
push esi
lea ecx, [ebx + 4]
call fcn.00409530
push dword [ebp - 0x10]
mov esi, dword [ebx + 4]
push edi
push esi
call fcn.00422340
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
mov dword [ebx + 8], eax
test edi, edi
je 0x41e6cc
mov ecx, dword [ebp - 0x14]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x41e685
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e6e9
push ecx
push edi
call fcn.00420d85
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.00401d10
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.00405ad0
call fcn.00405ad0
call fcn.0042d25f
int3
Function at 0x41e6f0
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.00401d10
push 0x40
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0x44
push 0
push eax
call fcn.004228c0
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 0x41e788
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.00401d10
add esp, 0xc
mov byte [esp + 0xf], 0
jmp 0x41e7a1
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 0x41e7d7
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e7cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e7df
push ecx
push edx
call fcn.00420d85
add esp, 8
mov al, byte [esp + 0xf]
mov esp, ebp
pop ebp
ret
call fcn.0042d25f
int3
Function at 0x41eb40
Capabilities:
Create process on windows
Create process suspended
Get explorer pid
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e96d
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.00401d10
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.00420d93
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 0x41ec6a
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.00401d10
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.00420d4b
add esp, 4
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp + 0x1c]
test ebx, ebx
setne bl
cmp ecx, 8
jb 0x41ecc3
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ecb9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ecd6
push ecx
push edx
call fcn.00420d85
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.0042d25f
int3

Function at 0x41f357
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.0041f333
pop esi
leave
ret 8
Function at 0x42195c
Capabilities:
Parse pe header

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

Function at 0x431f72
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x444074
push 0x44406c
push str.FlsAlloc
push 0x1f
call fcn.00431df1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431fa6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4402a4]
call esi
jmp 0x431fac
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x431ff0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x444084
push 0x44407c
push str.FlsGetValue
push 0x21
call fcn.00431df1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x432027
push dword [ebp + 8]
mov ecx, esi
call dword [0x4402a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x43202f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44408c
push 0x444084
push str.FlsSetValue
push 0x22
call fcn.00431df1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x432069
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4402a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsSetValue]
Function at 0x433e27
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4500e0]
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 0x433e72
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00433fc2
test al, al
jne 0x433e6c
sub edx, 2
cmp edx, edi
jne 0x433e52
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x433e94
lea eax, [edi + 2]
cmp edx, eax
je 0x433e94
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00433d73
add esp, 0x10
jmp 0x433f8e
push esi
lea ecx, [ebp - 0x255]
call fcn.00433fc2
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 0x433ed7
push dword [ebp - 0x25c]
jmp 0x433e84
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 0x433f14
cmp word [ebp - 0x226], 0
je 0x433f35
cmp word [ebp - 0x226], ax
jne 0x433f14
cmp word [ebp - 0x224], 0
je 0x433f35
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00433d73
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x433f81
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x433eee
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x433f69
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
jmp 0x433f8e
push 0x433ba3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00439e80
add esp, 0x10
jmp 0x433f5e
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.0042142b
leave
ret
Function at 0x434a49
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x434ae6
push ebx
push esi
call fcn.00434a12
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004349a6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x434a93
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x434ae5
push edi
push eax
call fcn.0042fdec
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x434ab3
call fcn.0042fdb2
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x434ae4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004349a6
add esp, 0x20
test eax, eax
jne 0x434ad2
push edi
call fcn.0042fdb2
jmp 0x434ada
push ebx
call fcn.0042fdb2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x434ae9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x434afa
pop esi
ret
push ebx
push edi
push esi
call fcn.00434a12
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042fdec
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x434b22
push ebx
push esi
push edi
call fcn.00422340
add esp, 0xc
push 0
call fcn.0042fdb2
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43527c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00434d97
Function at 0x43c9f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43ca1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43ca1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x133b1580
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x1350f748]
test eax, eax
jne 0x133b15ed
mov dword [0x1350f748], 1
call fcn.13456d30
test eax, eax
push 0x104
push 0x1350f74c
je 0x133b15e7
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x133b15ed
push esi
push edi
mov edi, 0x134ee254
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x1350f74c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 0x1350f74c
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, 0x1350f74c
ret
Function at 0x133b1bc0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
mov ecx, dword [esp + 0x210]
push edi
mov dword [0x13510ff0], eax
mov dword [0x13510fec], ecx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
push 0x104
push edx
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x133b1c14
pop edi
add esp, 0x208
ret
push 0x104
lea eax, [esp + 8]
push 0x13510ffc
push eax
call fcn.1340dde0
add esp, 0xc
test eax, eax
jne 0x133b1c52
mov ecx, 0x82
mov edi, 0x13510ffc
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
push 0x103
push ecx
push 0x13510ffc
call fcn.13429b8b
add esp, 0xc
push 0x13510ffc
call fcn.134b24cb
push 0x5c
push 0x13510ffc
mov dword [0x13510ff8], 0x13510ffc
call fcn.13429afc
add esp, 0xc
mov dword [0x13510ff4], eax
test eax, eax
jne 0x133b1c86
pop edi
add esp, 0x208
ret
add eax, 2
push str.winrdlv3.exe
push eax
mov dword [0x13510ff4], eax
call fcn.1342c090
add esp, 8
test eax, eax
jne 0x133b1d4f
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x40f
push eax
push 0x13511204
call fcn.13429b8b
push 0x13511204
call fcn.134b24cb
push str.winoav3.dll_runagent32
push 0x13511204
call fcn.13429bd3
add esp, 0x18
test eax, eax
je 0x133b1cf1
mov dword [0x13511a24], 0xb0000101
mov eax, 1
pop edi
add esp, 0x208
ret
push str.sdcenter.dll_runsdcenter32
push 0x13511204
call fcn.13429bd3
add esp, 8
test eax, eax
je 0x133b1d1e
mov dword [0x13511a24], 0xb0000102
mov eax, 1
pop edi
add esp, 0x208
ret
push str.winoauv3.dll_runagentu32
push 0x13511204
call fcn.13429bd3
add esp, 8
test eax, eax
je 0x133b1e7a
mov dword [0x13511a24], 0xb0000103
mov eax, 1
pop edi
add esp, 0x208
ret
mov edx, dword [0x13510ff4]
push str.iexplore.exe
push edx
call fcn.1342c090
add esp, 8
test eax, eax
jne 0x133b1d7e
mov dword [0x13511a24], 0xb0000001
mov eax, 1
pop edi
add esp, 0x208
ret
mov eax, dword [0x13510ff4]
push str.microsoftedge.exe
push eax
call fcn.1342c090
add esp, 8
test eax, eax
je 0x133b1e70
mov ecx, dword [0x13510ff4]
push str.microsoftedgecp.exe
push ecx
call fcn.1342c090
add esp, 8
test eax, eax
je 0x133b1e70
mov edx, dword [0x13510ff4]
push str.Coremail_PC.exe
push edx
call fcn.1342c090
add esp, 8
test eax, eax
jne 0x133b1de4
mov dword [0x13511a24], 0xb0000003
mov eax, 1
pop edi
add esp, 0x208
ret
mov eax, dword [0x13510ff4]
push str.MailMaster.exe
push eax
call fcn.1342c090
add esp, 8
test eax, eax
jne 0x133b1e12
mov dword [0x13511a24], 0xb0000004
mov eax, 1
pop edi
add esp, 0x208
ret
mov ecx, dword [0x13510ff4]
push str.Foxmail.exe
push ecx
call fcn.1342c090
add esp, 8
test eax, eax
jne 0x133b1e41
mov dword [0x13511a24], 0xb0000005
mov eax, 1
pop edi
add esp, 0x208
ret
mov edx, dword [0x13510ff4]
push str.Outlook.exe
push edx
call fcn.1342c090
add esp, 8
test eax, eax
jne 0x133b1e7a
mov dword [0x13511a24], 0xb0000006
mov eax, 1
pop edi
add esp, 0x208
ret
mov dword [0x13511a24], 0xb0000002
mov eax, 1
pop edi
add esp, 0x208
ret