joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436a20
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6ff2
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x98], eax
mov esi, edx
mov dword [ebx], eax
lea ecx, [eax + 0xf]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0x3e000000
mov dword [ebp - 0x60], 0x3f000000
mov dword [ebp - 0x5c], 0x37363534
mov dword [ebp - 0x58], 0x3b3a3938
mov dword [ebp - 0x54], 0x3d3c
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0x2010000
mov dword [ebp - 0x48], 0x6050403
mov dword [ebp - 0x44], 0xa090807
mov dword [ebp - 0x40], 0xe0d0c0b
mov dword [ebp - 0x3c], 0x1211100f
mov dword [ebp - 0x38], 0x16151413
mov dword [ebp - 0x34], 0x191817
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x1c1b1a00
mov dword [ebp - 0x28], 0x201f1e1d
mov dword [ebp - 0x24], 0x24232221
mov dword [ebp - 0x20], 0x28272625
mov dword [ebp - 0x1c], 0x2c2b2a29
mov dword [ebp - 0x18], 0x302f2e2d
mov word [ebp - 0x14], 0x3231
mov byte [ebp - 0x12], 0x33
mov byte [esi], al
xor ecx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x98], 1
mov dword [ebp - 0x90], ecx
cmp dword [ebp + 8], eax
jle 0x436c13
nop
cmp ecx, 0x8c4c
jne 0x436b55
push str.debug
call fcn.00493855
add esp, 4
mov al, byte [edi]
cmp al, 0xd
je 0x436bfd
cmp al, 0xa
je 0x436bfd
movsx ecx, byte [edi + 1]
movsx edx, byte [ebp + ecx - 0x8c]
mov ecx, dword [ebp - 0x94]
movsx eax, al
movsx esi, byte [ebp + eax - 0x8c]
shl edx, 0xc
shl esi, 0x12
add esi, edx
mov eax, esi
sar eax, 0x10
push eax
push 1
add edi, 2
call fcn.00409e00
inc dword [ebx]
mov al, byte [edi]
cmp al, 0x3d
je 0x436bee
movsx ecx, al
movsx edx, byte [ebp + ecx - 0x8c]
mov ecx, dword [ebp - 0x94]
shl edx, 6
add esi, edx
mov eax, esi
sar eax, 8
push eax
push 1
inc edi
call fcn.00409e00
inc dword [ebx]
mov al, byte [edi]
cmp al, 0x3d
je 0x436bee
movsx ecx, al
movsx edx, byte [ebp + ecx - 0x8c]
mov ecx, dword [ebp - 0x94]
add esi, edx
push esi
push 1
inc edi
call fcn.00409e00
inc dword [ebx]
add dword [ebp - 0x90], 4
mov esi, dword [ebp - 0x94]
jmp 0x436c04
inc edi
inc dword [ebp - 0x90]
mov ecx, dword [ebp - 0x90]
cmp ecx, dword [ebp + 8]
jl 0x436b40
mov eax, esi
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.004790f7
mov esp, ebp
pop ebp
ret 4
Function at 0x436f70
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6fa9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e0214]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], esi
mov byte [ebx], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], 1
cmp ecx, dword [ebp + 0x10]
jae 0x437093
mov al, byte [ecx]
cmp al, 0x20
jbe 0x43702e
movzx eax, al
mov al, byte [eax + 0x4e1be8]
test al, 0xc0
jne 0x437037
mov byte [ebp + esi - 0x10], al
inc esi
cmp esi, 4
jne 0x43702e
mov ecx, dword [ebp - 0x10]
movzx edi, ch
movzx ecx, cl
add ecx, ecx
mov eax, edi
add ecx, ecx
shr eax, 4
or eax, ecx
push eax
push 1
mov ecx, ebx
call fcn.00409e00
movzx esi, byte [ebp - 0xe]
mov eax, esi
shr eax, 2
shl edi, 4
or eax, edi
push eax
push 1
mov ecx, ebx
call fcn.00409e00
movzx edx, byte [ebp - 0xd]
shl esi, 6
or esi, edx
push esi
push 1
mov ecx, ebx
call fcn.00409e00
mov ecx, dword [ebp + 0xc]
xor esi, esi
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x436fc3
cmp esi, 2
jl 0x437093
mov ecx, dword [ebp - 0x10]
movzx eax, ch
movzx ecx, cl
add ecx, ecx
mov dword [ebp + 0xc], eax
add ecx, ecx
shr eax, 4
or eax, ecx
push eax
push 1
mov ecx, ebx
call fcn.00409e00
cmp esi, 3
jl 0x437093
movzx edi, byte [ebp - 0xe]
mov ecx, dword [ebp + 0xc]
mov eax, edi
shl ecx, 4
shr eax, 2
or eax, ecx
push eax
push 1
mov ecx, ebx
call fcn.00409e00
cmp esi, 4
jl 0x437093
movzx edx, byte [ebp - 0xd]
shl edi, 6
or edi, edx
push edi
push 1
mov ecx, ebx
call fcn.00409e00
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438780
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jns 0x438796
push 8
pop edi
push 2
call esi
test ax, ax
jns 0x4387a2
or edi, 1
push 1
call esi
test ax, ax
jns 0x4387ae
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x4387ba
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x4387c6
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x43b5b1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0x120]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x43b5dd
cmp ebx, dword [esi + 0x170]
je 0x43b5dd
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x170]
cmp ebx, eax
je 0x43b6b4
push edi
test eax, eax
je 0x43b63c
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x170]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x170]
mov ecx, esi
call fcn.0043abb8
mov dword [esi + 0x170], edi
test ebx, ebx
je 0x43b6b3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x43b6b3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x43b6b3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x43b6b3
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x170], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x170]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x170]
mov ecx, esi
call fcn.0043abb8
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43b8d1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x1e4]
xor ebx, ebx
call fcn.00466315
test eax, eax
jle 0x43b926
push ebx
lea ecx, [esi + 0x1e4]
mov byte [ebp - 1], 0
call fcn.0043d84d
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x43b98a
lea ecx, [esi + 0x1e4]
inc ebx
call fcn.00466315
cmp ebx, eax
jl 0x43b8ed
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x43b9ef
sub eax, 4
je 0x43b98e
dec eax
dec eax
jne 0x43b9e6
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0047c850
pop ecx
mov ecx, dword [esi + 0x16c]
push 0x8000000a
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x43a0a6
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x43b9e6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + pe_nt_image_headers32]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x43b9e8
cmp dword [esi + 0x170], 0
je 0x43b9e6
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x180]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x184]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.00438780
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x170]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x43b9e6
cmp dword [esi + 0x170], 0
je 0x43ba4d
mov ecx, dword [esi + 0x170]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x43ba4d
mov ecx, dword [esi + 0x170]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x43ba4d
mov ecx, dword [esi + 0x170]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.0047ac94
pop ecx
pop ecx
test eax, eax
je 0x43ba4d
mov ecx, dword [esi + 0x170]
call fcn.0044e6a3
test al, al
jne 0x43b9e6
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.0043b77b
jmp 0x43b98a
Function at 0x44a0de
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x44a0ec
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x44a1a7
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4bec30]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4bec30]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4bec30]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4bec30]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4bec30]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4bec30]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4bec30]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4bec30]
add edx, 8
sub edi, 8
dec esi
jne 0x44a10a
pop ebx
test edi, edi
je 0x44a1c0
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4bec30]
inc edx
dec edi
jne 0x44a1ab
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x44a687
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x44a6bb
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44a6b6
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x44a6e3
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x44a6cc
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0047d330
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x44b661
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x44b709
movzx ecx, word [esi]
test cx, cx
je 0x44b709
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x44b69c
cmp cx, 0x5c
jne 0x44b69e
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x44b690
cmp eax, esi
je 0x44b6dd
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0047aa88
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0044b661
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0047d7b1
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0047d780
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004790f7
leave
ret
Function at 0x44bc1b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x4d08b0
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00479239
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x44bc8b
push ebx
push 2
push edi
push esi
call fcn.0047b0be
push esi
call fcn.0047b2ce
push edi
push edi
push esi
mov ebx, eax
call fcn.0047b0be
push ebx
call fcn.0047ab13
mov edi, eax
add esp, 0x20
test edi, edi
je 0x44bc83
push esi
push ebx
push 1
push edi
call fcn.0047b658
push ebx
push edi
push 0
call fcn.0044a0de
push edi
mov dword [ebp - 4], eax
call fcn.0047aba7
add esp, 0x20
push esi
call fcn.0047a0bb
pop ecx
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x44d124
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x44d190
cmp dword [esi + 4], 0xffffffff
jne 0x44d190
lea eax, [esi + 0x138]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp + 0x10], 1
jne 0x44d162
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x44d162
mov eax, 0x2000000
jmp 0x44d195
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044a494
add esp, 0x10
test eax, eax
jne 0x44d180
mov eax, dword [ebp + 0x10]
jmp 0x44d195
push eax
call fcn.0044cd13
mov dword [esi], eax
mov eax, dword [0x4e24a8]
pop ecx
jmp 0x44d195
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x44d5be
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 2
or edi, 0xffffffff
push esi
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x440], edi
call fcn.0047d765
pop ecx
push eax
push esi
call fcn.0044d4de
mov esi, eax
xor ebx, ebx
add esp, 0xc
mov dword [ebp - 0x448], 1
cmp esi, ebx
je 0x44d744
cmp edi, dword [ebp - 0x448]
jge 0x44d73d
push 0x22c
lea eax, [ebp - 0x438]
push ebx
push eax
mov dword [ebp - 0x43c], ebx
call fcn.0047c5e0
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x43c]
push eax
push edi
push esi
mov dword [ebp - 0x444], ebx
call fcn.0044ba00
add esp, 0x1c
mov dword [ebp - 0x440], eax
cmp eax, ebx
jne 0x44d73d
cmp edi, ebx
jge 0x44d677
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x448], eax
jmp 0x44d735
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.0047c5e0
push dword [ebp - 0x44c]
lea eax, [ebp - 0x20c]
push eax
call fcn.0047d780
lea eax, [ebp - 0x20c]
push 0x4d0048
push eax
call fcn.0047d780
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0047d780
add esp, 0x24
cmp dword [ebp + 0x10], ebx
jne 0x44d70a
mov ebx, dword [ebp - 0x230]
lea eax, [ebp - 0x20c]
push eax
shr ebx, 4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
and bl, 1
jne 0x44d70a
test al, al
je 0x44d70a
lea eax, [ebp - 0x20c]
push eax
call fcn.0044bc1b
pop ecx
cmp dword [ebp - 0x444], eax
je 0x44d735
lea eax, [ebp - 0x20c]
push 2
push eax
call fcn.0047d765
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call fcn.0044d53c
add esp, 0x14
mov dword [ebp - 0x440], eax
test eax, eax
jne 0x44d73d
inc edi
xor ebx, ebx
jmp 0x44d612
push esi
call fcn.0044d574
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x440]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004790f7
leave
ret

Function at 0x44f2c6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x44f32e
cmp dword [ebp + 8], 0x100
jne 0x44f31d
cmp word [ebp + 0xc], 0xd
jne 0x44f31d
cmp byte [esi + 0x4da], bl
je 0x44f304
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x44f31d
cmp byte [esi + 0x4db], bl
jne 0x44f31d
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x44f319
push ebx
push ebx
push ebx
push str.return
push esi
call fcn.0043abb8
xor eax, eax
jmp 0x44f331
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4517af
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x4b3567
call fcn.0047c539
mov edi, dword [ebp + 8]
mov ebx, ecx
call fcn.00450c57
call fcn.00438980
push eax
lea ecx, [ebp - 0x94]
call fcn.0043df4b
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00438986
mov ecx, eax
call fcn.0043dace
test al, al
je 0x4518f7
push edi
lea ecx, [ebp - 0x94]
call fcn.0043dc5c
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00478277
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push esi
cmp eax, 0xffffffff
jne 0x451853
push str.Error_opening_file
mov ecx, ebx
call fcn.00450e62
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0043d9a3
mov al, bl
call fcn.0047c5bc
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x451868
push esi
push str.File_is_empty
jmp 0x451831
cmp edi, 0x400000
jbe 0x451878
push esi
push 0x4bfcc4
jmp 0x451831
push edi
mov dword [ebp - 0x2cc], esi
call fcn.00478154
pop ecx
push esi
lea ecx, [ebp - 0x2cc]
push ecx
push edi
push eax
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2c8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], edi
je 0x4518d3
push dword [ebp - 0x2c8]
call fcn.0047b029
pop ecx
mov ecx, ebx
call fcn.00450c57
push esi
push str.Could_not_read_file
jmp 0x451831
push dword [ebp + 0xc]
mov ecx, ebx
push edi
push dword [ebp - 0x2c8]
call fcn.0045165c
push dword [ebp - 0x2c8]
mov bl, al
call fcn.0047b029
pop ecx
jmp 0x45183a
call fcn.00438986
push eax
lea ecx, [ebp - 0x94]
call fcn.0043dc3f
call fcn.0043898c
test al, al
je 0x451918
call fcn.00438992
jmp 0x45192f
push 2
push esi
lea ecx, [ebp - 0x94]
call fcn.00478277
push eax
call fcn.0044d4de
add esp, 0xc
mov dword [ebp - 0x2c8], eax
cmp eax, esi
jne 0x451944
push esi
push str.Error_opening_zip_file
jmp 0x451831
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d0]
push eax
push 1
push edi
push dword [ebp - 0x2c8]
call fcn.0044bb21
add esp, 0x14
test eax, eax
je 0x451972
push esi
push str.Could_not_find_ziped_file
jmp 0x451831
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2cc], eax
cmp eax, esi
je 0x451860
cmp eax, 0x400000
ja 0x451870
push eax
call fcn.00478154
push 3
push dword [ebp - 0x2cc]
mov edi, eax
push edi
push dword [ebp - 0x2d0]
push dword [ebp - 0x2c8]
call fcn.0044d53c
add esp, 0x18
cmp eax, esi
je 0x4519e8
cmp eax, 0x600
je 0x4519e8
push edi
call fcn.0047b029
pop ecx
call fcn.0043898c
test al, al
jne 0x4519dd
push dword [ebp - 0x2c8]
call fcn.0044d574
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x451831
call fcn.0043898c
test al, al
jne 0x4519fd
push dword [ebp - 0x2c8]
call fcn.0044d574
pop ecx
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp - 0x2cc]
push edi
call fcn.0045165c
push edi
jmp 0x4518ea
Function at 0x459b8a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x459baf
cmp eax, edi
jge 0x459ba7
mov eax, esi
call fcn.0045944b
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edi, dword [esi + 8]
xor ecx, ecx
test edi, edi
jle 0x459bdc
mov eax, dword [esi + 0xc]
push ebx
mov dl, byte [esi + 0xc]
sub edi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, edi
inc ecx
mov dword [esi + 0xc], eax
test ebx, ebx
jg 0x459bbc
mov dword [esi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x459bfb
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x459be9
xor eax, eax
jmp 0x459bf1
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x459bdf
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x459c2d
mov eax, str.zlib_corrupt
call fcn.00456a05
jmp 0x459c68
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x459c3d
mov eax, str.read_past_buffer
jmp 0x459c26
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x459c52
mov ecx, edi
call fcn.0045957e
test eax, eax
je 0x459c68
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0047d330
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x45eb18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov al, byte [ebx]
test al, al
je 0x45eba4
push esi
lea esi, [ecx - 4]
movsx eax, al
inc ebx
sub eax, 0x20
je 0x45eb9d
sub eax, 0x11
je 0x45eb8c
dec eax
je 0x45eb69
dec eax
dec eax
jne 0x45eba3
push dword [ebp + 8]
add esi, 4
mov eax, dword [esi]
mov ecx, eax
shr ecx, 8
mov byte [ebp - 3], cl
mov ecx, eax
mov byte [ebp - 4], al
shr ecx, 0x10
shr eax, 0x18
push 1
mov byte [ebp - 1], al
mov byte [ebp - 2], cl
push 4
lea eax, [ebp - 4]
jmp 0x45eb81
push dword [ebp + 8]
add esi, 4
mov eax, dword [esi]
mov byte [ebp + 0xc], al
sar eax, 8
push 1
mov byte [ebp + 0xd], al
push 2
lea eax, [ebp + 0xc]
push eax
call fcn.004795f3
add esp, 0x10
jmp 0x45eb9d
push dword [ebp + 8]
add esi, 4
movzx eax, byte [esi]
push eax
call fcn.00481145
pop ecx
pop ecx
mov al, byte [ebx]
test al, al
jne 0x45eb2a
pop esi
pop ebx
leave
ret

Function at 0x45eba7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
mov byte [ebp - 4], al
mov al, byte [ebp + 0xc]
mov byte [ebp - 3], al
mov al, byte [ebp + 0x10]
push 1
mov byte [ebp - 2], al
lea eax, [ebp - 4]
push 3
push eax
call fcn.004795f3
add esp, 0x10
leave
ret