joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41e45a
mov eax, dword [0x44a678]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x41e44d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x41e48b
mov eax, dword [0x44a678]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x41e47e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41e4bc
mov eax, dword [0x44a678]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x41e4af
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x41e509
mov eax, dword [0x44a678]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x41e4fc
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x41e53a
mov eax, dword [0x44a678]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x41e52d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x41e56b
mov eax, dword [0x44a678]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x41e55e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00420cb0
Function at 0x4372c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x44a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x43735f
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x130]
push eax
push esi
call edi
test eax, eax
je 0x43735f
mov eax, str.Meridian.exe
lea ecx, [ebp - 0x10c]
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x437340
test dl, dl
je 0x43733c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x437340
add ecx, 2
add eax, 2
test dl, dl
jne 0x437320
xor eax, eax
jmp 0x437345
sbb eax, eax
or eax, 1
test eax, eax
je 0x437359
lea eax, [ebp - 0x130]
push eax
push esi
call edi
test eax, eax
jne 0x437313
jmp 0x43735f
mov ebx, dword [ebp - 0x128]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cc84
mov esp, ebp
pop ebp
ret

Function at 0x437550
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x44a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
call fcn.004372c0
push 0
mov ebx, eax
lea eax, [ebp - 0xc]
push 4
push eax
push 0x4f5bb8
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x43759f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cc84
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push 0x4f5bb8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 4
lea eax, [ebp - 0x10]
push eax
push 0x4f5bb8
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push 0x4f5bb8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test esi, esi
je 0x4375ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cc84
mov esp, ebp
pop ebp
ret
Function at 0x43d7e9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43d828
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43d828
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43d828
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43d828
cmp dword [ecx + 0x74], 0xe
jbe 0x43d828
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x404212
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push esi
mov esi, ecx
jne 0x40430b
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x404241
sub esp, 0x10
call fcn.00404518
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x40430d
cmp eax, 0xf
jne 0x404255
lea ecx, [esi + 0x20]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x404239
cmp eax, 0x14
jne 0x404265
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
jmp 0x404239
cmp eax, 0x201
jne 0x404279
push ecx
push dword [ebp + 0x14]
push ecx
push ecx
call fcn.00404465
jmp 0x404234
cmp eax, 0x202
jne 0x40428b
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
jmp 0x404239
cmp eax, 0x18
jne 0x4042e3
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 [0x442fac], 0
mov edi, eax
jne 0x4042d8
xor ecx, ecx
mov byte [0x442fac], 1
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ecx
push eax
push ecx
push esi
push 0x404634
push ecx
push ecx
call fcn.00416a1f
add esp, 0x18
test eax, eax
je 0x4042d8
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 0x40430d
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.004049ae
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x404239
xor eax, eax
pop esi
pop ebp
ret 0x18

Function at 0x407b9d
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], 0x43ba00
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 0x407c56
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 0x407bf8
call edi
push 4
lea eax, [ebp - 4]
push eax
push 5
push dword [esi + 4]
call ebx
test eax, eax
jne 0x407c0b
call edi
push 4
lea eax, [ebp - 4]
push eax
push 6
push dword [esi + 4]
call ebx
test eax, eax
jne 0x407c1e
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 0x407c36
call edi
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push 8
push eax
push 0x32
push dword [esi + 4]
mov dword [ebp - 0x10], 1
call ebx
test eax, eax
jne 0x407c54
call edi
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408ec0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x441070]
xor eax, esp
mov dword [esp + 0x238], 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 0x409017
mov ecx, ebx
call fcn.00405851
call fcn.00401313
mov eax, dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push esi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
mov byte [esp + 0x20], 1
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
lea ecx, [esp + 0x40]
call fcn.00402962
push str.silent
lea ecx, [esp + 0x2c]
call fcn.0040192c
mov ecx, dword [0x442c70]
lea eax, [esp + 0x28]
push eax
call fcn.004061e9
push esi
push 1
lea ecx, [esp + 0x30]
mov bl, al
call fcn.0040195d
test bl, bl
jne 0x408fd0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push esi
push esi
lea ecx, [esp + 0x50]
mov ebx, eax
call fcn.00401fd6
test eax, eax
jne 0x408fa7
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x408fdb
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00401d92
push esi
push 0x404844
push ebx
push 0x82
push dword [0x441f30]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x408fd9
lea ecx, [esp + 0x40]
call fcn.004035f1
mov esi, eax
cmp byte [esp + 0x23e], 0
je 0x408fef
cmp byte [esp + 0x234], 0
je 0x408ffe
cmp byte [esp + 0x23f], 0
jne 0x408ffe
call fcn.00408dea
lea ecx, [esp + 0x40]
call fcn.00402be9
cmp byte [esp + 0x14], 0
je 0x409017
lea ecx, [esp + 0xc]
call fcn.0040903b
test edi, edi
je 0x409022
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x244]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040f95d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409ced
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 0x409d92
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 0x409d91
push 4
lea eax, [ebp - 4]
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x409d8a
push 4
lea eax, [ebp - 4]
push eax
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x409d8a
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 0x409d8a
lea eax, [edi + 0xc]
cmp dword [eax + 0x14], 8
jb 0x409d69
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 0x409d8a
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 0x40babc
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0040bb59
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 0x40bb4f
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 0x40bb48
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 0x40bb3f
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 0x40bb3f
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x40bb51
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040bb59
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40bb97
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x40bba8
xor al, al
jmp 0x40bc11
mov ecx, 0x5a4d
push esi
cmp word [eax], cx
jne 0x40bc0e
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x40bc0e
mov edx, dword [ecx + eax + 0x98]
xor ecx, ecx
lea esi, [edx + eax]
test edx, edx
jne 0x40bbd1
mov esi, ecx
test esi, esi
je 0x40bc0e
lea eax, [esi + 8]
test eax, eax
je 0x40bc0e
cmp byte [eax], 0x30
lea edx, [eax + 1]
jne 0x40bc00
mov al, byte [edx]
cmp al, 0x82
jne 0x40bc00
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 0x40bc0e
mov dword [edi + 0x14], ecx
mov al, 1
mov dword [edi + 0x18], esi
jmp 0x40bc10
xor al, al
pop esi
pop edi
pop ebp
ret 4
Function at 0x40c072
Capabilities:
Encode data using xor

Disassembly:
push 0x844
mov eax, 0x42e618
call fcn.0041033f
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x840], eax
mov edi, 0xff
mov ecx, esi
mov dword [ebp - 0x850], esi
lea eax, [ebp - 0x844]
mov dword [ebp - 0x84c], ecx
mov dword [ebp - 0x848], edi
mov dword [ebp - 0x844], 0x4fd7e7d
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x830], eax
push 0x20
pop ebx
or eax, 0xffffffff
shr eax, 1
dec ebx
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x828], eax
cmp eax, 0x7ffffffd
ja 0x40c0c7
mov dword [ebp - 0x834], eax
add edi, 0x80000000
lea eax, [ecx - 0x80000000]
mov dword [ebp - 0x838], ebx
sub edi, eax
mov dword [ebp - 0x83c], eax
cmp edi, 0xffffffff
jne 0x40c12c
mov edi, esi
mov dword [ebp - 0x818], esi
lea ecx, [ebp - 0x830]
call fcn.0040c437
lea ecx, [ebx - 1]
add esi, ebx
shl edi, cl
add edi, edi
or edi, eax
cmp esi, 0x20
jb 0x40c10a
xor esi, esi
jmp 0x40c1d4
lea eax, [edi + 1]
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], esi
mov eax, esi
mov dword [ebp - 0x820], eax
test edi, edi
je 0x40c197
mov esi, dword [ebp - 0x834]
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0x814]
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x830]
call fcn.0040c437
mov ecx, dword [ebp - 0x81c]
shl ebx, cl
add ebx, ebx
or ebx, eax
mov eax, dword [ebp - 0x820]
shl eax, cl
add eax, eax
or eax, esi
mov dword [ebp - 0x820], eax
cmp eax, edi
jb 0x40c15c
mov dword [ebp - 0x814], ebx
xor esi, esi
mov ebx, dword [ebp - 0x838]
xor edx, edx
lea ecx, [edi + 1]
div ecx
mov ecx, eax
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x814]
xor edx, edx
div dword [ebp - 0x818]
cmp eax, ecx
jb 0x40c1c4
cmp dword [ebp - 0x81c], edi
jne 0x40c135
mov eax, dword [ebp - 0x814]
xor edx, edx
div dword [ebp - 0x818]
mov edi, edx
mov ecx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x83c]
add eax, edi
add eax, 0x80000000
mov byte [ebp + ecx - 0x810], al
inc ecx
mov dword [ebp - 0x824], ecx
cmp ecx, 0x800
jge 0x40c20e
mov edi, dword [ebp - 0x848]
mov ecx, dword [ebp - 0x84c]
jmp 0x40c0c1
push 0x800
lea ecx, [ebp - 0x830]
call fcn.0040c2c7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x830]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, 0x800
jne 0x40c257
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 0x40c23e
mov ecx, dword [ebp - 0x840]
push edi
call fcn.00409fba
lea ecx, [ebp - 0x830]
call fcn.0040c35f
mov eax, dword [ebp - 0x840]
call fcn.004102e9
ret 8
Function at 0x40c561
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x42e648
call fcn.0041030b
mov ebx, ecx
and dword [ebp - 0x18], 0
cmp dword [ebx], 0
je 0x40c63e
cmp dword [ebx], 0xffffffff
je 0x40c63e
push 0x40
pop esi
push esi
lea ecx, [ebp - 0x24]
call fcn.0040c720
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40c5a2
mov ecx, dword [eax]
jmp 0x40c5a4
mov ecx, eax
mov edi, dword [ebp - 0x24]
lea eax, [esi + esi]
mov dword [ebp - 0x14], eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c5f8
cmp dword [ebp - 0x10], 1
je 0x40c5d7
cmp dword [ebp - 0x10], 2
je 0x40c5d7
push 0xd
pop eax
jmp 0x40c5f8
test edi, edi
je 0x40c5f6
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c5f1
test al, 1
jne 0x40c5d2
shr eax, 1
cmp word [edi + eax*2 - 2], si
je 0x40c5f6
jmp 0x40c5d2
xor eax, eax
mov word [edi], ax
mov eax, esi
mov dword [ebx + 0xc], eax
cmp eax, 0xea
jne 0x40c615
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
sub esi, edi
and esi, 0xfffffffe
push esi
call fcn.0040c6bf
jmp 0x40c595
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0xc], esi
je 0x40c636
push dword [ebp + 0x10]
call fcn.0040441b
lea ecx, [ebp - 0x24]
call fcn.0040c759
jmp 0x40c649
push edi
call fcn.0040192c
jmp 0x40c62c
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
call fcn.0040441b
mov eax, dword [ebp + 8]
call fcn.004102d4
ret 0xc

Function at 0x40c654
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x40c6ba
cmp dword [edi], 0xffffffff
je 0x40c6ba
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x40c66f
mov ecx, dword [ecx]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x40c67b
mov esi, dword [esi]
test ecx, ecx
jne 0x40c684
push 0xd
pop eax
jmp 0x40c6b6
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 0x40c68e
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 0x40c95d
Capabilities:
Check if file exists
Get file attributes

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

Disassembly:
push 0x1c
mov eax, 0x42dc2c
call fcn.0041033f
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x40c993
mov edi, dword [esi]
jmp 0x40c995
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c9a8
shr al, 4
and al, 1
jmp 0x40ca26
push ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040d1b3
pop ecx
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x40c9c2
mov eax, dword [esi]
jmp 0x40c9c4
mov eax, esi
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push dword [esi + 0x10]
cmovae ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
push eax
call fcn.00404de9
pop ecx
pop ecx
test eax, eax
je 0x40ca16
lea ecx, [ebp - 0x28]
call fcn.0040c97b
test al, al
je 0x40ca16
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ca12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40ca16
mov ecx, esi
call fcn.0040c95d
test al, al
je 0x40ca16
mov bl, 1
jmp 0x40ca18
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
mov al, bl
call fcn.004102e9
ret

Function at 0x40ce80
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x42e6ef
call fcn.0041033f
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push 0x40
push 0
push eax
call fcn.00412c90
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]
movups xmmword [ebp - 0x38], xmm0
call fcn.004056bc
and dword [ebp - 4], 0
mov dword [esp], 0x43b9d4
call fcn.00401124
pop ecx
push eax
push 0x43b9d4
lea ecx, [ebp - 0x28]
call fcn.00404f03
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00404fa7
xor edx, edx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov esi, edx
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x40cf09
mov edi, dword [edi]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push edx
push edx
push edx
push edx
push edx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40cf2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40cf4c
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x40cf4c
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.0040195d
mov eax, esi
call fcn.004102e9
ret
Function at 0x40d4d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40d577
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40d50b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40d577
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40d522
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40d576
push edi
lea ecx, [ebp - 0xc]
call fcn.0040c2c7
push edi
mov edi, dword [ebp - 0xc]
push ebx
push edi
call fcn.00412710
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
add esp, 0xc
cmp ecx, eax
je 0x40d55a
mov eax, dword [ecx]
mov dword [ecx], edi
mov edi, eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ebx, dword [ecx + 8]
mov eax, dword [ebp - 4]
mov dword [ecx + 8], eax
jmp 0x40d55d
mov ebx, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x40d576
push 1
sub ebx, edi
push ebx
push edi
call fcn.004011e6
add esp, 0xc
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8