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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00447dc0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x466b4b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x466b4b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x466afe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x466b09
or bh, 8
and edi, 0x8000000
je 0x466b24
mov eax, dword [0x4abcfc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x466b4b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x466f4b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x466f6f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x466f8a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x46b9bf
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46b9f7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046f4ef
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046f4c7
jmp 0x46ba03
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x46d36d
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 0x46d3af
call fcn.0047dfa2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46d3af
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46d3a6
xor eax, eax
jmp 0x46d3b7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046d3bd
pop edi
pop esi
pop ebx
ret 4

Function at 0x47f331
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x47f3e1
mov ecx, 0x4aa2f8
call fcn.0047ef17
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x47f3bf
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x47f39d
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47f39d
push ebx
push edi
push eax
call fcn.004703bf
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.0046f245
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x46e4321c
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..7LWLf
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x7ac57d65
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x431005
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp int.00401219
Function at 0x40390c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x208
push 0
push eax
call fcn.0042f710
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x403975
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40396c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4039e2
mov esi, 0x80004005
jmp 0x4039e2
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x4039a1
push 1
push 0x44b7fc
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00403779
mov esi, eax
test esi, esi
js 0x4039e2
mov esi, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004037c6
mov esi, eax
test esi, esi
js 0x4039e2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x403955
test edi, edi
je 0x4039e2
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004022c9
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042de30
leave
ret 0xc

Function at 0x403d89
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x66c], 0xffffffff
and eax, 1
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x208
xor esi, esi
mov dword [ebp - 0x674], eax
and dword [ebp - 0x668], esi
lea eax, [ebp - 0x414]
push ebx
push esi
push eax
mov dword [ebp - 0x670], edi
call fcn.0042f710
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042f710
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403e2d
call edi
mov esi, eax
cmp esi, 2
jne 0x403e07
push 3
pop esi
test esi, esi
jle 0x403e16
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x403e2d
push esi
push 0xc8
push str.c:_agent_work138_s_srclibsdutildirutil.cpp
call fcn.004038f5
jmp 0x404173
invalid

Function at 0x403e2e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path
Move file
Set file attributes

Disassembly:
ret
Function at 0x40520d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0x18]
push 0x11c
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x120]
push ebx
push eax
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
call fcn.0042f710
push 0x4e8
lea eax, [ebp - 0x630]
mov dword [ebp - 0x124], ebx
push ebx
push eax
mov dword [ebp - 0x130], ebx
call fcn.0042f710
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00440912
push ebx
push 3
call fcn.00440ac6
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
push eax
push esi
call fcn.00401206
mov esi, eax
test esi, esi
jns 0x4052d1
push str.Failed_to_parse_command_line.
push esi
call fcn.00440657
pop ecx
pop ecx
mov edi, ebx
jmp 0x40554c
push edi
lea eax, [ebp - 0x630]
push eax
call fcn.00404361
mov esi, eax
test esi, esi
jns 0x4052eb
push str.Failed_to_initialize_engine_state.
jmp 0x4052c2
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x604], eax
call fcn.0040568e
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jns 0x405310
push str.Failed_to_initialize_COM.
jmp 0x4052c2
xor edi, edi
inc edi
call fcn.004400c9
mov esi, eax
test esi, esi
jns 0x405330
push str.Failed_to_initialize_Cryputil.
push esi
call fcn.00440657
pop ecx
pop ecx
jmp 0x40554c
mov dword [ebp - 0x144], edi
call fcn.004412d3
mov esi, eax
test esi, esi
jns 0x405348
push str.Failed_to_initialize_Regutil.
jmp 0x405323
mov dword [ebp - 0x140], edi
call fcn.00442f7b
mov esi, eax
test esi, esi
jns 0x405360
push str.Failed_to_initialize_Wiutil.
invalid
Function at 0x4215f7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
or dword [edi + 0x3c], 0xffffffff
lea eax, [edi + 0x1c]
push eax
call fcn.004022c9
mov esi, eax
test esi, esi
jns 0x421623
push str.Failed_to_copy_file_name.
jmp 0x42170f
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x24], eax
test eax, eax
jne 0x42166f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42164e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x421655
mov esi, 0x80004005
push esi
push 0x8c
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_create_begin_operation_event.
jmp 0x42170f
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x28], eax
test eax, eax
jne 0x4216b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x421694
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42169b
mov esi, 0x80004005
push esi
push 0x8f
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_create_operation_complete_event.
jmp 0x42170f
push ebx
push ebx
push edi
push 0x420fb4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x4216fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4216e0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4216e7
mov esi, 0x80004005
push esi
push 0x93
push str.c:_agent_work138_s_src_burnenginecabextract.cpp
call fcn.004038f5
push str.Failed_to_create_extraction_thread.
jmp 0x42170f
push edi
call fcn.0042139a
mov esi, eax
test esi, esi
jns 0x421717
push str.Failed_to_wait_for_operation_complete.
push esi
call fcn.00440657
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x426a65
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x426ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x426aae
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x426ab5
mov esi, 0x80004005
push esi
push 0x1fc
push str.c:_agent_work138_s_src_burnenginemsuengine.cpp
call fcn.004038f5
push str.Failed_to_stop_wusa_service.
push esi
call fcn.00440657
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042de30
leave
ret 4
Function at 0x40218d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x10
xor esi, esi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0043e180
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0043e180
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
cmp esi, 1
jne 0x4021e1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x40236e
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1108
call fcn.0045fd70
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x800
push esi
xor edi, edi
lea eax, [ebp - 0x1108]
push edi
push eax
call fcn.0043e180
add esp, 0xc
push esi
lea eax, [ebp - 0x908]
push edi
push eax
call fcn.0043e180
add esp, 0xc
lea eax, [ebp - 0x1108]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0043e180
add esp, 0xc
lea esi, [ebp - 0x108]
call fcn.0040228e
mov eax, esi
push eax
lea eax, [ebp - 0x1108]
push eax
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x908]
push str..tmp
push eax
call fcn.0043e957
pop ecx
pop ecx
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402433
inc edi
cmp edi, 0xa
jl 0x4023d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043b103
leave
ret
lea eax, [ebp - 0x908]
push eax
push ebx
call fcn.00402c33
xor eax, eax
inc eax
jmp 0x402425
Function at 0x402445
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 8
mov eax, 0x46ada8
call fcn.004436f7
mov edi, ecx
mov ecx, 0x485f6c
lea esi, [ebp - 0x14]
call fcn.00402b4a
and dword [ebp - 4], 0
push dword [edi]
mov dword [ebp - 0x10], 2
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4024d7
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [edi]
lea eax, [ebp - 0x14]
push str._s.bak
push eax
call fcn.00402e53
mov ebx, dword [ebp - 0x14]
mov eax, dword [edi]
add esp, 0xc
push 3
push ebx
push eax
call esi
test eax, eax
jne 0x4024da
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 3
push ebx
push eax
call esi
test eax, eax
je 0x4024da
mov edi, dword [edi]
push 5
push edi
push ebx
call esi
test eax, eax
je 0x40250f
mov dword [ebp - 0x10], 3
jmp 0x40250f
mov ebx, dword [ebp - 0x14]
push dword [ebp + 0xc]
mov edi, dword [edi]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push eax
call esi
test eax, eax
je 0x4024f3
mov dword [ebp - 0x10], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40250f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40250f
push 6
push eax
push ebx
call esi
lea eax, [ebx - 0x10]
call fcn.004031f6
mov eax, dword [ebp - 0x10]
call fcn.004437cf
ret

Function at 0x402fb1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402fc8
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402ffd
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402ff9
cmp edi, eax
jae 0x402ffd
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402feb
cmp edi, eax
jb 0x403001
xor eax, eax
jmp 0x40300a
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x40341b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
je 0x40349c
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x403493
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x403493
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x40348c
push ebx
call fcn.0043e6bc
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x40348c
push ebx
push dword [ebp + 8]
push eax
call fcn.0043e200
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
xor esi, esi
cmp dword [ebp - 4], ebx
je 0x4034d9
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x474fcc
push dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4034d0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push dword [ebp - 4]
call fcn.0043e565
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8