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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4acd35
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004aada1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004aad79
jmp 0x4acd41
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ae3ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ae431
call fcn.004b402e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4ae431
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4ae428
xor eax, eax
jmp 0x4ae439
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ae43f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b455e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b458c
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4b45aa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b44c4
jmp 0x4b45aa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b45aa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b44c4
test edi, edi
mov eax, edi
jne 0x4b4594
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..data
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1dfe42b7
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..text
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x42240573
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
push esp
or edi, edi
out dx, eax
mov esi, 0xda57cab7
xor dword [eax + eax*2], esi
bound esi, qword [esi]
mov esi, 0x95020fba
inc eax
sbb byte [edi], bh
or byte [ebx + 0x5a43a3e7], dh
mov dword [0xf3215a43], eax
mov dword [0xf3215a43], eax
sbb ch, dh
cmpsb byte [esi], byte es:[edi]
test bl, 0xd7
aaa
xor al, 0x88
mov edi, 0xc522008d
and cl, byte [eax]
xor eax, 0xc520fef
inc ecx
sbb byte [edi - 0x36], cl
pop edi
movsd dword es:[edi], dword [esi]
div byte [eax - 0x45]
pop es
mov ah, 0xca
pop es
xlatb
xchg esi, eax
mov edi, dword [edi + 0x4035a60f]
sbb byte [esi], bl
xchg ecx, eax
inc eax
sbb byte [ecx], cl
jb 0x414aa6
xchg dword [edi + 0x703657ca], esi
xor eax, 0xca352e40
mov edi, 0xbfcaf6e7
out 0xf6, eax
retf 0xe7bf
Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4020e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450130
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x476040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402167
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402167
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402147
cmp esi, edx
jae 0x402167
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x402135
cmp esi, edx
jae 0x402167
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4030d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4503d5
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x476040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00401c90
mov edi, eax
test edi, edi
je 0x4032d8
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 0x66
call fcn.00402180
mov eax, dword [ebp - 0x10]
mov edx, 0x461f14
mov ecx, eax
nop dword [eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x403166
test si, si
je 0x403162
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x403166
add ecx, 4
add edx, 4
test si, si
jne 0x403140
xor ebx, ebx
jmp 0x40316b
sbb ebx, ebx
or ebx, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x403196
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
test ebx, ebx
jne 0x4032c6
call fcn.00401c90
mov edi, eax
test edi, edi
je 0x4032d8
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
push 7
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x403285
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403285
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x403285
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 5
lea edx, [eax + edi]
nop dword [eax]
cmp edi, edx
jae 0x403285
movzx eax, word [edi]
lea edi, [edi + eax*2]
add edi, 2
sub ecx, 1
jne 0x403220
cmp edi, edx
jae 0x403285
cmp word [edi], cx
je 0x403285
test edi, edi
je 0x403285
movzx ebx, word [edi]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x40325f
push ebx
lea ecx, [ebp - 0x10]
call fcn.00402600
mov esi, dword [ebp - 0x10]
movzx ecx, word [edi]
lea eax, [edi + 2]
push ecx
push eax
push ebx
push esi
call fcn.00439a38
push eax
call fcn.00402040
add esp, 0x14
cmp ebx, dword [esi - 8]
jg 0x4032e2
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
push ecx
mov eax, esp
push ecx
mov dword [eax], 0x461f1c
mov eax, esp
mov dword [eax], esi
call fcn.00402e40
add esp, 8
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4032c6
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004019f0
push 0x80070057
call fcn.004019f0
int3
Function at 0x403640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4504b2
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x476040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x238], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], esi
push 0
push eax
mov dword [ebp - 0x234], 0
call fcn.00436700
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4036d7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00404650
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x230]
push str.WindowsPowerShell_v1.0PowerShell.exe
call fcn.004043a0
cmp dword [ebp - 0x21c], 7
lea edx, [ebp - 0x230]
xorps xmm0, xmm0
cmova edx, dword [ebp - 0x230]
mov eax, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403740
sub eax, edi
mov ecx, esi
sar eax, 1
push eax
push edx
call fcn.00404650
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x4037a2
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403798
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4037dc
push ecx
push edx
call fcn.00434ce3
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043488a
mov esp, ebp
pop ebp
ret
call fcn.0043e33e
int3
Function at 0x403bb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45056e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x476040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov eax, edi
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x14], 1
jbe 0x403c27
mov eax, dword [edi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x403c6e
push 0
push eax
mov ecx, esi
call fcn.00404160
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x403c4d
mov eax, dword [esi]
cmp dword [edi + 0x14], 7
jbe 0x403c55
mov edi, dword [edi]
push dword [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 0x10]
mov ecx, esi
push 0
dec eax
push eax
call fcn.00404160
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403c90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45059d
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
mov eax, dword [0x476040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x3c], xmm0
cmp dword [eax + 0x14], 7
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x58], 0x440
jbe 0x403cf4
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x50], str.runas
cmp dword [eax + 0x10], 0
je 0x403d19
cmp dword [eax + 0x14], 7
jbe 0x403d16
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], 0
je 0x403d2d
cmp dword [eax + 0x14], 7
jbe 0x403d2a
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x20]
call fcn.00404420
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403d8b
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x403d7c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403d79
cmp eax, 0xffffffff
je 0x403d8b
mov esi, 6
jmp 0x403d98
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x403d95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x403d98
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004040e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x403dc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4505dd
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x476040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov edi, ecx
push 0x40
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x70], 0x44
push 0
push eax
call fcn.00436700
mov ax, word [ebp + 0xc]
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x44], 1
mov word [ebp - 0x40], ax
movups xmmword [ebp - 0x2c], xmm0
call fcn.00401c90
mov dword [ebp - 0x10], eax
test eax, eax
je 0x403f88
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x45827c]
mov ecx, dword [ebp - 0x10]
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 7
jbe 0x403e53
mov eax, dword [eax]
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x403e5d
mov ecx, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x14]
push str.__s___s
push eax
call fcn.004027e0
mov ecx, dword [ebp + 8]
add esp, 0x10
cmp dword [ecx + 0x10], 0
jne 0x403e7d
xor ecx, ecx
jmp 0x403e85
cmp dword [ecx + 0x14], 7
jbe 0x403e85
mov ecx, dword [ecx]
mov edx, dword [ebp + 0x10]
mov esi, dword [edx + 0x10]
test esi, esi
jne 0x403e93
xor edx, edx
jmp 0x403e9b
cmp dword [edx + 0x14], 7
jbe 0x403e9b
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
neg esi
sbb esi, esi
and esi, 0x400
mov dword [ebp - 0x18], esi
xor esi, esi
cmp dword [eax - 0xc], esi
cmove eax, esi
cmp dword [edi + 0x10], esi
jne 0x403ebc
xor edi, edi
jmp 0x403ec4
cmp dword [edi + 0x14], 7
jbe 0x403ec4
mov edi, dword [edi]
lea esi, [ebp - 0x2c]
push esi
lea esi, [ebp - 0x70]
push esi
mov esi, dword [ebp - 0x18]
push ecx
push edx
push esi
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, eax
jmp 0x403f44
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403f0c
cmp eax, 0xffffffff
je 0x403f1d
mov ecx, 6
jmp 0x403f41
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x403f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x403f41
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x403f3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x403f41
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x403f75
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x45827c]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x10]
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004019f0
int3
Function at 0x404e70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x4507ed
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x476040]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x20c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
mov edi, dword [ebx + 4]
push ecx
or edi, 0x2001f
mov dword [ebp - 0x20], 0
push edi
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x18]
test esi, esi
jne 0x404faf
test eax, eax
je 0x404f11
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x20]
and edi, 0x300
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
test esi, esi
jne 0x404faf
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0x100
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x404f87
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404e70
mov esi, eax
test esi, esi
jne 0x404faf
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404f51
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404f9c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
push dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x14], 0
call fcn.00404d20
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404fcb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
mov eax, esi
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.0043488a
lea esp, [ebp + 0x204]
pop ebp
ret 4
Function at 0x4056d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x450955
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x476040]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x405777
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x405777
call fcn.00404910
mov edi, eax
jmp 0x40587d
push dword [ebp - 0x14]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x405792
call fcn.00404910
jmp 0x405870
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x4057ad
call fcn.00404910
jmp 0x405870
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x1c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4057cb
mov edi, 0x8007000e
jmp 0x405872
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x4058bf
jb 0x4057ef
cmp eax, 0xffffffff
ja 0x4058bf
cmp eax, 0x400
jbe 0x405808
push eax
lea ecx, [ebp]
call fcn.00409130
mov dword [ebp - 4], 1
jmp 0x40582d
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x40582d
mov eax, dword [ebp]
test eax, eax
jne 0x40583b
mov edi, 0x8007000e
jmp 0x405872
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x405856
call fcn.00404910
jmp 0x405870
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.004064a0
mov edi, eax
test esi, esi
je 0x40587d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x405891
lea ecx, [ebp]
call fcn.00408ff0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0043488a
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.004019f0
int3