joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010f10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, eax
xor eax, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [esi + 8], eax
jne 0x10010f3e
test edi, edi
jne 0x10010f3e
mov eax, 0x80070057
pop edi
mov esp, ebp
pop ebp
ret
push 0x10c
call fcn.1002ea4a
add esp, 4
mov dword [esi + 0x5f0], eax
test eax, eax
jne 0x10010f5f
mov eax, 0x8007000e
pop edi
mov esp, ebp
pop ebp
ret
push 0x10c
push 0
push eax
call fcn.1002e520
add esp, 0xc
test edi, edi
je 0x10010f76
mov dword [esi + 8], edi
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push 0
push 0x8f
push 0x1b8
push edx
push eax
push 0x90000000
push 0x100d1844
push str.BUTTON
call fcn.1000bcc0
mov dword [esi], eax
test eax, eax
jne 0x10010fed
call dword [0x100a8200]
test eax, 0x20000000
je 0x10010fd6
test eax, eax
jle 0x1001106a
and eax, 0xffff
or eax, 0xa0070000
pop edi
mov esp, ebp
pop ebp
ret
test eax, eax
jle 0x1001106a
and eax, 0xffff
or eax, 0x80070000
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x5b8], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
xor edi, edi
jmp 0x10011010
movsx ecx, byte [edi + str.0123456789abcdefghijklmnopqrstuvwxyz____________:___.___ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_abcdefghi]
push ecx
call fcn.10030ee6
add esp, 4
test eax, eax
je 0x1001103a
movsx edx, byte [edi + str.0123456789abcdefghijklmnopqrstuvwxyz____________:___.___ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_abcdefghi]
push edx
call fcn.100312b2
add esp, 4
mov byte [edi + str.0123456789abcdefghijklmnopqrstuvwxyz____________:___.___ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_abcdefghi], al
inc edi
cmp edi, 0x44
jb 0x10011010
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
push 0xffffffffffffffeb
push ecx
call edi
mov eax, dword [esi]
push 0x10011120
push 0xfffffffffffffffc
push eax
call edi
mov dword [esi + 4], eax
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10011630
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push edx
mov ebx, eax
invalid
invalid
mov ah, 0x5b
movsb byte es:[edi], byte [esi]
Function at 0x10012850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x10012862
mov eax, 0x80070057
pop ebp
ret 0xc
cmp dword [ebp + 0x10], 0
je 0x10012859
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push esi
test eax, eax
je 0x100128d5
mov esi, dword [ecx + 4]
test esi, esi
jle 0x100128d5
push ebx
mov bl, byte [eax + 0x1f]
or bl, byte [eax]
push edi
and bl, byte [eax + 0x10]
push esi
call fcn.1002e03d
mov edi, eax
add esp, 4
test edi, edi
jne 0x1001289e
pop edi
pop ebx
mov eax, 0x8007000e
pop esi
pop ebp
ret 0xc
push esi
push 0
push edi
call fcn.1002e520
add esp, 0xc
xor eax, eax
test esi, esi
jle 0x100128c2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov cl, byte [edx + eax]
xor cl, bl
mov byte [eax + edi], cl
inc eax
cmp eax, esi
jl 0x100128b0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [edx], edi
pop edi
mov dword [eax], esi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0xc
or eax, 0xffffffff
pop esi
pop ebp
ret 0xc
Function at 0x10014310
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
movzx eax, al
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 1
push edi
and eax, 1
push 0x14
mov dword [ebp - 4], eax
call esi
movzx edi, ax
push 0x11
and edi, 1
call esi
test al, al
js 0x10014354
push 0xa2
call esi
test al, al
js 0x10014354
push 0xa3
call esi
test al, al
js 0x10014354
xor ebx, ebx
jmp 0x10014359
mov ebx, 1
push 0x90
call esi
and eax, 1
cmp ebx, 1
je 0x100143fc
movzx esi, byte [ebp + 8]
xor edx, edx
xor ecx, ecx
movsx ebx, byte [ecx + str.S....O1111P2222Q3333K4444L5555M6666G7777H8888I9999R0000]
cmp esi, ebx
je 0x100143b9
add ecx, 5
inc edx
cmp ecx, 0x37
jb 0x10014374
xor edx, edx
xor eax, eax
lea esp, [esp]
movsx ecx, byte [eax + 0x100d1908]
cmp esi, ecx
jne 0x100143f1
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x100143d5
test edi, edi
je 0x10014405
cmp edi, 1
jne 0x100143f1
mov al, byte [edx + edx*4 + 0x100d190b]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x100143fc
cmp eax, 1
jne 0x100143c7
cmp dword [ebp - 4], eax
je 0x100143fc
mov al, byte [edx + edx*4 + 0x100d1a19]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne 0x100143f1
test edi, edi
jne 0x100143ec
mov al, byte [edx + edx*4 + 0x100d190a]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 1
je 0x10014413
add eax, 5
inc edx
cmp eax, 0x10e
jb 0x10014390
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [edx + edx*4 + str.aAAa0bBBb.cCCc_dDDd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [edx + edx*4 + 0x100d190c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10014430
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
mov byte [ebp - 1], al
call edi
test al, al
js 0x1001446b
push 0xa0
call edi
test al, al
js 0x1001446b
push 0xa1
call edi
test al, al
js 0x1001446b
xor al, al
jmp 0x1001446d
mov al, 1
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
movzx ebx, al
call esi
mov ecx, 0x8000
test cx, ax
jne 0x100144aa
push 0xa0
call esi
mov edx, 0x8000
test dx, ax
jne 0x100144aa
push 0xa1
call esi
mov ecx, 0x8000
mov byte [ebp - 2], 0
test cx, ax
je 0x100144ae
mov byte [ebp - 2], 1
push 0x14
call edi
pop edi
pop esi
and eax, 1
test ebx, ebx
pop ebx
jne 0x100144e4
cmp byte [ebp - 2], 0
jne 0x100144e4
mov cl, byte [ebp - 1]
mov dl, cl
sub dl, 0x41
cmp dl, 0x19
ja 0x1001458f
test eax, eax
jne 0x1001458f
movsx eax, cl
or al, 0x20
mov esp, ebp
pop ebp
ret
movsx edx, byte [ebp - 1]
lea ecx, [edx - 0x27]
cmp ecx, 0x39
ja case.0x100144fb.40
movzx ecx, byte [ecx + 0x100145f0]
jmp dword [ecx*4 + 0x10014598]
mov al, 0x21
mov esp, ebp
pop ebp
ret
mov al, 0x40
mov esp, ebp
pop ebp
ret
mov al, 0x23
mov esp, ebp
pop ebp
ret
mov al, 0x24
mov esp, ebp
pop ebp
ret
mov al, 0x25
mov esp, ebp
pop ebp
ret
mov al, 0x5e
mov esp, ebp
pop ebp
ret
mov al, 0x26
mov esp, ebp
pop ebp
ret
mov al, 0x2a
mov esp, ebp
pop ebp
ret
mov al, 0x28
mov esp, ebp
pop ebp
ret
mov al, 0x29
mov esp, ebp
pop ebp
ret
mov al, 0x7e
mov esp, ebp
pop ebp
ret
mov al, 0x5f
mov esp, ebp
pop ebp
ret
mov al, 0x2b
mov esp, ebp
pop ebp
ret
mov al, 0x7b
mov esp, ebp
pop ebp
ret
mov al, 0x7d
mov esp, ebp
pop ebp
ret
mov al, 0x7c
mov esp, ebp
pop ebp
ret
mov al, 0x3a
mov esp, ebp
pop ebp
ret
mov al, 0x22
mov esp, ebp
pop ebp
ret
mov al, 0x3c
mov esp, ebp
pop ebp
ret
mov al, 0x3e
mov esp, ebp
pop ebp
ret
mov al, 0x3f
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1001458c
mov eax, edx
or al, 0x20
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp - 1]
mov al, cl
mov esp, ebp
pop ebp
ret
Function at 0x10015ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10015bf3
call dword [0x100a8200]
test eax, 0x20000000
je 0x10015bdf
test eax, eax
jle 0x10015bd9
and eax, 0xffff
or eax, 0xa0070000
pop edi
mov esi, eax
pop esi
pop ebp
ret
test eax, eax
jle 0x10015bd9
and eax, 0xffff
or eax, 0x80070000
pop edi
mov esi, eax
pop esi
pop ebp
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x10015c39
call dword [0x100a8200]
test eax, 0x20000000
je 0x10015c24
test eax, eax
jle 0x10015c32
and eax, 0xffff
pop ebx
or eax, 0xa0070000
pop edi
mov esi, eax
pop esi
pop ebp
ret
test eax, eax
jle 0x10015c32
and eax, 0xffff
or eax, 0x80070000
pop ebx
pop edi
mov esi, eax
pop esi
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x10015c80
call dword [0x100a8200]
test eax, 0x20000000
je 0x10015c6a
test eax, eax
jg 0x10015c5c
mov esi, eax
jmp 0x10015c96
and eax, 0xffff
or eax, 0xa0070000
mov esi, eax
jmp 0x10015c96
test eax, eax
jg 0x10015c72
mov esi, eax
jmp 0x10015c96
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10015c96
mov edx, dword [ebp + 0x14]
push edx
push ebx
push edi
call fcn.10015ab0
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x10015c96
xor esi, esi
test edi, edi
je 0x10015ca1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x10016070
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1001609e
cmp dword [ecx + 0x3c], 0x200
jge 0x1001609e
mov edx, dword [ecx + 0x3c]
cmp dword [ecx + edx], 0x4550
lea eax, [ecx + edx]
jne 0x1001609e
test byte [eax + 0x16], 2
jne 0x100160a5
mov eax, 0x8007000d
pop ebp
ret
movzx edx, word [eax + 0x18]
push esi
mov esi, 0x10b
push edi
cmp dx, si
jne 0x100160bd
lea edi, [eax + 0x98]
jmp 0x100160cd
mov esi, 0x20b
cmp dx, si
jne 0x10016119
lea edi, [eax + 0xa8]
lea edx, [eax + 0x58]
mov eax, dword [edi]
add eax, ecx
cmp eax, ecx
jne 0x100160e1
pop edi
mov eax, 0x800b0100
pop esi
pop ebp
ret
mov esi, eax
sub esi, ecx
cmp esi, dword [ebp + 0xc]
jae 0x10016119
mov eax, dword [ebp + 0x10]
sub edx, ecx
mov dword [eax + 4], edx
add edx, 4
mov dword [eax + 8], edx
mov edx, edi
sub edx, ecx
mov dword [eax + 0xc], edx
add edx, 8
mov dword [eax + 0x14], esi
mov dword [eax], 0
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 0x8007000d
pop esi
pop ebp
ret
Function at 0x10016a20
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.1002e520
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
pop esi
pop ebp
ret

Function at 0x10016a80
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.1002e520
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
pop ebp
ret
Function at 0x10017b70
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
lea eax, [ecx + 1]
pop ebp
ret

Function at 0x10017c10
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
lea eax, [ecx + 1]
pop ebp
ret
Function at 0x1001e610
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
cmp esi, eax
jne 0x1001e636
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x14]
cmp ebx, eax
jne 0x1001e649
pop ebx
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x18]
cmp edi, eax
jne 0x1001e65d
pop edi
pop ebx
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret
push 0xf0000000
push 0x18
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1001e6ac
call dword [0x100a8200]
test eax, 0x20000000
je 0x1001e69d
test eax, eax
jg 0x1001e68c
mov esi, eax
jmp 0x1001e74b
and eax, 0xffff
or eax, 0xa0070000
mov esi, eax
jmp 0x1001e74b
test eax, eax
jg 0x1001e789
mov esi, eax
jmp 0x1001e74b
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1001e674
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
push 0
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1001e674
mov ecx, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 2
push ecx
call esi
test eax, eax
je 0x1001e674
mov edx, dword [ebp - 8]
push edx
call fcn.1002e03d
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1001e713
mov esi, 0x8007000e
jmp 0x1001e74b
mov ecx, dword [ebp - 8]
push ecx
push 0
push eax
call fcn.1002e520
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add esp, 0xc
push 0
lea edx, [ebp - 8]
push edx
push eax
push 2
push ecx
call esi
test eax, eax
je 0x1001e674
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
xor esi, esi
mov dword [ebx], edx
mov dword [ebp - 0xc], esi
mov dword [edi], eax
mov eax, dword [ebp - 4]
xor edi, edi
cmp eax, edi
je 0x1001e75e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x1001e770
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x1001e780
push eax
call fcn.1002e59a
add esp, 4
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1001e74b
Function at 0x1001e7a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100db690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x1fe
lea ecx, [ebp - 0x202]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
mov word [ebp - 0x204], ax
call fcn.1002e520
add esp, 0xc
cmp edi, esi
jne 0x1001e80e
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e502
mov esp, ebp
pop ebp
ret
push esi
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x1001e86e
call dword [0x100a8200]
test eax, 0x20000000
je 0x1001e84b
test eax, eax
jle 0x1001e9d0
pop edi
and eax, 0xffff
pop esi
or eax, 0xa0070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e502
mov esp, ebp
pop ebp
ret
test eax, eax
jle 0x1001e9d0
pop edi
and eax, 0xffff
pop esi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e502
mov esp, ebp
pop ebp
ret
push esi
call fcn.1002e03d
add esp, 4
mov dword [ebp - 0x20c], eax
test eax, eax
jne 0x1001e88b
mov esi, 0x8007000e
jmp 0x1001e9bb
push esi
push 0
push eax
call fcn.1002e520
mov edx, dword [ebp - 0x20c]
add esp, 0xc
push edx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1001e8e3
call dword [0x100a8200]
test eax, 0x20000000
je 0x1001e8d4
test eax, eax
jg 0x1001e8c3
mov esi, eax
jmp 0x1001e9bb
and eax, 0xffff
or eax, 0xa0070000
mov esi, eax
jmp 0x1001e9bb
test eax, eax
jg 0x1001e97e
mov esi, eax
jmp 0x1001e9bb
mov esi, dword [ebp - 0x20c]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x210]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1001e8ab
mov eax, dword [ebp - 0x210]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
push str.StringFileInfo_04x_04xFileVersion
lea ecx, [ebp - 0x204]
push 0x100
push ecx
call fcn.1002e475
add esp, 0x14
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1001e8ab
mov eax, dword [ebp - 0x208]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002e03d
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x1001e98c
mov esi, 0x8007000e
jmp 0x1001e9bb
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1001e9bb
mov ecx, dword [ebp - 0x208]
lea edx, [ecx + ecx + 2]
push edx
push 0
push eax
call fcn.1002e520
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x208]
mov edx, dword [ebx]
push eax
inc ecx
push ecx
push edx
call fcn.1002e493
add esp, 0x18
xor esi, esi
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x1001e9ce
push eax
call fcn.1002e59a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002e502
mov esp, ebp
pop ebp
ret
Function at 0x1001f3b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100db690]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.1002e520
push 0x5c
push edi
call fcn.1002eb88
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1001f45c
mov ebx, dword [0x100a8398]
jmp 0x1001f400
mov edx, esi
sub edx, edi
sar edx, 1
push edx
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1002efaa
add esp, 0x10
lea ecx, [ebp - 0x20c]
push ecx
add esi, 2
call ebx
test eax, eax
jne 0x1001f44b
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1001f44b
call dword [0x100a8200]
cmp eax, 0xb7
jne 0x1001f46f
push 0x5c
push esi
call fcn.1002eb88
mov esi, eax
add esp, 8
test esi, esi
jne 0x1001f400
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e502
mov esp, ebp
pop ebp
ret
call dword [0x100a8200]
test eax, 0x20000000
je 0x1001f49b
test eax, eax
jle 0x1001f45e
pop edi
and eax, 0xffff
pop esi
or eax, 0xa0070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e502
mov esp, ebp
pop ebp
ret
test eax, eax
jle 0x1001f45e
mov ecx, dword [ebp - 4]
pop edi
and eax, 0xffff
pop esi
xor ecx, ebp
or eax, 0x80070000
pop ebx
call fcn.1002e502
mov esp, ebp
pop ebp
ret
Function at 0x10021430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x10021449
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10021453
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10021c70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100db690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [ebp - 0x218], ecx
lea ecx, [ebp - 0x214]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x208], ebx
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x20c]
mov edi, eax
cmp edi, ebx
jne 0x10021cfc
xor eax, eax
cmp ecx, ebx
je 0x10021cde
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x214]
and esi, 0x300
mov edi, eax
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x208], esi
cmp eax, ebx
je 0x10021d1c
cmp ecx, ebx
je 0x10021d07
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e502
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [ebp - 0x224]
push edx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
lea edx, [ebp - 0x204]
push edx
push ebx
push ecx
mov dword [ebp - 0x210], 0x100
call esi
test eax, eax
jne 0x10021d9c
lea esp, [esp]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x20c]
call fcn.10021c70
mov edi, eax
cmp edi, ebx
jne 0x10021df3
lea ecx, [ebp - 0x224]
push ecx
mov ecx, dword [ebp - 0x20c]
push ebx
push ebx
push ebx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x204]
push eax
push ebx
push ecx
mov dword [ebp - 0x210], 0x100
call esi
test eax, eax
je 0x10021d50
mov eax, dword [ebp - 0x20c]
cmp eax, ebx
je 0x10021db3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20c], ebx
mov edx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
push edx
mov dword [ebp - 0x208], ebx
call fcn.100212d0
mov esi, eax
mov eax, dword [ebp - 0x20c]
cmp eax, ebx
je 0x10021dde
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e502
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x20c]
cmp eax, ebx
je 0x10021e04
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002e502
mov esp, ebp
pop ebp
ret 4