joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004550
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x10004588
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0x14]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004581
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, dword [ebp + 0xc]
pop edi
pop esi
sete al
pop ebx
pop ebp
ret

Function at 0x10004750
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x100281f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000478a
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007d7d
mov esp, ebp
pop ebp
ret
push ebx
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.10008830
add esp, 0xc
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32First
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, edi
push edi
lea eax, [ebp - 0x108]
push eax
call ebx
test eax, eax
je 0x100047f9
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100047c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007d7d
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x124]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.10007d7d
mov esp, ebp
pop ebp
ret
Function at 0x10004b00
Capabilities:
Connect to wmi namespace via wbemlocator
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001dc38
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x100281f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x10004c77
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x10024da0
push 1
push 0
push 0x10024e70
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x10004c6f
push str.ROOTCIMV2
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
call fcn.100041b0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0
test eax, eax
je 0x10004b88
mov edx, dword [eax]
jmp 0x10004b8a
xor edx, edx
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x10]
push esi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
test esi, esi
js 0x10004c5e
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
test esi, esi
js 0x10004c55
push 0x1001e7d4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0
call fcn.100041b0
push str.SELECT__FROM___InstanceCreationEvent_WITHIN_1_WHERE_TargetInstance_ISA_Win32_Process
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.100041b0
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
test eax, eax
je 0x10004c03
mov edx, dword [eax]
jmp 0x10004c05
xor edx, edx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10004c10
mov esi, dword [eax]
jmp 0x10004c12
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [ebp - 0x14]
push edi
push 0
push 0x30
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x58]
mov esi, eax
test esi, esi
js 0x10004c41
push dword [ebp - 0x14]
call fcn.10005150
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.100042e0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call fcn.100042e0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x24]
call fcn.100042e0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006680
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100066ad
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0x10003ce0
push 0
push 0
mov dword [0x10029b08], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
Function at 0x4c66cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x4c66cf
lcall 0x5de5, 0x8b10c483
jmp loc.00a87694
Function at 0x405d7e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1244], 0
push esi
jne 0x405db5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d8f
mov dword [ecx*4 + 0x7a1240], eax
inc ecx
cmp ecx, 0x100
jl 0x405d8a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405de6
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1240]
xor eax, esi
inc ecx
dec edx
jne 0x405dc8
pop edi
not eax
pop esi
ret 0xc

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x57aa13
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x611cb8]
jne 0x57aa1d
repz ret
jmp fcn.00583aef

Function at 0x58553f
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.00578a06
and dword [ebp - 4], 0
cmp dword [0x612bec], 0
mov ebx, eax
jne 0x5855f0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5856a1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5856a1
push eax
call fcn.00578994
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x612bec], eax
call esi
push eax
call fcn.00578994
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x612bf0], eax
call esi
push eax
call fcn.00578994
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x612bf4], eax
call esi
push eax
call fcn.00578994
pop ecx
mov dword [0x612bfc], eax
test eax, eax
je 0x5855f0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00578994
pop ecx
mov dword [0x612bf8], eax
mov eax, dword [0x612bf8]
cmp eax, ebx
je 0x585648
cmp dword [0x612bfc], ebx
je 0x585648
push eax
call fcn.00578a0f
push dword [0x612bfc]
mov esi, eax
call fcn.00578a0f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x585648
test edi, edi
je 0x585648
call esi
test eax, eax
je 0x58563f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x58563f
test byte [ebp - 0xc], 1
jne 0x585648
or dword [ebp + 0x10], 0x200000
jmp 0x585681
mov eax, dword [0x612bf0]
cmp eax, ebx
je 0x585681
push eax
call fcn.00578a0f
pop ecx
test eax, eax
je 0x585681
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x585681
mov eax, dword [0x612bf4]
cmp eax, ebx
je 0x585681
push eax
call fcn.00578a0f
pop ecx
test eax, eax
je 0x585681
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x612bec]
call fcn.00578a0f
pop ecx
test eax, eax
je 0x5856a1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5856a3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5884c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x61111c], 0
mov byte [0x611120], 0
mov dword [0x611110], 0xb84
mov dword [0x611114], 0xfffff5e8
mov dword [0x611118], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x588602
mov dword [0x611114], 0xfe4
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0x100
mov dword [0x611124], 0
mov dword [0x611110], 0xe4f
mov ecx, dword [0x61111c]
mov edx, dword [0x611118]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x611124], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x1c]
idiv edi
mov dword [0x61111c], edx
mov dword [0x611110], 0x4f9
mov edx, dword [0x611118]
mov cl, byte [esi + edx]
mov byte [0x611120], cl
mov dword [0x611110], 0x673
mov edx, dword [0x61111c]
mov cl, byte [esi + edx]
mov edx, dword [0x611118]
mov byte [esi + edx], cl
mov cl, byte [0x611120]
mov edx, dword [0x61111c]
mov byte [esi + edx], cl
mov dword [0x611114], 0x9ad
mov dword [0x611110], 0x47
mov edx, dword [0x611118]
add edx, 1
mov dword [0x611118], edx
cmp edx, 0x100
jl 0x588521
jmp 0x58850f
mov dword [0x611118], 0
jmp 0x588521
mov eax, dword [0x611118]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x611110], 0xd78
mov dword [0x611114], 0x25f2
mov eax, dword [0x611118]
add eax, 1
mov dword [0x611118], eax
cmp eax, 0x100
setl dl
mov byte [ebp - 0x1d], dl
mov al, byte [ebp - 0x1d]
test al, 1
jne 0x588602
jmp 0x5885f3
Function at 0x588670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
call fcn.00588650
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [0x611110], 0x1ebd
mov ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
add edx, edi
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x6ad
mov ecx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
jne 0x58869b
lea eax, [0x5e0494]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov esi, dword [0x611114]
add esi, 0x206c
mov dword [0x611110], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], ecx
call fcn.00588a80
mov dword [0x611110], 0xd10
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.00588240
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
mov dword [0x611130], ecx
mov edx, esp
mov esi, dword [ebp - 0x40]
mov dword [edx + 4], esi
mov dword [edx + 0xc], 4
mov dword [edx + 8], 0x1000
mov dword [edx], 0
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x611110]
add edx, 0xfffff45e
mov dword [0x611114], edx
mov edx, ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
mov ebx, edx
add ebx, edi
add ebx, 0x4c
mov edi, dword [ebx]
imul ebx, eax, 0x6c
add edx, ebx
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x50]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], edx
call fcn.00588880
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
add eax, ecx
mov edx, dword [ebp - 0x5c]
add edx, 1
cmp edx, 0x6ad
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], edx
jne 0x588783
mov dword [0x611110], 0x14
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], ecx
call fcn.00588dd0
xor eax, eax
mov ecx, dword [0x611110]
add ecx, 0xffffe836
mov dword [0x611110], ecx
mov ecx, dword [ebp - 0x50]
add ecx, 0xe8ab8
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [edx + 4], 0x111e00
mov ecx, dword [ebp - 0x50]
add ecx, 0x91f4e
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f60
mov ecx, dword [0x611110]
add ecx, 0x175d
mov dword [0x611110], ecx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x588900
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x611118], 0
mov dword [0x61111c], 0
mov dword [0x611128], 0
mov ebx, dword [0x611110]
add ebx, 0xbd5
mov dword [0x611114], ebx
mov dword [0x611110], 0x7be
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x588a60
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x611110], 0x21d9
mov edx, dword [0x611118]
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x611118], edx
mov dword [0x611114], 0x59b
mov esi, dword [0x61111c]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x61111c], edx
mov ecx, dword [0x611118]
mov bl, byte [edi + ecx]
mov byte [0x611120], bl
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov dword [0x611110], 0x8d8
mov bl, byte [0x611120]
mov ecx, dword [0x61111c]
mov byte [edi + ecx], bl
mov ecx, dword [0x611110]
add ecx, 0x469
mov dword [0x611110], ecx
mov ecx, dword [0x611118]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x61111c]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x611128], edx
mov dword [0x611110], 0x644
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.00401000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
add edx, 1
mov esi, dword [ebp - 0x10]
cmp edx, esi
mov dword [ebp - 0x20], edx
jne 0x58896b
mov dword [0x611110], 0x1819
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x588c30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.00588c30]
mov ecx, dword [0x611114]
add ecx, 0xffffe575
mov dword [0x611110], ecx
mov dword [ebp - 4], eax
jmp 0x588c6a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x588c77
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
je 0x588c53
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 4], eax
jmp 0x588c6a
Function at 0x589160
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [0x611110], 0x27
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov dword [0x611110], 0xf46
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
add ecx, 0x3c
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
jmp 0x58925d
mov eax, dword [0x611110]
add eax, 0x1d61
mov dword [0x611110], eax
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
jl 0x58925d
jmp 0x589277
mov eax, dword [0x611114]
add eax, 0xfffff822
mov dword [0x611110], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x589306
mov dword [0x611110], 0x1b9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
sete dl
mov byte [ebp - 0x21], dl
mov al, byte [ebp - 0x21]
test al, 1
jne 0x589299
jmp 0x589306
mov dword [0x611110], 0x6ba
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dx, word [eax + ecx*2 - 0xe]
mov word [ebp - 0x24], dx
mov eax, 1
mov cx, word [ebp - 0x24]
cmp cx, 0x6c
mov dword [ebp - 0x28], eax
je 0x589315
jmp 0x589306
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jne 0x5891ae
mov eax, dword [ebp - 0x1c]
mov dword [0x611114], 0x1039
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
je 0x5891dd
jmp 0x589306
mov dword [0x611114], 0xffffdde0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff6
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2], 0x64
jne 0x589306
mov dword [0x611110], 0x56e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dx, word [eax + ecx*2 - 0x12]
mov word [ebp - 0x2e], dx
mov ax, word [ebp - 0x2e]
cmp ax, 0x64
jne 0x589306
mov dword [0x611110], 0x1bf0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
cmp word [eax + ecx*2], 0x6c
je 0x589228
xor eax, eax
mov dword [0x611110], 0x1c56
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add esp, 0x34
pop ebp
ret
Function at 0x407860
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 5
push 0
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40789b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4078bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret 8
Function at 0x409900
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x459f28
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
call fcn.004197d0
mov esi, dword [esp + 0x20]
add esi, 0x1d8
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.0040c110
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40996e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 7
push 0x462d8c
mov ecx, esi
call fcn.0040c440
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov edi, esp
push eax
call fcn.0040c3d0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00419490
add esp, 4
test eax, eax
jne 0x4099ac
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x411050
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [eax], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4110c3
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.Install
mov ebp, 4
push edi
mov dword [esp + 0x30], ebp
call esi
test eax, eax
jne 0x4110b8
cmp dword [esp + 0x1c], ebp
je 0x4110cf
test edi, edi
je 0x4110c3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp dword [esp + 0x10], 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0x46437c
push edi
setne bl
mov dword [esp + 0x34], ebp
call esi
test eax, eax
jne 0x4110fe
cmp dword [esp + 0x18], ebp
je 0x41110a
mov eax, dword [esp + 0x24]
mov dword [eax], 0
jmp 0x411114
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
test edi, edi
je 0x41111f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 4