joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415657
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 8]
push eax
push 0x403d30
push 1
xor ebx, ebx
push ebx
push 0x403dd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x41570a
mov eax, dword [ebp - 8]
push ebx
lea edx, [ebp - 4]
push edx
push 0x40253c
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jne 0x41570a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x14]
mov esi, dword [ebp + 0xc]
jmp 0x415705
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
lea edx, [ebp + 0xc]
push edx
push 1
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x415709
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
push 0x403d20
push ebx
push ebx
push eax
call dword [ecx + 0x20]
mov edi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
jl 0x415705
push dword [ebp + 8]
push dword [esi]
call fcn.004155e5
mov edi, eax
cmp edi, ebx
jge 0x415709
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
cmp dword [esi], ebx
je 0x4156b5
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 8

Function at 0x4164a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4276d0]
jne 0x4164b1
ret
jmp 0x4164b6
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4276d0]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x429964]
test eax, eax
je 0x4164da
call eax
cmp dword [0x429968], 0
je 0x416521
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x429968]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.004164a8
add ebp, 0x2a8
leave
ret
Function at 0x41842e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
push 5
pop ecx
mov esi, 0x404b8c
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
pop ecx
mov esi, 0x404b74
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x404b60
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 8]
movsw word es:[edi], word [esi]
mov esi, 0x404b4c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
push 0x404b2c
movsb byte es:[edi], byte [esi]
xor esi, esi
lea eax, [ebp - 0xc4]
push 0x64
push eax
mov dword [0x4298cc], esi
mov dword [0x4298d0], esi
mov dword [0x4298d4], esi
call fcn.004183d6
add esp, 0x10
test eax, eax
jl 0x4185d2
lea eax, [ebp + 8]
push eax
push 0x20019
push esi
lea eax, [ebp - 0xc4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4185db
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push 0x4298cc
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 4
call edi
test eax, eax
je 0x4184fc
mov dword [0x4298cc], esi
lea eax, [ebp - 4]
push eax
push 0x4298d0
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x41851d
mov dword [0x4298d0], esi
lea eax, [ebp - 4]
push eax
push 0x4298d4
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x41853e
mov dword [0x4298d4], esi
lea eax, [ebp - 4]
push eax
push 0x4298d8
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x418563
mov dword [0x4298d8], 0xffff0000
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4298cc], esi
jne 0x41858c
cmp dword [0x4298d0], esi
jne 0x41859c
cmp dword [0x4298d4], esi
jne 0x41859c
xor eax, eax
inc eax
jmp 0x418610
cmp dword [0x4298d0], esi
jne 0x41859c
cmp dword [0x4298d4], esi
je 0x4185c1
push ebx
push 0x404b28
push 0x64
push 0x429868
call fcn.004183d6
add esp, 0x10
test eax, eax
jl 0x4185d2
push esi
push ebx
call sub.rtutils.dll_TraceRegisterExW
mov dword [0x427e40], eax
cmp dword [0x4298cc], esi
jne 0x4185d6
cmp dword [0x427e40], 0xffffffff
jne 0x4185d6
xor eax, eax
jmp 0x418610
xor eax, eax
inc eax
jmp 0x41860b
push ebx
push 0x404b28
push 0x64
push 0x429868
call fcn.004183d6
add esp, 0x10
test eax, eax
jl 0x4185d2
push esi
push ebx
call sub.rtutils.dll_TraceRegisterExW
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, 0xffffffff
mov dword [0x427e40], ecx
je 0x418610
mov dword [0x4298dc], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x418617
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
xor esi, esi
cmp dword [0x4298cc], esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x201
jbe 0x41873e
test dword [0x4298d8], edi
je 0x41873e
cmp edi, 0x10002
je 0x418683
cmp edi, 0x20002
je 0x418680
cmp edi, 0x40002
je 0x41867c
cmp edi, 0x80002
je 0x418677
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
mov esi, eax
jmp 0x418683
push 3
pop esi
jmp 0x418683
push 2
jmp 0x418679
xor esi, esi
inc esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [esi*4 + 0x427e44]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push 0x429868
push 0x404bec
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004183d6
add esp, 0x28
test eax, eax
jl 0x4187d6
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.00418356
test eax, eax
jl 0x4187d6
mov eax, dword [ebp - 4]
cmp eax, ebx
jae 0x4187d6
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x218]
push eax
call fcn.004183bb
test eax, eax
jge 0x41871f
cmp eax, 0x7a
jne 0x4187d6
push 0x404be8
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.004183fd
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x427e40], 0xffffffff
je 0x4187d6
xor eax, eax
cmp dword [0x4298d0], eax
ja 0x41875d
cmp dword [0x4298d4], eax
jbe 0x4187d6
cmp edi, 0x10002
je 0x418799
cmp edi, 0x20002
je 0x418796
cmp edi, 0x40002
je 0x418792
cmp edi, 0x80002
je 0x41878d
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
jmp 0x418799
push 3
pop eax
jmp 0x418799
push 2
jmp 0x41878f
xor eax, eax
inc eax
push dword [ebp + 0xc]
push dword [eax*4 + 0x427e44]
lea eax, [ebp - 0x218]
push 0x404be0
push ebx
push eax
call fcn.004183d6
add esp, 0x14
test eax, eax
jl 0x4187d6
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
or edi, 4
push edi
push dword [0x427e40]
call sub.rtutils.dll_TraceVprintfExA
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420af7
Capabilities:
Create thread

Disassembly:
mov eax, 0x42521d
call fcn.00416760
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x4298dc], edi
mov esi, ecx
mov ebx, 0x80002
je 0x420b24
push 0x40bec8
push ebx
call fcn.00418617
pop ecx
pop ecx
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x30], edi
mov dword [ebp - 4], edi
jne 0x420ba4
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x3c], eax
jne 0x420b67
cmp dword [0x4298dc], edi
je 0x420b60
push 0x40bea8
push 0x10002
call fcn.00418617
pop ecx
pop ecx
mov edi, 0x80004005
jmp 0x420bbc
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x420aeb
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x40], eax
jne 0x420ba4
cmp dword [0x4298dc], edi
je 0x420b60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40be8c
push 0x10002
call fcn.00418617
add esp, 0xc
jmp 0x420b60
inc dword [esi + 0x30]
cmp dword [0x4298dc], edi
je 0x420bbc
push 0x40be6c
push ebx
call fcn.00418617
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x529a00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd3000]
push edi
jmp 0x529a1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x529a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529a10
mov eax, 1
add ebx, ebx
jne 0x529a33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x529a44
jne 0x529a63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529a63
dec eax
add ebx, ebx
jne 0x529a50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x529a28
add ebx, ebx
jne 0x529a5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x529ab5
xor ecx, ecx
sub eax, 3
jb 0x529a7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x529aea
sar eax, 1
mov ebp, eax
jmp 0x529a86
add ebx, ebx
jne 0x529a86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529a54
inc ecx
add ebx, ebx
jne 0x529a94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529a54
add ebx, ebx
jne 0x529aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x529a96
jne 0x529ab2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x529a96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x529ad4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x529ac6
jmp 0x529a16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x529ad4
add edi, ecx
jmp 0x529a16
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x529af2
cmp byte [edi], 0x11
jne 0x529af2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x529af7
lea edi, [esi + 0x122000]
mov eax, dword [edi]
or eax, eax
je 0x529b6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17aa64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17abe0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x529b24
mov ecx, edi
jns 0x529b53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x17abe4]
or eax, eax
je 0x529b69
mov dword [ebx], eax
add ebx, 4
jmp 0x529b41
call dword [esi + 0x17abf4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x529ba0
cmp al, 0xef
ja 0x529b93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x529b75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x529b82
mov ebp, dword [esi + 0x17abe8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x529bd4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x40f3c8
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jg 0x40f3e8
jl 0x40f3df
test ebx, ebx
jne 0x40f3e8
xor eax, eax
xor edx, edx
jmp 0x40f4ab
cmp dword [ebp + 0x38], 0
je 0x40f3fe
push esi
push ebx
push dword [esp + 0x18]
call fcn.00408985
jmp 0x40f4ab
mov eax, dword [ebp + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40f442
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x40f442
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00407f28
mov eax, dword [ebp + 0x2c]
add edi, esi
mov dword [esp + 0x20], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x40f44a
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
je 0x40f4a1
mov ecx, ebp
call fcn.0040e1b7
mov ecx, dword [esp + 0x14]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x40f48c
push dword [ebp + 0x4c]
push eax
push 1
push ecx
call fcn.0044a728
mov ecx, dword [esp + 0x24]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x14], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x40f4a1
jmp 0x40f45d
test edx, edx
je 0x40f4a1
push dword [ebp + 0x4c]
push edi
push 1
push ecx
call fcn.0044a728
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4118b1
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x494284]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
push ebx
push esi
push edi
mov ebx, SysStringLen
lea ecx, [ebp - 0x64]
push ebx
call fcn.00419301
lea eax, [ebp - 0x48]
push 0x400
push eax
call fcn.00412523
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ecx
pop ecx
test eax, eax
js 0x4118fd
lea eax, [ebp - 0x48]
push eax
call esi
lea eax, [ebp - 0x48]
push eax
call fcn.00411cc2
pop ecx
test eax, eax
je 0x41191d
lea eax, [ebp - 0x48]
push eax
push eax
call fcn.00411f52
pop ecx
pop ecx
lea eax, [ebp - 0x48]
push eax
call esi
call fcn.004119d1
xor edi, edi
push edi
push str.PreDownldStatus
push edi
call fcn.0041263c
add esp, 0xc
lea ecx, [ebp - 0x64]
push ebx
call fcn.00419334
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.0041937b
test eax, eax
jne 0x4119b9
mov ebx, 0x20019
push ebx
lea eax, [ebp - 0x48]
inc edi
push eax
lea ecx, [ebp - 0x64]
call fcn.00419394
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.00404c4e
test esi, esi
jne 0x4119a8
push eax
lea ecx, [ebp - 0x80]
call fcn.00419301
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x80]
call fcn.00419394
lea ecx, [ebp - 0x80]
mov esi, eax
call fcn.00404c4e
push eax
lea ecx, [ebp - 0x80]
call fcn.00419334
test esi, esi
jne 0x4119a8
push str.VersionXmlURL
lea ecx, [ebp - 0x80]
call fcn.0041936b
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.0041937b
test eax, eax
je 0x411952
mov ecx, dword [ebp + 0x3b8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f9b7
add ebp, 0x3bc
leave
ret
Function at 0x42e246
Capabilities:
Check mutex on windows

Disassembly:
push 0xa0
mov eax, 0x46bd44
call fcn.0043f9f7
push str.Global_MSIExecute
xor ebx, ebx
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, eax
mov byte [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x42e306
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp dword [ebp + 8], ebx
je 0x42e2fe
push 1
call fcn.00418029
mov ecx, eax
call fcn.0041829a
test al, al
je 0x42e2fe
push 1
lea ecx, [ebp - 0xac]
call fcn.004027f4
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 1
push str.finish_waiting_for_mutex:
push eax
call fcn.00402085
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0xac]
call fcn.0040bf6c
lea eax, [ebp - 0xac]
push eax
push str.msi::waitForInstallationCompletion
push 0x180
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u421_1068_install_src_windows_common_MsiUtils.cpp
push 1
call fcn.00418029
mov ecx, eax
call fcn.0040ecb2
lea ecx, [ebp - 0xac]
call fcn.0040332e
cmp edi, 0x102
je 0x42e308
mov bl, 1
push esi
mov dword [ebp - 4], 3
call fcn.0042c578
pop ecx
mov al, bl
call fcn.0043f9c5
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4013e0
Capabilities:
Acquire debug privileges
Encode data using xor
Encrypt data using aes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x40157e
test eax, eax
je 0x40157e
mov dword [eax + 0xf0], 0xa
mov ecx, dword [esi]
push edi
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax], edx
mov edx, dword [esi + 4]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 4], edi
mov edx, dword [esi + 8]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 8], edi
mov edx, dword [esi + 0xc]
lea ecx, [eax + 4]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov dword [eax + 0xc], esi
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x45b7a8]
xor edx, 0x1000000
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x45bba8]
and edi, 0xff0000
and edx, 0xff000000
xor edx, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi*4 + 0x45b3a8]
xor edx, edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0x45afa8]
and edi, 0xff00
xor edx, edi
xor edx, dword [eax]
mov edi, dword [ecx]
xor edi, edx
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
xor edx, edi
mov dword [eax + 0x18], edx
xor edx, esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], edx
mov esi, 0x45d3ac
jmp 0x4014f0
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov eax, edx
shr eax, 8
mov edi, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x45bba8]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x45b7a8]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x45afa8]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x45b3a8]
xor eax, edi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add esi, 4
xor eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
mov dword [ecx + 0x18], edx
cmp esi, str.SeDebugPrivilege
jne 0x4014f0
pop edi
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x402d10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402d24
test al, 0x10
jne 0x402d9e
mov eax, esi
push edi
xor edi, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402d30
sub eax, edx
sar eax, 1
je 0x402d94
push ebx
movzx eax, word [esi + edi*2]
cmp eax, 0x5c
je 0x402d50
cmp eax, 0x2f
jne 0x402d75
mov ebx, eax
xor eax, eax
push esi
mov word [esi + edi*2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402d68
test al, 0x10
jne 0x402d71
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi + edi*2], bx
mov eax, esi
inc edi
lea edx, [eax + 2]
jmp 0x402d80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402d80
sub eax, edx
sar eax, 1
cmp edi, eax
jb 0x402d42
pop ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x402e30
Capabilities:
Check os version
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x464ce4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
mov dword [ebp - 0x11c], 0
call fcn.0043a230
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x402f11
push str.NtCreateThreadEx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x402ec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MyCreateRemoteThread___:_GetProcAddress__NtCreateThreadEx__
call fcn.0043894b
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push ebx
push edi
push esi
push 0
push 0x1fffff
lea edx, [ebp - 0x11c]
push edx
call eax
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x402f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MyCreateRemoteThread___:_NtCreateThreadEx__
call fcn.0043894b
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x402f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MyCreateRemoteThread___:_CreateRemoteThread__
call fcn.0043894b
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x402f82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MyCreateRemoteThread___:_WaitForSingleObject__
call fcn.0043894b
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0043836a
mov esp, ebp
pop ebp
ret