joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d1b8
Capabilities:
Encode data using xor

Disassembly:
push 0x38
mov eax, 0x10057b64
call fcn.100418da
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001fc9
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push 0x10
pop ebx
and eax, 0xf
mov esi, ebx
sub esi, eax
jne 0x1003d1f8
mov esi, ebx
test esi, esi
jle 0x1003d213
mov dword [ebp - 0x30], esi
xor ebx, ebx
push esi
inc ebx
lea edi, [ebp - 0x2c]
call fcn.10009c3b
dec dword [ebp - 0x30]
jne 0x1003d1ff
push 0x10
pop ebx
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x38]
push 0
call fcn.1002b4ff
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
jae 0x1003d22b
lea eax, [ebp - 0x28]
mov edi, esi
mov dword [ebp - 0x30], eax
cmp dword [edi + 0x18], ebx
jb 0x1003d23a
mov edi, dword [edi + 4]
jmp 0x1003d23d
add edi, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x3c]
cmp eax, ebx
jb 0x1003d295
shr eax, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov esi, edi
sub ecx, eax
sub esi, eax
mov dword [ebp - 0x40], ebx
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec dword [ebp - 0x40]
jne 0x1003d259
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x14]
cmp dword [eax + 0x18], ebx
jb 0x1003d279
add eax, 4
mov eax, dword [eax]
jmp 0x1003d27c
add eax, 4
push 1
push eax
push edi
push edi
call fcn.1003ce9d
add dword [ebp - 0x30], ebx
mov ecx, edi
add esp, 0x10
add edi, ebx
dec dword [ebp - 0x34]
jne 0x1003d24d
mov edi, dword [ebp - 0x3c]
mov esi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 1
lea ecx, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
call fcn.10002243
mov eax, dword [ebp - 0x38]
call fcn.1004195d
ret
Function at 0x1003d2b3
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x10056fd5
call fcn.100418da
mov ebx, ecx
mov eax, dword [ebp + 8]
and dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x14]
mov esi, edx
mov dword [ebp - 0x34], esi
test al, 0xf
je 0x1003d2e8
push 0x10061dbf
mov ecx, esi
call fcn.10001fa7
jmp 0x1003d408
push 0
mov edi, eax
lea esi, [ebp - 0x2c]
call fcn.1002b4ff
and dword [ebp - 4], 0
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebx + 0x14]
jb 0x1003d306
mov ebx, dword [ebx + 4]
jmp 0x1003d309
add ebx, 4
cmp dword [ebp - 0x14], 0x10
mov esi, dword [ebp - 0x28]
jae 0x1003d315
lea esi, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
cmp eax, 0x10
jb 0x1003d360
shr eax, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x18], 0x10
mov ecx, dword [edx + 0x14]
lea eax, [edx + 4]
jb 0x1003d334
mov eax, dword [eax]
push 0
push eax
push esi
push ebx
call fcn.1003ce9d
add esp, 0x10
mov ecx, edi
push 0x10
mov eax, esi
sub ecx, esi
pop edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec edi
jne 0x1003d34a
mov edi, ebx
add ebx, 0x10
add esi, 0x10
dec dword [ebp - 0x38]
jne 0x1003d323
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jae 0x1003d389
mov ecx, dword [ebp - 0x34]
push 0x10061dbf
call fcn.10001fa7
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10002243
mov eax, dword [ebp - 0x34]
jmp 0x1003d40a
lea esi, [eax - 1]
cmp eax, esi
ja 0x1003d398
call fcn.10040139
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x1003d3a4
lea ecx, [ebp - 0x28]
mov bl, byte [ecx + esi]
cmp bl, 0x10
ja 0x1003d368
mov byte [ebp - 0x2d], 0
test bl, bl
jbe 0x1003d3e8
movzx edi, bl
movzx ecx, byte [ebp - 0x2d]
mov esi, eax
sub esi, ecx
dec esi
cmp eax, esi
ja 0x1003d3cc
call fcn.10040139
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x1003d3d8
lea ecx, [ebp - 0x28]
movsx ecx, byte [ecx + esi]
cmp ecx, edi
jne 0x1003d368
inc byte [ebp - 0x2d]
cmp byte [ebp - 0x2d], bl
jb 0x1003d3b7
mov esi, dword [ebp - 0x34]
movzx ecx, bl
sub eax, ecx
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.10001fef
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10002243
mov eax, esi
call fcn.1004195d
ret
Function at 0x1003d592
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push 0x2c
mov eax, 0x10057b03
call fcn.100418da
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
xor esi, esi
mov eax, edi
mov dword [ebp - 0x30], esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003d5b1
sub eax, ecx
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0xf
call fcn.1000257e
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], esi
jbe 0x1003d6b6
jmp 0x1003d5e2
mov edi, dword [ebp + 0xc]
movsx eax, byte [esi + edi]
mov al, byte [eax + 0x10062d98]
inc esi
cmp esi, dword [ebp - 0x30]
jae 0x1003d5f6
cmp al, 0xff
je 0x1003d5e2
cmp al, 0xff
je 0x1003d6b6
movsx ecx, byte [esi + edi]
mov cl, byte [ecx + 0x10062d98]
inc esi
mov byte [ebp - 0x32], cl
cmp esi, dword [ebp - 0x30]
jae 0x1003d616
cmp cl, 0xff
je 0x1003d5fe
cmp cl, 0xff
je 0x1003d6b6
sar cl, 4
shl al, 2
and cl, 3
or cl, al
movzx eax, cl
push eax
lea edi, [ebp - 0x2c]
call fcn.10009c3b
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
inc esi
cmp al, 0x3d
je 0x1003d6b6
movsx eax, al
mov al, byte [eax + 0x10062d98]
mov byte [ebp - 0x31], al
cmp esi, dword [ebp - 0x30]
jae 0x1003d656
cmp al, 0xff
je 0x1003d636
cmp al, 0xff
je 0x1003d6b6
mov cl, al
mov al, byte [ebp - 0x32]
sar cl, 2
shl al, 4
and cl, 0xf
or cl, al
movzx eax, cl
push eax
lea edi, [ebp - 0x2c]
call fcn.10009c3b
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
inc esi
cmp al, 0x3d
je 0x1003d6b6
movsx eax, al
mov cl, byte [eax + 0x10062d98]
cmp esi, dword [ebp - 0x30]
jae 0x1003d694
cmp cl, 0xff
je 0x1003d676
cmp cl, 0xff
je 0x1003d6b6
mov al, byte [ebp - 0x31]
shl al, 6
or al, cl
movzx eax, al
push eax
lea edi, [ebp - 0x2c]
call fcn.10009c3b
cmp esi, dword [ebp - 0x30]
jb 0x1003d5df
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
call fcn.10001fc9
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10002243
mov eax, dword [ebp - 0x38]
call fcn.1004195d
ret

Function at 0x1003d7b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea ecx, [ebp - 0x30]
call fcn.100316b5
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x10]
lea esi, [ebp - 8]
mov dword [ebp - 0x10], eax
call fcn.1000d610
test al, al
jne 0x1003d811
call fcn.1000f80e
cmp dword [eax + 0x18], 8
jb 0x1003d7fd
mov eax, dword [eax + 4]
jmp 0x1003d800
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 8]
call fcn.1000d700
jmp 0x1003d7d2
lea eax, [ebp - 0x30]
push eax
call fcn.1000f7e6
pop edi
pop esi
leave
ret
Function at 0x1003db7f
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
call fcn.1003265d
mov dword [ebp - 0x230], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.10042870
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.drivers
lea eax, [ebp - 0x210]
push eax
call esi
lea edx, [ebp - 0x210]
call fcn.1003d7b4
push ebx
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003dc2e
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xfffffff8
add edi, 8
jmp 0x1003dcbf
push edi
lea ecx, [ebp - 0x210]
call fcn.10031c92
test eax, eax
jne 0x1003dcbd
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x210]
push eax
push edi
call esi
test eax, eax
jne 0x1003dcbd
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.1003d78e
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
pop ecx
pop ecx
jae 0x1003dc7f
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1003dcaa
push ebx
lea eax, [ebp - 0x210]
push eax
push edi
call esi
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xfffffff8
add edi, 8
jmp 0x1003dcad
push 9
pop edi
push ebx
push 1
lea esi, [ebp - 0x22c]
call fcn.1000233f
jmp 0x1003dcbf
xor edi, edi
push dword [ebp - 0x230]
call fcn.1003269d
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004017c
leave
ret

Function at 0x1003e548
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x1003f750
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x1003fd27
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
xor edx, edx
inc ecx
push edi
movzx esi, byte [ecx - 1]
movzx edi, byte [ecx]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 1]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 2]
shl esi, 8
or esi, edi
mov dword [ebp + edx*4 - 0x120], esi
inc edx
add ecx, 4
cmp edx, 0x10
jb 0x1003fd36
push 0x40
pop esi
cmp edx, esi
jae 0x1003fdb1
sub esi, edx
lea ecx, [ebp + edx*4 - 0x128]
mov dword [ebp - 4], esi
mov esi, dword [ecx]
mov edx, dword [ecx - 0x34]
mov edi, esi
rol edi, 0xf
mov ebx, esi
shr esi, 0xa
rol ebx, 0xd
xor edi, ebx
xor edi, esi
mov esi, edx
rol esi, 0xe
mov ebx, edx
ror ebx, 7
xor esi, ebx
shr edx, 3
xor esi, edx
add edi, esi
add edi, dword [ecx - 0x38]
add ecx, 4
add edi, dword [ecx - 0x18]
dec dword [ebp - 4]
mov dword [ecx + 4], edi
jne 0x1003fd77
mov ecx, dword [eax + 0x54]
mov edi, dword [eax + 0x50]
mov ebx, dword [eax + 0x68]
mov esi, dword [eax + 0x60]
and dword [ebp - 0x14], 0
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x58]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x6c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ecx
mov ecx, esi
ror ecx, 0xb
mov edx, esi
rol edx, 7
xor ecx, edx
mov edx, esi
ror edx, 6
xor ecx, edx
mov edx, esi
not edx
and edx, ebx
mov ebx, dword [ebp - 0x10]
and ebx, esi
xor edx, ebx
add ecx, edx
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + 0x10062c40]
mov ebx, edi
add ecx, dword [ebp + edx - 0x120]
mov edx, edi
add ecx, dword [ebp - 4]
ror edx, 0xd
rol ebx, 0xa
xor edx, ebx
mov ebx, edi
add dword [ebp - 0x14], 4
ror ebx, 2
xor edx, ebx
mov ebx, dword [ebp - 8]
xor ebx, edi
and ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
and edi, dword [ebp - 0x18]
xor ebx, edi
mov edi, dword [ebp - 0x20]
add edx, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 8], edi
add esi, ecx
cmp dword [ebp - 0x14], 0x100
lea edi, [edx + ecx]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], edi
jb 0x1003fde2
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp - 8]
add ecx, edi
mov dword [eax + 0x50], ecx
mov ecx, dword [eax + 0x54]
add ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x54], ecx
mov ecx, dword [eax + 0x58]
add ecx, edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x58], ecx
mov ecx, dword [eax + 0x5c]
add ecx, edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x5c], ecx
mov ecx, dword [eax + 0x60]
add ecx, esi
mov dword [eax + 0x60], ecx
mov ecx, dword [eax + 0x64]
add ecx, edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x64], ecx
mov ecx, dword [eax + 0x68]
add ecx, ebx
mov dword [eax + 0x68], ecx
mov ecx, dword [eax + 0x6c]
pop edi
add ecx, edx
pop esi
mov dword [eax + 0x6c], ecx
pop ebx
leave
ret
Function at 0x1004017c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10077060]
jne 0x10040186
repz ret
jmp fcn.1004197b

Function at 0x10048fea
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10041be6
and dword [ebp - 4], 0
cmp dword [0x1007ab88], 0
mov ebx, eax
jne 0x1004909b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1004914c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1004914c
push eax
call fcn.10041b74
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1007ab88], eax
call esi
push eax
call fcn.10041b74
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1007ab8c], eax
call esi
push eax
call fcn.10041b74
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1007ab90], eax
call esi
push eax
call fcn.10041b74
pop ecx
mov dword [0x1007ab98], eax
test eax, eax
je 0x1004909b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10041b74
pop ecx
mov dword [0x1007ab94], eax
mov eax, dword [0x1007ab94]
cmp eax, ebx
je 0x100490f3
cmp dword [0x1007ab98], ebx
je 0x100490f3
push eax
call fcn.10041bef
push dword [0x1007ab98]
mov esi, eax
call fcn.10041bef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100490f3
test edi, edi
je 0x100490f3
call esi
test eax, eax
je 0x100490ea
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100490ea
test byte [ebp - 0xc], 1
jne 0x100490f3
or dword [ebp + 0x10], 0x200000
jmp 0x1004912c
mov eax, dword [0x1007ab8c]
cmp eax, ebx
je 0x1004912c
push eax
call fcn.10041bef
pop ecx
test eax, eax
je 0x1004912c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1004912c
mov eax, dword [0x1007ab90]
cmp eax, ebx
je 0x1004912c
push eax
call fcn.10041bef
pop ecx
test eax, eax
je 0x1004912c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1007ab88]
call fcn.10041bef
pop ecx
test eax, eax
je 0x1004914c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1004914e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Create process on windows
Create process suspended
Enumerate processes
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push ebx
push esi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401159
push 0x228
lea eax, [ebp - 0x284]
mov dword [ebp - 0x288], 0x22c
push ebx
push eax
call fcn.004021c0
add esp, 0xc
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40108f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax]
lea eax, [ebp - 0x264]
push str.winlogon.exe
push eax
call fcn.004041fe
add esp, 8
test eax, eax
je 0x401088
lea eax, [ebp - 0x288]
push eax
push esi
call edi
test eax, eax
jne 0x401060
jmp 0x40108e
mov ebx, dword [ebp - 0x280]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x401159
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push ebx
push 1
push 0x1000
mov dword [ebp - 8], 0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0x44
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 4]
push ecx
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401119
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea eax, [ebp - 8]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push str.C:WindowsSystem32cmd.exe
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401839
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401878
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401878
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401878
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401878
cmp dword [ecx + 0x74], 0xe
jbe 0x401878
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407821
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 0x4078be
push ebx
push esi
call fcn.004077ea
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.0040777e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40786b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4078bd
push edi
push eax
call fcn.0040843e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40788b
call fcn.00406361
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4078bc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040777e
add esp, 0x20
test eax, eax
jne 0x4078aa
push edi
call fcn.00406361
jmp 0x4078b2
push ebx
call fcn.00406361
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 0x408d6b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411210
push 0x411208
push str.FlsAlloc
push 0x1f
call fcn.00408c2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408d9f
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f134]
call esi
jmp 0x408da5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408de9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411220
push 0x411218
push str.FlsGetValue
push 0x21
call fcn.00408c2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408e20
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408e28
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411228
push 0x411220
push str.FlsSetValue
push 0x22
call fcn.00408c2a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408e62
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e26d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e26d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401410
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x427bd8], 0
push esi
mov esi, eax
jne 0x401421
call fcn.00401450
or eax, 0xffffffff
test esi, esi
je 0x401449
mov ecx, esi
lea ebx, [ebx]
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4276a8]
inc edx
dec ecx
jne 0x401430
not eax
pop esi
ret

Function at 0x4015b0
Capabilities:
Encode data using xor

Disassembly:
push esi
call fcn.00401500
mov esi, eax
test esi, esi
jne 0x4015be
pop esi
ret
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp byte [0x427bd8], 0
mov edi, eax
mov edx, esi
jne 0x4015d8
call fcn.00401450
or eax, 0xffffffff
test edi, edi
je 0x4015fa
mov ecx, edi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4276a8]
inc edx
dec ecx
jne 0x4015e1
pop edi
not eax
pop esi
ret

Function at 0x4016c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
test esi, esi
je 0x4016d0
mov dword [esi], 0
push 0x44
lea eax, [ebp - 0x58]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [ebp - 0x58]
push eax
push ecx
push ecx
mov word [ebp - 0x28], cx
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0
push 0
push edx
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40172a
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x401733
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x401740
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
test esi, esi
je 0x401750
mov dword [esi], 0
push 0x44
lea eax, [ebp - 0x5c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x5c]
push eax
push ecx
push ecx
push 0x4000000
push ecx
push ecx
push ecx
push ecx
mov word [ebp - 0x2c], cx
mov ecx, dword [ebp + 8]
push ecx
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4017a7
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4017b0
mov edx, dword [ebp - 0xc]
mov dword [esi], edx
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4017c0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xf0000040
push 1
xor esi, esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x401851
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push esi
push esi
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, 1
jne 0x401845
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
push esi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, 1
jne 0x40183b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push esi
lea eax, [ebp - 8]
push eax
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp eax, 1
jne 0x40183b
cmp dword [ebp - 8], 0x10
jne 0x40183b
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0xc]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret