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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0044f60b
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4556ce
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004556ef
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4567c8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0044466e
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x456804
call fcn.004569e7
mov dword [esi + 0xc], 1
jmp 0x456809
call fcn.004569e7
cmp dword [esi], 0
je 0x456852
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x45682c
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00444395
jmp 0x45683d
push 0xff
mov ecx, esi
call fcn.0042e850
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004443b8
jmp 0x456876
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x456876
push dword [esi]
push dword [ebp - 4]
call fcn.0045448c
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45693c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004569e7
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x456984
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00444395
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004443b8
jmp 0x45698f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0045448c
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x466d24
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0049d184
call fcn.0044f659
cmp dword [eax + 0x14], 0
jne 0x466d3f
mov ecx, esi
pop esi
jmp fcn.0046612a
pop esi
ret

Function at 0x467a5a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004b0210
call fcn.0044f659
cmp dword [eax + 0x14], 0
jne 0x467a75
mov ecx, esi
pop esi
jmp fcn.00467343
pop esi
ret
Function at 0x576e52
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x608190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005650ec
mov dword [ebp - 0x14], eax
cmp dword [0x613f80], esi
jne 0x576f45
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x576ed2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x577025
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x577025
push 0x5d0770
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x577025
push eax
call ebx
push 0x5d077c
push edi
mov dword [0x613f80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5d078c
push edi
mov dword [0x613f84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x613f88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x613f90], eax
test eax, eax
je 0x576f42
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x613f8c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x576f6a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x576f5d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x576f7f
push 4
pop eax
jmp 0x577027
cmp dword [ebp - 0x14], esi
je 0x576f7f
push dword [0x613f80]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x576f64
mov eax, dword [0x613f8c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x576fdd
cmp dword [0x613f90], edi
je 0x576fdd
push eax
call ebx
push dword [0x613f90]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x576fdd
test eax, eax
je 0x576fdd
call ecx
test eax, eax
je 0x576fd2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x576fd2
test byte [ebp - 8], 1
jne 0x576fdd
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x57700d
mov eax, dword [0x613f84]
cmp eax, edi
je 0x57700a
push eax
call ebx
test eax, eax
je 0x57700a
call eax
mov esi, eax
test esi, esi
je 0x57700a
mov eax, dword [0x613f88]
cmp eax, edi
je 0x57700a
push eax
call ebx
test eax, eax
je 0x57700a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x613f80]
call ebx
test eax, eax
je 0x577025
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x577027
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00558807
mov esp, ebp
pop ebp
ret
Function at 0x57ca40
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call fcn.0057cd30
push 0
call fcn.005596ee
push eax
call fcn.0055c5d5
add esp, 8
mov dword [ebp - 4], 0
call fcn.0055c5b4
mov edi, dword [esi + 0x19c]
mov ecx, eax
sar ecx, 6
movzx eax, al
test cl, cl
movzx ebx, cl
cmove ebx, eax
mov eax, dword [esi + 0x1a4]
and eax, 0xfffd
mov dword [ebp - 0xc], ebx
or eax, 2
mov dword [ebp - 8], eax
call fcn.00582150
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.00582150
mov edx, dword [ebp - 4]
movsx ecx, bl
xor ecx, edi
shr edi, 8
and ecx, 0xff
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
xor ecx, 1
imul ecx, dword [ebp - 8]
mov dword [esi + 0x1a4], edi
mov eax, dword [eax + 4]
sar ecx, 8
xor cl, byte [ebp - 0xc]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 4], edx
cmp edx, 0xa
jl 0x57ca67
mov eax, dword [esi + 0x1a4]
mov ebx, dword [ebp + 8]
and eax, 0xfffd
mov edi, dword [esi + 0x19c]
or eax, 2
sar ebx, 0x10
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
call fcn.00582150
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.00582150
movsx ecx, bl
xor ecx, edi
mov ebx, dword [ebp + 8]
and ecx, 0xff
shr edi, 8
sar ebx, 0x18
mov dword [ebp + 8], ebx
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
xor ecx, 1
imul ecx, dword [ebp - 0xc]
mov dword [esi + 0x1a4], edi
mov eax, dword [eax + 4]
sar ecx, 8
xor cl, byte [ebp - 8]
mov byte [eax + 0xa], cl
mov eax, dword [esi + 0x1a4]
mov edi, dword [esi + 0x19c]
and eax, 0xfffd
or eax, 2
mov dword [ebp - 0xc], eax
call fcn.00582150
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.00582150
movsx ecx, bl
xor ecx, edi
shr edi, 8
and ecx, 0xff
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
xor ecx, 1
imul ecx, dword [ebp - 0xc]
mov dword [esi + 0x1a4], edi
pop edi
mov eax, dword [eax + 4]
pop esi
sar ecx, 8
xor cl, byte [ebp + 8]
mov byte [eax + 0xb], cl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x57cc50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x100]
test byte [eax + 0xc], 1
je 0x57cd1f
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [esi + 0x6c], eax
jbe 0x57cd1f
push ebx
push edi
lea esp, [esp]
mov ecx, dword [esi + 0x7c]
mov edi, dword [esi + 0x19c]
add ecx, eax
mov eax, dword [esi + 0x1a4]
and eax, 0xfffd
mov dword [ebp - 0xc], ecx
or eax, 2
mov bl, byte [ecx]
mov dword [ebp - 8], eax
call fcn.00582150
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.00582150
movsx ecx, bl
xor ecx, edi
shr edi, 8
and ecx, 0xff
xor edi, dword [eax + ecx*4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor eax, 1
imul eax, dword [ebp - 8]
mov dword [esi + 0x1a4], edi
sar eax, 8
xor byte [ecx], al
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x6c]
jb 0x57cc80
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x57cd30
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [esi + 0x19c], 0x12345678
mov dword [esi + 0x1a0], 0x23456789
mov dword [esi + 0x1a4], 0x34567890
cmp dword [esi + 0x198], ecx
jbe 0x57cdea
push ebx
push edi
jmp 0x57cd70
mov eax, dword [esi + 0x194]
mov edi, dword [esi + 0x19c]
mov bl, byte [ecx + eax]
call fcn.00582150
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.00582150
movsx ecx, bl
xor ecx, edi
shr edi, 8
and ecx, 0xff
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi + 0x1a4], edi
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 0x198]
jb 0x57cd70
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x57eae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp method.CFile.virtual_56

Function at 0x57fc00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp method.CFile.virtual_60
Function at 0x580320
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59df58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x608190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0x2e
lea ecx, [ebp - 0x20]
call fcn.00582b50
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 1
push 0x2e
push dword [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00583f80
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [edi + 4], eax
movzx eax, word [ecx + 4]
mov word [edi + 8], ax
movzx eax, word [ecx + 6]
mov word [edi + 0xa], ax
movzx eax, word [ecx + 8]
mov word [edi + 0xc], ax
movzx eax, word [ecx + 0xa]
mov word [edi + 0xe], ax
movzx eax, word [ecx + 0xc]
mov word [edi + 0x10], ax
movzx eax, word [ecx + 0xe]
mov word [edi + 0x12], ax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x1c], eax
movzx eax, word [ecx + 0x1e]
movzx esi, word [ecx + 0x1c]
mov dword [ebp + 8], eax
movzx eax, word [ecx + 0x20]
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x22]
mov word [edi + 0x20], ax
movzx eax, word [ecx + 0x24]
mov word [edi + 0x22], ax
mov eax, dword [ecx + 0x26]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0x2a]
lea ecx, [ebp - 0x20]
mov dword [edi + 0x28], eax
call fcn.00582d30
mov eax, dword [edi + 4]
cmp eax, dword [0x6095b8]
je 0x5803fd
xor bl, bl
jmp 0x58046a
mov eax, dword [ebx + 0x54]
lea ecx, [edi + 0x38]
push 0
push esi
mov dword [ebp - 0x14], eax
call fcn.00582ca0
push 1
push esi
push dword [edi + 0x3c]
mov ecx, ebx
call fcn.00583f80
mov eax, dword [ebp + 8]
test ax, ax
je 0x58043e
movzx esi, ax
lea ecx, [edi + 0x2c]
push 0
push esi
call fcn.00582ca0
push 1
push esi
push dword [edi + 0x30]
mov ecx, ebx
call fcn.00583f80
mov eax, dword [ebp - 0x10]
test ax, ax
je 0x580461
movzx esi, ax
lea ecx, [edi + 0x44]
push 0
push esi
call fcn.00582ca0
push 1
push esi
push dword [edi + 0x48]
mov ecx, ebx
call fcn.00583f80
mov eax, dword [ebp - 0x14]
cmp dword [ebx + 0x54], eax
sete bl
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00582ba0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5806f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59df58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x608190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [eax + 0x34]
lea ecx, [ebp - 0x20]
mov esi, dword [eax + 0x40]
movzx eax, si
mov dword [ebp - 0x14], eax
add eax, 0x1e
movzx ebx, di
add eax, ebx
push 0
push eax
call fcn.00582b50
mov ecx, dword [ebp - 0x1c]
mov eax, dword [0x6095bc]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0xa]
mov word [eax + 4], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0xc]
mov word [eax + 6], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0xe]
mov word [eax + 8], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0x10]
mov word [eax + 0xa], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0x12]
mov word [eax + 0xc], cx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x14]
mov dword [eax + 0xe], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x12], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0x16], ecx
mov eax, dword [ebp - 0x1c]
mov word [eax + 0x1a], si
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
push esi
mov word [eax + 0x1c], di
mov eax, dword [ebp - 0x1c]
push dword [edx + 0x3c]
add eax, 0x1e
push eax
call fcn.0055ff70
mov eax, dword [ebp - 0x10]
push ebx
push dword [eax + 0x30]
mov eax, dword [ebp - 0x1c]
add eax, 0x1e
add eax, esi
push eax
call fcn.0055ff70
add esp, 0x18
lea edi, [esi + 0x1e]
mov esi, dword [ebp + 8]
add edi, ebx
mov ecx, esi
push 1
push edi
push dword [ebp - 0x1c]
call fcn.00584370
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x2c]
call fcn.00582d30
mov eax, dword [esi + 0x54]
mov word [ebx + 0x20], ax
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [esi + 0x34]
sub ecx, edi
add eax, ecx
lea ecx, [ebp - 0x20]
mov dword [ebx + 0x28], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00582ba0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x581980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x24]
lea ecx, [ecx]
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x34]
add eax, 0xfffffefa
sub edx, dword [edi + 0x6c]
add eax, esi
sub edx, dword [edi + 0x64]
mov dword [ebp + 8], edx
cmp dword [edi + 0x64], eax
jb 0x581a0c
mov ecx, dword [edi + 0x30]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.0055ff70
mov edx, dword [edi + 0x44]
add esp, 0xc
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], esi
sub dword [edi + 0x64], esi
sub dword [edi + 0x54], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x5819df
sub eax, esi
jmp 0x5819e1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x5819d0
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 0x5819ff
sub eax, esi
jmp 0x581a01
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x5819f0
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x581ac1
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x581a39
xor eax, eax
jmp 0x581a85
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x581a56
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.00587ac0
jmp 0x581a66
cmp eax, 2
jne 0x581a6f
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.00581e60
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp - 4]
call fcn.0055ff70
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x6c], eax
mov ebx, dword [edi + 0x6c]
cmp ebx, 3
jb 0x581aad
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 0x581ac1
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x581990
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x581e6c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00581e80
Function at 0x582fc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e0a1
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x608190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.CZipStorage.0
call fcn.00582d60
mov dword [ebp - 4], 0
call fcn.004440f9
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x58301b
push 0x80004005
call fcn.0042ec10
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 1
call fcn.00582b80
push 3
push 0x5d5d64
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0x10000
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x20], 0
call fcn.0042e990
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x583080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e0d6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x608190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CZipStorage.0
lea ecx, [esi + 0x40]
mov dword [ebp - 4], 1
call fcn.00582ba0
mov edx, dword [esi + 0x30]
or ecx, 0xffffffff
sub edx, 0x10
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5830df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00582dc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5870d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
jne 0x5870ec
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00443350
add esp, 4
mov byte [ebp - 1], 1
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x58712d
push esi
mov byte [ebp - 1], al
call fcn.00443359
mov al, byte [ebp - 1]
add esp, 4
pop esi
pop edi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x587135
xor ecx, ecx
jmp 0x58714f
mov ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x587140
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.0042e990
push esi
call fcn.00443359
mov al, byte [ebp - 1]
add esp, 4
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x587190
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e840
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x608190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
call fcn.0057af50
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.005872a0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call edi
test eax, eax
jne 0x587223
lea eax, [ebp - 0x10]
push eax
call fcn.0057c460
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
add esp, 4
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call edi
test eax, eax
jne 0x587223
xor edi, edi
jmp 0x587235
mov edi, dword [ebp - 0x18]
imul edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0
imul edi, dword [ebp - 0x20]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x587253
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00586b00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x587297
xor al, al
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov al, 1
pop ebp
ret

Function at 0x587340
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x587367
xor al, al
pop esi
pop ebp
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
jne 0x587385
pop edi
xor al, al
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov al, 1
pop edi
pop esi
pop ebp
ret