joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b0270
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004a9497
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x48c9a3
xor al, al
jmp 0x48cacf
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x48c9c5
xor al, al
jmp 0x48cacf
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x48c9d8
xor al, al
jmp 0x48cacf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x48c9ec
xor al, al
jmp 0x48cacf
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0049d85f
test eax, eax
jne 0x48ca20
xor al, al
jmp 0x48cacf
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x583abc
mov dword [esp + 0x20], ebp
call fcn.004a9497
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004a63b0
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004a6407
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x48cab4
mov ax, word [ebx]
test ax, ax
je 0x48caa6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0048caf0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x48ca8a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004a6407
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x48d030
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004a7a60
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x48d076
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0048ea78
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x5a3744
push ecx
call fcn.00490520
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4a1976
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a19ae
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.0049fa1b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049f9f3
jmp 0x4a19ba
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a3171
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 0x4a31b3
call fcn.004a9497
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a31b3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a31aa
xor eax, eax
jmp 0x4a31bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a31c1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a99c7
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 0x4a99f5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a9a13
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a992d
jmp 0x4a9a13
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a9a13
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a992d
test edi, edi
mov eax, edi
jne 0x4a99fd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x44d058], 1
mov dword [0x44d054], 1
mov dword [0x44d050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x44d00c], eax
mov eax, dword [0x44d064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x44d078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x44d060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x449390], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x401c20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x44d06c]
test esi, esi
jle 0x401da0
mov eax, dword [0x44d070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401cb4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401d37
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401ca0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401dc7
mov eax, dword [0x44d070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x44d070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401da7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401d30
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401d40
add dword [0x44d06c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x44d070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401cbe
mov eax, dword [0x44d070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x4022e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x44d088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x44d080]
sub esp, 4
test ebx, ebx
je 0x402335
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40232e
test esi, esi
je 0x40232e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402310
mov dword [esp], 0x44d088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402670
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402695
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4026a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402695
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4026e8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4026de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4026ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4026d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x401032
xor eax, eax
jmp 0x4011b4
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x40eea4], eax
cmp dword [0x40eea4], 0xffffffff
jne 0x401067
mov dword [0x40eea4], 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4011b4
mov eax, dword [0x40eea4]
push eax
call fcn.00403788
add esp, 4
mov dword [0x40eea0], eax
cmp dword [0x40eea0], 0
jne 0x40109e
mov dword [0x40eea4], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4011b4
mov edx, dword [0x40eea4]
push edx
push 0
mov eax, dword [0x40eea0]
push eax
call fcn.00403730
add esp, 0xc
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [0x40eea4]
push edx
mov eax, dword [0x40eea0]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4010fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x40eea0]
push eax
call fcn.004036fe
add esp, 4
xor eax, eax
jmp 0x4011b4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x40eea4]
je 0x401128
mov eax, dword [0x40eea0]
push eax
call fcn.004036fe
add esp, 4
xor eax, eax
jmp 0x4011b4
mov dword [0x40eeb0], 0
mov dword [0x40eeac], 0
mov ecx, dword [0x40eea0]
mov dword [0x40eea8], ecx
mov edx, dword [0x40eea0]
mov dword [ebp - 0x10], edx
mov eax, dword [0x40eea4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4011af
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 0xd
jne 0x401183
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax + 1]
cmp ecx, 0xa
jne 0x401183
mov edx, dword [ebp - 0x10]
mov byte [edx], 0xa
mov eax, dword [ebp - 0x10]
mov byte [eax + 1], 0
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x40119b
mov eax, dword [0x40eeac]
add eax, 1
mov dword [0x40eeac], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
jmp 0x401159
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4017c0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4017f3
or eax, 0xffffffff
jmp 0x401902
push 0x44
push 0
lea ecx, [ebp - 0x60]
push ecx
call fcn.00403730
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x101
mov word [ebp - 0x30], 7
mov word [ebp - 0x2e], 0
mov dword [ebp - 0x2c], 0
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0x820
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 4], 0
jne 0x4018c8
or eax, 0xffffffff
jmp 0x401902
cmp dword [ebp + 0xc], 0
jne 0x4018d2
xor eax, eax
jmp 0x401902
mov dword [ebp - 0x18], 0x103
cmp dword [ebp - 0x18], 0x103
jne 0x4018f2
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x4018d9
cmp dword [ebp + 0x10], 0
je 0x401900
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401906
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
cmp dword [ebp + 8], 0
je 0x40191b
cmp dword [ebp + 0xc], 0
jne 0x401923
or eax, 0xffffffff
jmp 0x401a9c
mov eax, dword [ebp + 0xc]
push eax
push 0x22
mov ecx, dword [ebp + 8]
push ecx
push 0x22
push 0x40c080
lea edx, [ebp - 0x26c]
push edx
call fcn.00403b6c
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x401970
or eax, 0xffffffff
jmp 0x401a9c
push 0x44
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.00403730
add esp, 0xc
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x101
mov word [ebp - 0x34], 7
mov word [ebp - 0x32], 0
mov dword [ebp - 0x30], 0
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x64]
push ecx
push 0
push 0
push 0x820
push 0
push 0
push 0
lea edx, [ebp - 0x26c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401a51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
or eax, 0xffffffff
jmp 0x401a9c
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x10], 0
jne 0x401a6c
xor eax, eax
jmp 0x401a9c
mov dword [ebp - 0x1c], 0x103
cmp dword [ebp - 0x1c], 0x103
jne 0x401a8c
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x401a73
cmp dword [ebp + 0x14], 0
je 0x401a9a
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [ecx], edx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402046
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 5
cmp dword [ebp + 8], 0
je 0x40206f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402073
xor eax, eax
jmp 0x4020cf
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40208a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4020cc
cmp dword [ebp + 0xc], 0
je 0x4020cc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4020bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
call fcn.00402010
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x40208a
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x403170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40319f
xor eax, eax
jmp 0x4031e3
push 0
lea ecx, [ebp - 8]
push ecx
push 0x10
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0x44445a53
jne 0x4031e1
cmp dword [ebp - 0x14], 0x3327f088
jne 0x4031e1
movsx edx, byte [ebp - 0x10]
cmp edx, 0x41
jne 0x4031e1
mov eax, 1
jmp 0x4031e3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4031e7
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov dword [ebp - 0x88], 1
mov eax, dword [ebp + 8]
push eax
call fcn.00403170
add esp, 4
test eax, eax
jne 0x403214
mov eax, 1
jmp 0x4033ab
push 0x88
push 0
push 0x40e3e8
call fcn.00403730
add esp, 0xc
push 0x88
push 0
push 0x40e360
call fcn.00403730
add esp, 0xc
mov byte [0x40e3e8], 0x88
mov byte [0x40e360], 0x88
lea ecx, [ebp - 0x80]
push ecx
call fcn.00403e7f
push eax
push 0x40d97c
push 0x40d980
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x1002
push 0x40e3e8
lea edx, [ebp - 0x80]
push edx
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0x84], eax
push 0
push 0x40e360
mov eax, dword [ebp + 8]
push eax
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jl 0x4032a5
cmp dword [ebp - 0x84], 0
jge 0x4032ed
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x80]
push ecx
push str.An_error_occured_during_file_open___s:_d___s:_d_.
push 0x40e7c0
call fcn.00403b6c
add esp, 0x18
push 0x30
push str.NovaLogic_Local_File_Update_Wizard_v1.0.10d
push 0x40e7c0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x88], 0
jmp 0x403346
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x8c]
push eax
call sub.LZ32.dll_LZCopy
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jge 0x403346
mov ecx, dword [ebp - 0x90]
push ecx
push str.An_error_occured_during_file_copy__d_.
push 0x40e7c0
call fcn.00403b6c
add esp, 0xc
push 0x30
push str.NovaLogic_Local_File_Update_Wizard_v1.0.10d
push 0x40e7c0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x88], 0
mov edx, dword [ebp - 0x8c]
push edx
call sub.LZ32.dll_LZClose
mov eax, dword [ebp - 0x84]
push eax
call sub.LZ32.dll_LZClose
cmp dword [ebp - 0x88], 0
je 0x4033a5
push 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea eax, [ebp - 0x80]
push eax
call fcn.00402046
add esp, 8
test eax, eax
je 0x4033a5
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00402010
cmp dword [0x40e474], 0
je 0x4033a3
xor eax, eax
jmp 0x4033ab
jmp 0x403377
mov eax, dword [ebp - 0x88]
mov esp, ebp
pop ebp
ret
Function at 0x407629
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40dca0
cmp edx, dword [eax]
je 0x40764b
add eax, 8
inc ecx
cmp eax, 0x40dd30
jl 0x40763c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40dca0]
jne 0x407779
mov eax, dword [0x40e484]
cmp eax, 1
je 0x407753
test eax, eax
jne 0x40767c
cmp dword [0x40d9b4], 1
je 0x407753
cmp edx, 0xfc
je 0x407779
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4076b3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403ea0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4076f6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b4f8
push edi
call fcn.00403880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403ea0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403eb0
lea eax, [ebp - 0xa0]
push 0x40b4d8
push eax
call fcn.00403eb0
push dword [esi + 0x40dca4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403eb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409545
add esp, 0x2c
pop edi
jmp 0x407779
lea eax, [ebp + 8]
lea esi, [esi + 0x40dca4]
push 0
push eax
push dword [esi]
call fcn.00403800
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x406631
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4492c4], 0
jne 0x40666f
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406645
mov dword [ecx*4 + 0x4492c0], eax
inc ecx
cmp ecx, 0x100
jl 0x406640
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40669c
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4492c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40667d
not eax
pop ebp
ret 0xc

Function at 0x408952
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
and ebx, ebx
call fcn.00408980
add ebx, eax
push 0x49a674a8
mov ebx, dword [esp]
add esp, 4
xor dword [edx], esi
inc edx
or ebx, ebx
mov eax, 0xe070aafd
cmp edx, ecx
jne fcn.00408952
ret