joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a05e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5ee2a0]
xor edx, edx
cmp eax, edx
jne 0x4a0606
xor eax, eax
mov byte [eax + 0x5ee1a0], al
inc eax
cmp eax, 0x100
jl 0x4a05ee
mov dword [0x5ee2a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5ee1a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a0697
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4a066a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4a0638
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4a06a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4a06f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4a06da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a7090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d889e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a79b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x591054
call fcn.004c7218
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a7123
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c7218
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a711c
push 0
mov ecx, eax
call fcn.0049e220
mov dword [esi + 0xc], eax
jmp 0x4a7125
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a7125
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4c9890
Capabilities:
Get graphical window text

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

Function at 0x4cb087
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 0x4cb0c9
call fcn.004d13bd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cb0c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cb0c0
xor eax, eax
jmp 0x4cb0d1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cb0d7
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d18ed
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 0x4d191b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d1939
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d1853
jmp 0x4d1939
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d1939
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d1853
test edi, edi
mov eax, edi
jne 0x4d1923
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0xefa000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xefa00a
jmp 0xefc00f
jmp fcn.00a941b8
Function at 0x4016cc
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x401775
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x400
mov esi, 0x42ac00
push esi
add eax, 0x3e8
push ebx
mov dword [0x423d00], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.004016cc
mov edi, eax
mov dword [0x409010], edi
cmp edi, 0xffffffff
jne 0x4017cf
mov eax, str.Error_launching_installer
jmp 0x401a09
push esi
mov esi, 0x429c00
push esi
call fcn.00401717
push esi
jmp loc.0044c1ec
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401a42
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401a5f
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x401b4e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401bbf
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401bae
cmp dword [ebp + 0x14], 1
je 0x401bb0
cmp dword [ebp + 0x14], 2
je 0x401bb0
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x401da5
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x401dcf
add eax, dword [0x423cf8]
push edi
push edi
push eax
push dword [0x409014]
mov dword [0x41ae24], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00404b6b
cmp eax, edi
jl 0x401ec8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x401ec4
cmp dword [ebp - 4], esi
jne 0x401ec4
push dword [ebp + 8]
add dword [0x41ae24], esi
call fcn.00404b6b
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x401ec7
cmp dword [ebp + 0x10], edi
jne 0x401e93
cmp dword [ebp + 8], edi
jle 0x401ebf
mov esi, 0x41ae28
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x401e43
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x401ec4
cmp edi, dword [ebp - 4]
jne 0x401ec4
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401e8f
cmp dword [ebp + 0x14], edi
jne 0x401e8f
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41ae24], eax
cmp dword [ebp + 8], 0
jg 0x401e36
jmp 0x401ebf
push 0xfffffffffffffffe
jmp 0x401ec6
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x401e9e
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x401ec4
mov eax, dword [ebp - 4]
add dword [0x41ae24], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x401ec7
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x49d2b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
jmp 0x49d2ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x49d2d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49d2c0
mov eax, 1
add ebx, ebx
jne 0x49d2e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49d2d8
jne 0x49d2f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49d2d8
xor ecx, ecx
sub eax, 3
jb 0x49d308
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49d37a
mov ebp, eax
add ebx, ebx
jne 0x49d313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x49d320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x49d344
inc ecx
add ebx, ebx
jne 0x49d330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49d325
jne 0x49d341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49d325
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x49d364
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x49d355
jmp 0x49d2c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x49d364
add edi, ecx
jmp 0x49d2c6
pop esi
lea edi, [esi + 0x9b000]
mov eax, dword [edi]
or eax, eax
je 0x49d3c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9d000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9d050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49d381
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9d058]
or eax, eax
je 0x49d3bd
mov dword [ebx], eax
add ebx, 4
jmp 0x49d39e
call dword [esi + 0x9d054]
mov ebp, dword [esi + 0x9d05c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x49d3f7
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402ba5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
push dword [esi]
push edi
push dword [ebp + 0x10]
call fcn.00416020
add esp, 0xc
lea eax, [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402be6
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x402bf2
cmp dword [ebp + 0x14], 1
mov eax, 0x80040370
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x402ca1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
push edi
mov edi, ecx
test ebx, ebx
jne 0x402ccc
mov eax, 0x80004003
jmp 0x402df7
push esi
push 0x20019
mov ecx, eax
call fcn.004031c2
mov esi, eax
test esi, esi
js 0x402df4
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push 0
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402d11
cmp eax, 2
jne 0x402d70
mov esi, 0x80040371
jmp 0x402df4
xor ecx, ecx
inc ecx
cmp dword [ebp - 8], ecx
je 0x402d23
mov esi, 0x80040370
jmp 0x402df4
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402d32
mov eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
test edi, edi
jne 0x402d49
mov esi, 0x8007000e
jmp 0x402df4
cmp dword [ebp - 0xc], 0
je 0x402d52
mov byte [edi], 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push 0
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402d8a
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, edi
test esi, esi
jns 0x402de5
test eax, eax
je 0x402df4
jmp 0x402dbb
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402d97
sub eax, 1
jne 0x402de5
mov eax, dword [ebp - 4]
test eax, eax
je 0x402de5
cmp byte [edi + eax - 1], 0
je 0x402de5
inc eax
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ebx, eax
test ebx, ebx
jne 0x402dc4
mov esi, 0x8007000e
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x402df4
push dword [ebp - 4]
push edi
push ebx
call fcn.00415aa0
add esp, 0xc
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp + 8]
mov edi, ebx
mov byte [ebx + eax - 1], 0
mov ebx, dword [ebp + 0xc]
cmp dword [ebx], 0
je 0x402df2
push dword [ebx]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebx], edi
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x403362
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x468114]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x108], 0
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 8]
and eax, 0x300
mov dword [ebp - 0x110], edi
or eax, 0xf003f
push eax
call fcn.004031c2
mov esi, eax
test esi, esi
js 0x4034b9
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x108]
push eax
and ecx, 0x300
or ecx, 0xf003f
push ecx
push 0
push edi
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4033e1
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x4034b9
mov eax, 0x100
push eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00416020
push 0x10c
call fcn.004142e5
add esp, 0x10
mov dword [ebp - 0x114], eax
test eax, eax
je 0x403421
push edi
push dword [ebx + 4]
mov ecx, eax
call fcn.004011e0
mov edi, eax
jmp 0x403423
xor edi, edi
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
jmp 0x40348b
mov eax, dword [ebx + 8]
mov ecx, edi
and eax, 0x300
push eax
call fcn.00403501
lea eax, [ebp - 0x104]
mov ecx, edi
push eax
call fcn.00403362
mov esi, eax
test esi, esi
js 0x40349b
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x10c], 0x100
push eax
xor ecx, ecx
lea eax, [ebp - 0x10c]
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x104]
push eax
push ecx
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x403442
test edi, edi
je 0x4034b3
mov ecx, edi
call fcn.00401266
push 0x10c
push edi
call fcn.00414315
pop ecx
pop ecx
mov edi, dword [ebp - 0x110]
cmp dword [ebp - 0x108], 0
je 0x4034ce
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
js 0x4034dc
push edi
mov ecx, ebx
call fcn.004015c2
mov esi, eax
cmp esi, 0x80070002
je 0x4034ec
cmp esi, 0x80070003
jne 0x4034ee
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004146b1
leave
ret 4
Function at 0x403c4a
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edi, edi
lea eax, [ebp - 8]
xor esi, esi
and dword [ebp - 8], esi
and dword [ebp - 4], esi
and dword [ebp - 0xc], esi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x403cef
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x403cef
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x403cef
push 4
pop ecx
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x403cef
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edi, eax
test edi, edi
jne 0x403cd9
mov esi, 0x8007000e
jmp 0x403d03
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x403d03
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x403d12
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], 0
je 0x403d23
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
jns 0x403d34
test edi, edi
je 0x403d49
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x403d49
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x403d3d
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403d49
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x4042c9
Capabilities:
Get graphical window text

Disassembly:
push 0xa4
mov eax, 0x451eda
call fcn.00414790
mov edi, ecx
mov dword [ebp - 0x9c], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], esi
push dword [eax]
mov dword [ebp - 4], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0xa8]
mov dword [eax], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ecx, eax
mov dword [ebp - 0xa0], ebx
mov eax, ebx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
test ecx, ecx
jle 0x4043c0
lea edi, [ecx + 1]
mov byte [ebp - 4], 2
push edi
lea ecx, [ebp - 0x98]
mov dword [ebp - 0xa0], edi
call fcn.00403969
mov eax, dword [ebp - 0x9c]
jmp 0x404371
cmp dword [ebp - 0x98], 0
mov dword [ebp - 4], 1
je 0x4043a2
push edi
push dword [ebp - 0x98]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4043b4
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x4043ad
lea ecx, [ebp - 0x98]
call fcn.00403fe1
xor eax, eax
jmp 0x404482
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x4043e7
push eax
call fcn.00422d70
inc eax
push 2
push eax
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00403747
add esp, 0x10
test eax, eax
jns 0x4043eb
mov eax, ebx
jmp 0x404435
mov edi, dword [ebp - 0x9c]
cmp edi, 0x400
jg 0x404412
push edi
call fcn.00404c42
pop ecx
test al, al
je 0x404412
mov eax, edi
call fcn.004147d0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x404424
push edi
lea ecx, [ebp - 0xa4]
call fcn.0040393c
mov esi, dword [ebp - 0xa4]
push 3
shr edi, 1
push edi
push dword [ebp - 0xa0]
push eax
call fcn.0040133e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp dword [ebp - 0xb0], 0
mov ecx, dword [ebp - 0xa8]
mov dword [ecx], eax
je 0x404454
xor ebx, ebx
test eax, eax
setne bl
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x40446d
lea ecx, [ebp - 0x98]
call fcn.00403fe1
test esi, esi
je 0x404480
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.00422b5d
pop ecx
test edi, edi
jne 0x404471
mov eax, ebx
lea esp, [ebp - 0xc0]
call fcn.004146e2
ret 4
Function at 0x404f6f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x468114]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x108]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
push 0
push eax
call fcn.00416020
push esi
call fcn.00405176
mov edi, eax
add esp, 0x10
test edi, edi
js 0x405023
lea eax, [ebp - 0x10c]
push eax
call fcn.004050df
pop ecx
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Help_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405017
test al, 0x10
je 0x405017
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x405023
push str.Help
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004146b1
leave
ret

Function at 0x409eed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x468114]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x4697a8]
push edi
push 0xf0
push eax
xor edi, edi
mov dword [ebp - 0x110], ecx
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40a05b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40a05b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a05b
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x40a05a
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x114], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x409fd5
lea eax, [ebp - 0x84]
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], eax
call fcn.0040acd9
push dword [ebp - 0x88]
mov eax, dword [ebp - 0x110]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x84]
cmovne ecx, edi
mov edi, ecx
cmp dword [ebp - 0x88], eax
je 0x40a048
push dword [ebp - 0x88]
call fcn.00422b5d
pop ecx
jmp 0x40a048
mov ecx, 0x1234
cmp cx, ax
jne 0x40a048
or dword [ebp - 0x134], 0xffffffff
lea eax, [ebp - 0x108]
push esi
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x10c], eax
call fcn.0040acd9
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x40a025
push eax
call fcn.00422b5d
pop ecx
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x110]
push 0
push 0x401
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, 0xffffffff
je 0x40a058
add esi, dword [ebp - 0x114]
test edi, edi
jne 0x409f4c
jmp 0x40a05a
xor edi, edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004146b1
leave
ret 4