joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52de30
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x52de40
mov esi, 1
push esi
call fcn.00546cc7
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x52de92
call fcn.005477cd
mov edi, eax
call fcn.00530980
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x52de76
mov edx, dword [0x618d70]
mov dword [0x618d6c], edx
test al, 0x18
je 0x52de87
push esi
push 0x24
push 5
call fcn.005311d0
add esp, 0xc
test edi, edi
je 0x52dead
push 1
call fcn.005493fb
test byte [esp + 0x14], 0x20
je 0x52dead
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x52efa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x52f094
cmp byte [edx], 0
je 0x52f087
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.0052ef20
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0052ef20
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0052ee90
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x52f051
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.0052eed0
fmul qword [0x5e7d78]
push ecx
fstp qword [esp]
call fcn.005455b8
fadd qword [0x5d4f90]
add esp, 8
call fcn.00545688
mov byte [ebx], al
inc ebx
dec edi
jne 0x52f024
lea ecx, [esp + 0x20]
push ecx
call fcn.0052eed0
fmul qword [0x5e7d78]
push ecx
fstp qword [esp]
call fcn.005455b8
add esp, 8
call fcn.00545688
cmp esi, ebx
je 0x52f07d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x52f076
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52f460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x52f490
mov byte [edi + esi], 2
jmp 0x52f4c7
test al, 4
je 0x52f49a
mov byte [edi + esi], 0xd
jmp 0x52f4c7
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x52f4b3
mov byte [edi + esi], 2
jmp 0x52f4c7
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x52f4c3
mov byte [edi + esi], 0x19
jmp 0x52f4c7
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x52f477
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x52f53b
cmp dl, 0xd
je 0x52f53b
xor edx, edx
jmp 0x52f540
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x52f52b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x52f560
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.0052de30
mov esi, eax
add esp, 8
test esi, esi
jne 0x52f581
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.00530bc0
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x52f5a6
push esi
call fcn.0050ffc0
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.00552c2c
push ebx
push edi
mov ebp, eax
call fcn.00530c30
push 0x52f5e0
push ebp
push esi
call fcn.00531f60
push esi
call fcn.0050ffc0
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x5308f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x7136a0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7135c4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x53096b
push 0x4c
push 1
call fcn.00547bf5
mov esi, eax
add esp, 8
test esi, esi
jne 0x530933
push 0x7136a0
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x7135c4]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x708880]
inc eax
lea edx, [esi + 0xc]
mov dword [0x708880], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.00534430
add esp, 8
mov byte [esi + 0x3c], 1
push 0x7136a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x530df0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.005477cd
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00552c2c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x530eea
call fcn.005477cd
cmp dword [eax], 0
je 0x530e37
call fcn.005477cd
mov ebp, dword [eax]
jmp 0x530e3a
or ebp, 0xffffffff
call fcn.00530980
test esi, esi
mov dword [eax], ebp
jne 0x530e4f
call fcn.005477cd
cmp dword [eax], 4
je 0x530e9f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x530e82
cmp esi, 0xffffffff
je 0x530ec4
test al, 6
je 0x530e82
call fcn.00530980
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00534460
add esp, 4
push eax
push 0x24
push 9
call fcn.005311d0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x530ee2
test al, 6
je 0x530e90
test ah, 2
je 0x530ee2
test esi, esi
jbe 0x530eee
test ah, 2
je 0x530eee
add dword [esp + 0x18], esi
sub edi, esi
call fcn.005477cd
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.00552c2c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x530eea
jmp 0x530e24
call fcn.00530980
mov eax, dword [eax]
push eax
push ebx
call fcn.00534460
add esp, 4
push eax
push 0x24
push 2
call fcn.005311d0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x530efb
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x530f04
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x547f6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054775a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x547f8f
test byte [esp + 8], 2
je 0x547f8f
call fcn.005477cd
mov dword [eax], 0xd
call fcn.005477d6
mov dword [eax], 5
jmp 0x547f68
xor eax, eax
ret
Function at 0x55daf6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x55db2e
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.0055ba7a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0055ba52
jmp 0x55db3a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x55f36e
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 0x55f3b0
call fcn.00565b4d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x55f3b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x55f3a7
xor eax, eax
jmp 0x55f3b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0055f3be
pop edi
pop esi
pop ebx
ret 4

Function at 0x56607d
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 0x5660ab
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5660c9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00565fe3
jmp 0x5660c9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5660c9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00565fe3
test edi, edi
mov eax, edi
jne 0x5660b3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x568e26
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x568e4e
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x568e5f
push 2
call edi
test ax, ax
jge 0x568e5f
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0055d12c
cmp dword [esi + 0x30], ebx
jne 0x568f39
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0055d12c
cmp eax, dword [esp + 0x34]
jne 0x568f39
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x568ed5
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x568f1a
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x568f39
cmp eax, 0x205
je 0x568f39
cmp eax, 0x201
je 0x568f39
cmp eax, 0x204
je 0x568f39
cmp eax, ebx
jne 0x568f00
cmp dword [esp + 0x1c], 0x1b
je 0x568f39
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x712d48]
jbe 0x568f2f
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x568e92
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x402ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402b08
cmp byte [esi + ebx - 1], 0xa
je 0x402adc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4070a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x403130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x403308
mov edi, dword [0x4070a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x403217
test byte [0x404018], 8
jne 0x4032b0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x404028], 8
jne 0x403270
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4031b9
cmp esi, 3
jbe 0x403228
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x4031ca
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x405234]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x4031b9
mov dword [esp], 0x404028
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x403190
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x403190
mov dword [esp], 0x404018
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x40317b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x403183
mov eax, 0xffffffff
jmp 0x403217

Function at 0x403380
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x4237a1
Capabilities:
Persist via run registry key

Disassembly:
push 0x64
mov eax, 0x449654
call fcn.0042f3f0
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x70], eax
cmp ebx, esi
je 0x4238df
push 7
pop edi
xor eax, eax
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
mov dword [ebp - 4], esi
call fcn.00431858
push eax
push 0x404dac
lea eax, [ebp - 0x48]
push 0x4055cc
push eax
call fcn.0042c0b9
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.0042c774
mov eax, dword [ebp - 0x64]
add esp, 0x14
cmp dword [ebp - 0x50], 8
jae 0x423820
lea eax, [ebp - 0x64]
push esi
push eax
push ebx
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0042bf95
add esp, 0x14
cmp dword [ebp - 0x70], esi
je 0x423840
push dword [ebp - 0x70]
lea ecx, [ebp - 0x2c]
call fcn.0040cf83
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x404dd0
push 0x80000001
call dword [0x451528]
xor edi, edi
inc edi
cmp eax, esi
je 0x423870
push eax
push 0x405540
jmp 0x4238a5
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x42387c
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x423888
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x1c]
add edx, edx
push edx
push ecx
push edi
push esi
push eax
push dword [ebp - 0x68]
call dword [0x451538]
cmp eax, esi
je 0x4238b3
push eax
push 0x4054b8
push dword [0x450100]
call fcn.0040ad06
add esp, 0xc
cmp dword [ebp - 0x68], esi
je 0x4238c1
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
lea ecx, [ebp - 0x64]
call fcn.0040aa24
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040aa24
push esi
push edi
lea ecx, [ebp - 0x48]
call fcn.0040aa24
xor al, al
call fcn.0042f482
ret

Function at 0x42a189
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x450148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push 0x404278
push 0x80000001
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42a1fb
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x406014
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a1fb
cmp dword [ebp - 0xc], 4
jne 0x42a1fb
cmp dword [ebp - 0x10], 4
jne 0x42a1fb
cmp dword [ebp - 0x14], ebx
jne 0x42a1fb
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042ef49
leave
ret
Function at 0x42bac9
Capabilities:
Get file version info

Disassembly:
push 0x228
mov eax, 0x449e0b
call fcn.0042f3f0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x234], eax
mov byte [ebp - 0x22d], bl
call fcn.0040cd7a
mov dword [ebp - 4], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
cmp edi, ebx
je 0x42bc32
push edi
call fcn.0042a0e5
pop ecx
test al, al
je 0x42bc32
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x42bb2a
sub eax, ecx
sar eax, 1
lea esi, [eax + 1]
push ebx
push esi
lea ecx, [ebp - 0x22c]
call fcn.00422b90
push 0xffffffffffffffff
push edi
push esi
push dword [ebp - 0x22c]
call fcn.0042f77e
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x22c]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x42bc1f
push esi
push 0x40
call dword [0x40111c]
mov edi, eax
cmp edi, ebx
je 0x42bc1f
push edi
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x22c]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42bc18
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x4060f0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42bc18
cmp dword [ebp - 0x21c], ebx
je 0x42bc18
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x4060f4
lea eax, [ebp - 0x210]
push 0xff
push eax
call fcn.0042a2eb
add esp, 0x1c
test eax, eax
js 0x42bc18
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x210]
push eax
call fcn.0040b36d
mov byte [ebp - 0x22d], 1
push edi
call dword [0x401088]
lea ecx, [ebp - 0x22c]
call fcn.0040c13b
mov al, byte [ebp - 0x22d]
jmp 0x42bc3f
lea ecx, [ebp - 0x22c]
call fcn.0040c13b
xor al, al
call fcn.0042f482
ret
Function at 0x42c1fd
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0x4c
mov eax, 0x449ea8
call fcn.0042f3f0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
or dword [ebp - 0x58], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x51], bl
cmp ecx, ebx
je 0x42c37b
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x42c247
sub eax, edi
sar eax, 1
je 0x42c37b
lea eax, [ebp - 0x40]
push eax
push ecx
call fcn.0042b1cf
pop ecx
pop ecx
test al, al
je 0x42c37e
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x42c37e
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x42c37e
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push esi
call dword [0x451518]
mov dword [ebp - 0x58], eax
cmp eax, 0xffffffff
je 0x42c37e
mov esi, 0x4000
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.0042b0f7
mov edi, dword [0x4010a8]
mov dword [ebp - 0x14], ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x58]
call edi
test eax, eax
jne 0x42c31b
lea ecx, [ebp - 0x30]
call fcn.0040c13b
jmp 0x42c37e
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x42c2fb
jmp 0x42c2e9
cmp dword [ebp - 0x14], ebx
jne 0x42c305
lea ecx, [ebp - 0x30]
call fcn.0040c13b
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push 2
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x42c37e
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
sub eax, edi
cmp dword [ebp - 0x1c], eax
jne 0x42c37e
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x50]
call fcn.0042aedb
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x50]
push 2
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x42c37e
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x50]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
sete byte [ebp - 0x51]
jmp 0x42c37e
mov byte [ebp - 0x51], bl
cmp dword [ebp - 0x20], ebx
je 0x42c38d
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x18], ebx
je 0x42c39b
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x58], 0xffffffff
je 0x42c3aa
push dword [ebp - 0x58]
call dword [fcn.004011cc]
lea ecx, [ebp - 0x50]
call fcn.0040c13b
lea ecx, [ebp - 0x40]
call fcn.0040c13b
mov al, byte [ebp - 0x51]
call fcn.0042f482
ret