joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dcd4
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4242b4]
mov dword [ebp - 4], eax
mov eax, dword [0x42416c]
cmp eax, 0xffffffff
je 0x40dcfb
test eax, eax
setne al
movzx eax, al
jmp 0x40dd4f
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 1
jne 0x40dd48
cmp dword [ebp - 0x94], 4
jne 0x40dd48
cmp dword [ebp - 0x90], 0xa
jne 0x40dd48
mov eax, dword [ebp - 0x8c]
shr eax, 0x10
cmp ax, 0x45a
je 0x40dd48
call fcn.0040d3dc
test eax, eax
jne 0x40dd48
inc eax
jmp 0x40dd4a
xor eax, eax
mov dword [0x42416c], eax
mov ecx, dword [ebp - 4]
call fcn.0041a84f
leave
ret

Function at 0x40dd5e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4242b4]
mov dword [ebp - 4], eax
mov eax, dword [0x424170]
cmp eax, 0xffffffff
je 0x40dd85
test eax, eax
setne al
movzx eax, al
jmp 0x40dde4
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 1
jne 0x40dddd
cmp dword [ebp - 0x94], 4
jne 0x40dddd
cmp dword [ebp - 0x90], 0xa
jne 0x40dddd
mov eax, dword [ebp - 0x8c]
shr eax, 0x10
cmp ax, 0x45a
je 0x40dddd
cmp word [ebp - 0x8c], 0x8ae
jb 0x40dddd
call fcn.0040d3dc
test eax, eax
jne 0x40dddd
inc eax
jmp 0x40dddf
xor eax, eax
mov dword [0x424170], eax
mov ecx, dword [ebp - 4]
call fcn.0041a84f
leave
ret

Function at 0x40ddf3
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4242b4]
mov dword [ebp - 4], eax
mov eax, dword [0x424174]
cmp eax, 0xffffffff
je 0x40de1a
test eax, eax
setne al
movzx eax, al
jmp 0x40de77
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 1
jne 0x40de70
cmp dword [ebp - 0x94], 4
jne 0x40de70
cmp dword [ebp - 0x90], 0x5a
je 0x40de64
cmp dword [ebp - 0x90], 0xa
jne 0x40de70
mov eax, dword [ebp - 0x8c]
shr eax, 0x10
cmp ax, 0x45a
jne 0x40de70
call fcn.0040d3dc
test eax, eax
jne 0x40de70
inc eax
jmp 0x40de72
xor eax, eax
mov dword [0x424174], eax
mov ecx, dword [ebp - 4]
call fcn.0041a84f
leave
ret
Function at 0x40df4e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4242b4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x110]
push eax
push 1
xor esi, esi
push esi
push 0x4024b0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x40df93
push eax
push 0x402474
jmp 0x40dfe5
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push 0x402464
push dword [ebp - 0x110]
mov dword [ebp - 0x10c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x40dff3
push eax
push 0x402420
call fcn.0040be00
pop ecx
pop ecx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x40dfec
push eax
push 0x4023e4
call fcn.0040be00
pop ecx
pop ecx
xor eax, eax
jmp 0x40e0c4
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x40e010
push eax
push 0x4023e4
call fcn.0040be00
pop ecx
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
push edi
mov edi, 0x4023d4
push edi
call esi
mov ebx, eax
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebx + eax + 1]
cmp eax, 0x104
jle 0x40e045
push 0x40239c
call fcn.0040be00
pop ecx
xor eax, eax
jmp 0x40e0c2
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push dword [ebp - 0x114]
mov dword [ebp - 0x10c], eax
call esi
mov ecx, dword [ebp - 0x10c]
cmp ecx, eax
je 0x40e0bf
cmp ecx, dword [ebp + 0xc]
jbe 0x40e08d
push 0x40236c
jmp 0x40e03b
test ecx, ecx
jne 0x40e0a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40232c
call fcn.0040be00
pop ecx
jmp 0x40e040
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4022d0
call fcn.0040be00
add esp, 0x10
jmp 0x40e041
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0041a84f
leave
ret 8

Function at 0x40e243
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
xor edi, edi
push edi
push dword [ebp + 8]
call fcn.0040c335
test eax, eax
jne 0x40e26c
push dword [ebp + 8]
push 0x4025c0
call fcn.0040be00
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x40e2b4
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi], edi
push ebx
add edi, 0x258
push edi
push dword [esi]
call fcn.0041b01a
test eax, eax
pop ecx
pop ecx
je 0x40e2b9
push dword [ebp + 8]
mov dword [esi], eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ebx, eax
lea eax, [edi - 2]
cmp ebx, eax
je 0x40e273
test ebx, ebx
jne 0x40e2b0
push dword [ebp + 8]
push 0x402580
call fcn.0040be00
pop ecx
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 8
push 0x40254c
call fcn.0040be00
mov eax, dword [esi]
test eax, eax
pop ecx
je 0x40e2d4
push eax
call fcn.0041afa4
and dword [esi], 0
pop ecx
or eax, 0xffffffff
jmp 0x40e2b2
Function at 0x40e43d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
push 0x20019
xor esi, esi
push esi
push 0x40275c
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40e48f
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push 0x402740
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e484
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e49c
push eax
push 0x4026f0
call fcn.0040be00
pop ecx
pop ecx
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x40e4b1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0x75f8], ebx
mov dword [esi + 0x75fc], ebx
mov dword [esi + 0x7600], ebx
call fcn.0040daba
test eax, eax
je 0x40e4dc
push 0x40281c
jmp 0x40e4ea
call fcn.0040d401
test eax, eax
je 0x40e4f8
push 0x401a0c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x58c]
jmp 0x40e512
call fcn.0040d7cb
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
lea eax, [esi + 0x58c]
je 0x40e51c
push 0x40280c
push eax
call edi
push 0x402800
jmp 0x40e529
push 0x4027f4
push eax
call edi
push 0x4027e8
lea eax, [esi + 0x690]
push eax
call edi
push 0x104
lea edi, [esi + 0x280]
push edi
mov dword [esi + 0x54], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x99c], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0xaa4], ebx
mov dword [esi + 0xaa8], ebx
mov dword [esi + 0xaac], ebx
mov dword [esi + 0xab0], ebx
mov dword [esi + 0xab8], ebx
mov dword [esi + 0xabc], ebx
mov dword [esi + 0xac0], ebx
mov dword [esi + 0xac8], ebx
mov dword [esi + 0xacc], ebx
mov dword [esi + 0xad0], ebx
mov dword [esi + 0xad4], ebx
mov dword [esi + 0xad8], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov byte [esi + 0x74], bl
mov byte [esi + 0x488], bl
mov byte [esi + 0x9a0], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40e5f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4027bc
call fcn.0040be00
pop ecx
pop ecx
mov byte [edi], bl
jmp 0x40e5fe
push edi
call fcn.0040c4a4
push edi
call fcn.0040c469
push 0x104
lea edi, [esi + 0x384]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40e62b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x402790
call fcn.0040be00
pop ecx
pop ecx
mov byte [edi], bl
jmp 0x40e631
push edi
call fcn.0040c469
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40f335
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4242b4]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.0040c2ca
test eax, eax
push esi
jne 0x40f377
push edi
push 0x402f90
call fcn.0040be00
add esp, 0xc
jmp 0x40f3df
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c2ca
test eax, eax
jne 0x40f391
push esi
push edi
push 0x402f48
jmp 0x40f36d
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.0040c335
test eax, eax
je 0x40f400
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40f3e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x402f14
call fcn.0040be00
add esp, 0x10
xor eax, eax
jmp 0x40f416
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x402f00
call fcn.0040be00
add esp, 0xc
jmp 0x40f413
lea eax, [ebp - 0x108]
push eax
push 0x402ecc
call fcn.0040be00
pop ecx
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041a84f
leave
ret 0xc
Function at 0x40f50b
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x4242b4]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xac4]
test eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x260], ecx
je 0x40f540
cmp eax, 3
je 0x40f540
cmp eax, 2
jne 0x40f6af
mov edx, dword [ecx + 0x54]
test edx, edx
je 0x40f6af
cmp dword [ebp + 8], 0x12
jne 0x40f6af
test edi, edi
je 0x40f6af
cmp dword [edi + 8], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
mov esi, dword [edi]
mov dword [ebp - 0x268], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
jne 0x40f684
cmp dword [ebp - 0x268], 3
je 0x40f5dc
test eax, eax
jne 0x40f5ff
push 0x1771
push edx
call ebx
movzx ecx, word [edi + 4]
shl ecx, 0x10
push ecx
push 0
push 0x401
push eax
mov dword [ebp - 0x264], eax
call esi
push 0
push 0
push 0x402
push dword [ebp - 0x264]
call esi
push 0
push 1
push 0x404
push dword [ebp - 0x264]
call esi
push 1
push dword [ebp - 0x264]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40f5f9
cmp eax, 3
jne 0x40f5ff
push 0
push dword [ecx + 0xe04]
push 0x402
push 0x1770
push edx
call ebx
push eax
call esi
mov ecx, dword [ebp - 0x260]
push 0x258
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x268]
add eax, 0x13b1
push eax
call fcn.0040f1a4
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x260]
push 0xfa2
push dword [eax + 0x54]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
test eax, eax
jne 0x40f64e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403108
call fcn.0040be00
pop ecx
pop ecx
mov eax, dword [ebp - 0x260]
push 0x401627
push 0xfa3
push dword [eax + 0x54]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
test eax, eax
jne 0x40f67e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4030c0
call fcn.0040be00
pop ecx
pop ecx
mov ecx, dword [ebp - 0x260]
cmp dword [ecx + 0xac4], 0
jne 0x40f6ad
cmp dword [ebp - 0x268], 3
je 0x40f6ad
push 0
push dword [edi + 8]
push 0x402
push 0x1771
push dword [ecx + 0x54]
call ebx
push eax
call esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0041a84f
leave
ret 8
Function at 0x40f72c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.0040c335
test eax, eax
jne 0x40f756
push 0x403284
call fcn.0040be00
jmp 0x40f789
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x40f793
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40324c
call fcn.0040be00
pop ecx
xor eax, eax
pop ecx
xor edx, edx
jmp 0x40f85e
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f7b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403214
call fcn.0040be00
pop ecx
pop ecx
jmp 0x40f837
push ebx
push esi
call fcn.0041af8c
mov ebx, eax
cmp ebx, edi
pop ecx
jne 0x40f7d2
push 0x4031e4
call fcn.0040be00
jmp 0x40f82a
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f818
cmp esi, dword [ebp - 4]
jne 0x40f818
xor ecx, ecx
test esi, esi
jbe 0x40f82b
movzx eax, byte [ecx + ebx]
cdq
add dword [ebp - 0xc], eax
adc dword [ebp - 8], edx
inc ecx
cmp ecx, esi
jb 0x40f806
jmp 0x40f82b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4031ac
call fcn.0040be00
pop ecx
pop ecx
test ebx, ebx
je 0x40f836
push ebx
call fcn.0041af7c
pop ecx
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
pop esi
jne 0x40f858
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40317c
call fcn.0040be00
pop ecx
pop ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
leave
ret 4

Function at 0x40ff0c
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4242b4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10c], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push 0x40368c
mov edi, 0x403680
push edi
push 0x403678
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40ff70
push ebx
push edi
push 0x403644
call fcn.0040be00
add esp, 0xc
jmp 0x40ffd1
cmp byte [ebp - 0x108], 0
jne 0x40ff82
push ebx
push edi
push 0x403610
jmp 0x40ff66
mov edi, 0x40360c
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0041b296
test eax, eax
pop ecx
pop ecx
je 0x40ffd1
push esi
push eax
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push 0
call fcn.0041b296
test eax, eax
pop ecx
pop ecx
je 0x40ffd1
push dword [ebp - 0x10c]
push eax
call fcn.0040c4db
test eax, eax
jne 0x40ffd5
push 0x4035d4
call fcn.0040be00
pop ecx
xor eax, eax
jmp 0x40ffd8
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041a84f
leave
ret 0xc
Function at 0x4106a2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4242b4]
push esi
mov esi, dword [ebp + 8]
push dword [esi]
mov dword [ebp - 4], eax
call fcn.0040c79e
test eax, eax
je 0x41073d
push dword [esi]
mov dword [ebp - 0xc], 1
push 0x403b14
call fcn.0040be00
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push 2
push 0
push 0x40275c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410730
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x403afc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41071b
push eax
push 0x403ac8
call fcn.0040be00
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x41073d
push eax
push 0x403a98
jmp 0x410736
push eax
push 0x403a64
call fcn.0040be00
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
pop esi
call fcn.0041a84f
leave
ret 4
Function at 0x410774
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x4242b4]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x670], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x528]
xor ebx, ebx
push eax
mov edi, ecx
mov dword [ebp - 0x528], 0xf750e6c3
mov word [ebp - 0x524], 0x38ee
mov word [ebp - 0x522], 0x11d1
mov byte [ebp - 0x520], 0x85
mov byte [ebp - 0x51f], 0xe5
mov byte [ebp - 0x51e], bl
mov byte [ebp - 0x51d], 0xc0
mov byte [ebp - 0x51c], 0x4f
mov byte [ebp - 0x51b], 0xc2
mov byte [ebp - 0x51a], 0x95
mov byte [ebp - 0x519], 0xee
mov dword [ebp - 0x66c], 1
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
jne 0x41081c
push 0x403c54
jmp 0x4108d4
push ebx
push ebx
push esi
lea ecx, [ebp - 0x20c]
push ecx
push eax
lea eax, [ebp - 0x518]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x410851
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403c10
call fcn.0040be00
pop ecx
jmp 0x4108d9
call fcn.0040dcd4
test eax, eax
je 0x410883
push dword [ebp - 0x670]
lea eax, [edi + 0x384]
push 0x403bfc
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040c2fe
test eax, eax
jne 0x4108e1
push 0x403bc8
jmp 0x4108d4
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x403bb8
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.0041ae94
add esp, 0x14
test eax, eax
jge 0x4108ab
push 0x403b88
jmp 0x4108d4
push dword [ebp - 0x670]
lea eax, [ebp - 0x310]
push eax
lea eax, [edi + 0x384]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040c2fe
test eax, eax
jne 0x4108e1
push 0x403b58
call fcn.0040be00
pop ecx
xor eax, eax
jmp 0x41097b
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x410975
call fcn.0040db35
test eax, eax
je 0x41091a
push 1
lea eax, [edi + 0x74]
push eax
lea eax, [ebp - 0x63c]
push eax
push ebx
call fcn.00418b5d
jmp 0x41093d
call fcn.0040ddf3
push 1
test eax, eax
lea eax, [edi + 0x74]
push eax
lea eax, [ebp - 0x63c]
push eax
push ebx
je 0x410938
call fcn.00418a6f
jmp 0x41093d
call fcn.00418d1e
cmp eax, ebx
mov dword [ebp - 0x66c], eax
je 0x41095b
lea eax, [ebp - 0x668]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4108fc
jmp 0x41096e
lea eax, [ebp - 0x63c]
push eax
push 0x403b24
call fcn.0040be00
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x66c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041a84f
leave
ret 4
Function at 0x41098f
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push esi
mov word [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x410a28
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x4109ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403cec
jmp 0x410a34
cmp dword [ebp + 0xc], esi
je 0x4109fd
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test eax, eax
je 0x410a15
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x410a23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403cbc
jmp 0x410a34
xor eax, eax
inc eax
jmp 0x410a3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403c88
call fcn.0040be00
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x410a48
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x4242b4]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x403ec8
mov dword [ebp - 4], eax
mov esi, ecx
mov dword [ebp - 0x46c], ebx
call fcn.0040be00
cmp dword [esi + 0x178], 1
pop ecx
pop ecx
jne 0x410bcb
push ebx
lea eax, [ebp - 0x468]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x401e0c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x410bc3
push 0x403eb8
push 0x401b74
lea eax, [esi + 0x280]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040c2fe
test eax, eax
jne 0x410afc
push 0x403e94
call fcn.0040be00
pop ecx
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x410c28
push eax
push 0x403e60
call fcn.0040be00
pop ecx
jmp 0x410c27
push ebx
push edi
lea eax, [ebp - 0x108]
push eax
push 0x4015d8
add esi, 0x384
push esi
push 0x403e30
lea eax, [ebp - 0x360]
push 0x258
push eax
call fcn.0041ae94
add esp, 0x20
test eax, eax
jge 0x410b38
push 0x403e08
jmp 0x410c22
mov eax, dword [0x425064]
inc dword [0x425064]
push eax
lea eax, [ebp - 0x464]
push 0x403dfc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x360]
push eax
xor esi, esi
inc esi
push esi
push ebx
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x410b9a
push eax
push 0x403dc8
call fcn.0040be00
pop ecx
pop ecx
jmp 0x410ba0
mov dword [ebp - 0x46c], esi
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x410c41
push eax
push 0x403e60
call fcn.0040be00
pop ecx
pop ecx
jmp 0x410c41
push eax
push 0x403d88
jmp 0x410bba
push 0x403eb8
lea eax, [esi + 0x74]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040c2ca
test eax, eax
jne 0x410beb
push 0x403e94
jmp 0x410c22
push ebx
push edi
lea eax, [ebp - 0x108]
push eax
push 0x4015d8
lea eax, [esi + 0x384]
push eax
push 0x403d5c
lea eax, [ebp - 0x360]
push 0x258
push eax
call fcn.0041ae94
add esp, 0x20
test eax, eax
jge 0x410c2c
push 0x403d24
call fcn.0040be00
pop ecx
xor eax, eax
jmp 0x410c47
push ebx
lea eax, [ebp - 0x360]
push eax
mov ecx, esi
call fcn.0041098f
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041a84f
leave
ret 4