joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b634
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x415488]
call fcn.00404c2c
xor eax, eax
push ebp
push 0x47b778
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b686c], 0
jne 0x47b687
mov ecx, dword [0x4b719c]
mov dl, 1
mov eax, dword [0x407780]
call fcn.0040c38c
call fcn.00403c2c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e8c
mov eax, ebx
call fcn.00404adc
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x47b788
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405d40
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404aec
test eax, eax
jle 0x47b71f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47b718
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004044fc
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004044e4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408650
test eax, eax
jne 0x47b718
mov ebx, 0x15
jmp 0x47b724
mov ebx, 0x10
jmp 0x47b724
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4b686c]
call fcn.0047b58c
mov eax, dword [ebp - 8]
call fcn.0047b58c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405d58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b77f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404298
lea eax, [ebp - 0x10]
mov edx, dword [0x415488]
call fcn.00404cfc
ret
Function at 0x490e4c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x490e54
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x491046
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x49105c
mov eax, esi
call fcn.0048ecd8
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004042c8
lea ecx, [ebp - 0x10]
mov edx, 0x491070
mov eax, esi
call fcn.0048ecd8
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004042c8
lea ecx, [ebp - 0x14]
mov edx, 0x491088
mov eax, esi
call fcn.0048ecd8
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004042c8
lea ecx, [ebp - 0x18]
mov edx, 0x4910a4
mov eax, esi
call fcn.0048ecd8
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004042c8
lea ecx, [ebp - 0x1c]
mov edx, 0x4910c0
mov eax, esi
call fcn.0048ecd8
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004042c8
lea ecx, [ebp - 0x24]
mov edx, 0x4910d8
mov eax, esi
call fcn.0048ecd8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004086c0
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408c08
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4910f0
mov eax, esi
call fcn.0048ecd8
mov eax, dword [ebp - 0x28]
call fcn.004884b0
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x491100
mov eax, esi
call fcn.0048ecd8
mov eax, dword [ebp - 0x2c]
call fcn.004884b0
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x491118
mov eax, esi
call fcn.0048ecd8
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408c08
inc eax
je 0x490fe9
lea ecx, [ebp - 0x34]
mov edx, 0x491118
mov eax, esi
call fcn.0048ecd8
mov eax, dword [ebp - 0x34]
call fcn.00408bcc
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a140
fstp qword [ebp - 0x3c]
wait
call fcn.0040a4a4
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x491004
lea ecx, [ebp - 0x40]
mov edx, 0x491118
mov eax, esi
call fcn.0048ecd8
mov eax, dword [ebp - 0x40]
call fcn.004884b0
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x491128
mov eax, esi
call fcn.0048ecd8
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004042c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49104d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404298
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404298
ret
Function at 0x49840c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x498466
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004983fc
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0048711c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00486d1c
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49846d
lea eax, [ebp - 4]
call fcn.00404274
ret

Function at 0x49ef6c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49eff7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x105
push 0
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040445c
lea eax, [ebp - 0x10]
mov edx, 0x49f00c
call fcn.0040453c
mov eax, dword [ebp - 0x10]
call fcn.00404734
push eax
call sub.kernel32.dll_GetVolumeInformationA
push esi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x49f018
call fcn.00409834
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49effe
lea eax, [ebp - 0x10]
call fcn.00404274
ret
Function at 0x4a1024
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404724
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4a1192
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.00482cd4
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.00482cf4
jmp 0x4a115e
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004044e4
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409028
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408470
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408470
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404680
je 0x4a113e
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004044e4
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408470
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408470
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404680
jne 0x4a1155
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.00482d14
test eax, eax
jne 0x4a109f
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1199
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404298
lea eax, [ebp - 4]
call fcn.00404274
ret
Function at 0x4a4cec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4a4e4e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00402b9c
lea eax, [ebp - 0xc]
call fcn.004a0190
cmp bl, 1
jne 0x4a4d31
lea eax, [ebp - 0x10]
mov edx, 0x4a4e64
call fcn.0040430c
jmp 0x4a4d3e
lea eax, [ebp - 0x10]
mov edx, 0x4a4e74
call fcn.0040430c
lea eax, [ebp - 0x10]
call fcn.004a0190
cmp byte [ebp - 1], 1
jne 0x4a4d5b
lea eax, [ebp - 0x14]
mov edx, 0x4a4e64
call fcn.0040430c
jmp 0x4a4d68
lea eax, [ebp - 0x14]
mov edx, 0x4a4e74
call fcn.0040430c
lea eax, [ebp - 0x14]
call fcn.004a0190
lea edx, [ebp - 8]
xor eax, eax
call fcn.00402b9c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004a3e70
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.0040430c
lea eax, [ebp - 8]
call fcn.004a0190
push 0x4a4e84
push 0xa
mov ecx, dword [0x4b8668]
mov dl, 1
mov eax, dword [0x41697c]
call fcn.0041b7a8
mov ebx, eax
lea eax, [ebp - 0xc]
mov ecx, 0x4a4e94
mov edx, dword [0x4b91f0]
call fcn.00404580
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0041b474
mov eax, ebx
call fcn.004034a0
mov eax, dword [0x4b769c]
mov eax, dword [eax]
call fcn.004666fc
push dword [ebp - 0xc]
push 0x4a4eac
push dword [ebp - 8]
push 0x4a4eac
push dword [ebp - 0x10]
push 0x4a4eac
push dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 7
call fcn.004045f4
mov eax, dword [0x4b769c]
mov eax, dword [eax]
call fcn.004666fc
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404734
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [0x4b769c]
mov eax, dword [eax]
call fcn.00466994
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4e55
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00404298
ret
Function at 0x4a9044
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a92a4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4a90a7
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004a8b0c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040ccd4
cmp al, 1
jne 0x4a90a7
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004a8e24
test al, al
je 0x4a9233
cmp dword [ebp - 8], 0
jge 0x4a90c5
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004a8b0c
mov eax, dword [ebp - 0x210]
call fcn.00404534
cmp ebx, eax
jge 0x4a910f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004a8b0c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4b7918]
and eax, 0xff
bt dword [edx], eax
jae 0x4a910f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4a9123
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a9020
cmp ebx, dword [ebp - 8]
je 0x4a9225
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4a914f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040369c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b7134]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4a9212
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040369c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b7134]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044d4f8
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040369c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b7134]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044d4f8
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9219
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4a9286
cmp dword [ebp - 8], 0
jge 0x4a923e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004a8b0c
mov eax, dword [ebp - 0x218]
call fcn.00404534
cmp eax, dword [ebp - 8]
jg 0x4a9278
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004a8b0c
mov eax, dword [ebp - 0x21c]
call fcn.00404534
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004a9020
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a92ab
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404298
ret
Function at 0x401f42
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x41f1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.004015c4
mov ebx, eax
cmp ebx, esi
je 0x401fb3
lea ecx, [ebp - 0x214]
call fcn.00401541
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c3aa
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x401fd1
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.00401f42
cmp eax, esi
jne 0x402018
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x401fbb
lea ecx, [ebp - 0x214]
call fcn.00401541
push dword [ebp - 0x218]
mov ecx, edi
call fcn.004014d1
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00401541
mov eax, esi
jmp 0x401fa2

Function at 0x402a2b
Capabilities:
Enumerate pe sections

Disassembly:
push 4
mov eax, 0x4174b6
call fcn.0040ca61
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebx], eax
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
sub eax, 0x10
push eax
call fcn.00401d2d
add eax, 0x10
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
and dword [ebp - 4], 0
sub eax, 0x10
push eax
call fcn.00401d2d
add eax, 0x10
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
pop ecx
pop ecx
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x402a9f
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov al, byte [esi + 0x20]
mov byte [ebx + 0x20], al
add esi, 0x21
lea edi, [ebx + 0x21]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
call fcn.0040cb39
ret 4
Function at 0x403a33
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x4175fb
call fcn.0040cb00
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x403a8c
call fcn.00401301
mov esi, eax
jmp 0x403b62
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x403aa5
call fcn.00401301
jmp 0x403b54
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x403a9b
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x403adf
mov esi, 0x8007000e
jmp 0x403b56
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004026e8
mov dword [ebp - 4], 1
jmp 0x403b0d
cmp dword [ebp - 0x418], esi
je 0x403ad8
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x403a9b
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.004037f1
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x403b7b
lea ecx, [ebp - 0x418]
call fcn.00401be3
mov eax, esi
call fcn.0040cb5c
ret 0x10
Function at 0x4040a8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x438
mov eax, 0x4176c4
call fcn.0040caca
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x4197e8
lea eax, [ebp - 0x420]
xor ebx, ebx
push 0x104
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x43c], ebx
call fcn.0040ccc4
add esp, 0x10
mov edi, 0x41f130
push edi
mov ecx, esi
call fcn.004021e8
xor esi, esi
inc esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x444], VariantCopy
mov dword [ebp - 0x440], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x428], ebx
lea eax, [ebp - 0x434]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x428]
push dword [ebp + eax*4 - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4041c4
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x430]
push eax
push ebx
push 0x4197d4
push dword [ebp - 0x434]
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x424], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x434]
mov dword [ebp - 0x438], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x438], ebx
jne 0x4041c4
cmp dword [ebp - 0x430], esi
jne 0x4041c4
shr dword [ebp - 0x424], 1
je 0x4041bc
mov eax, dword [ebp - 0x424]
cmp word [ebp + eax*2 - 0x21a], bx
jne 0x4041bc
dec dword [ebp - 0x424]
cmp dword [ebp - 0x424], ebx
jne 0x4041d9
inc dword [ebp - 0x428]
cmp dword [ebp - 0x428], 2
jb 0x40411a
jmp 0x404215
push edi
push dword [ebp - 0x424]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.00401ccd
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 4], esi
call fcn.004039e3
mov ecx, dword [ebp - 0x428]
add ecx, 0xfffffff0
call fcn.00401ac9
mov eax, dword [ebp - 0x42c]
call fcn.0040cb4d
ret
Function at 0x405d05
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x4179c8
call fcn.0040ca61
mov ebx, ecx
push dword [ebp + 8]
lea ecx, [ebx + 0x30]
call fcn.0040239f
mov ecx, ebx
call fcn.0040488d
movzx eax, word [ebp + 0xc]
movzx ecx, word [ebp + 0x10]
shl eax, 0x10
or eax, ecx
push eax
lea eax, [ebp + 8]
push eax
call fcn.004040a8
pop ecx
pop ecx
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax - 0xc], 3
mov dword [ebp - 4], esi
jge 0x405d66
mov esi, 0x80004005
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401ac9
mov eax, esi
call fcn.0040cb39
ret 0xc
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push esi
push eax
mov dword [ebp - 0x70], 0x44
call fcn.0040c330
xor eax, eax
inc eax
mov ecx, eax
add esp, 0xc
mov word [ebp - 0x40], cx
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 0x44], eax
call fcn.00403647
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
mov edi, eax
call fcn.0040217c
cmp edi, esi
je 0x405d4c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x24], ax
mov ax, word [ebp + 0x10]
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 0x10]
call fcn.004042f1
jmp 0x405d51

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41f1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
xor esi, esi
push edi
mov dword [ebp - 0x214], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x214], esi
je 0x406aef
cmp edi, esi
je 0x406aef
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x214], eax
je 0x406aef
push dword [ebp - 0x214]
push esi
push 0x100410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
xor eax, eax
cmp edi, esi
je 0x406af1
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.0040c330
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push esi
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 0x210], si
je 0x406aef
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406aef
lea eax, [ebp - 0x210]
push eax
call fcn.004069b9
pop ecx
jmp 0x406af1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c3aa
leave
ret 4
Function at 0x407684
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x4076a3
xor eax, eax
jmp 0x4076c9
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x407409
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x4076c6
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x407fb6
Capabilities:
Check mutex on windows
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x41f1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 6
jae 0x408036
push esi
push edi
push 0x12
pop ecx
mov esi, 0x419cb8
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x50]
push eax
push 1
push 0
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
pop edi
mov dword [ebx + 0x40], eax
pop esi
test eax, eax
jne 0x408008
mov eax, 0x80004005
jmp 0x408040
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408036
push 0x3e8
push dword [ebx + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x408036
push dword [ebx + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx + 0x40], 0
jmp 0x408001
push dword [ebp + 8]
mov ecx, ebx
call fcn.00407dfa
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c3aa
leave
ret 4