joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a343
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1001a361
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x1001a4d9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 4]
call fcn.100147ff
cmp dword [eax], 0xfffffffe
jl 0x1001a3b8
mov dword [ebp - 0x18], 1
jmp 0x1001a3bc
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x48]
mov dword [eax], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xffffffff
jg 0x1001a3d6
mov dword [ebp - 0x10], 1
jmp 0x1001a3da
and dword [ebp - 0x10], 0
push 1
mov ecx, dword [ebp - 4]
call fcn.100147ff
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax]
jge 0x1001a3fc
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x1001a3fc
mov dword [ebp - 0x14], 1
jmp 0x1001a400
and dword [ebp - 0x14], 0
imul eax, dword [ebp - 0x14], 0xfafb
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jle 0x1001a417
mov dword [ebp - 0x1c], 1
jmp 0x1001a41b
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
je 0x1001a42c
mov dword [ebp - 0x20], 1
jmp 0x1001a430
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 4]
call fcn.100147ff
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax]
jle 0x1001a44d
mov dword [ebp - 0x24], 1
jmp 0x1001a451
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jne 0x1001a464
mov dword [ebp - 0x4c], 1
jmp 0x1001a468
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 4]
call fcn.100147ff
push 2
mov ecx, dword [ebp - 4]
call fcn.100147ff
mov esi, eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 4]
call fcn.100147ff
mov ecx, dword [esi]
cmp ecx, dword [eax]
jg 0x1001a49d
mov dword [ebp - 0x28], 1
jmp 0x1001a4a1
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0xd89d6848
jne 0x1001a4b3
mov dword [ebp - 0x2c], 1
jmp 0x1001a4b7
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
sub eax, 0x4146d812
cmp eax, 0xfffffffa
jne 0x1001a4cd
mov dword [ebp - 0x30], 1
jmp 0x1001a4d1
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100243b1
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x100243df
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x100243dd
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10024450
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
push 0x7c
push 0
push 0x47d4
mov eax, dword [ebp - 0x1c]
push dword [eax]
push 0x6d6e
mov eax, dword [ebp - 0x20]
push dword [eax]
push 0x4e28
push 0x612e
mov eax, dword [ebp - 0x24]
push dword [eax]
push 0x69fd
push 0x3b41
push 0x2728
push dword [ebp - 0x28]
call fcn.1002291d
add esp, 0x34
mov esp, ebp
pop ebp
ret
Function at 0x10024f44
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002501d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 2
jmp 0x10024f85
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jl 0x10025018
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 2
jmp 0x10024fa8
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x10024ff3
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10024fdf
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x229
push 0x245d
push 0x168e
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.100147ff
cmp dword [eax], 0
je 0x10024ff1
jmp 0x10024fa1
jmp 0x10024fa1
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.100147ff
mov esi, eax
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.100147ff
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x10024f7a
jmp 0x10025104
mov dword [ebp - 0x38], 0x2e0cf572
mov dword [ebp - 0x3c], 0xfffffff9
mov dword [ebp - 0x14], 0xfffffff8
mov dword [ebp - 8], 0
jmp 0x10025042
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x10025055
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x44], 6
jmp 0x1002503b
mov dword [ebp - 8], 0
jmp 0x10025065
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jge 0x10025078
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x1c], 0x425a
jmp 0x1002505e
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x1c], 0
je 0x100250d1
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
jl 0x1002509d
mov dword [ebp - 0x20], 1
jmp 0x100250a1
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 9
jle 0x100250b0
mov dword [ebp - 0x24], 1
jmp 0x100250b4
and dword [ebp - 0x24], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp + eax - 0x44], ecx
push 0xfffffffffffffff9
pop eax
test eax, eax
je 0x100250d1
mov dword [ebp - 0x28], 1
jmp 0x100250d5
and dword [ebp - 0x28], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1c]
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x14]
jne 0x100250f0
mov dword [ebp - 0x2c], 1
jmp 0x100250f4
and dword [ebp - 0x2c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1c]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10026604
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002665f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10026640
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1002665d
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.100147ff
mov dword [eax], 0xddd1d8f8
jmp 0x10026635
jmp 0x10026667
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esp, ebp
pop ebp
ret

Function at 0x100280a1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10027d6b
add esp, 0xc
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100280d1
xor eax, eax
jmp 0x10028234
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x100280ef
xor eax, eax
jmp 0x10028234
push 0x63c8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
call fcn.10028041
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x10028113
xor eax, eax
jmp 0x10028234
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push 1
call fcn.10027c0e
add esp, 0x18
lea eax, [ebp + 8]
push eax
push 1
push 0x1e0f
push 0x46b6
lea eax, [ebp - 8]
push eax
push 0x2106
lea eax, [ebp - 4]
push eax
call fcn.10027dba
add esp, 0x1c
lea eax, [ebp - 8]
push eax
push 1
push 0x5961
lea eax, [ebp - 0x14]
push eax
push 0x755c
lea eax, [ebp - 0xc]
push eax
call fcn.10027e4d
add esp, 0x18
cmp dword [ebp - 0x14], 0
je 0x100281a0
push 0x647f
push 0x5327
push 0x1580
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0x3ecd
call fcn.10027ee2
add esp, 0x1c
push dword [ebp - 4]
call fcn.10026fca
pop ecx
test eax, eax
jne 0x100281b4
xor eax, eax
jmp 0x10028234
push 1
lea eax, [ebp - 4]
push eax
push 0x582e
push 0x6b06
call fcn.10027fc8
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002821c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x100281eb
xor eax, eax
jmp 0x10028234
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10028204
xor eax, eax
jmp 0x10028234
lea eax, [ebp - 4]
push eax
push 0x375c
push 0x221e
push 1
call fcn.10028041
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002822d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10028231
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1003a9bc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003a9e9
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1003a9e7
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1003a9f6
push 0x1418
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x1003d9fc
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003da14
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1003da5f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1003da42
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1003da5f
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.100147ff
mov dword [eax], 9
jmp 0x1003da37
mov esp, ebp
pop ebp
ret
Function at 0x10067522
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007038c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005832c
mov dword [ebp - 0x14], eax
cmp dword [0x1065cb84], esi
jne 0x10067615
push 0x800
push esi
push 0x100078bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x100675a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100676f5
push esi
push esi
push 0x100078bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100676f5
push 0x100078d4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100676f5
push eax
call ebx
push 0x100078e0
push edi
mov dword [0x1065cb84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100078f0
push edi
mov dword [0x1065cb88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007904
push edi
mov dword [0x1065cb8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065cb94], eax
test eax, eax
je 0x10067612
push 0x10007920
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065cb90], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006763a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006762d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006764f
push 4
pop eax
jmp 0x100676f7
cmp dword [ebp - 0x14], esi
je 0x1006764f
push dword [0x1065cb84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10067634
mov eax, dword [0x1065cb90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x100676ad
cmp dword [0x1065cb94], edi
je 0x100676ad
push eax
call ebx
push dword [0x1065cb94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100676ad
test eax, eax
je 0x100676ad
call ecx
test eax, eax
je 0x100676a2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x100676a2
test byte [ebp - 8], 1
jne 0x100676ad
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100676dd
mov eax, dword [0x1065cb88]
cmp eax, edi
je 0x100676da
push eax
call ebx
test eax, eax
je 0x100676da
call eax
mov esi, eax
test esi, esi
je 0x100676da
mov eax, dword [0x1065cb8c]
cmp eax, edi
je 0x100676da
push eax
call ebx
test eax, eax
je 0x100676da
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1065cb84]
call ebx
test eax, eax
je 0x100676f5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100676f7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x10001010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x1006b800]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0xb5885d10
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
sub eax, 0xb5885d10
je 0x1000109d
jmp 0x1000104c
mov eax, dword [ebp - 0x28]
sub eax, 0xc67779a5
je 0x100011a0
jmp 0x1000105f
mov eax, dword [ebp - 0x28]
sub eax, 0xadc9a9b
je 0x100010e3
jmp 0x10001072
mov eax, dword [ebp - 0x28]
sub eax, 0x45275b44
je 0x1000116e
jmp 0x10001085
mov eax, dword [ebp - 0x28]
sub eax, 0x742f5928
je 0x10001162
jmp 0x10001098
jmp 0x100011b5
mov eax, dword [0x1006cb50]
mov ecx, dword [0x1006cb4c]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xc67779a5
mov ecx, 0xadc9a9b
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x100011b5
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
push eax
mov edx, esp
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [0x1006cb50]
mov eax, dword [0x1006cb4c]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0xc67779a5
mov ecx, 0x742f5928
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x100011b5
mov dword [ebp - 0x1c], 0x45275b44
jmp 0x100011b5
mov edx, dword [ebp - 0x18]
xor ecx, ecx
xor edi, edi
mov ecx, dword [ebp - 0x14]
mov edi, dword [edx]
not byte [edi]
xor eax, eax
xor eax, 0x55
sub byte [edi], 0x84
add byte [edi], 0x67
nop
nop
imul byte [edi]
inc edi
loop 0x1000117a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e780
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push eax
mov eax, esp
mov dword [ebp - 0x14], edx
mov dword [eax], ecx
mov dword [ebp - 0x1c], 0xadc9a9b
jmp 0x10001036
Function at 0x10012085
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100120c4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100120c4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100120c4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100120c4
cmp dword [ecx + 0x74], 0xe
jbe 0x100120c4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10014ddc
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 0x10014e79
push ebx
push esi
call fcn.10014da5
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.10014d39
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10014e26
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014e78
push edi
push eax
call fcn.10015d97
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10014e46
call fcn.10013903
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014e77
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10014d39
add esp, 0x20
test eax, eax
jne 0x10014e65
push edi
call fcn.10013903
jmp 0x10014e6d
push ebx
call fcn.10013903
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 0x100150e6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d348
push 0x1001d340
push str.FlsAlloc
push 0x1f
call fcn.10015002
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001511a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b150]
call esi
jmp 0x10015120
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015164
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d358
push 0x1001d350
push str.FlsGetValue
push 0x21
call fcn.10015002
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001519b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100151a3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d360
push 0x1001d358
push str.FlsSetValue
push 0x22
call fcn.10015002
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100151dd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001b150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001a710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a73d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a73d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40c020
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431f20
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x447050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 1
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
lea eax, [ebp + 0x1c]
push eax
mov dword [esi + 8], 0xf
mov dword [esi + 0xc], 8
mov word [esi + 0x14], 0
call fcn.00402140
lea eax, [ebp + 0x34]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x30]
call fcn.00402140
mov edx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x50]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ecx
cmp edx, 0x10
jb 0x40c0d2
mov ecx, dword [ebp + 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c0c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c128
push edx
push ecx
call fcn.0041a612
add esp, 8
mov edx, dword [ebp + 0x48]
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0xf
mov byte [ebp + 0x1c], 0
cmp edx, 0x10
jb 0x40c114
mov ecx, dword [ebp + 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c10a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c128
push edx
push ecx
call fcn.0041a612
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x4c
call fcn.0041e53a
int3

Function at 0x40c830
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
je 0x40c856
nop word [eax + eax]
xor dword [eax + ecx], 0x72518daa
xor dword [eax + ecx + 4], 0xb453bb1
add eax, 8
cmp eax, edx
jb 0x40c840
ret