joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438bae
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x438be6
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x438bf2
mov eax, dword [esi + 0x5c]
jmp 0x438c3b
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x438c39
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x438c17
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x438bfb
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x439108
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x20000013
push dword [esi + 4]
mov dword [ebp - 4], 4
call fcn.004381b6
add esp, 0x14
test eax, eax
je 0x439146
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x43914a
cmp eax, 0x12c
jae 0x43914a
mov al, 1
jmp 0x439160
add eax, 0xd3c0
or eax, 0x80040000
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
leave
ret
Function at 0x439314
Capabilities:
Delete file

Disassembly:
mov eax, 0x464c28
call fcn.0043c280
sub esp, 0x2c8
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.00439514
test al, 0x10
pop ecx
je 0x439468
lea eax, [ebp + 8]
push 0x479cb4
push eax
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x10], 1
call 0x43949b
mov eax, dword [eax + 8]
add esp, 0xc
test eax, eax
jne 0x43936c
mov eax, 0x467588
lea ecx, [ebp - 0x2d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.0040125c
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x43940b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp dword [ebp - 0x10], 0
je 0x439400
lea eax, [ebp - 0x2a8]
push 0x476d64
push eax
call ebx
test eax, eax
je 0x4393ed
lea eax, [ebp - 0x2a8]
push 0x479cbc
push eax
call ebx
test eax, eax
je 0x4393ed
sub esp, 0x28
lea ecx, [ebp - 0x2a8]
mov eax, esp
mov dword [ebp - 0x10], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call 0x43949b
add esp, 0xc
call fcn.00439314
add esp, 0x28
lea eax, [ebp - 0x2d4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x10], eax
jmp 0x43939f
test esi, esi
je 0x43940b
push edi
call esi
or dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x439417
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x43943e
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.00413799
lea eax, [ebp - 0x5c]
push 0x46c538
push eax
call fcn.0043c99a
cmp dword [ebp - 0x14], 0xffffffff
je 0x43944d
test esi, esi
je 0x43944d
push dword [ebp - 0x14]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x439474
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43944d
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x5c]
call fcn.00413799
lea eax, [ebp - 0x5c]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, 0x464c53
call fcn.0043c280
sub esp, 0x2c
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push 0
mov ebx, 0x4675b8
push dword [ebp + 0xc]
mov edi, 0x4675b0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], edi
call fcn.00401cec
push dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
call fcn.00404b40
mov esi, dword [ebp + 8]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.00401cec
mov dword [ebp - 0x10], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x439514
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
test eax, eax
jne 0x43952a
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43954f
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413799
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
pop esi
leave
ret
Function at 0x43a820
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [ebp - 4], eax
je 0x43a872
push eax
call fcn.0043c844
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43a872
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4764a4
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x43a876
xor al, al
jmp 0x43a8d7
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
pop edi
pop esi
test eax, eax
je 0x43a8d5
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0043c844
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x43a8d5
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x43a8c3
mov al, 1
pop ebx
leave
ret 4
Function at 0x451380
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0xd0]
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0xd4]
lea ecx, [esp + 0x10]
push 2
push ecx
mov edx, dword [edi]
push edx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov eax, 0xa
push 0xa0
add ecx, eax
sub ebp, eax
lea eax, [esp + 0x30]
mov dword [esp + 0x14], ecx
push eax
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x2c], 0
je 0x45152f
push 0x47e390
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ebx
call ebp
push 0xffffffffffffffec
push ebx
mov esi, eax
call ebp
push 0
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [esp + 0x20]
mov ecx, dword [edi]
push eax
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
sub edx, eax
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
shr esi, 0x10
sub edx, ecx
and esi, 0xff7faffc
push edx
push eax
or esi, 0x50000000
push ecx
lea eax, [esp + 0x4c]
push esi
push eax
push str.STATIC
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x45152f
mov ecx, dword [edi]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x31
push ecx
call ebp
push 1
push eax
push 0x30
push esi
mov dword [esp + 0x38], eax
call ebp
push 0x4512c0
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push edi
push str.PROP_STAT_PSKIN
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_SetPropW]
push ebp
push str.PROP_STAT_OLDPROC
push esi
call dword [sym.imp.USER32.dll_SetPropW]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
je 0x451504
mov edx, dword [esp + 0x28]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x30]
push eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push ebp
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 2
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [edi + 0x14c]
push edi
push esi
call fcn.00451540
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret
Function at 0x453200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x466827
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x4675bc]
push ebp
push esi
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x4675b8
mov dword [esp + 0x30], 0x4675b0
lea esi, [esp + eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x40], 1
test eax, eax
je 0x453259
add eax, 4
jmp 0x45325b
xor eax, eax
push eax
lea ecx, [esp + 0x18]
call fcn.00453720
lea ecx, [esp + 0x24]
call fcn.004485f0
push 0
lea ecx, [esp + 0x34]
call fcn.00448630
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x40], 2
test ebp, ebp
je 0x45328e
lea ecx, [ebp - 1]
jmp 0x453290
xor ecx, ecx
mov edx, dword [esp + 0x18]
mov eax, 0x467588
test edx, edx
je 0x45329f
mov eax, edx
mov ax, word [eax + ecx*2]
cmp ax, 0x5c
je 0x453314
test ebp, ebp
je 0x4532b2
lea ecx, [ebp - 1]
jmp 0x4532b4
xor ecx, ecx
test edx, edx
mov eax, 0x467588
je 0x4532bf
mov eax, edx
cmp word [eax + ecx*2], 0x2f
je 0x453314
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 8]
lea edi, [esi + 4]
test eax, eax
jne 0x4532d9
mov eax, 0x467588
cmp word [eax], 0x5c
je 0x453302
mov eax, dword [edi + 4]
test eax, eax
jne 0x4532eb
mov eax, 0x467588
cmp word [eax], 0x2f
je 0x453302
test ebp, ebp
je 0x453302
push 0x5c
push 1
lea ecx, [esp + 0x1c]
call fcn.00401ef6
mov ecx, dword [0x4675ac]
neg esi
sbb esi, esi
push ecx
and esi, edi
push 0
push esi
jmp 0x453357
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 8]
lea esi, [eax + 4]
test ecx, ecx
jne 0x453327
mov ecx, 0x467588
cmp word [ecx], 0x5c
je 0x453343
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x453339
mov ecx, 0x467588
cmp word [ecx], 0x2f
je 0x453343
xor edx, edx
jmp 0x453348
mov edx, 1
mov ecx, dword [0x4675ac]
neg eax
sbb eax, eax
push ecx
and eax, esi
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.004055f7
mov edi, dword [esp + 0x48]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, edi
mov dword [edi], 0x4675b8
mov dword [edi + 0x20], 0x4675b0
call fcn.00401cec
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
neg eax
sbb eax, eax
mov byte [esp + 0x40], 0
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea esi, [esp + 0x10]
neg esi
sbb esi, esi
lea eax, [esp + 0x24]
and esi, eax
mov ecx, dword [esi]
push ecx
call fcn.0043ba53
mov edx, dword [esi + 8]
add esp, 4
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
neg ecx
sbb ecx, ecx
push 1
and ecx, eax
call fcn.0040b3e2
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x38]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x459940
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x466a08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
mov byte [esp + 0x44], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4599ae
lea ecx, [esp + 0x14]
call fcn.0040b044
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x4599e1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00459b20
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00419941
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.0040b044
xor al, al
jmp 0x459af4
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x459a0f
cmp eax, ebx
je 0x459a09
cmp edi, ebx
je 0x459a09
push eax
call edi
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x459a46
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x459a3e
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x459a3e
push ecx
call eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x459a3e
cmp edi, ebx
je 0x459a3e
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebp
jmp 0x459a91
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x459a73
cmp eax, ebx
je 0x459a6d
cmp ebp, ebx
je 0x459a6d
push eax
call ebp
mov eax, esi
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x459a9e
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x459a8a
cmp edi, ebx
je 0x459a8a
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x459a9a
cmp edi, ebx
je 0x459a9a
push eax
call edi
xor al, al
jmp 0x459af4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x20]
push eax
push esi
call fcn.004596d0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x459acf
cmp ebp, ebx
je 0x459acf
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x459ae2
cmp edi, ebx
je 0x459ae2
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x459af2
cmp edi, ebx
je 0x459af2
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x45a080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 2
mov dword [esi + 0x20], eax
and eax, 0xffff
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov ecx, dword [ebx + 0x10]
push eax
push edi
mov dword [esi + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x45a0c1
pop edi
pop esi
pop ebx
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x45a0d3
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
push ebx
call fcn.0045a100
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x45cc90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREInstallShield19.0Professional
push SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45cd1a
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.DoVerboseLogging
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45cd0f
mov ecx, dword [esp + 8]
push ebx
cmp ecx, 1
sete bl
test esi, esi
je 0x45cd07
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
add esp, 0x10
ret
test esi, esi
je 0x45cd1a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0x10
ret
Function at 0x45d806
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
lea eax, [ebp - 0x10]
push 4
push eax
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x7863513
push dword [ebp + 0xc]
call fcn.0045d99a
add esp, 0x10
mov dword [ebp - 4], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
je 0x45d961
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.0045d9d8
add esp, 0xc
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x45d957
push edi
push edi
push edi
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x45d94e
mov ebx, dword [ebp + 8]
xor ecx, ecx
or ebx, esi
xor esi, esi
cmp ecx, edi
mov dword [ebp - 0x1c], edi
jl 0x45d924
jg 0x45d8c8
cmp ebx, edi
jbe 0x45d924
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], edi
cdq
push edx
push eax
push dword [ebp - 0x1c]
push esi
je 0x45d8f1
call fcn.0043e550
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.0045d970
jmp 0x45d909
call fcn.0043e550
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.0045d985
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov byte [esi + ecx], al
add esi, 1
adc dword [ebp - 0x1c], edi
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
jl 0x45d8c8
jg 0x45d924
cmp esi, ebx
jb 0x45d8c8
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x45d942
mov eax, dword [esi + 4]
cmp eax, edi
je 0x45d942
push dword [esi + 8]
push ecx
push ebx
push dword [ebp + 0xc]
call eax
add esp, 0x10
mov dword [esi + 0xc], eax
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push dword [ebp - 4]
call fcn.0043ba53
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x45d99a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
call fcn.0043c844
xor esi, esi
pop ecx
cmp dword [ebp + 0xc], esi
mov ebx, eax
jle 0x45d9d2
push edi
mov edi, dword [ebp + 8]
sub edi, ebx
mov eax, esi
lea ecx, [esi + ebx]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [edi + ecx]
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], al
jl 0x45d9b7
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x401aa0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401adf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401adf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401adf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401adf
cmp dword [ecx + 0x74], 0xe
jbe 0x401adf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40d5a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d5cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d5cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1147370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x114738e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x1170074
push ecx
mov edi, eax
call fcn.0115b198
mov esi, eax
add esp, 8
test esi, esi
jne 0x11473cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0115b02e
push esi
call fcn.0115afb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x114a850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x114a8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x1175720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x114a8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0115b1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x114a8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x1175720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x114a92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.0115c082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x114a957
mov word [eax], si
add eax, 2
push eax
call fcn.0115c030
add esp, 4
jmp 0x114a959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x114a8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x114a8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x114aff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret