joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454c38
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454de3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454dc4
mov dl, 1
mov eax, dword [0x412c08]
call fcn.00403368
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040416c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454db3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00442c44
test al, al
je 0x454da6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x454df4
lea eax, [ebp - 0x254]
call fcn.00409790
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454da6
xor eax, eax
push ebp
push 0x454d9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x454e2c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454d88
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x454d88
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454da6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454ca9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00417330
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454dea
lea eax, [ebp - 0x260]
call fcn.0040416c
ret

Function at 0x455718
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x47dbe8]
cmp byte [eax + 0xa5], 0
jne 0x455789
cmp dword [0x47dc00], 0
jne 0x45574a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4556d4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47dc00], eax
cmp dword [0x47dbfc], 0
jne 0x455765
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47dbfc], eax
cmp dword [0x47dc04], 0
jne 0x455789
push esp
push 0
push 0
push 0x455678
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x47dc04], eax
pop edx
ret
Function at 0x455880
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455897
add esp, 0xfffffff0
call fcn.004036bc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b7e8
mov eax, dword [0x47ca04]
cmp word [eax + 2], 0
jne 0x4558bf
mov eax, dword [0x47ca04]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456f70
mov eax, dword [0x47cb3c]
cmp word [eax + 2], 0
jne 0x4558d9
mov eax, dword [0x47cb3c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457168
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4125a4]
call fcn.00403368
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4125a4]
call fcn.00403368
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41dd34]
call fcn.004250e4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x455a60
mov eax, dword [0x47c890]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004254b4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457708
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47c890]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cfa8
test eax, eax
je 0x4559ce
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409170
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cfd0
test eax, eax
je 0x4559e2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004043dc
mov eax, dword [0x47c674]
cmp byte [eax], 0
jne 0x455a16
mov eax, ebx
call fcn.00455b88
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004578e4
mov eax, ebx
call fcn.004582a8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455a56
call fcn.00403714
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455e08
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47dbe8]
cmp dword [eax + 0x30], 0
je 0x455eb2
cmp dword [ebx + 0x94], 0
jne 0x455eac
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455d98
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455eac
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x455e72
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455eac
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414c5c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455e81
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456a14
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456a49
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040425c
jmp 0x456a56
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041c0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457ac0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457b01
mov eax, esi
call fcn.0043e270
test al, al
je 0x457b01
mov eax, dword [ebx + 0x84]
call fcn.0043df6c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457b01
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043df6c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x465fe0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x465fe8
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4661da
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4661f0
mov eax, esi
call fcn.00463e6c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004041c0
lea ecx, [ebp - 0x10]
mov edx, 0x466204
mov eax, esi
call fcn.00463e6c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004041c0
lea ecx, [ebp - 0x14]
mov edx, 0x46621c
mov eax, esi
call fcn.00463e6c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004041c0
lea ecx, [ebp - 0x18]
mov edx, 0x466238
mov eax, esi
call fcn.00463e6c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004041c0
lea ecx, [ebp - 0x1c]
mov edx, 0x466254
mov eax, esi
call fcn.00463e6c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004041c0
lea ecx, [ebp - 0x24]
mov edx, 0x46626c
mov eax, esi
call fcn.00463e6c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408688
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408bd0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x466284
mov eax, esi
call fcn.00463e6c
mov eax, dword [ebp - 0x28]
call fcn.0045d944
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x466294
mov eax, esi
call fcn.00463e6c
mov eax, dword [ebp - 0x2c]
call fcn.0045d944
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4662ac
mov eax, esi
call fcn.00463e6c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408bd0
inc eax
je 0x46617d
lea ecx, [ebp - 0x34]
mov edx, 0x4662ac
mov eax, esi
call fcn.00463e6c
mov eax, dword [ebp - 0x34]
call fcn.00408b94
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a0e0
fstp qword [ebp - 0x3c]
wait
call fcn.0040a444
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x466198
lea ecx, [ebp - 0x40]
mov edx, 0x4662ac
mov eax, esi
call fcn.00463e6c
mov eax, dword [ebp - 0x40]
call fcn.0045d944
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4662bc
mov eax, esi
call fcn.00463e6c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004041c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4661e1
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404190
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404190
ret
Function at 0x46cf6c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x46cfc6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0046cf5c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0045c5b0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0045c1b0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cfcd
lea eax, [ebp - 4]
call fcn.0040416c
ret

Function at 0x47956c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffca0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x360], edx
mov dword [ebp - 0x358], edx
mov dword [ebp - 0x35c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x4796d7
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.0047926c
mov esi, eax
mov dword [ebp - 0x130], 0x128
mov dword [ebp - 0x354], 0x224
lea edx, [ebp - 0x130]
mov eax, esi
call fcn.0047928c
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x47969e
mov dword [ebp - 0x354], 0x224
mov ebx, dword [ebp - 0x128]
test ebx, ebx
jbe 0x47968b
mov edx, ebx
mov eax, 8
call fcn.0047926c
lea edx, [ebp - 0x354]
call fcn.004792cc
lea eax, [ebp - 8]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.004043dc
lea edx, [ebp - 0x358]
mov eax, dword [ebp - 8]
call fcn.00408474
mov eax, dword [ebp - 0x358]
push eax
lea edx, [ebp - 0x35c]
mov eax, dword [ebp - 4]
call fcn.00408474
mov eax, dword [ebp - 0x35c]
pop edx
call fcn.00404770
test eax, eax
jle 0x47968b
lea edx, [ebp - 0x360]
xor eax, eax
call fcn.00402a14
mov edx, dword [ebp - 0x360]
mov eax, dword [ebp - 8]
call fcn.00404578
je 0x47968b
push 0
mov eax, dword [ebp - 0x128]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
lea edx, [ebp - 0x130]
mov eax, esi
call fcn.004792ac
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4795e1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4796de
lea eax, [ebp - 0x360]
mov edx, 3
call fcn.00404190
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404190
ret
Function at 0x479b38
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x14], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x479c77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0040416c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040462c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x479c4e
mov eax, dword [ebp - 0xc]
call fcn.004083b4
mov ebx, eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x479c4e
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x479c88
push ebx
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0x10], 0
je 0x479bf3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.004071d8
mov edx, dword [ebp - 0x10]
mov dx, word [edx]
call fcn.004071cc
lea ecx, [ebp - 0x14]
mov edx, 8
call fcn.00408b6c
push 0x479cac
push dword [ebp - 0x14]
push 0x479cc8
lea eax, [ebp - 0x118]
mov edx, 3
call fcn.004044ec
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
call fcn.004091cc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479c44
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.00409320
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0040270c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479c7e
lea eax, [ebp - 0x118]
call fcn.0040416c
lea eax, [ebp - 0x14]
call fcn.0040416c
lea eax, [ebp - 4]
call fcn.0040416c
ret

Function at 0x47a240
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040461c
xor eax, eax
push ebp
push 0x47a2b4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00402a14
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00408fd0
mov eax, dword [ebp - 8]
call fcn.0047956c
push 0x3e8
call sub.kernel32.dll_Sleep_1
push 0xa
mov eax, dword [ebp - 4]
call fcn.0040462c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a2bb
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404190
ret
Function at 0x474f90
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 0x474fd2
call fcn.0047a915
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x474fd2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x474fc9
xor eax, eax
jmp 0x474fda
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00474fe0
pop edi
pop esi
pop ebx
ret 4

Function at 0x47ae45
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 0x47ae73
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ae91
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047adab
jmp 0x47ae91
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47ae91
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047adab
test edi, edi
mov eax, edi
jne 0x47ae7b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012a9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4012e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4012e0
lea ebx, [ebx]
cmp esi, edx
jae 0x4012e4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4012d0
cmp esi, edx
jb 0x4012eb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401e30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d419
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x455440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.Storage.0
mov byte [edi + 4], 0
mov dword [ebp - 4], 0
lea esi, [edi + 8]
mov ebx, dword [ebp + 8]
mov dword [edi], vtable.Xml.0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.00405c60
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
lea esi, [edi + 0xc]
mov dword [ebp - 0x18], esi
call fcn.004015a0
mov edx, eax
xor ecx, ecx
test edx, edx
mov dword [ebp + 8], edx
setne cl
test ecx, ecx
jne 0x401eca
push 0x80004005
push 0xcd
mov edx, str.ATL::CSimpleStringT_char_0_::CSimpleStringT
mov ecx, str.C:Program_FilesMicrosoft_Visual_Studio_12.0VC_atlmfcinclude_atlsimpstr.h
call fcn.0040bca0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401ef0
push esi
mov ecx, ebx
call fcn.0040c9a0
jmp 0x401ef3
mov eax, dword [ebp + 0xc]
push dword [eax]
lea ecx, [edi + 0x10]
call fcn.004115c0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409be0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ee60
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x455440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.C:UsersDefaultAppdataLocalYandexYandexBrowserApplication_browser.exe
lea ecx, [ebp - 0x14]
mov byte [esi], 0
call fcn.004051f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00405110
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x409c51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 4
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
mov byte [esi], al
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x409c96
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
mov esp, ebp
pop ebp
ret
Function at 0x40bca0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f5e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
mov eax, dword [0x455440]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], vtable._com_error.0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x50], 0
push dword [ebp + 8]
push edx
push ecx
lea ecx, [esp + 0x30]
call fcn.0040b850
mov byte [esp + 0x50], 1
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
lea ecx, [esp + 0x34]
call fcn.00414960
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
call fcn.0040b970
mov esi, eax
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x14]
call fcn.0040c3c0
push eax
lea ecx, [esp + 0x14]
call fcn.00405110
mov byte [esp + 0x50], 3
mov edx, eax
push esi
lea ecx, [esp + 0xc]
call fcn.004053a0
add esp, 4
lea eax, [esp + 8]
push 0x4535b8
push eax
call fcn.00429b78
int3

Function at 0x40c7b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f828
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x455440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c8b2
mov ecx, dword [esi]
lea eax, [ebp - 0x14]
sub ecx, 0x10
mov dword [ebp - 0x18], eax
call fcn.00405c60
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00405110
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40c837
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.0040ce80
test eax, eax
je 0x40c852
lea ecx, [ebp - 0x10]
call fcn.0040c7b0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40c884
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40c872
movzx eax, ax
or eax, 0x80070000
push eax
push 0x36
mov edx, str.Path::EnsureExists
mov ecx, str.path.cpp
call fcn.0040bca0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40c8b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret