joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10d1409
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1013da8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10d1461
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1003828
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10d1454
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10d1463
xor eax, eax
pop esi
leave
ret 4

Function at 0x10d18e8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov esi, 0x10045e8
lea edi, [ebp - 0x30]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x2a]
mov ecx, 7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
push edi
call sub.RPCRT4.dll_RpcNetworkIsProtseqValidW
test eax, eax
je 0x10d191e
xor eax, eax
jmp 0x10d1a0c
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10d1930
cmp word [ebx], 0x5c
jne 0x10d1930
add ebx, 2
jne 0x10d1925
push 0x1014208
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
push edi
call esi
add esp, 8
test eax, eax
jne 0x10d1987
test ebx, ebx
je 0x10d196e
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0xc], 0x10
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0x50]
push ecx
push ebx
call esi
add esp, 8
test eax, eax
jne 0x10d1980
xor ebx, ebx
mov eax, dword [ebp + 0x10]
cmp eax, dword [0x10e7c78]
jne 0x10d19c0
mov eax, 0x1014190
jmp 0x10d19d4
xor eax, eax
jmp 0x10d1a0c
push 0x10141f4
push edi
call esi
add esp, 8
test eax, eax
jne 0x10d196e
test ebx, ebx
je 0x10d196e
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 4
cmp eax, 0xf
ja 0x10d19bc
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ebx, [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 8
jmp 0x10d196e
xor eax, eax
jmp 0x10d1a0c
mov eax, dword [0x10e7c80]
cmp dword [ebp + 0x10], eax
mov eax, 0x10141a0
je 0x10d19d4
mov eax, 0x10141b0
lea ecx, [ebp - 4]
push ecx
push eax
call sub.RPCRT4.dll_UuidToStringW
mov esi, eax
test esi, esi
jne 0x10d1a05
lea eax, [ebp - 8]
push eax
push 0
push 0
push ebx
push edi
push dword [ebp - 4]
call sub.RPCRT4.dll_RpcStringBindingComposeW
mov esi, eax
lea eax, [ebp - 4]
push eax
call sub.RPCRT4.dll_RpcStringFreeW
test esi, esi
je 0x10d1a09
xor eax, eax
jmp 0x10d1a0c
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10d1ca6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [ebp - 0xc], edi
cmp dword [ebp + 0x10], edi
je 0x10d1cf9
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 4
lea ebx, [eax + 1]
lea eax, [ebx*2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x10d1ce9
xor eax, eax
jmp 0x10d1df6
push dword [ebp + 0x10]
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 8
sub dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
mov word [ebx], 0
push eax
push 0x20019
push 0
push dword [0x10141cc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10d1dd0
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0xc]
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 4]
push 0
lea eax, [ebp - 0x210]
push edx
inc dword [ebp - 0xc]
mov dword [ebp - 4], 0x100
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10d1dc7
push 4
mov eax, dword [ebp - 4]
push dword [ebp + eax*2 - 0x212]
call dword [sym.imp.ntdll.dll_iswctype]
add esp, 8
test eax, eax
je 0x10d1d85
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x210], 0
test edi, edi
je 0x10d1d8c
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, edi
inc eax
cmp eax, dword [ebp + 0xc]
ja 0x10d1dc7
test edi, edi
je 0x10d1da2
mov word [ebx + edi*2], 0x2c
inc edi
lea eax, [ebp - 0x210]
lea ecx, [ebx + edi*2]
push eax
push ecx
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 8
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 4
mov edi, eax
jmp 0x10d1d2c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10d1df4
test edi, edi
je 0x10d1ddf
mov word [ebx + edi*2], 0x2c
inc edi
push esi
lea eax, [ebx + edi*2]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10d1e02
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0xc], 1
push ebx
lea eax, [ebp - 4]
push esi
xor ebx, ebx
push edi
lea esi, [ebp - 0x28c]
push eax
mov dword [ebp - 4], ebx
push 0x20019
push ebx
push dword [0x10141c8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10d1e63
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
push eax
push esi
push edx
mov eax, dword [0x10141c0]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10d1e79
mov eax, dword [0x10141d0]
lea ecx, [ebp - 0x28c]
push eax
push ecx
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 8
cmp dword [ebp - 4], 0
je 0x10d1e88
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28c]
lea edi, [ebp - 0x8c]
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
cmp edi, eax
jae 0x10d1f53
push 0x2c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 8
mov esi, eax
test esi, esi
je 0x10d1ec3
mov word [esi], 0
add esi, 2
mov eax, dword [0x10141c4]
push eax
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10d1f15
push esi
lea eax, [ebp - 0x28c]
push 0x100
push eax
call fcn.010d1ca6
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x10d1f48
test ebx, ebx
je 0x10d1f0c
lea esi, [ebp - 0x8c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
add esi, 4
dec ebx
jne 0x10d1efe
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 4
lea eax, [eax*2 + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [edi], eax
test eax, eax
je 0x10d1ef4
add edi, 4
inc ebx
push dword [ebp - 8]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 8
mov dword [ebp - 8], esi
test esi, esi
jne 0x10d1e9e
lea eax, [ebx*4]
push eax
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp + 8]
mov edi, eax
test edi, edi
mov dword [ecx + 0x14], eax
je 0x10d1ef4
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x8c]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov eax, 4
lea edx, [ebp - 4]
mov dword [ebp - 0x10], eax
push edx
mov dword [ecx + 0x10], ebx
push 0x20019
mov dword [ebp - 0xc], eax
push 0
push dword [0x10141d4]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10d1fe9
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0xc]
push ecx
mov eax, dword [0x10141d8]
push edx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10d1fe9
cmp dword [ebp - 0x14], 1
sbb eax, eax
mov ecx, dword [ebp + 8]
neg eax
mov dword [ecx + 0x18], eax
cmp dword [ebp - 4], 0
je 0x10d1ff8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x10d1f0e
Function at 0x41fe40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
jmp 0x41fe5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fe61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fe50
mov eax, 1
add ebx, ebx
jne 0x41fe73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fe68
jne 0x41fe84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fe68
xor ecx, ecx
sub eax, 3
jb 0x41fe98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ff0a
mov ebp, eax
add ebx, ebx
jne 0x41fea3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41feb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fed4
inc ecx
add ebx, ebx
jne 0x41fec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41feb5
jne 0x41fed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41feb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fef4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fee5
jmp 0x41fe56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fef4
add edi, ecx
jmp 0x41fe56
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ff12
cmp byte [edi], 9
jne 0x41ff12
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 al, bl
loop 0x41ff17
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41ff8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20abc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20b9c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ff44
mov ecx, edi
jns 0x41ff73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20ba4]
or eax, eax
je 0x41ff89
mov dword [ebx], eax
add ebx, 4
jmp 0x41ff61
call dword [esi + 0x20ba0]
mov ebp, dword [esi + 0x20ba8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x41ffc3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x402f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx ebx, ax
test ecx, ebp
imul edi, ebp
scasd eax, dword es:[edi]
std
sub eax, eax
xchg esi, edi
pop esi
adc ebp, esi
movzx edx, dx
xchg ecx, edi
cmp ebx, 0x56f
je 0x402f93
test cl, 0x9a
add edi, ecx
mov cl, ch
adc al, 0xe9
mov edx, 0xfff7babd
mov cl, 0xe3
add edx, 0x852f3
imul eax, ebx, 0x63ea522a
mov cl, cl
push 0xfffff335
test edx, edi
pop ebx
sbb ecx, ebx
add ebx, 0xe13
xor cl, dl
invalid

Function at 0x40509d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x408010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403f1d
and dword [ebp - 0x14], 0
cmp dword [0x4096f8], 0
mov dword [ebp - 0x18], eax
jne 0x405150
push 0x401dec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4051f8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401de0
push ebx
call edi
test eax, eax
je 0x4051f8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401dd0
push ebx
mov dword [0x4096f8], eax
call edi
push eax
call esi
push 0x401dbc
push ebx
mov dword [0x4096fc], eax
call edi
push eax
call esi
push 0x401da0
push ebx
mov dword [0x409700], eax
call edi
push eax
call esi
mov dword [0x409708], eax
test eax, eax
je 0x405150
push 0x401d88
push ebx
call edi
push eax
call esi
mov dword [0x409704], eax
mov eax, dword [0x409704]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4051a9
cmp dword [0x409708], ecx
je 0x4051a9
push eax
call esi
push dword [0x409708]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4051a9
test ebx, ebx
je 0x4051a9
call edi
test eax, eax
je 0x4051a0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4051a0
test byte [ebp - 8], 1
jne 0x4051a9
or dword [ebp + 0x10], 0x200000
jmp 0x4051dc
mov eax, dword [0x4096fc]
cmp eax, dword [ebp - 0x18]
je 0x4051dc
push eax
call esi
test eax, eax
je 0x4051dc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4051dc
mov eax, dword [0x409700]
cmp eax, dword [ebp - 0x18]
je 0x4051dc
push eax
call esi
test eax, eax
je 0x4051dc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4096f8]
call esi
test eax, eax
je 0x4051f8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4051fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f0f
leave
ret
Function at 0x401080
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov byte [0x5a3360], 1
mov byte [ebp - 1], 1
call fcn.00401000
push eax
push str._slog
push 0x5a3368
call fcn.00524f2f
add esp, 0xc
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push 0x5a3368
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4010d2
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x40110c
cmp eax, 0xc800
jbe 0x40110c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push 0x5a3368
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401b90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00525070
add esp, 0xc
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
xorps xmm0, xmm0
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
movq qword [ebp - 0x10], xmm0
movq qword [ebp - 8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401bfd
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401c1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x401d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00404e01
Function at 0x402860
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xorps xmm0, xmm0
push esi
lea eax, [ebp - 0x24]
xor esi, esi
push eax
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x1c], xmm0
movq qword [ebp - 0x14], xmm0
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x24], 9
mov eax, 1
cmove esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4028b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x5a1ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x9c
xor esi, esi
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.00525070
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 5
jne 0x402909
cmp dword [ebp - 0x98], esi
mov eax, 1
cmova esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0052505f
mov esp, ebp
pop ebp
ret
Function at 0x403d60
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ff78
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5a1ec0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x118], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test eax, eax
je 0x403e69
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x403e69
lea eax, [ebp - 0x114]
push eax
push 0x10008
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x403e6e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 0x114]
mov dword [ebp - 0x11c], 0xff
call edi
mov esi, eax
cmp esi, 0x103
je 0x403e4a
test esi, esi
jne 0x403e5b
push ecx
lea eax, [ebp - 0x110]
mov ecx, esp
push eax
call fcn.00401500
push dword [ebp - 0x114]
mov ecx, ebx
call fcn.00403d60
mov esi, eax
test esi, esi
je 0x403de2
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403e6e
push dword [ebp + 0xc]
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403e6e
mov esi, 0x3f2
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403e92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052505f
mov esp, ebp
pop ebp
ret 8

Function at 0x404440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404455
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404494
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404490
lea ebx, [ebx]
cmp esi, edx
jae 0x404494
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x404480
cmp esi, edx
jb 0x404499
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x404e5d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0040b2ff
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x404e94
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00404eb3
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x409022
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x40906c
call fcn.0040b2ff
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x409069
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4090a5
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x40908e
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x40908e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x4090a3
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40eb0d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a1ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5b50f4]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x40eb59
push 0x553010
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40eb76
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5b50f4], eax
jmp 0x40eb62
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x40eb76
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40ebe3
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40eb91
xor eax, eax
jmp 0x40ebe3
lea eax, [ebp - 0x210]
push eax
call fcn.00527d10
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x40ebc2
push 0x553048
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00528d8e
add esp, 0xc
test eax, eax
jne 0x40eb8d
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00528d8e
add esp, 0xc
test eax, eax
jne 0x40eb8d
lea eax, [ebp - 0x210]
push eax
call fcn.0041382c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052505f
leave
ret
Function at 0x40f38a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x40f3cf
call fcn.0040b2ff
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f3cf
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40f3eb
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d543
mov ebx, eax
test edi, edi
je 0x40f3e9
test esi, esi
je 0x40f3e9
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413f6c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x549d50
call fcn.0052775f
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x413f92
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x413fe6
call fcn.0040a604
push eax
lea ecx, [ebp - 0x10]
call fcn.004014d0
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.005282e3
push eax
call fcn.00401aa0
add esp, 0x14
test edi, edi
je 0x413fd9
push edi
call fcn.00527b00
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401450
mov eax, esi
call fcn.0052772d
ret 8