joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f5880
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x6688dd
call fcn.00628a68
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x5f58a5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x5f58eb
lea ecx, [ebp - 0x10]
call fcn.00402500
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005f4590
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011f0
mov eax, esi
call fcn.00628b40
ret 8

Function at 0x5f662d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.005fcb9c
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5f6666
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.005f627e
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x5f66c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x5f66e8
cmp dword [edi + 0x54], 0
jne 0x5f66e8
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.005fcb9c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.005f6685
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5fc1af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x5fc1f6
call fcn.005fcb9c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5fc1f6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x5fc212
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.005fbd29
mov esi, eax
test edi, edi
je 0x5fc210
test ebx, ebx
je 0x5fc210
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x6048a8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x604946
push 0x704a0c
push 4
push eax
call fcn.0062a742
push eax
call fcn.00401000
add esp, 0x10
push ebx
push edi
call fcn.00625984
mov edi, dword [eax]
call fcn.00625984
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.006230e6
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00625984
cmp dword [eax], ebx
je 0x60495d
call fcn.00625984
push dword [eax]
call fcn.005f4a14
pop ecx
jmp 0x604964
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x6048ee
jmp 0x6049eb
call fcn.00625984
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x6049e7
cmp dword [ebp - 0x11c], esi
jae 0x6049e7
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00620850
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x6049d6
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x6049d6
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x6049d6
push ebx
push ebx
push esi
jmp 0x6049df
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x6049e9
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0062016f
leave
ret

Function at 0x605fd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x606020
call fcn.005fcb9c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x606020
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x606063
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x60604c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x60604c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x606060
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x60951f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.005fcb9c
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x60954c
xor eax, eax
jmp 0x6095f2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x609545
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x609545
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f43f8
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x6095a3
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x609592
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0060827c
push edi
mov ebx, eax
call fcn.005f4432
pop ecx
test ebx, ebx
je 0x6095e5
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00608934
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.006089e8
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x60ad05
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x60ad1d
mov edi, dword [esi + 0xc]
jmp 0x60ad5d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x60ad36
call fcn.005fcea9
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x60ad4b
call fcn.005fcea9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x60ad5d
call fcn.005fcea9
call fcn.005fcb9c
cmp dword [eax + 0x3c], 0
je 0x60ad72
push edi
mov ecx, ebx
call fcn.00609b95
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0060ac2b
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x60ad90
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x60ad9c
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x61e693
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x61e6c8
xor eax, eax
jmp 0x61e71b
lea eax, [ebp - 0x210]
push eax
call fcn.00628b8f
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x61e6f9
push 0x679980
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0062b35b
add esp, 0xc
test eax, eax
jne 0x61e6c4
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0062b35b
add esp, 0xc
test eax, eax
jne 0x61e6c4
lea eax, [ebp - 0x210]
push eax
call fcn.0061e605
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0062016f
leave
ret

Function at 0x62016f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x758898]
jne 0x620179
repz ret
jmp fcn.0062c91c

Function at 0x63a912
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.0062c260
and dword [ebp - 4], 0
cmp dword [0x762274], 0
mov ebx, eax
jne 0x63a9c3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x63aa74
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x70cf30
push edi
call esi
test eax, eax
je 0x63aa74
push eax
call fcn.0062c1ee
mov dword [esp], 0x70cf20
push edi
mov dword [0x762274], eax
call esi
push eax
call fcn.0062c1ee
mov dword [esp], 0x70cf0c
push edi
mov dword [0x762278], eax
call esi
push eax
call fcn.0062c1ee
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x76227c], eax
call esi
push eax
call fcn.0062c1ee
pop ecx
mov dword [0x762284], eax
test eax, eax
je 0x63a9c3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0062c1ee
pop ecx
mov dword [0x762280], eax
mov eax, dword [0x762280]
cmp eax, ebx
je 0x63aa1b
cmp dword [0x762284], ebx
je 0x63aa1b
push eax
call fcn.0062c269
push dword [0x762284]
mov esi, eax
call fcn.0062c269
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x63aa1b
test edi, edi
je 0x63aa1b
call esi
test eax, eax
je 0x63aa12
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x63aa12
test byte [ebp - 0xc], 1
jne 0x63aa1b
or dword [ebp + 0x10], 0x200000
jmp 0x63aa54
mov eax, dword [0x762278]
cmp eax, ebx
je 0x63aa54
push eax
call fcn.0062c269
pop ecx
test eax, eax
je 0x63aa54
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x63aa54
mov eax, dword [0x76227c]
cmp eax, ebx
je 0x63aa54
push eax
call fcn.0062c269
pop ecx
test eax, eax
je 0x63aa54
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x762274]
call fcn.0062c269
pop ecx
test eax, eax
je 0x63aa74
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x63aa76
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4034cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x4034db
pop dword [ebp - 0x30]
mov eax, 0x14506c98
sub eax, 0x141037bd
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xabd2d15b
sub dword [ebp - 0x40], 0x5d808c10
mov dword [ebp - 0x3c], 0x2164c9b9
add dword [ebp - 0x3c], 0x10ce828c
mov dword [ebp - 0x38], 0x545e197d
add dword [ebp - 0x38], 0xf7ee2ab1
mov dword [ebp - 0x34], 0x315c29e3
add dword [ebp - 0x34], 0xcea3d61d
lea eax, [ebp - 0x40]
push eax
mov eax, 0xcd8fe551
sub eax, 0xcd4fa4fd
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xaf52a06f
add dword [ebp - 0x40], 0xc51fc8e7
mov dword [ebp - 0x3c], 0x923ccc44
sub dword [ebp - 0x3c], 0x50d06acf
mov dword [ebp - 0x38], 0x5c1ddff8
add dword [ebp - 0x38], 0x7518c74
mov dword [ebp - 0x34], 0x9ece8621
sub dword [ebp - 0x34], 0x9ece8621
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x62984fa0
sub eax, 0x62580f50
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3aa2c
push 0
call eax
mov ecx, 0x9f016e32
add ecx, 0x60fee8ce
mov esi, eax
mov edi, 0x408400
add edi, dword [ebp - 0x30]
mov ebx, 0x6a0e03d5
add ebx, 0xe8b75ef9
xor dword [ebp - 0x24], 0x42a770c3
mov edx, dword [edi]
mov dword [ebp - 0x2c], 0xd768d2eb
add edx, ebx
xor dword [ebp - 0x1c], edi
mov dword [esi], edx
xor dword [ebp - 0x20], 0xf6abe61c
add esi, 0x7a45074e
sub esi, 0x7a45074a
add edi, 0x7a39d9d0
add edi, 0x85c62634
loop 0x4035f7
add eax, 0x444f8fad
add eax, 0xbbb1bf26
xor ebx, ebx
add ebx, eax
add eax, 0xcef2d8f9
add eax, 0x310d270c
mov ecx, 0x2f47cab2
add ecx, 0xd0f8354e
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x1000c482
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000c491
pop dword [ebp - 0x2c]
mov eax, 0x19ed06db
add eax, 0xf613bdb6
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x38416
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x4e6ed0d1
add ecx, 0xb19173c4
mov ebx, eax
mov esi, 0x1d3765f2
add esi, 0xf2ccd80e
add esi, dword [ebp - 0x2c]
mov edx, 0x40b4fb28
sub edx, 0x88bea6de
mov edi, dword [esi]
sub dword [ebp - 0x18], ecx
xor edi, edx
xor dword [ebp - 0x20], eax
mov dword [ebx], edi
add dword [ebp - 0x20], edx
add ebx, 0x929d94b7
add ebx, 0x6d626b4d
add esi, 0x91f62556
add esi, 0x6e09daae
loop 0x1000c4eb
add eax, 0x10527
mov ebx, eax
add eax, 0x76178eb5
add eax, 0x89e87150
mov ecx, 0xaa63372f
add ecx, 0x659cc8d1
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x1000d4ea
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, 0x84
test esi, esi
lea edx, [esi + 0xc]
cmove edx, eax
push edx
mov eax, dword [edx]
call dword [eax + 0x18]
push 0x50
test esi, esi
lea eax, [esi - 0x28]
pop ecx
cmove eax, ecx
pop esi
cmp dword [eax], 0
je 0x1000d51b
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret 8

Function at 0x1000fd3c
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1003e4c0]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.1000c482
mov esi, eax
test esi, esi
jne 0x1000fdeb
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000fdc6
lea eax, [esp + 0x28]
push eax
call fcn.1000fd3c
mov esi, eax
test esi, esi
jne 0x1000fdeb
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], 0x100
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x1000fda1
call fcn.1000ce21
push ebx
mov ecx, edi
call fcn.1000d242
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.1000ce21
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10019a3d
add esp, 0x11c
ret 4
Function at 0x404010
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor eax, esi
inc ebp
mov eax, dword [0xa245c62e]
xor eax, 0x24a345c6
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00403c32
push eax
push esi
push dword [ebp + 8]
call fcn.00403be7
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00403c32
push eax
push esi
push dword [ebp + 8]
call fcn.00403be7
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00403c22
push 0x5b
adc byte [esi - 0x78], bl
popfd
jl 0x4040a7
invalid
invalid

Function at 0x406750
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp - 0x21c]
call fcn.004099d0
test eax, eax
je 0x406782
mov eax, 1
jmp 0x406827
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4067a1
xor eax, eax
jmp 0x406827
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x21c]
add edx, 0x230
push edx
mov eax, dword [ebp - 0x21c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40680e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x406827
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x405c62
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x405c71
pop dword [ebp - 0x10]
mov eax, 0xce447bc7
add eax, 0x31fbe0aa
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xeca4a074
sub dword [ebp - 0x20], 0x9e525b29
mov dword [ebp - 0x1c], 0xb927ad5d
sub dword [ebp - 0x1c], 0x86f46118
mov dword [ebp - 0x18], 0xd9e42b96
sub dword [ebp - 0x18], 0x8d97e768
mov dword [ebp - 0x14], 0x2ee67093
add dword [ebp - 0x14], 0xd1198f6d
lea eax, [ebp - 0x20]
push eax
mov eax, 0xdbd1d41e
add eax, 0x246efc2e
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xe0edd22d
add dword [ebp - 0x20], 0x93849729
mov dword [ebp - 0x1c], 0xf2f74526
sub dword [ebp - 0x1c], 0xb18ae3b1
mov dword [ebp - 0x18], 0x5565c576
add dword [ebp - 0x18], 0xe09a6f6
mov dword [ebp - 0x14], 0xed7de648
add dword [ebp - 0x14], 0x128219b8
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xb072b4be
add eax, 0x4fce1b8a
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x39a3e
push 0
call eax
mov ecx, 0xec73d14c
add ecx, 0x138c7662
xor edx, edx
add edx, eax
mov ebx, 0xa375649e
sub ebx, 0xa333b49e
add ebx, dword [ebp - 0x10]
mov edi, 0x62efa694
add edi, 0x68c243d6
mov dword [ebp - 4], 0x9ff63dbe
mov esi, dword [ebx]
add dword [ebp - 0xc], 0x6660ba1
xor esi, edi
xor dword [ebp - 8], 0xc46d5c4a
mov dword [edx], esi
xor dword [ebp - 8], 0xf1a0bb68
add edx, 0x6e7b69fc
add edx, 0x91849608
add ebx, 0xdacb286f
sub ebx, 0xdacb286b
loop 0x405d95
add eax, 0xb37e9e11
add eax, 0x4c82737a
mov ebx, eax
add eax, 5
mov ecx, 0xcfe3aa7b
add ecx, 0x305c5585
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x1021d370
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1021d300
push 0x10225390
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
lea eax, [edi + 5]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
push edi
push esi
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + edi]
mov byte [eax], 0xe9
mov edx, esi
sub edx, ecx
sub edx, 5
mov dword [eax + 1], edx
mov byte [esi], 0xe9
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [edi - 5]
push eax
push 0x90
lea eax, [esi + 5]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push edi
push esi
call ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x1021d425
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1021d4c4
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push esi
xor esi, esi
push edi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x1021d4e4
xor eax, eax
jmp 0x1021d53e
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1021d535
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x1021d526
push dword [ebp + 0xc]
push dword [ebp - 0x120]
call fcn.1021d87c
pop ecx
inc esi
pop ecx
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
jmp 0x1021d4fb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x1021d542
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push closesocket
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1021d574
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1021d579
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
test edx, edx
jne 0x1021d584
ret
cmp word [edx], 0x5a4d
jne 0x1021d59b
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x1021d59b
mov eax, dword [ecx + 0x50]
ret