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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1354
call fcn.0047a9b0
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1024
lea eax, [ebp - 0x1350]
mov edi, ecx
push 0
push eax
call fcn.00465300
add esp, 0xc
mov dword [ebp - 0x1348], 3
lea eax, [ebp - 0x132c]
mov byte [ebp - 0x1344], 0
push 0x4a1728
push 0x400
push eax
call fcn.0046b918
add esp, 0xc
lea eax, [ebp - 0x132c]
push eax
lea eax, [ebp - 0xb2c]
push 0x400
push eax
call fcn.0046b918
add esp, 0xc
lea eax, [ebp - 0xb2c]
push str._tmp
push 0x400
push eax
call fcn.0046b97c
add esp, 0xc
mov byte [ebp - 0x1332], 0
lea ecx, [ebp - 0x1350]
push 0
call fcn.00402dd0
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [ebp - 0x198]
push 0xc8
push eax
push 0x400
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
call esi
lea ecx, [ebp - 0x198]
call fcn.00411400
push 0xc8
lea eax, [ebp - 0x328]
push eax
push 0x401
push edi
call ebx
push eax
call esi
lea ecx, [ebp - 0x328]
call fcn.00411400
cmp dword [0x4a277c], 3
jne 0x447e39
mov esi, str.Key_V3
mov eax, str.Name_V3
jmp 0x447e43
mov esi, 0x48d984
mov eax, str.Name
lea ecx, [ebp - 0x198]
push ecx
push eax
push str.License
lea ecx, [ebp - 0x1350]
call fcn.00403280
lea eax, [ebp - 0x328]
push eax
push esi
push str.License
lea ecx, [ebp - 0x1350]
call fcn.00403280
push 0
push 0
push 0xf0
push 0x433
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
mov edx, 0x48d258
mov ecx, 0x48d254
cmovne ecx, edx
sete byte [0x49f978]
push ecx
push str.SkipLicense
push 0x48cf10
lea ecx, [ebp - 0x1350]
call fcn.00403280
cmp byte [ebp - 0x1332], 0
je 0x447ed4
mov eax, dword [ebp - 0x1330]
test eax, eax
je 0x447ed4
push eax
call fcn.0046b52b
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004632a0
mov esp, ebp
pop ebp
ret
Function at 0x455ef0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 8]
push eax
push 0x455ca0
push 0
push 0x93
push dword [0x4a090c]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov esi, eax
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x455f86
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push edi
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
nop word [eax + eax]
cmp eax, 0xffffffff
je 0x455f84
lea eax, [ebp - 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x455f70
lea eax, [ebp - 0x20]
push eax
call ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x455f50
pop edi
pop ebx
mov edx, dword [ebp + 0x1c]
pop esi
cmp edx, 0x10
jb 0x455fb7
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x455fad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x455fc5
push edx
push ecx
call fcn.004632e1
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004632a0
mov esp, ebp
pop ebp
ret
call fcn.0046851b
int3
Function at 0x45a080
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
push 0
push 0
push 0xf0
push 0x453
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call esi
push 0
push 0
push 0xf0
cmp eax, 1
push 0x419
push ebx
sete byte [0x49f9c8]
call edi
push eax
call esi
push 0
push 0
push 0xf0
cmp eax, 1
push 0x44e
push ebx
sete byte [0x49f9d0]
call edi
push eax
call esi
push 0
push 0
push 0xf0
cmp eax, 1
push 0x491
push ebx
sete byte [0x49f9d1]
call edi
push eax
call esi
pop edi
cmp eax, 1
pop esi
sete byte [0x49f9d2]
pop ebx
ret
Function at 0x45a110
Capabilities:
Capture webcam image
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
jne 0x45a209
lea eax, [ebp - 0xc]
push 0x123
push eax
call fcn.004643b0
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 8
mov ecx, 0x487d18
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push 2
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 4]
call fcn.004634ea
push dword [ebp - 0xc]
call fcn.004634ea
add esp, 8
push 0
push 0x48b
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x3f2
push ebx
call edi
push eax
call esi
push 1
push 0x482
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 1
push 0x483
push ebx
call edi
push eax
call esi
push 2
push 0xffffffffffffffff
push 0x100c
push 0x483
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
setns cl
push ecx
push 1
push ebx
call edi
push eax
call esi
push 1
push 0x419
push ebx
call edi
push eax
call esi
push 1
push 0x453
push ebx
call edi
push eax
call esi
push 1
push 0x44e
push ebx
call edi
push eax
call esi
push 1
push 0x491
push ebx
call edi
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 1
jne 0x45a304
lea eax, [ebp - 0xc]
push 0x168
push eax
call fcn.004643b0
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 8
mov ecx, 0x487d18
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push 2
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 4]
call fcn.004634ea
push dword [ebp - 0xc]
call fcn.004634ea
add esp, 8
push 5
push 0x48b
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 5
push 0x3f2
push ebx
call edi
push eax
call esi
push 0xc80000
push 0
push 0x401
push 0x3f2
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call esi
push 0
push 0
push 0x402
push 0x3f2
push ebx
call edi
push eax
call esi
push 0
push 0x482
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 0
push 0x483
push ebx
call edi
push eax
call esi
push 0
push 1
push ebx
call edi
push eax
call esi
push 0
push 0x419
push ebx
call edi
push eax
call esi
push 0
push 0x453
push ebx
call edi
push eax
call esi
push 0
push 0x44e
push ebx
call edi
push eax
call esi
push 0
push 0x491
push ebx
call edi
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4808bc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x49f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, dword [ebp + 8]
mov ecx, ebx
push edi
mov dword [ebp - 0x10], ebx
call fcn.00402240
lea eax, [edi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0x18]
call fcn.00402240
lea eax, [edi + 0x30]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebx + 0x30]
call fcn.00402240
mov byte [ebp - 4], 2
lea esi, [ebx + 0x60]
mov eax, dword [edi + 0x48]
lea ecx, [esi + 0x1c]
mov dword [ebx + 0x48], eax
movzx eax, byte [edi + 0x4c]
mov byte [ebx + 0x4c], al
mov eax, dword [edi + 0x50]
mov dword [ebx + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [ebx + 0x54], eax
mov eax, dword [edi + 0x58]
mov dword [ebx + 0x58], eax
movzx eax, byte [edi + 0x5c]
mov byte [ebx + 0x5c], al
movzx eax, byte [edi + 0x5d]
mov byte [ebx + 0x5d], al
mov dword [ebp + 8], esi
mov eax, dword [edi + 0x60]
mov dword [esi], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x70]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x74]
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 0x78]
mov byte [esi + 0x18], al
lea eax, [edi + 0x7c]
push eax
call fcn.00402240
lea eax, [edi + 0x94]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x34]
call fcn.0045feb0
lea eax, [edi + 0xa0]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebx + 0xa0]
call fcn.00461d90
lea eax, [edi + 0x254]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebx + 0x254]
call fcn.00402240
lea eax, [edi + 0x26c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebx + 0x26c]
call fcn.00402240
lea eax, [edi + 0x284]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebx + 0x284]
call fcn.00402240
lea eax, [edi + 0x29c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebx + 0x29c]
call fcn.00402240
mov eax, dword [edi + 0x2b4]
mov dword [ebx + 0x2b4], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x46302d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x463062
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi]
xor cl, cl
add eax, 8
xchg byte [eax], cl
mov edx, dword [esi]
xor ecx, ecx
lea eax, [edx + 0xc]
xchg dword [eax], ecx
push 0
push 0
mov dword [edx + 0x18], 0
push dword [esi]
mov byte [esi + 8], 0
push dword [ebp + 8]
push 0
push 0
call fcn.0046cb07
add esp, 0x18
mov dword [esi + 4], eax
pop esi
pop ebp
ret 4

Function at 0x464200
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [eax*4 + 0x49f8c0], 0
je 0x464222
inc eax
cmp eax, 0xffffffff
jb 0x464212
push 0
mov dword [0x4a0078], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4a0908], eax
mov dword [0x4a090c], eax
mov eax, dword [0x4a007c]
test eax, eax
je 0x464249
push 0x487d18
call eax
push 0xa
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0
push eax
push 0x59
xorps xmm0, xmm0
push 0x400
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46427e
lea eax, [ebp - 0x18]
push eax
call fcn.00464360
add esp, 4
mov ecx, eax
jmp 0x464284
mov ecx, dword [0x49f014]
cmp ecx, dword [0x4a0078]
push 0
sbb eax, eax
mov dword [ebp - 0x24], 0
and eax, ecx
mov dword [ebp - 0x20], 0
push str.lang
mov dword [0x49f014], eax
mov dword [ebp - 0x1c], 0
call fcn.00463fd0
add esp, 8
lea ecx, [ebp - 0x24]
push eax
call fcn.00464450
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x464321
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4642d9
mov dword [0x4a090c], eax
jmp 0x464321
mov eax, dword [0x49f014]
test eax, eax
je 0x464319
cmp eax, dword [0x4a0078]
jae 0x464319
push 0x4825ec
push dword [eax*4 + 0x49f8c0]
call fcn.00463fd0
add esp, 8
lea ecx, [ebp - 0x24]
push eax
call fcn.00464450
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x464321
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x4642d2
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x4a090c]
cmp eax, dword [0x4a0908]
push ebx
push dword [ebp - 0x1c]
setne bl
call fcn.004634ea
push dword [ebp - 0x24]
call fcn.004634ea
mov ecx, dword [ebp - 4]
add esp, 8
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004632a0
mov esp, ebp
pop ebp
ret
Function at 0x46797c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0046770d
add edi, dword [ecx + 0x458d6ae9]
test al, 0x50
call fcn.0046771d
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004676d2
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4679fb
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0046770d
inc eax
rcl eax, cl
push es
lea eax, [ebp - 0x40]
push eax
call fcn.0046771d
push eax
push esi
push dword [ebp + 8]
call fcn.004676d2
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0046770d
invalid

Function at 0x468b72
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x72a5b], al
inc dword [eax]
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49

Function at 0x471c4f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00471912

Function at 0x471c5a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00471a93
Function at 0x402b00
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, ecx
test edx, edx
jne 0x402b12
lea eax, [edx + 0xd]
pop esi
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x402b20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402b20
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x402ba0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, ecx
test ebx, ebx
jne 0x402bb4
pop ebp
lea eax, [ebx + 0xd]
pop ebx
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
lea ebx, [ebx]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402bc5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x402bc0
push esi
push ebx
push 7
push 0
push dword [esp + 0x24]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4032e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x40f048]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x22c]
mov eax, dword [ebp + 4]
push esi
push edi
or eax, 0x2001f
push eax
push ecx
push dword [ebp]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.00403220
mov esi, eax
test esi, esi
jne 0x4033cc
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
call edi
test eax, eax
jne 0x4033a0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.004032e0
mov esi, eax
test esi, esi
jne 0x4033cc
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
call edi
test eax, eax
je 0x403367
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4033b7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
push dword [esp + 0x1c]
mov ecx, ebp
mov dword [esp + 0x18], 0
call fcn.004034a0
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4033db
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.00408ebc
add esp, 0x224
ret 4

Function at 0x4034a0
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
test edi, edi
je 0x403505
cmp dword [edi], 0
mov esi, dword [esi]
je 0x4034e5
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4034fb
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4034fb
push 0
push dword [edi]
push 0
push 0
push dword [esp + 0x1c]
push esi
call eax
pop edi
pop esi
ret 4
cmp dword [edi + 4], 0
je 0x4034fb
push dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
cmp byte [0x40ffe8], 0
jne 0x403545
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403537
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40ffe4], eax
mov byte [0x40ffe8], 1
jmp 0x40354a
mov eax, dword [0x40ffe4]
mov byte [0x40ffe8], 1
jmp 0x40354a
mov eax, dword [0x40ffe4]
test eax, eax
je 0x403560
push 0
push dword [esi + 4]
push dword [esp + 0x14]
push dword [esi]
call eax
pop edi
pop esi
ret 4
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
Function at 0x403f80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409a56
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x40f048]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x420], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x40402c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x40402c
call fcn.004023e0
mov esi, eax
jmp 0x404128
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40404f
call fcn.004023e0
jmp 0x40411b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x40406d
call fcn.004023e0
jmp 0x40411b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40408e
mov esi, 0x8007000e
jmp 0x40411d
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.00402390
jmp 0x4040c4
mov dword [ebp - 4], 1
cmp dword [ebp - 0x420], 0
jne 0x4040db
mov esi, 0x8007000e
jmp 0x40411d
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4040fb
call fcn.004023e0
jmp 0x40411b
mov eax, dword [ebp - 0x420]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x420]
lea ecx, [ebp - 0x434]
call fcn.00403e20
mov esi, eax
test edi, edi
je 0x404128
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x404141
lea ecx, [ebp - 0x420]
call fcn.00402340
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 - 0x14]
xor ecx, ebp
call fcn.00408ebc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407d00
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
je 0x407d13
mov dword [ebx], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x407d21
mov dword [eax], 0
lea eax, [esp + 0xc]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x407d87
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x407d7f
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x40b448
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407d7f
test ebx, ebx
mov ecx, dword [esp + 0xc]
je 0x407d72
mov eax, dword [ecx + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407d7f
mov ecx, dword [ecx + 0xc]
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x408390
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40842d
mov eax, dword [esp + 4]
test eax, eax
je 0x40843c
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40842d
cmp byte [esi], 0
je 0x40842d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4083f2
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x40842d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408407
sub eax, edx
cmp byte [eax + esi - 1], 0x2f
je 0x40842d
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x408418
mov ax, word [0x40b448]
push edi
mov edi, esi
mov word [edi], ax
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x40843c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret