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

Disassembly:
push 4
mov eax, 0x4cc350
call fcn.0049a911
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x45f1d8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x45f21e
lea ecx, [ebp - 0x10]
call fcn.00412230
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.00450c19
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004029d0
mov eax, esi
call fcn.0049a9e9
ret 8

Function at 0x46ba13
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x4cd2e3
call fcn.0049a911
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00412290
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x46ba75
call fcn.0045f868
cmp eax, 1
jne 0x46ba75
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x4df2e0
push eax
call fcn.0040f350
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00412a10
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004029d0
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004029d0
mov eax, esi
call fcn.0049a9e9
ret 0x10

Function at 0x46ba9e
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x4cd30e
call fcn.0049a911
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00412290
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x46bb00
call fcn.0045f868
cmp eax, 1
jne 0x46bb00
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x4df2e0
push eax
call fcn.0040f350
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00412a10
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004029d0
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004029d0
mov eax, esi
call fcn.0049a9e9
ret 0x14
Function at 0x46bb2c
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x4cd339
call fcn.0049a911
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00412290
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x46bb8e
call fcn.0045f868
cmp eax, 1
jne 0x46bb8e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x4df2e0
push eax
call fcn.0040f350
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00412a10
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004029d0
mov dword [ebp + 8], SysReAllocString
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004029d0
mov eax, esi
call fcn.0049a9e9
ret 8

Function at 0x49318c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x50545c]
jne 0x493196
repz ret
jmp fcn.004a486c

Function at 0x4b424b
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.0049f947
and dword [ebp - 4], 0
cmp dword [0x5098cc], 0
mov ebx, eax
jne 0x4b42fc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b43ad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4b43ad
push eax
call fcn.0049f8d5
mov dword [esp], 0x4e89c0
push edi
mov dword [0x5098cc], eax
call esi
push eax
call fcn.0049f8d5
mov dword [esp], 0x4e89ac
push edi
mov dword [0x5098d0], eax
call esi
push eax
call fcn.0049f8d5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5098d4], eax
call esi
push eax
call fcn.0049f8d5
pop ecx
mov dword [0x5098dc], eax
test eax, eax
je 0x4b42fc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049f8d5
pop ecx
mov dword [0x5098d8], eax
mov eax, dword [0x5098d8]
cmp eax, ebx
je 0x4b4354
cmp dword [0x5098dc], ebx
je 0x4b4354
push eax
call fcn.0049f950
push dword [0x5098dc]
mov esi, eax
call fcn.0049f950
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b4354
test edi, edi
je 0x4b4354
call esi
test eax, eax
je 0x4b434b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b434b
test byte [ebp - 0xc], 1
jne 0x4b4354
or dword [ebp + 0x10], 0x200000
jmp 0x4b438d
mov eax, dword [0x5098d0]
cmp eax, ebx
je 0x4b438d
push eax
call fcn.0049f950
pop ecx
test eax, eax
je 0x4b438d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b438d
mov eax, dword [0x5098d4]
cmp eax, ebx
je 0x4b438d
push eax
call fcn.0049f950
pop ecx
test eax, eax
je 0x4b438d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5098cc]
call fcn.0049f950
pop ecx
test eax, eax
je 0x4b43ad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b43af
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4033c6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push esi
mov esi, ecx
jne 0x4034bf
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x4033f5
sub esp, 0x10
call fcn.00403c91
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x4034c1
cmp eax, 0xf
jne 0x403409
lea ecx, [esi + 0x20]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x4033ed
cmp eax, 0x14
jne 0x403419
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
jmp 0x4033ed
cmp eax, 0x201
jne 0x40342d
push ecx
push dword [ebp + 0x14]
push ecx
push ecx
call fcn.00403d03
jmp 0x4033e8
cmp eax, 0x202
jne 0x40343f
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
jmp 0x4033ed
cmp eax, 0x18
jne 0x403497
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
cmp byte [0x436a70], 0
mov edi, eax
jne 0x40348c
xor ecx, ecx
mov byte [0x436a70], 1
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ecx
push eax
push ecx
push esi
push 0x4040f6
push ecx
push ecx
call fcn.0040e1f8
add esp, 0x18
test eax, eax
je 0x40348c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
xor eax, eax
inc eax
pop edi
jmp 0x4034c1
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x1c], 1
push ecx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push eax
call fcn.004045d9
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x4033ed
xor eax, eax
pop esi
pop ebp
ret 0x18

Function at 0x40768e
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push esi
push eax
mov esi, ecx
push eax
push eax
push eax
mov dword [esi], 0x42ff58
mov dword [esi + 4], eax
or dword [esi + 0xc], 0xffffffff
push str.AmigoLoader
mov dword [esi + 8], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
test eax, eax
je 0x40774b
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ecx, [ebp - 4]
push edi
push 4
push ecx
push 2
push eax
mov dword [ebp - 4], 0x36b0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4076e9
call edi
push 4
lea eax, [ebp - 4]
push eax
push 5
push dword [esi + 4]
call ebx
test eax, eax
jne 0x4076fc
call edi
push 4
lea eax, [ebp - 4]
push eax
push 6
push dword [esi + 4]
call ebx
test eax, eax
jne 0x40770f
call edi
push 4
pop eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 3
push dword [esi + 4]
call ebx
test eax, eax
jne 0x407727
call edi
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
and dword [ebp - 0xc], 0
push 8
push eax
push 0x32
push dword [esi + 4]
mov dword [ebp - 0x10], 1
call ebx
test eax, eax
jne 0x407749
call edi
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4088d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x434558]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push str.AMIGOLOADERV2
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete cl
test cl, cl
jne 0x408ad7
mov eax, dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x38]
push esi
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], esi
push eax
mov byte [esp + 0x40], 1
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
call fcn.00408860
push ebx
lea ecx, [esp + 0x4c]
call fcn.004032f0
xorps xmm0, xmm0
mov dword [esp + 0x1c], esi
movdqu xmmword [esp + 0xc], xmm0
call fcn.004065ee
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.004065ee
mov dword [esp + 0x20], eax
lea ecx, [esp + 0xc]
lea eax, [esp + 0x48]
mov dword [esp + 0x28], esi
push eax
call fcn.00405413
push esi
push 1
lea ecx, [esp + 0x50]
call fcn.00403c4b
cmp dword [esp + 0x28], esi
jne 0x4089f9
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], eax
xor eax, eax
mov word [esp + 0x64], ax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], esi
mov dword [esp + 0x80], esi
call fcn.0040b05c
push eax
lea ecx, [esp + 0x10]
call fcn.00405413
push esi
push 1
lea ecx, [esp + 0x50]
call fcn.00403c4b
push esi
push 1
lea ecx, [esp + 0x6c]
call fcn.00403c4b
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x84]
call fcn.00402094
push str.silent
lea ecx, [esp + 0x4c]
call fcn.004032f0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x10]
call fcn.00405c8e
mov bl, al
lea ecx, [esp + 0x48]
push esi
neg bl
push 1
sbb bl, bl
call fcn.00403c4b
inc bl
je 0x408a92
call dword [sym.imp.USER32.dll_GetActiveWindow]
push esi
push esi
lea ecx, [esp + 0x90]
mov ebx, eax
call fcn.00401601
test eax, eax
jne 0x408a63
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x408aa0
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00408809
push esi
push 0x408b33
push ebx
push 0x82
push dword [0x435a94]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x408a9e
lea ecx, [esp + 0x80]
call fcn.00402c45
mov esi, eax
lea ecx, [esp + 0x80]
call fcn.00402339
lea ecx, [esp + 0x20]
call fcn.00405f01
lea ecx, [esp + 0x18]
call fcn.00405f01
lea ecx, [esp + 0xc]
call fcn.00405dd1
cmp byte [esp + 0x34], 0
je 0x408ad7
lea ecx, [esp + 0x2c]
call fcn.00408afb
test edi, edi
je 0x408ae2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x25c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d946
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4094e6
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp byte [edi + 0x24], 0
jne 0x40958b
push esi
xor eax, eax
mov dword [ebp - 4], 0x1388
push eax
push eax
push eax
push eax
push str.AmigoLoader
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x40958a
push 4
lea eax, [ebp - 4]
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x409583
push 4
lea eax, [ebp - 4]
push eax
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x409583
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 3
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x409583
lea eax, [edi + 0xc]
cmp dword [eax + 0x14], 8
jb 0x409562
mov eax, dword [eax]
xor ecx, ecx
push ecx
push 0x80000000
push ecx
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
je 0x409583
push eax
mov byte [edi + 0x24], 1
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40ac48
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0040ace5
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40acdb
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40acd4
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x40accb
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40accb
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x40acdd
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040ace5
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40ad23
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x40ad34
xor al, al
jmp 0x40ad9d
mov ecx, 0x5a4d
push esi
cmp word [eax], cx
jne 0x40ad9a
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x40ad9a
mov edx, dword [ecx + eax + 0x98]
xor ecx, ecx
lea esi, [edx + eax]
test edx, edx
jne 0x40ad5d
mov esi, ecx
test esi, esi
je 0x40ad9a
lea eax, [esi + 8]
test eax, eax
je 0x40ad9a
cmp byte [eax], 0x30
lea edx, [eax + 1]
jne 0x40ad8c
mov al, byte [edx]
cmp al, 0x82
jne 0x40ad8c
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, 0x13
add ecx, eax
and ecx, 0xffffff8
test ecx, ecx
je 0x40ad9a
mov dword [edi + 0x14], ecx
mov al, 1
mov dword [edi + 0x18], esi
jmp 0x40ad9c
xor al, al
pop esi
pop edi
pop ebp
ret 4
Function at 0x40b1f8
Capabilities:
Encode data using xor

Disassembly:
push 0x844
mov eax, 0x428978
call fcn.00411ec3
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x844]
xor esi, esi
mov dword [ebp - 0x83c], eax
mov ecx, 0xff
mov dword [ebp - 0x850], esi
mov eax, esi
mov dword [ebp - 0x848], ecx
mov dword [ebp - 0x84c], eax
mov dword [ebp - 0x844], 0x4fd7e7d
mov dword [ebp - 0x82c], esi
mov dword [ebp - 0x838], edx
push 0x20
pop ebx
or edi, 0xffffffff
dec ebx
shr edi, 1
mov dword [ebp - 0x834], ebx
cmp edi, 0x7ffffffd
ja 0x40b24d
lea edx, [eax - 0x80000000]
mov dword [ebp - 0x830], edi
lea eax, [ecx - 0x80000000]
mov dword [ebp - 0x840], ebx
sub eax, edx
mov dword [ebp - 0x828], edx
cmp eax, 0xffffffff
jne 0x40b2ad
mov edi, esi
mov dword [ebp - 0x814], esi
lea ecx, [ebp - 0x838]
call fcn.0040b578
lea ecx, [ebx - 1]
add esi, ebx
shl edi, cl
add edi, edi
or edi, eax
cmp esi, 0x20
jb 0x40b28b
xor esi, esi
jmp 0x40b35d
inc eax
mov dword [ebp - 0x820], eax
lea ecx, [eax - 1]
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x818], esi
mov eax, esi
mov dword [ebp - 0x824], eax
test ecx, ecx
je 0x40b319
lea eax, [ebx - 1]
mov ebx, esi
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x838]
call fcn.0040b578
mov ecx, dword [ebp - 0x81c]
shl ebx, cl
shl esi, cl
add ebx, ebx
add esi, esi
or ebx, edi
or esi, eax
cmp ebx, dword [ebp - 0x814]
jb 0x40b2da
mov dword [ebp - 0x824], ebx
mov ebx, dword [ebp - 0x840]
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x818], esi
xor esi, esi
xor edx, edx
div dword [ebp - 0x820]
mov ecx, eax
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x818]
xor edx, edx
div dword [ebp - 0x820]
cmp eax, ecx
jb 0x40b34d
mov ecx, dword [ebp - 0x814]
cmp dword [ebp - 0x81c], ecx
jne 0x40b2bd
mov eax, dword [ebp - 0x818]
xor edx, edx
div dword [ebp - 0x820]
mov edi, edx
mov edx, dword [ebp - 0x82c]
mov ebx, 0x800
mov eax, dword [ebp - 0x828]
add eax, edi
add eax, 0x80000000
mov byte [ebp + edx - 0x810], al
inc edx
mov dword [ebp - 0x82c], edx
cmp edx, ebx
jge 0x40b398
mov ecx, dword [ebp - 0x848]
mov eax, dword [ebp - 0x84c]
jmp 0x40b247
push ebx
lea ecx, [ebp - 0x838]
call fcn.0040b422
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x838]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, ebx
jne 0x40b3da
lea ebx, [ebp - 0x810]
sub ebx, edi
mov eax, dword [ecx]
lea edx, [edi + esi]
mov cl, byte [ebx + edx]
xor cl, byte [eax + esi]
inc esi
mov byte [edx], cl
mov ecx, dword [ebp + 0xc]
cmp esi, 0x800
jl 0x40b3c1
mov esi, dword [ebp - 0x83c]
mov ecx, esi
push edi
call fcn.0040328f
test edi, edi
je 0x40b3f3
push edi
call fcn.0040d941
pop ecx
mov eax, esi
call fcn.00411e72
ret 8
Function at 0x40b6b3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x4289a8
call fcn.00411e90
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x18], esi
cmp dword [ebx], esi
je 0x40b792
cmp dword [ebx], 0xffffffff
je 0x40b792
push 0x40
pop edi
push edi
lea ecx, [ebp - 0x24]
call fcn.0040b813
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40b6f3
mov ecx, dword [eax]
jmp 0x40b6f5
mov ecx, eax
mov esi, dword [ebp - 0x24]
lea eax, [edi + edi]
mov dword [ebp - 0x14], eax
xor edi, edi
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b749
cmp dword [ebp - 0x10], 1
je 0x40b728
cmp dword [ebp - 0x10], 2
je 0x40b728
push 0xd
pop eax
jmp 0x40b749
test esi, esi
je 0x40b747
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40b742
test al, 1
jne 0x40b723
shr eax, 1
cmp word [esi + eax*2 - 2], di
je 0x40b747
jmp 0x40b723
xor eax, eax
mov word [esi], ax
mov eax, edi
mov dword [ebx + 0xc], eax
cmp eax, 0xea
jne 0x40b766
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
sub edi, esi
and edi, 0xfffffffe
push edi
call fcn.0040b877
jmp 0x40b6e6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0xc], edi
je 0x40b78a
push dword [ebp + 0x10]
call fcn.004032c8
test esi, esi
je 0x40b79d
push esi
call fcn.0040d941
pop ecx
jmp 0x40b79d
push esi
call fcn.004032f0
jmp 0x40b77d
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
call fcn.004032c8
mov eax, dword [ebp + 8]
call fcn.00411e5e
ret 0xc

Function at 0x40b7a8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x40b80e
cmp dword [edi], 0xffffffff
je 0x40b80e
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x40b7c3
mov ecx, dword [ecx]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x40b7cf
mov esi, dword [esi]
test ecx, ecx
jne 0x40b7d8
push 0xd
pop eax
jmp 0x40b80a
and dword [ebp + 0xc], 0
mov edx, ecx
push ebx
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp + 0xc]
jne 0x40b7e2
sub edx, ebx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
push ecx
push 1
xor eax, eax
push eax
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
mov dword [edi + 0xc], eax
pop esi
pop edi
pop ebp
ret 8

Function at 0x40ba54
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40ba5c
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ba6f
shr eax, 4
and eax, 1
ret
xor al, al
ret
Function at 0x40ba72
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x4280ae
call fcn.00411ec3
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x40ba8a
mov edi, dword [esi]
jmp 0x40ba8c
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ba9f
shr al, 4
and al, 1
jmp 0x40bb14
push ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040c227
pop ecx
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x40bab9
mov eax, dword [esi]
jmp 0x40babb
mov eax, esi
push dword [esi + 0x10]
push eax
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404c96
test eax, eax
je 0x40bb04
lea ecx, [ebp - 0x28]
call fcn.0040ba72
test al, al
je 0x40bb04
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40bb00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40bb04
mov ecx, esi
call fcn.0040ba54
test al, al
je 0x40bb04
mov bl, 1
jmp 0x40bb06
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00403c4b
mov al, bl
call fcn.00411e72
ret

Function at 0x40bf23
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x428a34
call fcn.00411ec3
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push 0x40
push 0
push eax
call fcn.00413f70
add esp, 0xc
mov dword [ebp - 0x80], 0x44
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov edx, edi
push ecx
lea ecx, [ebp - 0x28]
movdqu xmmword [ebp - 0x38], xmm0
call fcn.004051f7
and dword [ebp - 4], 0
mov dword [esp], 0x42ff2c
call fcn.00401147
pop ecx
push eax
push 0x42ff2c
lea ecx, [ebp - 0x28]
call fcn.00404b16
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00404a70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x40bfa9
mov edi, dword [edi]
lea ecx, [ebp - 0x38]
xor esi, esi
push ecx
lea ecx, [ebp - 0x80]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40bfd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40bfee
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x40bfee
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00403c4b
mov eax, esi
call fcn.00411e72
ret
Function at 0x40c43d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x428b3f
call fcn.00411e90
mov edi, ecx
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40c4ca
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push esi
test edi, edi
jne 0x40c476
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40c4ca
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40c485
push esi
jmp 0x40c46e
push edi
lea ecx, [ebp - 0x18]
call fcn.0040c4d2
push edi
mov edi, dword [ebp - 0x18]
push ebx
push edi
call fcn.00411720
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
add esp, 0xc
cmp ecx, eax
je 0x40c4b8
mov eax, dword [ecx]
mov dword [ecx], edi
mov edi, eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x40c4ca
push edi
call fcn.0040d941
pop ecx
call fcn.00411e5e
ret 8