joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b9b1c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6c1e9378]
test esi, esi
jle 0x6b9b1cfd
mov edi, dword [0x6c1e937c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6b9b1c44
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6b9b1cf6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x6b9b1c30
mov dword [esp], eax
mov esi, eax
call fcn.6b9b23b0
test eax, eax
mov edi, eax
je 0x6b9b1d3a
mov esi, dword [0x6c1e937c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.6b9b24c0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6c1e937c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6b9b1d1a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6b9b1cef
sub eax, 0x40
and eax, 0xffffffbf
je 0x6b9b1cef
mov eax, dword [esp + 0x20]
add ebx, dword [0x6c1e937c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x6b9b1d04
add dword [0x6c1e9378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x6b9b1c4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6b9b1bb0
mov eax, dword [0x6c1e937c]
mov eax, dword [eax + ebx + 4]
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 fcn.6b9b1bb0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6b9b1bb0
lea esi, [esi]

Function at 0x6b9b2020
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6c1e9388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6c1e9380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x6b9b2075
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 0x6b9b206e
test esi, esi
je 0x6b9b206e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6b9b2050
mov dword [esp], 0x6c1e9388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403596
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x403596
lcall 0x5de5, 0x8b10c483
jmp loc.00854ac0
Function at 0x40144c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.00407416
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.0040123b
push 0x5c
mov ecx, edi
call fcn.0040133b
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4011ae
push edi
push edi
mov dword [0x416518], esi
mov dword [0x416520], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x416548], 2
mov dword [0x41651c], eax
je 0x4014a9
call fcn.00406491
push 0xffffffffffffffff
push dword [0x41651c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x416520]
cmp eax, edi
mov dword [0x41657c], edi
je 0x40150a
cmp eax, 1
je 0x4014fe
cmp eax, 2
je 0x4014fa
cmp eax, 3
je 0x4014f6
cmp eax, 0x67
jle 0x4014df
cmp eax, 0x6a
jle 0x4014eb
push eax
push 0x14
push edi
call fcn.0040636e
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
push 0x12
jmp 0x401500
push 0x13
jmp 0x401500
push 0x11
push edi
call fcn.0040636e
pop ecx
pop ecx
jmp 0x4014eb
cmp dword [0x416580], edi
jne 0x4014eb
lea eax, [ebp + 8]
push eax
push dword [0x41651c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4014eb
cmp dword [ebp + 8], edi
jne 0x4014eb
xor eax, eax
jmp 0x4014f0

Function at 0x4018a4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4018e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x4018c7
push eax
jmp 0x4018db
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4018e5
test al, 0x10
jne 0x4018e5
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
xor eax, eax
inc eax
pop esi
ret

Function at 0x401f86
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x410a4f
call fcn.00410400
sub esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401323
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 1
jg 0x401faf
push 2
lea ecx, [ebp - 0x18]
call fcn.00401106
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0x18]
push eax
call esi
test eax, eax
jne 0x401fd7
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40200a
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0x18]
call fcn.00401cab
push eax
push ebx
call esi
lea ecx, [ebp - 0x18]
call fcn.00401cc4
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00401274
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4025f6
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x410afe
call fcn.00410400
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00401c72
and dword [ebp - 4], 0
push 0x412354
lea ecx, [ebp - 0x18]
call fcn.0040231c
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4026dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040123b
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0040133b
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040231c
test byte [ebp - 0x268], 0x10
je 0x4026a8
push 0x412350
lea eax, [ebp - 0x23c]
push eax
call ebx
test eax, eax
je 0x4026c0
push 0x412348
lea eax, [ebp - 0x23c]
push eax
call ebx
test eax, eax
je 0x4026c0
push dword [ebp - 0x18]
call fcn.004025f6
pop ecx
jmp 0x4026bc
push 0
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x4026fa
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4026fa
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40264c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x4026fa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4026fa
xor esi, esi
inc esi
jmp 0x4026fc
xor esi, esi
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40271a
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x416588], 0
je 0x402727
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40273d
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x40275b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402757
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.004025f6
pop ecx
pop esi
ret
Function at 0x40286b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402888
xor eax, eax
jmp 0x4028e8
test al, 0x10
je 0x402899
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x4028e8
mov eax, dword [0x41654c]
test eax, eax
je 0x4028d5
cmp eax, 2
jne 0x4028e5
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4028d5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x4028e5
push esi
call fcn.0040271a
neg eax
sbb eax, eax
neg eax
pop ecx
dec eax
jmp 0x4028e8
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x4028eb
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x410b10
call fcn.00410400
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.00401c72
xor esi, esi
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
jg 0x402927
push 1
lea ecx, [ebp - 0x24]
call fcn.00401106
mov ax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x24]
je 0x40293b
cmp ax, 0x2f
jne 0x402944
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 0x10], ebx
mov esi, ebx
jmp 0x40296a
mov ax, word [edi + esi*2]
cmp ax, 0x2f
je 0x40295d
cmp ax, 0x5c
je 0x40295d
dec esi
test esi, esi
jg 0x402948
test esi, esi
je 0x402a04
and word [edi + esi*2], 0
push edi
call fcn.004018a4
test eax, eax
pop ecx
je 0x402959
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40299e
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040286b
test eax, eax
pop ecx
pop ecx
jne 0x402a38
push edi
call fcn.004018a4
test eax, eax
pop ecx
je 0x402a01
cmp esi, ebx
jge 0x402a26
mov eax, dword [ebp - 0x10]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.msvcrt.dll_memcpy
xor edx, edx
add esp, 0xc
cmp word [ebx], dx
je 0x4029cf
inc esi
lea eax, [edi + esi*2]
jmp 0x4029e6
mov cx, word [eax]
cmp cx, 0x5c
je 0x4029eb
cmp cx, 0x2f
je 0x4029eb
inc esi
inc eax
inc eax
cmp word [eax], dx
jne 0x4029d4
push edi
mov word [edi + esi*2], dx
call fcn.004018a4
test eax, eax
pop ecx
je 0x402a01
cmp esi, dword [ebp - 0x10]
jl 0x4029ad
jmp 0x402a26
push edi
jmp 0x402a2c
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x402a2b
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x402a2b
cmp ax, 0x7a
ja 0x402a2b
cmp word [ecx + 2], 0x3a
jne 0x402a2b
xor esi, esi
inc esi
jmp 0x402a3a
push ecx
push 0xc
push 1
call fcn.0040636e
add esp, 0xc
xor esi, esi
or dword [ebp - 4], 0xffffffff
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402fe5
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [0x416010], esi
je 0x40300f
mov eax, 0x416010
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 8]
je 0x40300f
add eax, 0x10
inc edi
cmp dword [eax], esi
mov ecx, eax
jne 0x402ffe
shl edi, 4
mov eax, dword [edi + 0x41601c]
cmp eax, esi
jne 0x4030d0
cmp dword [0x416218], 0xffffffff
jne 0x403034
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x416218], eax
cmp word [0x416214], 0xffff
jne 0x40304b
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x416214], ax
mov ax, word [0x416210]
cmp ax, 0xffff
jne 0x403062
call fcn.00401a08
mov word [0x416210], ax
mov ecx, dword [edi + 0x416018]
cmp ecx, esi
push ebx
mov ebx, dword [edi + 0x416014]
mov dword [ebp - 4], esi
je 0x40309c
mov edx, 0x419
cmp dword [0x416218], edx
je 0x403091
cmp word [0x416214], dx
je 0x403091
cmp ax, dx
jne 0x40309c
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi + 4]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
lea ecx, [esi + 1]
push ecx
push eax
push esi
push ebx
push 0
push dword [ebp - 4]
mov dword [edi + 0x41601c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [edi + 0x41601c]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x4030fc
Capabilities:
Query environment variable

Disassembly:
push 0x41655c
push dword [esp + 8]
call fcn.00402ef9
pop ecx
pop ecx
jmp fcn.00401f86

Function at 0x403111
Capabilities:
Query environment variable

Disassembly:
push 0x416550
push dword [esp + 8]
call fcn.00402e0d
pop ecx
pop ecx
jmp fcn.004030fc
Function at 0x403493
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, 0x410c1e
call fcn.00410400
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.00401323
xor esi, esi
inc esi
cmp dword [ebp - 0x14], 2
mov dword [ebp - 4], esi
jg 0x4034c6
push 3
lea ecx, [ebp - 0x1c]
call fcn.00401106
mov edi, dword [ebp - 0x1c]
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
call esi
xor ecx, ecx
cmp eax, ebx
mov word [edi], bx
mov dword [ebp - 0x18], ecx
jbe 0x4034fa
lea edi, [eax + 1]
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401cab
push eax
push edi
call esi
lea ecx, [ebp - 0x1c]
call fcn.00401cc4
mov ecx, dword [ebp - 0x18]
lea edi, [ecx + 0xf]
lea esi, [ecx + ecx]
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401cab
push ebx
push dword [ebp + 0xc]
add eax, esi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00401cc4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403538
inc ebx
cmp ebx, 0xfff
jl 0x403500
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00401209
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40356a
Capabilities:
Set environment variable

Disassembly:
mov eax, 0x410c30
call fcn.00410400
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x416570], esi
jle 0x4035ce
mov eax, dword [0x416574]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00401209
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
call fcn.00403111
mov eax, dword [0x416574]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
pop ecx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x416570]
pop ecx
jl 0x403582
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x403a9e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x410ce5
call fcn.00410400
sub esp, 0x2a4
push ebx
push esi
push edi
push 3
call fcn.00402fe5
push 2
mov dword [0x416544], eax
call fcn.00402fe5
push 5
mov dword [0x416540], eax
call fcn.00402fe5
push 0x15
mov dword [0x41653c], eax
call fcn.00402fe5
push 0x16
mov dword [0x416538], eax
call fcn.00402fe5
push 0x17
mov dword [0x416534], eax
call fcn.00402fe5
xor edi, edi
add esp, 0x18
mov dword [0x416530], eax
mov dword [0x416528], edi
mov dword [0x41652c], edi
xor ebx, ebx
mov esi, 0x416568
push edi
push ebx
lea eax, [ebp - 0x2b0]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x403bb9
push ebx
lea eax, [ebp - 0xa4]
push str.7zSfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.0040227d
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.0040123b
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040123b
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00402352
cmp dword [edi + 0x416250], ebx
jne 0x403ba3
push dword [edi + 0x416254]
lea ecx, [ebp - 0x24]
call fcn.0040123b
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040123b
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00402352
add edi, 8
cmp edi, 0x28
jb 0x403b73
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00401c3b
xor edi, edi
inc ebx
cmp ebx, 0x40
jl 0x403b11
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x406b74
Capabilities:
Inspect load icon resource

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 3
xor ebx, ebx
sub eax, ebx
push edi
je 0x406bfe
dec eax
je 0x406bda
dec eax
je 0x406bad
dec eax
jne 0x406c28
push 0x19
call fcn.00402fe5
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.0040595f
push 0x1a
jmp 0x406c15
push 0x1a
call fcn.00402fe5
pop ecx
push eax
mov edi, 0x4b4
push edi
mov ecx, esi
call fcn.0040595f
push ebx
push 0x4b3
mov ecx, esi
call fcn.00405851
push edi
mov ecx, esi
call fcn.00405775
jmp 0x406c28
push 0x19
call fcn.00402fe5
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.0040595f
push ebx
push 0x4b4
mov ecx, esi
call fcn.00405851
jmp 0x406c28
push 0x1b
call fcn.00402fe5
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.0040595f
push 0x1c
call fcn.00402fe5
pop ecx
push eax
mov ecx, esi
push 0x4b4
call fcn.0040595f
mov eax, dword [esi + 8]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and eax, 0x1c
cmp eax, 4
je 0x406c6b
cmp eax, 8
je 0x406c62
cmp eax, 0xc
je 0x406c5b
cmp eax, 0x10
jne 0x406c98
push 0x7f04
jmp 0x406c67
push 0x7f01
jmp 0x406c67
push 0x7f02
push 0
jmp 0x406c72
push 0x65
push 0
call ebx
push eax
call edi
test eax, eax
je 0x406c98
push eax
xor ecx, ecx
inc ecx
push ecx
push 0x172
push 0x4b1
push dword [esi + 4]
mov dword [esi + 0x30], ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebp
jmp 0x406caa
and dword [esi + 0x30], 0
push 0
push 0x4b1
mov ecx, esi
call fcn.00405851
test byte [0x416241], 2
jne 0x406d05
push 0x65
push 0
call ebx
push eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov dword [esp + 0x18], eax
call edi
push eax
push 0x31
call edi
push eax
push 1
push 0x65
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
test ebx, ebx
jne 0x406ceb
mov ebx, dword [esp + 0x10]
push dword [esp + 0x10]
mov edi, 0x80
push 1
push edi
push dword [esi + 4]
call ebp
push ebx
push 0
push edi
push dword [esi + 4]
call ebp
push dword [esi + 0xc]
mov ecx, esi
call fcn.00406769
push dword [esi + 0x10]
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test byte [0x416240], 8
jne 0x406d30
mov ecx, esi
call fcn.00405ca9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

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

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x407334
mov dword [ecx*4 + 0x4166c0], eax
inc ecx
cmp ecx, 0x100
jb 0x40732f
pop esi
ret

Function at 0x40735b
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, ecx
mov ecx, edx
jbe 0x407382
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4166c0]
inc ecx
dec esi
jne 0x407368
pop esi
ret 4
Function at 0x40bf3e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41155b
call fcn.00410400
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
push 8
pop edi
mov edx, 0x4132a4
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x4132c8
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040dbfb
push dword [esi + 8]
mov ecx, ebx
call fcn.0040dbfb
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040dbfb
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040dbfb
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40bf4a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41155b
call fcn.00410400
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
push 8
pop edi
mov edx, 0x4132a4
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x4132c8
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040dbfb
push dword [esi + 8]
mov ecx, ebx
call fcn.0040dbfb
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040dbfb
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040dbfb
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40cd0e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40cd34
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40cd34
xor al, al
jmp 0x40cd54
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00410580
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4