joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cd20
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004e2796
call fcn.0041b37b
cmp dword [eax + 0x14], 0
jne 0x45cd3d
mov ecx, esi
pop esi
jmp fcn.0045c825
pop esi
ret

Function at 0x460396
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0045ea8c
call fcn.0041b37b
cmp dword [eax + 0x14], 0
jne 0x4603b3
mov ecx, esi
pop esi
jmp fcn.0045fd69
pop esi
ret

Function at 0x46fffb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x470015
call fcn.0041b94a
mov esi, dword [eax + 0xc]
push dword [0x57da74]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x470033
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x47002b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x470060
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x47002d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046ff29
mov esi, eax
jmp 0x470052

Function at 0x4efc5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4efc73
mov edi, dword [esi + 0xc]
jmp 0x4efcb3
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4efc8c
call fcn.0040ea07
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4efca1
call fcn.0040ea07
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4efcb3
call fcn.0040ea07
call fcn.0041b94a
cmp dword [eax + 0x3c], 0
je 0x4efcc8
push edi
mov ecx, ebx
call fcn.004eeb19
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004efb75
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4efce6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4efcf2
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5090fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5789e0]
jne 0x509107
repz ret
jmp fcn.0050fc34
Function at 0x51c41a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5789e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051280f
and dword [ebp - 0x14], 0
cmp dword [0x5803cc], 0
mov dword [ebp - 0x18], eax
jne 0x51c4cd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51c575
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x51c575
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x555e70
push ebx
mov dword [0x5803cc], eax
call edi
push eax
call esi
push 0x555e5c
push ebx
mov dword [0x5803d0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5803d4], eax
call edi
push eax
call esi
mov dword [0x5803dc], eax
test eax, eax
je 0x51c4cd
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5803d8], eax
mov eax, dword [0x5803d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51c526
cmp dword [0x5803dc], ecx
je 0x51c526
push eax
call esi
push dword [0x5803dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51c526
test ebx, ebx
je 0x51c526
call edi
test eax, eax
je 0x51c51d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51c51d
test byte [ebp - 8], 1
jne 0x51c526
or dword [ebp + 0x10], 0x200000
jmp 0x51c559
mov eax, dword [0x5803d0]
cmp eax, dword [ebp - 0x18]
je 0x51c559
push eax
call esi
test eax, eax
je 0x51c559
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51c559
mov eax, dword [0x5803d4]
cmp eax, dword [ebp - 0x18]
je 0x51c559
push eax
call esi
test eax, eax
je 0x51c559
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5803cc]
call esi
test eax, eax
je 0x51c575
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51c577
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005090fd
leave
ret
Function at 0x100402f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push esi
push 5
push eax
push dword [0x100d050]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10040cb
push edi
push eax
push dword [0x100d050]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10040ca
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x10040c3
add eax, 0x1a
movzx ecx, word [eax]
push 2
pop edx
mov esi, 0xffff
test cx, cx
je 0x1004096
push ebx
mov ebx, esi
cmp cx, bx
pop ebx
jne 0x100408e
add eax, 4
jmp 0x1004098
add eax, edx
cmp word [eax], 0
jne 0x100408e
add eax, edx
movzx ecx, word [eax]
test cx, cx
je 0x10040b2
cmp cx, si
jne 0x10040aa
add eax, 4
jmp 0x10040b4
add eax, edx
cmp word [eax], 0
jne 0x10040aa
add eax, edx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01003326
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x10050cb
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call fcn.01004682
test eax, eax
je 0x10050e3
xor eax, eax
jmp 0x1005202
push ebx
push edi
push 0x210
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x1005129
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x100511f
cmp byte [eax + 0x19], 2
jb 0x100511f
push edi
push 0x100171c
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010093ba
mov eax, 0x8007000e
jmp 0x1005200
push esi
push dword [ebp + 0xc]
lea eax, [ebx + 4]
push 0x105
push eax
call fcn.01003326
mov esi, eax
cmp esi, edi
je 0x1005173
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x10051f6
cmp byte [eax + 0x19], 2
jb 0x10051f6
push esi
push 0x100171c
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010093ba
jmp 0x10051f6
push edi
push edi
push ebx
push 0x1004861
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x10051b8
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x10051ad
cmp byte [eax + 0x19], 4
jb 0x10051ad
push 0x100171c
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010023b5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x10051fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x10051e6
cmp byte [eax + 0x19], 2
jb 0x10051e6
push edi
push esi
push 0x100171c
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010024bb
cmp esi, edi
jle 0x10051f6
and esi, 0xffff
or esi, 0x80070000
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1005dea
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x100d014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x474], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi + 4]
push 0x33
lea ecx, [esi + 0x78]
push ecx
push 0x3ea
push eax
mov dword [ebp - 0x470], eax
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [esi + 0x74], eax
movzx ecx, byte [edi + 0x3d]
cmp eax, ecx
jae 0x1005ecb
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
lea eax, [ebp - 0xec]
push eax
push 0x67
push dword [0x100d050]
call esi
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x26c]
push eax
push 0x68
push dword [0x100d050]
call esi
movzx eax, byte [edi + 0x3d]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x36c]
push ebx
push eax
call fcn.01003395
add esp, 0x10
xor eax, eax
push ebx
mov word [ebp - 0x26e], ax
lea eax, [ebp - 0x26c]
push eax
push 0x6c
push dword [0x100d050]
call esi
push 0
push 0xfffe
push 0x20
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0xec]
jmp 0x1005fa3
push 0x33
lea eax, [ebp - 0x6c]
push eax
push 0x3ec
push dword [ebp - 0x470]
call ebx
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
call edi
cmp dword [esi + 0x74], eax
jne 0x1005f59
lea eax, [ebp - 0x6c]
lea ecx, [esi + 0x78]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1005f18
test dx, dx
je 0x1005f14
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1005f18
add ecx, 4
add eax, 4
test dx, dx
jne 0x1005ef2
xor eax, eax
jmp 0x1005f1d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1005f59
push 0x33
pop ecx
lea eax, [ebp - 0x6c]
mov byte [eax], 0
inc eax
dec ecx
jne 0x1005f27
push 0x65
lea eax, [esi + 0xe4]
push eax
push 0x3ee
push dword [ebp - 0x470]
call ebx
push eax
call edi
mov dword [esi + 0xe0], eax
mov dword [ebp - 0x474], 1
jmp 0x1005fb6
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
lea eax, [ebp - 0x16c]
push eax
push 0x6c
push dword [0x100d050]
call esi
push 0x80
lea eax, [ebp - 0x46c]
push eax
push 0x9c
push dword [0x100d050]
call esi
push 0
push 0xfffe
push 0x20
lea eax, [ebp - 0x46c]
push 0
push eax
lea eax, [ebp - 0x16c]
push eax
push dword [0x100d050]
push dword [ebp - 0x470]
call dword [sym.imp.COMCTL32.dll_Ordinal_344]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x474]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100893d
leave
ret 8
Function at 0x1005fd2
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x100d014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x474], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi + 4]
push 0x33
lea ecx, [esi + 0x1b4]
push ecx
push 0x41a
push eax
mov dword [ebp - 0x470], eax
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [esi + 0x1b0], eax
movzx ecx, byte [edi + 0x3d]
cmp eax, ecx
jae 0x10060b9
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
lea eax, [ebp - 0xec]
push eax
push 0x67
push dword [0x100d050]
call esi
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x26c]
push eax
push 0x68
push dword [0x100d050]
call esi
movzx eax, byte [edi + 0x3d]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x36c]
push ebx
push eax
call fcn.01003395
add esp, 0x10
xor eax, eax
push ebx
mov word [ebp - 0x26e], ax
lea eax, [ebp - 0x26c]
push eax
push 0x6c
push dword [0x100d050]
call esi
push 0
push 0xfffe
push 0x20
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0xec]
jmp 0x1006197
push 0x33
lea eax, [ebp - 0x6c]
push eax
push 0x41b
push dword [ebp - 0x470]
call ebx
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
call edi
cmp dword [esi + 0x1b0], eax
jne 0x100614d
lea eax, [ebp - 0x6c]
lea ecx, [esi + 0x1b4]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x100610c
test dx, dx
je 0x1006108
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x100610c
add ecx, 4
add eax, 4
test dx, dx
jne 0x10060e6
xor eax, eax
jmp 0x1006111
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100614d
push 0x33
pop ecx
lea eax, [ebp - 0x6c]
mov byte [eax], 0
inc eax
dec ecx
jne 0x100611b
push 0x65
lea eax, [esi + 0x220]
push eax
push 0x421
push dword [ebp - 0x470]
call ebx
push eax
call edi
mov dword [esi + 0x21c], eax
mov dword [ebp - 0x474], 1
jmp 0x10061aa
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
lea eax, [ebp - 0x16c]
push eax
push 0x6c
push dword [0x100d050]
call esi
push 0x80
lea eax, [ebp - 0x46c]
push eax
push 0x9c
push dword [0x100d050]
call esi
push 0
push 0xfffe
push 0x20
lea eax, [ebp - 0x46c]
push 0
push eax
lea eax, [ebp - 0x16c]
push eax
push dword [0x100d050]
push dword [ebp - 0x470]
call dword [sym.imp.COMCTL32.dll_Ordinal_344]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x474]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100893d
leave
ret 8
Function at 0x10077e3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
call fcn.010075c7
lea eax, [ebp - 8]
push eax
push 0x1001c28
lea esi, [edi + 0x24]
and dword [esi], 0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1007871
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0x1001c08
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100783c
cmp dword [ebp - 4], 4
je 0x1007866
mov ecx, dword [0x100d00c]
cmp ecx, 0x100d00c
je 0x1007866
cmp byte [ecx + 0x19], 4
jb 0x1007866
push eax
push dword [ebp - 4]
push 0x1001b58
push 0xa
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010024bb
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100789d
mov ecx, dword [0x100d00c]
cmp ecx, 0x100d00c
je 0x100789d
cmp byte [ecx + 0x19], 2
jb 0x100789d
push eax
push 0x1001b68
push 0x1001b58
push 0xb
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002448
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1007c4b
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, eax
push edi
mov edi, ecx
mov word [ebx], ax
test byte [edi + 0x24], 1
mov dword [ebp - 4], edi
je 0x1007c73
mov esi, 0x80070001
jmp 0x1007d43
call fcn.010077c3
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.01007928
test eax, eax
je 0x1007d37
mov eax, dword [ebp + 0xc]
add eax, 0x218
cmp dword [eax], 0
je 0x1007d37
mov esi, dword [eax]
push 0x1c
pop ecx
push 0
push 0x70
lea eax, [ebp - 0x74]
lea edi, [ebp - 0x74]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
test eax, eax
jne 0x1007ced
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1007ccf
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x1007d25
cmp byte [eax + 0x19], 2
jb 0x1007d25
push esi
push 0x1001b58
push 0x11
jmp 0x1007d1a
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x10]
push ebx
call fcn.01003326
mov esi, eax
test esi, esi
je 0x1007d25
mov eax, dword [0x100d00c]
cmp eax, 0x100d00c
je 0x1007d25
cmp byte [eax + 0x19], 2
jb 0x1007d25
push esi
push 0x1001b58
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010093ba
push 0x70
pop ecx
lea eax, [ebp - 0x74]
mov byte [eax], 0
inc eax
dec ecx
jne 0x1007d2b
mov edi, dword [ebp - 4]
jmp 0x1007d3c
mov esi, 0x80070490
mov ecx, edi
call fcn.010077d3
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10083b4
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x750
mov eax, dword [0x100d014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0x68
mov dword [ebp - 0x704], eax
lea eax, [ebp - 0x6fc]
push ebx
push eax
mov dword [ebp - 0x700], ebx
call sub.msvcrt.dll_memset
xor edi, edi
inc edi
add esp, 0xc
cmp dword [ebp + 0x10], edi
jne 0x100840a
call fcn.01007f25
test eax, eax
jne 0x100840a
xor eax, eax
jmp 0x10085f7
mov eax, dword [esi + 4]
mov dword [esi + 0x80], edi
mov edi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp dword [eax + 0x10], ebx
je 0x100843f
lea eax, [ebp - 0x700]
push eax
push 0x1007fa4
push dword [ebp - 0x704]
push 0x73
push dword [0x100d050]
call edi
cmp eax, 1
jne 0x1008403
lea eax, [ebp - 0x700]
push eax
push dword [esi]
call fcn.0100ac1d
mov dword [ebp - 0x708], eax
test eax, eax
jl 0x100854e
push 0
push dword [esi + 8]
call fcn.01009000
push esi
push 0x10081aa
push dword [ebp - 0x704]
push 0x74
push dword [0x100d050]
call edi
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
je 0x10085f5
xor eax, eax
lea edi, [ebp - 0x710]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x714], 0
lea eax, [ebp - 0x714]
push eax
push dword [esi]
call fcn.0100a6f6
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x750]
push 0
push eax
call sub.msvcrt.dll_memset
push dword [esi + 8]
lea eax, [ebp - 0x694]
push 0x1001ce0
push 0x208
push eax
mov dword [ebp - 0x750], edi
mov dword [ebp - 0x74c], 0x4040
mov dword [ebp - 0x744], 0x1001cd0
mov dword [ebp - 0x740], 0x1001748
call fcn.01003395
lea eax, [ebp - 0x694]
mov dword [ebp - 0x73c], eax
add esp, 0x1c
lea eax, [ebp - 0x750]
push eax
mov dword [ebp - 0x734], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x10085f5
push 0xffffffffffffffff
push dword [ebp - 0x718]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x718]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10085f5
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x67
push dword [0x100d050]
call esi
mov edi, 0x80
push edi
lea eax, [ebp - 0x284]
push eax
push 0x9f
push dword [0x100d050]
call esi
cmp dword [ebp - 0x708], 0x80070539
jne 0x100859c
push edi
lea eax, [ebp - 0x184]
push eax
push 0x90
jmp 0x10085b2
cmp dword [ebp - 0x708], 0xc0040205
jne 0x10085bc
push edi
lea eax, [ebp - 0x184]
push eax
push 0x79
push dword [0x100d050]
call esi
jmp 0x10085c5
xor eax, eax
mov word [ebp - 0x184], ax
push 0
push 0xfffe
push 0x20
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [0x100d050]
push dword [ebp - 0x704]
call dword [sym.imp.COMCTL32.dll_Ordinal_344]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100893d
leave
ret 0xc
Function at 0x1008922
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x100bd80
call fcn.01008b94
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x100d40c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10086dd
cmp eax, esi
jne 0x10086d0
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10086e0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10086b7
xor esi, esi
inc esi
mov eax, dword [0x100d408]
cmp eax, esi
jne 0x10086f3
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1008722
mov eax, dword [0x100d408]
test eax, eax
jne 0x100871c
mov dword [0x100d408], esi
push 0x100126c
push 0x1001260
call fcn.01008619
pop ecx
pop ecx
test eax, eax
je 0x1008722
jmp 0x1008846
mov dword [0x100d0cc], esi
mov eax, dword [0x100d408]
cmp eax, esi
jne 0x1008746
push 0x100125c
push 0x1001254
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100d408], 2
cmp dword [ebp - 0x20], ebx
jne 0x1008753
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100d410], ebx
je 0x1008774
push 0x100d410
call fcn.01008b09
pop ecx
test eax, eax
je 0x1008774
push ebx
push 2
push ebx
call dword [0x100d410]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1008846
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10087de
cmp cx, bx
je 0x1008799
cmp dword [ebp - 0x1c], ebx
jne 0x10087de
movzx ecx, word [eax]
cmp cx, bx
je 0x10087ae
cmp cx, 0x20
ja 0x10087ae
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1008799
test byte [ebp - 0x40], 1
je 0x10087ba
movzx ecx, word [ebp - 0x3c]
jmp 0x10087bd
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x100d0c8], eax
cmp dword [0x100d0bc], ebx
jne 0x1008823
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10087ef
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1008783
cmp dword [0x100d0cc], ebx
jne 0x1008831
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100d0c8]
jmp 0x1008852
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01008bd9
ret
call fcn.01008ce1
jmp 0x100867a

Function at 0x1009000
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x1001b68
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1009055
cmp dword [ebp + 0xc], esi
push 4
setne al
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 8
Function at 0x100905f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001b68
xor edi, edi
push 0x80000001
mov dword [ebp - 4], esi
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10090c2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 8], esi
sete al
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x10090cf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor edi, edi
push edi
push 0x10020b8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009139
push esi
push 4
pop esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x1002078
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100912f
cmp dword [ebp - 4], esi
jne 0x100912f
cmp dword [ebp - 8], edi
je 0x100912f
inc edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x1009143
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10020b8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10091a6
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1002130
push dword [ebp - 8]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100919d
cmp dword [ebp - 4], esi
je 0x100919d
inc esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret