joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402742
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0041c410
cmp eax, 2
pop ecx
jbe 0x40286a
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041c320
lea eax, [ebp - 0x104]
push eax
call fcn.0041c410
add esp, 0xc
cmp byte [ebp + eax - 0x105], 0x5c
jne 0x40279d
lea eax, [ebp - 0x104]
push eax
call fcn.0041c410
and byte [ebp + eax - 0x105], 0
pop ecx
cmp byte [ebp - 0x104], 0x5c
jne 0x4027f7
cmp byte [ebp - 0x103], 0x5c
jne 0x4027f7
xor esi, esi
mov al, byte [ebp + esi - 0x104]
lea edi, [ebp + esi - 0x104]
cmp al, 0x5c
je 0x4027c7
test al, al
jne 0x4027e5
cmp esi, 2
jle 0x4027db
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
test al, al
je 0x40286e
mov byte [ebp + esi - 0x208], al
and byte [ebp + esi - 0x207], 0
inc esi
jmp 0x4027b1
xor esi, esi
mov al, byte [ebp + esi - 0x104]
lea edi, [ebp + esi - 0x104]
cmp al, 0x5c
je 0x40280f
test al, al
jne 0x402858
cmp esi, 2
jle 0x402852
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402842
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jmp 0x402849
test byte [ebp - 0x348], 0x10
je 0x40286a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [edi]
test al, al
je 0x40286e
mov byte [ebp + esi - 0x208], al
and byte [ebp + esi - 0x207], 0
inc esi
jmp 0x4027f9
xor eax, eax
jmp 0x402871
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402876
Capabilities:
Delete directory
Delete file
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041c320
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041c490
add esp, 0x10
and byte [eax], 0
push 1
pop esi
lea eax, [ebp - 0x104]
push eax
call fcn.0041c410
cmp eax, 4
pop ecx
jb 0x402943
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.0041c320
lea eax, [ebp - 0x204]
push eax
call fcn.0041c410
add esp, 0xc
dec eax
test eax, eax
jle 0x402900
cmp byte [ebp + eax - 0x204], 0x5c
jne 0x4028f1
and byte [ebp + eax - 0x204], 0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x402928
xor esi, esi
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0041c490
and byte [eax], 0
pop ecx
test esi, esi
pop ecx
jne 0x4028bd
push 1
pop eax
pop esi
leave
ret
Function at 0x402b8b
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov dl, 0x5c
cmp byte [ebp - 0x12c], dl
jne 0x402be5
cmp byte [ebp - 0x12b], dl
jne 0x402be5
mov cl, byte [ebp - 0x12a]
lea eax, [ebp - 0x12a]
mov dword [ebp + 8], eax
test cl, cl
je 0x402bde
cmp cl, dl
je 0x402bde
inc eax
mov dword [ebp + 8], eax
mov cl, byte [eax]
jmp 0x402bce
cmp byte [eax], 0
je 0x402bee
jmp 0x402bf8
lea eax, [ebp - 0x12c]
mov dword [ebp + 8], eax
mov cl, byte [eax]
test cl, cl
je 0x402bfb
cmp cl, dl
je 0x402bfb
inc eax
jmp 0x402beb
cmp byte [eax], 0
je 0x402c07
inc eax
mov dword [ebp + 8], eax
and byte [eax], 0
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x402c5c
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x402c5c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x12c]
push eax
call edi
test eax, eax
je 0x402c7d
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0xa
pop ecx
call fcn.0041c4c0
jmp 0x402c98
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x402c82
or eax, 0xffffffff
jmp 0x402c98
mov eax, dword [ebp - 4]
push 0x400
imul eax, dword [ebp - 8]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop edi
pop esi
leave
ret

Function at 0x402fc7
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x402fe4
cmp byte [eax], 0
je 0x402fe4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
not eax
shr eax, 4
and eax, 1
ret
xor eax, eax
ret

Function at 0x402fe7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x403008
cmp byte [eax], 0
je 0x403008
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403008
test al, 0x10
je 0x403008
push 1
pop eax
ret
xor eax, eax
ret
Function at 0x403090
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x403109
push edi
call fcn.00402fa9
cmp byte [eax], 0x5c
pop ecx
jne 0x403109
push edi
call fcn.00402fe7
test eax, eax
pop ecx
je 0x4030b9
push 1
pop eax
jmp 0x40310b
push ebx
push esi
push edi
call fcn.00402fa9
and byte [eax], 0
push edi
mov dword [ebp - 4], eax
call fcn.00403053
mov esi, eax
push edi
mov bl, byte [esi]
and byte [esi], 0
call fcn.00403090
add esp, 0xc
mov byte [esi], bl
test eax, eax
pop esi
mov dword [ebp + 8], eax
pop ebx
je 0x4030fe
push edi
call fcn.00402fe7
test eax, eax
pop ecx
jne 0x4030fe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov byte [eax], 0x5c
mov eax, dword [ebp + 8]
jmp 0x40310b
xor eax, eax
pop edi
leave
ret
Function at 0x4043ba
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov esi, 0x9c
push edi
push esi
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.0041c650
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x404412
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x4044e3
mov ecx, dword [ebp - 0x8c]
push 1
sub ecx, 0
pop eax
je 0x4044de
dec ecx
je 0x40448d
dec ecx
jne 0x4044e3
cmp dword [ebp - 0x98], 4
ja 0x40443c
mov dword [0x443110], eax
cmp dword [ebp - 0x98], 5
jne 0x404462
cmp dword [ebp - 0x94], 0
jne 0x404453
mov dword [0x443114], eax
cmp dword [ebp - 0x94], eax
jne 0x404460
mov dword [0x443118], eax
jae 0x40446b
cmp dword [ebp - 0x98], 6
jb 0x404470
mov dword [0x44311c], eax
test edi, edi
je 0x4044e3
cmp byte [ebp - 2], al
jne 0x4044e3
test byte [ebp - 3], 2
je 0x404486
mov dword [0x443120], eax
jmp 0x4044e3
mov dword [0x443124], eax
jmp 0x4044e3
cmp dword [ebp - 0x98], 4
jne 0x4044e3
cmp dword [ebp - 0x94], 0
jne 0x4044b2
cmp byte [ebp - 0x87], 0x43
mov dword [0x443128], eax
jne 0x4044e3
mov dword [0x44312c], eax
cmp dword [ebp - 0x94], 0xa
jne 0x4044ce
cmp byte [ebp - 0x87], 0x41
mov dword [0x443130], eax
jne 0x4044e3
mov dword [0x443134], eax
cmp dword [ebp - 0x94], 0x5a
jne 0x4044e3
mov dword [0x443138], eax
jmp 0x4044e3
mov dword [0x44313c], eax
pop edi
pop esi
leave
ret

Function at 0x406aac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x43c344], 0xffffffff
push ebx
push esi
jne 0x406b29
and dword [ebp - 4], 0
lea eax, [ebp - 4]
mov esi, str.COMCTL32.DLL
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x406b29
push edi
push ebx
call fcn.0041c1de
pop ecx
mov edi, eax
push edi
push ebx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x43c1bc
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 8]
push edi
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov word [0x443292], cx
mov ax, word [eax + 8]
mov word [0x443290], ax
call fcn.0041c0f5
pop ecx
mov dword [0x43c344], 1
pop edi
mov eax, dword [0x43c344]
pop esi
pop ebx
leave
ret
Function at 0x406b5a
Capabilities:
Delete directory

Disassembly:
mov eax, 0x433668
call fcn.0041bd98
push ecx
push ecx
mov eax, dword [0x442964]
push ebx
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x406b7a
push eax
call fcn.00402370
pop ecx
mov eax, dword [0x442960]
cmp dword [eax - 8], ebx
je 0x406b8b
push eax
call fcn.00402370
pop ecx
cmp dword [0x44310c], ebx
je 0x406c0a
mov eax, dword [0x43f328]
push esi
mov esi, dword [0x44293c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x406bec
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [ebp - 0x10]
push eax
call fcn.0042ad12
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00402876
pop ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0042b2e0
push 0x43c4dc
lea ecx, [ebp - 0x14]
call fcn.0042b2b9
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042af9d
jmp 0x406ba5
mov eax, dword [0x442954]
pop esi
cmp dword [eax - 8], ebx
je 0x406bfe
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0042af9d
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40733c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43375c
call fcn.0041bd98
sub esp, 0x114
push esi
push edi
mov esi, 0x4430c0
push 0x43c5a4
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0042b1e6
push dword [ebp - 0x10]
and dword [ebp - 4], 0
lea eax, [ebp - 0x120]
push eax
call fcn.0041c320
pop ecx
pop ecx
call fcn.00431e41
mov eax, dword [eax + 8]
push str.AXZB
push str.UNINSTALL
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x407482
call fcn.00431e41
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
call fcn.00431e41
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4073f1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4073f1
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0042ad12
push dword [ebp - 0x14]
push edi
call fcn.00402a53
add esp, 0xc
test eax, eax
je 0x407482
push str.UnInstall.ini
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0042b1e6
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0042b08a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0042af9d
push dword [ebp - 0x10]
lea eax, [ebp - 0x120]
push eax
call fcn.0041c320
pop ecx
pop ecx
push str._ProductName___ExeName_
lea ecx, [ebp - 0x18]
call fcn.0042b00b
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.00407a4c
pop ecx
lea eax, [ebp - 0x120]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push dword [ebp - 0x18]
mov edi, str.uninstall
push str.args
push edi
call esi
lea eax, [ebp - 0x120]
push eax
push 0x442ea8
push str.repair
push edi
call esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0042af9d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042af9d
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x4075f6
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4337ef
call fcn.0041bd98
sub esp, 0x110
mov eax, dword [0x43f328]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [0x4428fc]
mov dword [ebp - 4], 1
cmp dword [eax - 8], 0
je 0x40764d
push 0x4428fc
lea ecx, [ebp - 0x10]
call fcn.0042b08a
push dword [ebp - 0x10]
mov ebx, str.LibrarianLocation
mov edi, str.folders
push ebx
push edi
call fcn.0040756a
add esp, 0xc
jmp 0x407683
mov ebx, str.LibrarianLocation
push 0x4425cc
mov edi, str.folders
push ebx
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0040749c
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0042b08a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042af9d
mov eax, dword [ebp - 0x10]
mov esi, 0x43c1bc
cmp dword [eax - 8], 0
jne 0x407730
and byte [ebp - 0x11c], 0
lea eax, [ebp - 0x14]
push eax
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp byte [ebp - 0x11c], 0
jne 0x4076d7
push dword [0x4430c0]
lea eax, [ebp - 0x11c]
push eax
call fcn.0041c320
pop ecx
pop ecx
lea eax, [ebp - 0x11c]
push eax
call fcn.0041c410
cmp byte [ebp + eax - 0x11d], 0x5c
pop ecx
je 0x4076fd
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.0041c330
pop ecx
pop ecx
lea eax, [ebp - 0x11c]
push str.Axialis_Librarian
push eax
call fcn.0041c330
pop ecx
lea eax, [ebp - 0x11c]
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042b0da
lea eax, [ebp - 0x11c]
push eax
push ebx
push edi
call fcn.0040756a
add esp, 0xc
push 1
lea eax, [ebp - 0x14]
pop edi
lea ecx, [ebp - 0x10]
push edi
push eax
call fcn.00427476
mov eax, dword [eax]
push esi
push eax
call fcn.0041c4df
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x14]
setne bl
call fcn.0042af9d
test bl, bl
je 0x407765
push esi
lea ecx, [ebp - 0x10]
call fcn.0042b2b9
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0042ad12
mov dword [ebp - 0x18], edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0042af9d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40d770
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, edi
shr ecx, 2
mov edx, ecx
dec ecx
test edx, edx
jle 0x40d7bb
xor edx, edx
inc esi
xor ebx, ebx
inc esi
inc esi
mov dl, byte [esi - 3]
mov bl, byte [esi - 2]
inc esi
shl ebx, 8
or edx, ebx
xor ebx, ebx
mov bl, byte [esi - 2]
shl ebx, 0x10
or edx, ebx
xor ebx, ebx
mov bl, byte [esi - 1]
shl ebx, 0x18
or edx, ebx
xor eax, edx
mov edx, ecx
dec ecx
test edx, edx
jg 0x40d78b
xor ecx, ecx
and edi, 3
cmp edi, 1
je 0x40d7df
cmp edi, 2
je 0x40d7d5
cmp edi, 3
jne 0x40d7e5
mov cl, byte [esi]
inc esi
shl ecx, 0x10
xor edx, edx
mov dl, byte [esi]
inc esi
shl edx, 8
or ecx, edx
xor edx, edx
mov dl, byte [esi]
or ecx, edx
xor eax, ecx
pop edi
pop esi
pop ebx
ret
Function at 0x40f340
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x40f372
push esi
call fcn.00412c10
add esp, 4
cmp dword [esi + 0x40], 0
je 0x40f36b
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x40f3f1
mov eax, dword [esi + 0x1b0]
cmp dword [eax + 0x10], 0
je 0x40f3da
mov eax, dword [esi + 8]
test eax, eax
je 0x40f395
push esi
call dword [eax]
add esp, 4
push esi
mov eax, dword [esi + 0x1b0]
call dword [eax]
add esp, 4
test eax, eax
je 0x40f3d6
cmp eax, 2
je 0x40f3da
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40f388
cmp eax, 3
je 0x40f3bb
cmp eax, 1
jne 0x40f388
inc dword [ecx + 4]
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 8]
cmp dword [ecx + 4], eax
jl 0x40f388
mov edx, dword [esi + 0x13c]
add edx, eax
mov dword [ecx + 8], edx
jmp 0x40f388
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0040f420
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x40f411
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x12
mov edx, dword [esi + 0x10]
mov eax, dword [esi]
mov dword [eax + 0x18], edx
mov eax, dword [esi]
call dword [eax]
add esp, 4
push esi
call fcn.0040f420
add esp, 4
pop esi
ret

Function at 0x40f420
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push ebp
cmp dword [esi + 0x10], 0xcc
je 0x40f44e
push esi
mov eax, dword [esi + 0x1a0]
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x10], 0xcc
add esp, 4
xor edi, edi
mov eax, dword [esi + 0x1a0]
cmp dword [eax + 8], edi
je 0x40f4bf
lea ebx, [esi + 0x8c]
mov ecx, dword [ebx]
cmp dword [esi + 0x74], ecx
jbe 0x40f4a2
mov eax, dword [esi + 8]
test eax, eax
je 0x40f485
push esi
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 8]
mov dword [ecx + 8], eax
mov ebp, dword [esi + 8]
call dword [ebp]
add esp, 4
mov ebp, dword [ebx]
push edi
push ebx
mov eax, dword [esi + 0x1a4]
push edi
push esi
call dword [eax + 4]
add esp, 0x10
cmp dword [ebx], ebp
jne 0x40f461
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
mov eax, dword [esi + 0x1a0]
call dword [eax + 4]
add esp, 4
mov eax, dword [esi + 0x1a0]
push esi
call dword [eax]
add esp, 4
mov dword [ebx], edi
jmp 0x40f450
cmp dword [esi + 0x44], 1
sbb eax, eax
pop ebp
add eax, 0xce
pop edi
mov dword [esi + 0x10], eax
mov eax, 1
pop esi
pop ebx
ret
Function at 0x418ef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x24
push ebx
mov ecx, dword [eax + 0x1c8]
mov dword [esp + 8], ecx
push esi
push edi
add ecx, 0x20
mov dword [esp + 0xc], ecx
push ebp
push ecx
push eax
call fcn.00419060
mov ecx, dword [esp + 0x40]
add esp, 8
mov esi, eax
cmp dword [ecx + 0x78], 3
jne 0x418f52
mov ecx, dword [ecx]
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x18], esi
add ecx, 0x18
mov ebx, dword [esp + 0x14]
mov edx, dword [eax]
mov dword [ecx + 4], edx
mov eax, dword [ebx + 0x24]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov edx, dword [ebx + 0x28]
mov dword [ecx + 0xc], edx
mov ecx, dword [eax]
mov dword [ecx + 0x14], 0x5d
jmp 0x418f64
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov dword [ecx + 0x14], 0x5e
mov ecx, dword [eax]
mov dword [ecx + 0x18], esi
push 1
mov ebx, dword [eax]
push eax
call dword [ebx + 4]
mov eax, dword [esp + 0x40]
add esp, 8
mov ecx, dword [eax + 0x78]
mov ebx, dword [eax + 4]
push ecx
push esi
push 1
push eax
call dword [ebx + 8]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], esi
add esp, 0x10
cmp dword [ecx + 0x78], 0
mov dword [esp + 0x28], 0
jle 0x419046
mov edi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
cdq
idiv ecx
mov ebx, eax
mov dword [esp + 0x18], ecx
xor eax, eax
mov dword [esp + 0x20], eax
cmp ecx, eax
jle 0x419025
mov dword [esp + 0x1c], eax
lea eax, [ecx - 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call fcn.00419140
mov edx, dword [esp + 0x2c]
add esp, 0x10
cmp esi, edx
jle 0x419013
xor ecx, ecx
test ebx, ebx
jle 0x41900b
mov ebp, dword [edi]
inc ecx
add ebp, edx
cmp ebx, ecx
mov byte [ebp + ecx - 1], al
jg 0x418ffe
add edx, dword [esp + 0x24]
cmp edx, esi
jl 0x418ff8
add dword [esp + 0x1c], ebx
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x18], eax
jg 0x418fd4
add edi, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], ebx
inc dword [esp + 0x28]
add dword [esp + 0x2c], 4
mov ecx, dword [esp + 0x28]
cmp dword [eax + 0x78], ecx
jg 0x418fac
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], esi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x4229b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4420b0
cmp edx, dword [eax]
je 0x4229d3
add eax, 8
inc ecx
cmp eax, 0x442140
jl 0x4229c4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4420b0]
jne 0x422b01
mov eax, dword [0x448628]
cmp eax, 1
je 0x422adb
test eax, eax
jne 0x422a04
cmp dword [0x43f5f4], 1
je 0x422adb
cmp edx, 0xfc
je 0x422b01
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422a3b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041c320
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c410
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x422a7e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c410
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x436f1c
push edi
call fcn.0041cc00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041c320
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041c330
lea eax, [ebp - 0xa0]
push 0x436efc
push eax
call fcn.0041c330
push dword [esi + 0x4420b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c330
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004253c9
add esp, 0x2c
pop edi
jmp 0x422b01
lea eax, [ebp + 8]
lea esi, [esi + 0x4420b4]
push 0
push eax
push dword [esi]
call fcn.0041c410
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 0x42a68d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
test ebx, ebx
push edi
mov dword [esp + 0xc], ecx
je 0x42a6d3
push esi
mov esi, 0xf0
push esi
push ebx
call fcn.004043b1
pop ecx
mov edi, eax
pop ecx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
pop esi
je 0x42a6d3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42a6dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov ecx, dword [esp + 0xc]
push ebp
call fcn.0042a6e4
pop edi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x432908
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 0x432936
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x432954
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043286e
jmp 0x432954
mov eax, dword [esi + 0x14]
test eax, eax
je 0x432954
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043286e
test edi, edi
mov eax, edi
jne 0x43293e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x49b833ac
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0xe3e519e
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x41b0a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
push esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
sete dl
test eax, eax
sete dh
or dh, dl
jne 0x41b0e5
mov dh, byte [ecx]
test dh, dh
je 0x41b0f0
inc ecx
nop
movzx esi, byte [eax]
test esi, esi
setne dl
je 0x41b0f2
movzx edi, dh
mov dh, byte [edi + 0xea1c88]
cmp dh, byte [esi + 0xea1c88]
jne 0x41b100
inc eax
mov dh, byte [ecx]
inc ecx
test dh, dh
jne 0x41b0c0
jmp 0x41b0f2
or ecx, eax
sete al
movzx eax, al
pop esi
pop edi
ret
mov dl, 1
cmp byte [eax], 0
setne al
xor al, dl
movzx eax, al
pop esi
pop edi
ret
xor eax, eax
movzx eax, al
pop esi
pop edi
ret