joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438ab0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x208], eax
push 0
push 0x1c
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5dbba0
lea ecx, [esp + 4]
push ecx
push str._s_s_
push 0x103
push 0x104
push 0x5e0580
call fcn.005403d0
push 0x5e0580
push str.Mk_AppData_s
call dword [0x5e1244]
add esp, 0x20
push 0x5e0580
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x438b3f
push eax
push 0x5e0580
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x438b3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateDirectory_err_d
call dword [0x5e1244]
add esp, 8
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x20c
ret

Function at 0x438b60
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.00542e50
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x438c5b
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x438bf2
mov eax, dword [esp + 8]
test eax, eax
jne 0x438bd2
mov eax, 3
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x118
ret
jbe 0x438c86
mov eax, 4
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x118
ret
cmp eax, 6
jne 0x438c86
mov eax, dword [esp + 8]
test eax, eax
jne 0x438c1d
mov eax, 5
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x118
ret
cmp eax, 1
jne 0x438c3c
mov eax, 6
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x118
ret
cmp eax, 2
jne 0x438c86
mov eax, 7
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x118
ret
cmp eax, 1
jne 0x438c86
cmp dword [esp + 4], 4
jne 0x438c86
cmp dword [esp + 8], 0x5a
sbb eax, eax
add eax, 2
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0053fb0e
add esp, 0x118
ret
Function at 0x43ae50
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1b10
call fcn.00544bc0
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x1b0c], eax
push ebx
push ebp
push esi
push edi
push 0x1900
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00542e50
push str.bullet.dct
push 0x5e0580
push 0x59acec
push 0x103
lea ecx, [esp + 0x1930]
push 0x104
push ecx
call fcn.005403d0
add esp, 0x24
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea edx, [esp + 0x192c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43aef6
push 0
lea eax, [esp + 0x14]
push eax
push 0x1900
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43af0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_file_err_d
call dword [0x5e1244]
add esp, 8
mov edi, 0x5cb780
call fcn.00421f70
lea ebx, [esp + 0x14]
mov ebp, 0x64
mov edi, edi
cmp dword [ebx + 4], 0
je 0x43af4e
test ebx, ebx
je 0x43af4e
push 0x40
call fcn.00540440
add esp, 4
test eax, eax
je 0x43af4e
mov edi, eax
mov ecx, 0x10
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push eax
mov esi, 0x5cb768
call fcn.00421e10
add ebx, 0x40
sub ebp, 1
jne 0x43af20
mov ecx, dword [esp + 0x1b1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0053fb0e
add esp, 0x1b10
ret

Function at 0x43af70
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1b10
call fcn.00544bc0
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x1b0c], eax
push ebx
push esi
push 0x1900
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00542e50
mov edx, dword [0x5cb778]
add esp, 0xc
xor ebx, ebx
test edx, edx
je 0x43afd6
lea eax, [esp + 0xc]
push edi
nop
cmp ebx, 0x64
jge 0x43afd5
mov esi, dword [edx]
test esi, esi
je 0x43afce
cmp dword [esi + 4], 0
je 0x43afce
mov edi, eax
mov ecx, 0x10
inc ebx
rep movsd dword es:[edi], dword [esi]
add eax, 0x40
mov edx, dword [edx + 4]
test edx, edx
jne 0x43afb0
pop edi
push str.bullet.dct
push 0x5e0580
push 0x59acec
push 0x103
lea ecx, [esp + 0x191c]
push 0x104
push ecx
call fcn.005403d0
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x1924]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43b07d
push 0
lea eax, [esp + 0xc]
push eax
push 0x1900
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43b05f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Save_macro:_WriteFile_err_d
call dword [0x5e1244]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0c]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x1b10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Save_macro:_CreateFile_err_d
call dword [0x5e1244]
mov ecx, dword [esp + 0x1b1c]
add esp, 8
pop esi
pop ebx
xor ecx, esp
call fcn.0053fb0e
add esp, 0x1b10
ret
Function at 0x43b6f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x139f0
call fcn.00544bc0
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x139ec], eax
push ebx
push esi
push edi
push 0x137e0
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00542e50
push str.pro.dct
push 0x5e0580
push 0x59acec
push 0x103
lea ecx, [esp + 0x1380c]
push 0x104
push ecx
call fcn.005403d0
add esp, 0x24
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea edx, [esp + 0x13808]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43b7cc
lea eax, [esp + 0xc]
push eax
push esi
xor edi, edi
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x137e0
jne 0x43b79d
push ebx
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x43b7b2
cmp dword [esp + 0xc], 0x137e0
je 0x43b7e1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x139ec]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x139f0
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_pro_file_err_d
call dword [0x5e1244]
add esp, 8
push ebp
mov edi, 0x5cb798
mov dword [esp + 0x10], ebx
call fcn.00421f70
lea ebx, [esp + 0x14]
mov ebp, 0x14
lea esp, [esp]
cmp dword [ebx + 4], 0
je 0x43b83d
cmp dword [ebx], 0xfcfb1094
jne 0x43b83d
test ebx, ebx
je 0x43b839
push 0xf98
call fcn.00540440
add esp, 4
test eax, eax
je 0x43b839
mov edi, eax
mov ecx, 0x3e6
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push eax
mov esi, 0x5cb798
call fcn.00421e10
inc dword [esp + 0x10]
add ebx, 0xf98
sub ebp, 1
jne 0x43b800
mov ecx, dword [esp + 0x139fc]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053fb0e
add esp, 0x139f0
ret
Function at 0x43b870
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x139f0
call fcn.00544bc0
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x139ec], eax
push ebx
push 0x137e0
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00542e50
mov ebx, dword [0x5cb7a8]
add esp, 0xc
xor edx, edx
test ebx, ebx
je 0x43b9a1
push esi
lea eax, [esp + 0xc]
push edi
cmp edx, 0x14
jge 0x43b8da
mov esi, dword [ebx]
test esi, esi
je 0x43b8d3
cmp dword [esi + 4], 0
je 0x43b8d3
mov edi, eax
mov ecx, 0x3e6
inc edx
add eax, 0xf98
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x43b8b3
test edx, edx
jle 0x43b99f
push str.pro.dct
push 0x5e0580
push 0x59acec
push 0x103
lea ecx, [esp + 0x13800]
push 0x104
push ecx
call fcn.005403d0
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x13808]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43b98a
push 0
lea eax, [esp + 0x10]
push eax
push 0x137e0
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43b96b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Save_pro:_WriteFile_err_d
call dword [0x5e1244]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x139ec]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x139f0
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Save_pro:_CreateFile_err_d
call dword [0x5e1244]
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x139f0]
pop ebx
xor ecx, esp
call fcn.0053fb0e
add esp, 0x139f0
ret

Function at 0x43b9c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
mov edi, dword [0x5e12b8]
test edi, edi
je 0x43ba4e
push esi
push str.curid.dct
push 0x5e0580
push 0x59acec
push 0x103
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.005403d0
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43ba4d
push 0
lea edx, [esp + 0xc]
push edx
push 4
add edi, 4
push edi
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x210]
pop edi
xor ecx, esp
call fcn.0053fb0e
add esp, 0x210
ret
Function at 0x43ba70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push str.curid.dct
push 0x5e0580
push 0x59acec
push 0x103
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.005403d0
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43bafb
push 0
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x214]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.0053fb0e
add esp, 0x214
ret
Function at 0x440eb0
Capabilities:
Create thread
Link many functions at runtime

Disassembly:
push ecx
push edi
push str.Lowerdev.dll
mov dword [0x5e12e8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x440f20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenHidDevice
push eax
call edi
mov ecx, dword [esi + 4]
push str.SetFeature
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.GetFeature
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.GetProductString
push eax
call edi
mov ecx, dword [esi + 4]
push str.GetInputReport
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 4]
push str.GetDevVersion
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x1c], eax
cmp dword [esi + 4], 0
je 0x440fc0
cmp dword [esi + 8], 0
je 0x440fc0
cmp dword [esi + 0xc], 0
je 0x440fc0
cmp dword [esi + 0x18], 0
je 0x440fc0
cmp dword [esi + 0x1c], 0
je 0x440fc0
push 0
push 0x1f40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov dword [0x5e12ec], eax
call edi
push 0
push 0
push 0
push 0
mov dword [0x5e12f4], eax
call edi
push 0
push 0
push 0
push 0
mov dword [0x5e12f8], eax
call edi
mov dword [0x5e12fc], eax
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x440760
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x440fb8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop ecx
ret
push str.load_dll_failed.
call dword [0x5e1244]
add esp, 4
xor eax, eax
pop edi
pop ecx
ret

Function at 0x4439f2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004548a7
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x443a2b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0044363e
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 0x44b5fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x44b642
call fcn.004548a7
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44b642
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44b65e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044b173
mov esi, eax
test edi, edi
je 0x44b65c
test ebx, ebx
je 0x44b65c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44be5f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x55b423
call fcn.00542baf
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44be84
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x44beca
lea ecx, [ebp - 0x10]
call fcn.00403c90
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00486ab5
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403c70
mov eax, esi
call fcn.00542c87
ret 8

Function at 0x45278d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4527d5
call fcn.004548a7
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4527d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x452818
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x452801
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x452801
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x452815
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45d531
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5c96a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi - 0x60]
mov ebx, 0x8000
cmp eax, 9
ja 0x45d56a
push 0x12
call esi
mov ecx, ebx
test cx, ax
je 0x45d591
cmp dword [0x5cde38], 0
jne 0x45d591
lea eax, [edi - 0x41]
cmp eax, 0x19
jbe 0x45d584
push 0x12
call esi
test bx, ax
je 0x45d588
mov eax, edi
jmp 0x45d600
push edi
call fcn.00542310
pop ecx
jmp 0x45d600
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00542e50
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
jne 0x45d5ba
call fcn.00442ff0
call fcn.00453321
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push edi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053fb0e
leave
ret 4
Function at 0x46d40d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
movzx ebx, word [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x46d427
call fcn.00442ff0
call fcn.004548a7
mov esi, dword [eax + 0xc]
push 0xf1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x46d447
xor eax, eax
jmp 0x46d562
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x46d440
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x46d440
movzx eax, word [esi + 6]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00441ee5
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x46d422
cmp dword [ebp + 0x10], 0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
push eax
lea ebx, [ecx + 6]
lea edx, [eax + 6]
push ebx
push edx
je 0x46d4a4
mov ecx, edi
call fcn.00465f90
jmp 0x46d4a9
call fcn.00465e7a
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 4], 0
jne 0x46d4bb
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
cmp dword [edi + 0xbe0], 0
jne 0x46d4d6
push dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x310]
test eax, eax
je 0x46d54e
mov eax, dword [edi + 0xad0]
mov dword [ebp + 0xc], eax
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 6]
jae 0x46d525
lea eax, [esi + 8]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 8]
mov dword [ecx + ebx*4], eax
jne 0x46d518
test eax, eax
jbe 0x46d518
push eax
mov ecx, 0x5c62c4
call fcn.00473517
mov ecx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
mov dword [eax], ecx
movzx eax, word [esi + 6]
add dword [ebp - 4], 2
inc ebx
cmp ebx, eax
jl 0x46d4ef
mov eax, dword [ebp + 8]
mov dword [edi + 0xbe0], eax
movzx ecx, word [esi + 6]
mov eax, dword [edi]
push 1
push ecx
push dword [ebp - 8]
mov ecx, edi
call dword [eax + 0x318]
mov ebx, eax
test ebx, ebx
jne 0x46d54e
and dword [edi + 0xbe0], eax
push dword [ebp - 8]
call fcn.00441f1f
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x472f15
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x473056
push esi
push edi
push 0x577bc0
call fcn.00455cf7
mov edi, eax
neg edi
sbb edi, edi
inc edi
cmp dword [ebp + 8], 0
je 0x472fa5
mov esi, dword [ebx + 0x168]
jmp 0x472f91
mov eax, esi
mov edi, dword [eax + 8]
mov esi, dword [esi]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x472f91
push edi
call fcn.00448211
push eax
push 0x5c7038
call fcn.00455d15
pop ecx
pop ecx
test eax, eax
je 0x472f91
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x178]
test eax, eax
jle 0x472f91
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
jne 0x472f51
lea ecx, [ebx + 0x164]
call fcn.0045272b
jmp 0x473054
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 8], eax
test eax, eax
je 0x473054
jmp 0x472fbb
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebx + 0xc8]
call fcn.004ad14b
mov esi, dword [eax]
test esi, esi
jne 0x472fd4
xor ebx, ebx
jmp 0x472fd7
mov ebx, dword [esi + 0x20]
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47304a
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x47304a
test edi, edi
je 0x47301c
push esi
push 0x5c7038
call fcn.00455d15
mov edx, dword [eax]
pop ecx
pop ecx
mov ecx, eax
call dword [edx + 0x180]
push eax
push 0x581f44
call fcn.00455d15
pop ecx
pop ecx
test eax, eax
je 0x47304a
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp - 4]
push 0
lea eax, [ebp + 8]
add esi, 0x164
push eax
mov ecx, esi
call fcn.004724cc
test eax, eax
jne 0x47304a
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00472437
cmp dword [ebp - 8], 0
jne 0x472fb8
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47757d
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5c96a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.0041e4a0
mov ebx, eax
cmp ebx, esi
je 0x4775ea
lea ecx, [ebp - 0x20c]
call fcn.0041e500
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053fb0e
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x477608
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x20c]
call fcn.0047757d
cmp eax, esi
jne 0x47764f
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], 0x100
call ebx
test eax, eax
je 0x4775f2
lea ecx, [ebp - 0x20c]
call fcn.0041e500
push dword [ebp - 0x214]
mov ecx, edi
call fcn.00477080
lea ecx, [ebp - 0x20c]
mov esi, eax
call fcn.0041e500
mov eax, esi
jmp 0x4775d9
Function at 0x47ab01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x5cdba0], 0
mov dword [ebp - 4], ecx
jne 0x47ab17
xor eax, eax
jmp 0x47ab51
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x47ab27
call fcn.004548a7
mov esi, dword [eax + 0xc]
push edi
push dword [0x5ce920]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x47ab4d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x47ab55
xor eax, eax
pop edi
pop esi
leave
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x47ab73
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x47ab4f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0047aa23
mov esi, eax
jmp 0x47ab65