joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405afa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4373e8
push esi
call fcn.00405f13
push esi
call fcn.00405aab
mov edi, eax
test edi, edi
jne 0x405b1b
xor eax, eax
jmp 0x405b6d
push edi
call fcn.00406183
test byte [0x44aa30], 0x80
je 0x405b34
mov al, byte [edi]
test al, al
je 0x405b17
cmp al, 0x5c
je 0x405b17
sub edi, esi
push esi
call fcn.00405f24
cmp eax, edi
push esi
jle 0x405b57
call fcn.004062d5
test eax, eax
je 0x405b4f
test byte [eax], 0x10
je 0x405b17
push esi
call fcn.00405a5f
jmp 0x405b36
call fcn.00405a18
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405be4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405c13
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c58
mov eax, edi
dec edi
test eax, eax
jne 0x405c1e
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c52
Function at 0x405c5c
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00406313
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405c88
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405dcc
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x439d70], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x439d70
je 0x405ccc
push 1
push 0
push esi
call fcn.00405be4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dd2
cmp eax, edi
jg 0x405dd2
mov esi, 0x4397e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dd2
cmp eax, edi
jg 0x405dd2
push esi
push ebp
push str._s_s_r_n
push 0x4393e8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call fcn.00405f31
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405dcc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405db4
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x405da8
push str._Rename__r_n
push edi
call fcn.00405b72
test eax, eax
jne 0x405dd9
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call fcn.00405f13
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x4393e8
push eax
call fcn.00405bbe
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x44aab0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4099bc
push eax
call fcn.00405b72
test eax, eax
je 0x405d8f
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405e02
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405df5
sub eax, edi
jmp 0x405d91
Function at 0x405e06
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e6a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e59
cmp dword [ebp + 0x14], 1
je 0x405e5b
cmp dword [ebp + 0x14], 2
je 0x405e5b
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40621c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406241
mov eax, dword [0x4098b8]
cmp eax, 0xffffffff
je 0x406238
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x4098b8], 0xffffffff
jmp 0x4062b4
cmp dword [0x43a980], ebx
je 0x4062b4
cmp byte [0x43a580], bl
je 0x406280
cmp dword [0x4098b8], 0xffffffff
jne 0x406289
push 4
push 0x40000000
push 0x43a580
call fcn.00405be4
cmp eax, 0xffffffff
mov dword [0x4098b8], eax
je 0x4062b4
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x4098b8], 0xffffffff
je 0x4062b4
push esi
mov esi, 0x43e9c0
push 0x409a8c
push esi
call fcn.00405f31
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f24
push eax
push esi
push dword [0x4098b8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x43a174], esi
push edi
jne 0x4063b4
mov ecx, 0x43a170
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406390
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x43a570
jl 0x40638b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4063e9
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43a170]
xor eax, esi
inc ecx
dec edx
jne 0x4063cc
pop edi
pop esi
not eax
ret 0xc
Function at 0x401390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [esi + 0x1c]
mov ecx, dword [eax]
sub ebx, 0x10
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x4013f6
cmp dword [ebx + 0xc], 0
jl 0x4013ea
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x4013ea
push edx
call fcn.00403390
add esp, 4
mov dword [ebp + 8], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4013e2
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [esi + 0x1c], eax
jmp 0x4013f6
push dword [ecx - 0xc]
push ecx
lea ecx, [esi + 0x1c]
call fcn.004032e0
mov eax, dword [ebp + 0x10]
push 0x5917b4
push dword [eax]
call fcn.0052cc71
add esp, 8
mov dword [esi + 8], eax
test eax, eax
je 0x4014c7
push eax
push 1
lea ebx, [esi + 0x10]
push 0xc
push ebx
call fcn.0052ce49
add esp, 0x10
cmp eax, 1
je 0x401436
push dword [esi + 0x1c]
push 0x5917b8
jmp 0x4014cf
cmp dword [ebx], 0x5457425a
je 0x40144b
push dword [esi + 0x1c]
push 0x5917d0
jmp 0x4014cf
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 4]
je 0x40145d
push dword [esi + 0x1c]
push 0x5917e8
jmp 0x4014cf
push 0
push 0
push 0
push 0
push dword [esi + 8]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0
call fcn.0040f4b0
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4014be
cmp eax, 0xfffffff7
jne 0x401491
push dword [esi + 0x1c]
push str._s_BZ_CONFIG_ERROR_
jmp 0x4014cf
cmp eax, 0xfffffffe
jne 0x4014a0
push dword [esi + 0x1c]
push str._s_BZ_PARAM_ERROR_
jmp 0x4014cf
cmp eax, 0xfffffffa
jne 0x4014af
push dword [esi + 0x1c]
push str._s_ferror_f__is_nonzero_
jmp 0x4014cf
cmp eax, 0xfffffffd
jne 0x4014db
push dword [esi + 0x1c]
push 0x591840
jmp 0x4014cf
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc
push dword [esi + 0x1c]
push 0x591854
lea eax, [esi + 0x20]
push eax
call fcn.004030c0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
Function at 0x402a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402a55
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402a94
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402a90
lea ebx, [ebx]
cmp esi, edx
jae 0x402a94
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402a80
cmp esi, edx
jb 0x402a99
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x405130
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1078
call fcn.0052f2b0
mov eax, dword [0x5b5450]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], 0x10
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1074], 0
jb 0x40515d
mov edx, dword [edx]
push 0x5917b4
push edx
call fcn.0052cc71
mov esi, eax
add esp, 8
test esi, esi
jne 0x40519c
push eax
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], eax
push 0x592608
mov ecx, edi
mov byte [edi], al
call fcn.004023c0
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c359
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 0x106c], 0
mov dword [ebp - 0x1070], 0
mov dword [ebp - 0x1068], 0x67452301
mov dword [ebp - 0x1064], 0xefcdab89
mov dword [ebp - 0x1060], 0x98badcfe
mov dword [ebp - 0x105c], 0x10325476
call fcn.0052dc95
add esp, 4
test eax, eax
jne 0x40522d
jmp 0x4051f0
push esi
push 0x1000
lea eax, [ebp - 0x1008]
push 1
push eax
call fcn.0052ce49
add esp, 0x10
test eax, eax
je 0x405220
push eax
lea edx, [ebp - 0x1008]
lea ecx, [ebp - 0x1070]
call fcn.0040c520
add esp, 4
push esi
call fcn.0052dc95
add esp, 4
test eax, eax
je 0x4051f0
push esi
call fcn.0052caea
add esp, 4
lea edx, [ebp - 0x1018]
lea ecx, [ebp - 0x1070]
call fcn.0040c5f0
push edi
lea ecx, [ebp - 0x1018]
call fcn.0040c750
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0052c359
mov esp, ebp
pop ebp
ret
Function at 0x40b8c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041c6f8
Function at 0x40d190
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55cad8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5b5450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x5c]
test edi, edi
je 0x40d21f
cmp dword [esi + 0x60], 0x10
lea eax, [esi + 0x4c]
jb 0x40d1ce
mov eax, dword [eax]
push 0
push edi
push eax
push dword [esi + 0x7c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, edi
je 0x40d21f
lea ecx, [ebp - 0x28]
call fcn.0040d4e0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esi + 0x80]
mov dword [ebp - 4], 0
call fcn.00403f60
cmp dword [ebp - 0x14], 0x10
jb 0x40d20f
push dword [ebp - 0x28]
call fcn.00418340
add esp, 4
push dword [esi + 0x7c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x7c], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c359
mov esp, ebp
pop ebp
ret
Function at 0x40dc40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 0x88]
push 0x592c28
call fcn.0041cd40
mov ecx, esi
pop esi
jmp fcn.0041ca5c

Function at 0x40f240
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x40f250
mov dword [edi], 0
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40f40e
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x13c4], 0
test ecx, ecx
je 0x40f40e
mov eax, dword [esp + 0x18]
test eax, eax
js 0x40f40e
cmp byte [esi + 0x1390], 0
je 0x40f2a2
test edi, edi
je 0x40f291
mov dword [edi], 0xffffffff
pop edi
mov dword [esi + 0x13c4], 0xffffffff
xor eax, eax
pop esi
ret 0x10
test eax, eax
jne 0x40f2bd
test edi, edi
je 0x40f2ac
mov dword [edi], eax
pop edi
mov dword [esi + 0x13c4], 0
xor eax, eax
pop esi
ret 0x10
push ebx
push ebp
push dword [esi]
mov dword [esi + 0x13a8], eax
mov dword [esi + 0x13a4], ecx
call fcn.0052dcbb
add esp, 4
test eax, eax
jne 0x40f37a
lea ecx, [ecx]
cmp dword [esi + 0x1398], 0
jne 0x40f32b
push dword [esi]
call fcn.0040f700
add esp, 4
test al, al
jne 0x40f32b
push dword [esi]
lea ebp, [esi + 4]
push 0x1388
push 1
push ebp
call fcn.0052ce49
push dword [esi]
mov ebx, eax
call fcn.0052dcbb
add esp, 0x14
test eax, eax
jne 0x40f37a
mov dword [esi + 0x138c], ebx
mov dword [esi + 0x1398], ebx
mov dword [esi + 0x1394], ebp
lea eax, [esi + 0x1394]
push eax
call fcn.0040ef40
test eax, eax
jne 0x40f3d3
push dword [esi]
call fcn.0040f700
add esp, 4
test al, al
je 0x40f35f
cmp dword [esi + 0x1398], 0
jne 0x40f35f
cmp dword [esi + 0x13a8], 0
ja 0x40f397
cmp dword [esi + 0x13a8], 0
je 0x40f3b4
push dword [esi]
call fcn.0052dcbb
add esp, 4
test eax, eax
je 0x40f2e0
test edi, edi
je 0x40f384
mov dword [edi], 0xfffffffa
pop ebp
pop ebx
pop edi
mov dword [esi + 0x13c4], 0xfffffffa
xor eax, eax
pop esi
ret 0x10
test edi, edi
je 0x40f3a1
mov dword [edi], 0xfffffff9
pop ebp
pop ebx
pop edi
mov dword [esi + 0x13c4], 0xfffffff9
xor eax, eax
pop esi
ret 0x10
test edi, edi
je 0x40f3be
mov dword [edi], 0
mov eax, dword [esp + 0x20]
pop ebp
pop ebx
pop edi
mov dword [esi + 0x13c4], 0
pop esi
ret 0x10
cmp eax, 4
jne 0x40f3f9
test edi, edi
je 0x40f3de
mov dword [edi], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esi + 0x13a8]
pop ebp
pop ebx
pop edi
mov dword [esi + 0x13c4], 4
pop esi
ret 0x10
test edi, edi
je 0x40f3ff
mov dword [edi], eax
pop ebp
pop ebx
mov dword [esi + 0x13c4], eax
pop edi
xor eax, eax
pop esi
ret 0x10
test edi, edi
je 0x40f418
mov dword [edi], 0xfffffffe
test esi, esi
je 0x40f426
mov dword [esi + 0x13c4], 0xfffffffe
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x40f620
Capabilities:
Terminate process

Disassembly:
call fcn.0040f670
push eax
push dword [esp + 8]
push str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to_me_at:_jseward_bzip.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks.__Julian_Seward__15_February_2005._n_n
call fcn.0052ea6c
add eax, 0x40
push eax
call fcn.0052edd8
add esp, 0x10
cmp dword [esp + 4], 0x3ef
jne 0x40f660
push str._n_A_special_note_about_internal_error_number_1007__n_nExperience_suggests_that_a_common_cause_of_i.e._1007_nis_unreliable_memory_or_other_hardware.__The_1007_assertion_njust_happens_to_cross_check_the_results_of_huge_numbers_of_nmemory_reads_writes__and_so_acts__unintendedly__as_a_stress_ntest_of_your_memory_system._n_nI_suggest_the_following:_try_compressing_the_file_again__npossibly_monitoring_progress_in_detail_with_the__vv_flag._n_n_If_the_error_cannot_be_reproduced__and_or_happens_at_different_n__points_in_compression__you_may_have_a_flaky_memory_system._n__Try_a_memory_test_program.__I_have_used_Memtest86_n___www.memtest86.com_.__At_the_time_of_writing_it_is_free__GPLd_._n__Memtest86_tests_memory_much_more_thorougly_than_your_BIOSs_n__power_on_test__and_may_find_failures_that_the_BIOS_doesnt._n_n_If_the_error_can_be_repeatably_reproduced__this_is_a_bug_in_n__bzip2__and_I_would_very_much_like_to_hear_about_it.__Please_n__let_me_know__and__ideally__save_a_copy_of_the_file_causing_the_n__problem____without_which_I_will_be_unable_to_investigate_it._n_n
call fcn.0052ea6c
add eax, 0x40
push eax
call fcn.0052edd8
add esp, 8
push 3
call fcn.0052d98d
int3
Function at 0x4126b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 4]
cmp edi, 2
jae 0x412728
test edi, edi
je 0x4126cd
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov al, byte [eax]
mov byte [ecx], al
call fcn.0052f9bd
mov dword [eax], 0
push dword [esi + 0x40]
mov ecx, edi
mov eax, 0x4000
sar eax, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push 1
push eax
call fcn.0052ce49
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x412711
push dword [esi + 0x40]
call fcn.0052dcbb
add esp, 4
test eax, eax
je 0x412711
mov dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x44]
mov dword [esi], eax
cmp ecx, 2
jae 0x412728
pop edi
mov dword [esi + 0x58], ecx
pop esi
pop ebp
ret
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x41281a
cmp byte [eax + 1], 0x8b
jne 0x41281a
add dword [esi + 4], 0xfffffffe
push ebx
add eax, 2
push esi
mov dword [esi], eax
call fcn.004129f0
push esi
mov edi, eax
call fcn.004129f0
add esp, 8
mov ebx, eax
cmp edi, 8
jne 0x41280e
test bl, 0xe0
jne 0x41280e
mov edi, 6
push esi
call fcn.004129f0
add esp, 4
dec edi
jne 0x412771
test bl, 4
je 0x4127ad
push esi
call fcn.004129f0
push esi
mov edi, eax
call fcn.004129f0
shl eax, 8
add esp, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x4127ad
push esi
call fcn.004129f0
add esp, 4
cmp eax, 0xffffffff
jne 0x412798
test bl, 8
je 0x4127c4
push esi
call fcn.004129f0
add esp, 4
test eax, eax
je 0x4127c4
cmp eax, 0xffffffff
jne 0x4127b2
test bl, 0x10
je 0x4127e2
lea esp, [esp]
push esi
call fcn.004129f0
add esp, 4
test eax, eax
je 0x4127e2
cmp eax, 0xffffffff
jne 0x4127d0
test bl, 2
je 0x4127fc
mov edi, 2
lea esp, [esp]
push esi
call fcn.004129f0
add esp, 4
dec edi
jne 0x4127f0
mov eax, dword [esi + 0x3c]
neg eax
sbb eax, eax
pop ebx
and eax, 0xfffffffd
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebp
ret
pop ebx
pop edi
mov dword [esi + 0x38], 0xfffffffd
pop esi
pop ebp
ret
pop edi
mov dword [esi + 0x58], 1
pop esi
pop ebp
ret
Function at 0x4128e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x412992
cmp byte [esi + 0x5c], 0x77
jne 0x412992
mov dword [esi + 4], ebx
push edi
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x41292c
push dword [esi + 0x40]
push edi
push 1
push dword [esi + 0x48]
call fcn.0052e6db
add esp, 0x10
cmp eax, edi
jne 0x412983
mov eax, dword [esi + 0x48]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x4000
test ebx, ebx
jne 0x412973
push dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push esi
call fcn.00413870
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
mov dword [esi + 0x38], eax
test edi, edi
jne 0x412954
cmp eax, 0xfffffffb
jne 0x412954
mov dword [esi + 0x38], edi
test ecx, ecx
jne 0x412962
cmp dword [esi + 0x38], 1
je 0x412962
xor ebx, ebx
jmp 0x412967
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x412900
cmp eax, 1
je 0x412900
mov eax, dword [esi + 0x38]
pop edi
xor ecx, ecx
cmp eax, 1
pop esi
cmove eax, ecx
pop ebx
pop ebp
ret
pop edi
mov dword [esi + 0x38], 0xffffffff
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
pop esi
mov eax, 0xfffffffe
pop ebx
pop ebp
ret

Function at 0x4129f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], 0
jne 0x412a47
cmp dword [esi + 4], 0
jne 0x412a52
call fcn.0052f9bd
mov dword [eax], 0
push dword [esi + 0x40]
push 0x4000
push 1
push dword [esi + 0x44]
call fcn.0052ce49
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x412a4d
push dword [esi + 0x40]
mov dword [esi + 0x3c], 1
call fcn.0052dcbb
add esp, 4
test eax, eax
je 0x412a47
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
pop esi
pop ebp
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
pop esi
pop ebp
ret
Function at 0x414020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x24]
lea esp, [esp]
mov ebx, dword [edi + 0x34]
mov eax, dword [edi + 0x24]
sub ebx, dword [edi + 0x6c]
add eax, 0xfffffefa
sub ebx, dword [edi + 0x64]
add eax, esi
cmp dword [edi + 0x64], eax
jb 0x4140a9
mov ecx, dword [edi + 0x30]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.0052fa20
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], esi
sub dword [edi + 0x64], esi
add esp, 0xc
sub dword [edi + 0x54], esi
lea ecx, [eax + edx*2]
jmp 0x414070
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x41407f
sub eax, esi
jmp 0x414081
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x414070
mov eax, dword [edi + 0x38]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x41409f
sub eax, esi
jmp 0x4140a1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x414090
add ebx, esi
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x414101
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
push ebx
add eax, dword [edi + 0x30]
push eax
push ecx
call fcn.00414450
add dword [edi + 0x6c], eax
mov ebx, dword [edi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x4140ed
mov eax, dword [edi + 0x30]
add eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x50]
movzx edx, byte [eax]
mov dword [edi + 0x40], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x4c]
mov dword [edi + 0x40], edx
cmp ebx, 0x106
jae 0x414101
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x414030
pop edi
pop esi
pop ebx
pop ebp
ret