joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42add1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x43e974]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x435b24
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push 0x435b08
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42ae7b
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x42af7d
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x42af2b
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42af7e
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42af20
cmp dword [ebp - 0x34], 1
jne 0x42af20
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push 0x435a94
push eax
call fcn.004190e4
add esp, 0xc
cmp eax, 1
jne 0x42af20
mov eax, dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42af7e
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x42af7e
lea ecx, [ebp - 0x28]
push ecx
push 0x42adbb
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x42af7e
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x42afa3
push dword [ebp + edi*4 - 0x48]
mov ecx, dword [ebp - 0x4c]
call fcn.0042ad38
cmp eax, ebx
pop ecx
jne 0x42afa5
inc edi
cmp edi, esi
jl 0x42af8d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004190d6
leave
ret 4
Function at 0x42afb6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x43e144
je 0x42b072
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42b05a
mov esi, dword [ebx + 4]
jmp 0x42b054
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b044
cmp dword [ebp - 0xc], 4
jne 0x42b044
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x42b03c
or dword [eax + 0x9c], ecx
jmp 0x42b044
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x42b008
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x42afeb
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x42b468
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x42ed29
call fcn.0041911c
sub esp, 0x228
mov eax, dword [0x43e974]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x228]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x42b576
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x42b54a
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00416c4f
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.0042b468
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00403970
test bl, bl
jne 0x42b54a
or dword [ebp - 4], 0xffffffff
jmp 0x42b4b5
cmp esi, 0x103
je 0x42b55a
cmp esi, 0x3f2
jne 0x42b56a
push dword [edi]
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004190d6
leave
ret 8
Function at 0x42c8b3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x42c8e8
cmp edi, dword [esi + 0xc]
jge 0x42c8e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42c8e8
cmp edi, dword [eax + 8]
jge 0x42c8e8
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x42c8ea
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42c9ee
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42ca22
jmp fcn.00423840
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x42ca93
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x42cb8c
cmp eax, dword [edi + 0xc]
jge 0x42cb8c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42cae4
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42cb75
cmp dword [ebp + 0xc], ebx
je 0x42cb75
jmp 0x42cb0e
push 0x10
call fcn.0042c77f
cmp eax, ebx
je 0x42cafa
mov ecx, eax
call fcn.0042c9e5
mov esi, eax
jmp 0x42cafc
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42cb25
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42cb35
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42cb47
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00423840
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00419720
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42cb87
cmp ecx, dword [esi + 8]
jge 0x42cb87
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42cb8d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42cc4c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42cc7a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42cc98
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042cbb6
jmp 0x42cc98
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42cc98
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042cbb6
test edi, edi
mov eax, edi
jne 0x42cc82
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4418c8]
test ecx, ecx
je 0x42cd4b
jmp 0x42cc4b
ret 8
Function at 0x101cd82c
Capabilities:
Parse pe header

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

Function at 0x101d1c10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101d1c3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101d1c3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x101d1f60
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e2d40
push 0x101e2d38
push str.FlsAlloc
push 0x1f
call fcn.101d2243
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101d1f94
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x101d1f9a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101d1fde
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e2d50
push 0x101e2d48
push str.FlsGetValue
push 0x21
call fcn.101d2243
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101d2015
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101d201d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101e2d58
push 0x101e2d50
push str.FlsSetValue
push 0x22
call fcn.101d2243
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101d2057
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x101d6400
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 0x101d649d
push ebx
push esi
call fcn.101d64a0
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.101d6304
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101d644a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101d649c
push edi
push eax
call fcn.101d3f32
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101d646a
call fcn.101d340d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101d649b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101d6304
add esp, 0x20
test eax, eax
jne 0x101d6489
push edi
call fcn.101d340d
jmp 0x101d6491
push ebx
call fcn.101d340d
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 0x100cff00
Capabilities:
Encode data using xor

Disassembly:
add eax, 0xee5887e2
adc al, bh
cmp eax, 0x88eadbff
and dword [ecx - 0x7f], 4
sub ebx, dword [ecx + 0x6337d5a]
ror byte [esi], 1
ror byte [ecx - 0x5fc90040], cl
mov eax, 0x1e80d81e
fistp qword [ebp + edx*2 - 0x3e9bb0b1]
jo 0x100cff6a
mov fs, edi
jmp 0x100cff7c
adc byte [esi - 0x7392f08a], 0x8c
dec edi
popal
adc byte [eax - 0xf], bh
fcomp dword [edx + esi + 0x32]
adc byte [ecx], bh
rol byte [ecx], 0xc0
add al, 0xc3
inc eax
xchg ebx, eax
scasd eax, dword es:[edi]
lahf
add eax, ecx
inc ebx
push cs
mov byte [0x9043a1ec], al
sbb al, 0x20
cmp dword [ebx + 0x2ceca22c], eax
sub al, 0x92
pop es
sub dword [ecx + ebp], 0xa
inc ebx
invalid
Function at 0x40a1b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40a1bf
pop dword [ebp - 0x34]
mov eax, 0x40a1bf
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xbbe34b97
sub dword [ebp - 0x44], 0x6d91064c
mov dword [ebp - 0x40], 0xb957d599
add dword [ebp - 0x40], 0x78db76ac
mov dword [ebp - 0x3c], 0xfc520f3
add dword [ebp - 0x3c], 0x3c87233b
mov dword [ebp - 0x38], 0xd975e499
add dword [ebp - 0x38], 0x268a1b67
lea eax, [ebp - 0x44]
push eax
mov eax, 0xe35af77e
add eax, 0x1ce6791a
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x6b3d2b87
sub dword [ebp - 0x44], 0xf6cac231
mov dword [ebp - 0x40], 0x10632663
sub dword [ebp - 0x40], 0xcef6c4ee
mov dword [ebp - 0x3c], 0x1148942e
add dword [ebp - 0x3c], 0x5226d83e
mov dword [ebp - 0x38], 0x9f4a6382
sub dword [ebp - 0x38], 0x9f4a6382
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3be0c
push 0
call eax
mov ecx, 0x4a49
mov edx, eax
mov ebx, 0xd283a4f8
add ebx, 0x2dbf1308
add ebx, dword [ebp - 0x34]
mov esi, 0xe5233fca
add esi, 0x66bd1c7c
sub dword [ebp - 8], 0xa24b0382
mov edi, dword [ebx]
xor dword [ebp - 0x2c], 0xfeb3b59d
add edi, esi
mov dword [ebp - 0x18], 0x97b190b1
mov dword [edx], edi
add dword [ebp - 0xc], ecx
add edx, 0x4ffa3561
add edx, 0xb005caa3
add ebx, 0x7f9c5f06
sub ebx, 0x7f9c5f02
loop 0x40a2d1
add eax, 0x54279d14
sub eax, 0x5426811d
xor ebx, ebx
add ebx, eax
add eax, 0x3e6de729
add eax, 0xc19218dc
mov ecx, 0x889cf44d
add ecx, 0x77a30bb3
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x40f8e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40f905
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40f926
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40f928
xor eax, eax
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x40f9a6
jg 0x40f93b
test esi, esi
je 0x40f9a6
test ecx, ecx
jl 0x40f989
jg 0x40f945
test eax, eax
je 0x40f989
cmp edi, ecx
jg 0x40f957
jl 0x40f94f
cmp esi, eax
jae 0x40f957
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [ebp - 8]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x40f9a6
jg 0x40f98c
test esi, esi
je 0x40f9a6
jmp 0x40f98c
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40f9a6
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402106
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
push 0x404075
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
sub esp, 0xe
mov byte [esp], 0x6d
mov byte [esp + 1], 0x63
mov byte [esp + 2], 0x69
mov byte [esp + 3], 0x53
mov byte [esp + 4], 0x65
mov byte [esp + 5], 0x6e
mov byte [esp + 6], 0x64
mov byte [esp + 7], 0x53
mov byte [esp + 8], 0x74
mov byte [esp + 9], 0x72
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0x67
mov byte [esp + 0xd], 0x41
mov byte [esp + 0xe], 0
lea eax, [esp]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4060ec], eax
leave
ret

Function at 0x403576
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x403203
pop dword [ebp - 0x20]
mov eax, 0x272f27f1
sub eax, 0x26eef5ee
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x6ebc6a32
add dword [ebp - 0x30], 0xdf95db19
mov dword [ebp - 0x2c], 0xe3080fdc
sub dword [ebp - 0x2c], 0xb0d4c397
mov dword [ebp - 0x28], 0x1a57d61e
sub dword [ebp - 0x28], 0xce0b91f0
mov dword [ebp - 0x24], 0x6a9ac7ef
sub dword [ebp - 0x24], 0x6a9ac7ef
lea eax, [ebp - 0x30]
push eax
mov eax, 0xfeddf4b2
sub eax, 0xfe9d7426
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xb024a83d
sub dword [ebp - 0x30], 0x3bb23ee7
mov dword [ebp - 0x2c], 0x33caf52f
add dword [ebp - 0x2c], 0xda16c46
mov dword [ebp - 0x28], 0x66537619
sub dword [ebp - 0x28], 0x2e409ad
mov dword [ebp - 0x24], 0x969699a0
sub dword [ebp - 0x24], 0x969699a0
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3540d
push 0
call eax
mov ecx, 0x42a3
xor esi, esi
add esi, eax
mov edx, 0x512509fb
add edx, 0xaf1c0605
add edx, dword [ebp - 0x20]
mov ebx, 0xd212f1bd
sub ebx, 0x3ecfc167
xor dword [ebp - 8], edi
mov edi, dword [edx]
add dword [ebp - 0x18], ecx
xor edi, ebx
add dword [ebp - 0x18], edx
mov dword [esi], edi
xor dword [ebp - 0x1c], edx
add esi, 4
add edx, 0xc68b1b37
add edx, 0x3974e4cd
loop 0x40331c
add eax, 0xfd5f
mov ebx, eax
add eax, 0x7303a8be
sub eax, 0x7303a8b9
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret