joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x67a374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402ae0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004503a3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x402b1c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x402b1c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004503a3
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x402c01
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402b44
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402b77
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.005ca87c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004503a3
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x402c01
cmp eax, 1
jle 0x402bd4
cmp eax, 3
jne 0x402c01
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004013e0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004503a3
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402bf1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005cb755
add esp, 0x10
cmp edi, eax
jne 0x402c01
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x402b07
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004503a3
mov esp, ebp
pop ebp
ret 4
Function at 0x4036a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x67a374]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x403741
cmp byte [esi + 0x3d], 0
je 0x403741
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4036f7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x403709
sub eax, 1
je 0x40370d
sub eax, 2
je 0x403741
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004503a3
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40372a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005cb755
add esp, 0x10
cmp edi, eax
jne 0x4036f7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004503a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004503a3
mov esp, ebp
pop ebp
ret
Function at 0x403900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4a78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x67a374]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00404bb0
push 8
call fcn.004503c2
mov esi, eax
push 1
mov dword [ebp - 4], 1
call fcn.0044e4c9
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 2
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
call fcn.00405100
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 4
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
test eax, eax
je 0x403a2e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp + 0xb]
mov byte [ebp - 4], 0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x403a4e
mov eax, dword [edi + 0xc]
mov ecx, edi
or eax, 4
push 0
push eax
call fcn.00404bb0
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 0xc
Function at 0x403d20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4ad0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x67a374]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004503c2
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0044e4c9
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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 0x406140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406199
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406199
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x406188
cmp esi, edx
jae 0x406199
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406176
cmp esi, edx
jae 0x406199
cmp word [esi], 0
je 0x406199
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4066b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4e88
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x67a374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x1c]
mov eax, edx
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 1
jb 0x40671c
cmp edx, 8
lea esi, [ebp + 8]
push 2
cmovae esi, dword [ebp + 8]
lea edi, [ecx + 1]
push 0x662bf8
mov dword [ebp + 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.005c6ec0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x406734
push 1
push 0x662bf8
mov byte [ebp - 0x2c], 0
lea ecx, [ebp + 8]
push dword [ebp - 0x2c]
push 1
call fcn.0040bde0
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov ebx, dword [ebp + 8]
cmp edx, 8
mov edi, dword [ebp + 0x18]
cmovae ecx, ebx
test edi, edi
je 0x406762
mov eax, edi
mov esi, ecx
nop
cmp word [esi], 0x5c
je 0x406825
add esi, 2
sub eax, 1
jne 0x406750
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x406840
xor eax, eax
mov dword [ebp - 0x18], 0
cmp edi, esi
mov word [ebp - 0x28], ax
mov ecx, esi
mov dword [ebp - 0x14], 7
cmovb ecx, edi
lea eax, [ebp + 8]
cmp edx, 8
push ecx
cmovae eax, ebx
lea ecx, [ebp - 0x28]
push eax
call fcn.00405a20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [ebp + 8]
lea ecx, [ebp + 8]
mov edi, dword [ebp + 0x18]
inc esi
cmp dword [ebp + 0x1c], 8
cmovae ecx, ebx
cmp esi, edi
jae 0x4067de
mov eax, edi
sub eax, esi
lea esi, [ecx + esi*2]
je 0x4067de
nop
cmp word [esi], 0x5c
je 0x406836
add esi, 2
sub eax, 1
jne 0x4067d0
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40681d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40680d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40688c
push edx
push ecx
call fcn.004503b4
mov edi, dword [ebp + 0x18]
add esp, 8
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
jmp 0x406765
test esi, esi
je 0x406762
sub esi, ecx
sar esi, 1
jmp 0x406765
test esi, esi
je 0x4067de
sub esi, ecx
sar esi, 1
jmp 0x4067e1
cmp edx, 8
jb 0x406870
lea edx, [edx*2 + 2]
mov eax, ebx
cmp edx, 0x1000
jb 0x406866
mov ebx, dword [ebx - 4]
add edx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40688c
push edx
push ebx
call fcn.004503b4
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004503a3
mov esp, ebp
pop ebp
ret
call fcn.005cac9d
int3
Function at 0x408bb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe44
mov eax, dword [0x67a374]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
push 0xa
push str.client.exe
lea edi, [esi + 0x4e8]
mov ecx, edi
call fcn.00405a20
cmp dword [edi + 0x14], 8
jb 0x408be3
mov edi, dword [edi]
add esi, 0x4b8
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x408bf3
mov eax, dword [esi]
push edi
push eax
lea eax, [ebp - 0x61c]
push 0x662c20
push eax
call fcn.0040cad0
add esp, 0x10
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x408c13
mov eax, dword [esi]
push eax
lea eax, [ebp - 0xa2c]
push 0x662ec8
push eax
call fcn.0040cad0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x408c30
mov esi, dword [esi]
push esi
lea eax, [ebp - 0xe3c]
push str._sUninstall.exe
push eax
call fcn.0040cad0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005c7440
push str.Zeus
lea eax, [ebp - 0x20c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push eax
call fcn.0040cad0
add esp, 0x24
lea eax, [ebp - 0xe44]
push eax
lea eax, [ebp - 0xe40]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408dae
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x61c]
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push 0
push str.DisplayIcon
push dword [ebp - 0xe40]
call edi
test eax, eax
jne 0x408dae
push 0x662eb4
call esi
lea eax, [eax*2 + 2]
push eax
push 0x662eb4
push 1
push 0
push str.DisplayName
push dword [ebp - 0xe40]
call edi
test eax, eax
jne 0x408dae
lea eax, [ebp - 0xa2c]
push eax
call esi
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xa2c]
push eax
push 1
push 0
push str.InstallLocation
push dword [ebp - 0xe40]
call edi
test eax, eax
jne 0x408dae
push 0x662ebc
call esi
lea eax, [eax*2 + 2]
push eax
push 0x662ebc
push 1
push 0
push str.Publisher
push dword [ebp - 0xe40]
call edi
test eax, eax
jne 0x408dae
lea eax, [ebp - 0xe3c]
push eax
call esi
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xe3c]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0xe40]
call edi
test eax, eax
jne 0x408dae
push dword [ebp - 0xe40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004503a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004503a3
mov esp, ebp
pop ebp
ret
Function at 0x413f96
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x413fb9
or esi, 2
push 1
call edi
test ax, ax
jns 0x413fc5
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x413fd1
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x413fdd
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x4171fc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp + 8]
je 0x417237
mov ecx, dword [edi + 0x84]
cmp eax, ecx
je 0x417237
cmp esi, dword [edi + 0xe8]
je 0x417237
cmp byte [edi + 0xe0], 0
jne 0x417237
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xe8]
cmp esi, eax
je 0x417321
test eax, eax
je 0x4172a0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0x14
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
push 1
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.killfocus
push dword [edi + 0xe8]
call fcn.00416eb1
and dword [edi + 0xe8], 0
test esi, esi
je 0x417321
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, edi
jne 0x417321
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xdc]
test al, al
je 0x417321
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe8]
test al, al
je 0x417321
xorps xmm0, xmm0
mov dword [edi + 0xe8], esi
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
push 1
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.setfocus
push dword [edi + 0xe8]
call fcn.00416eb1
pop edi
pop esi
leave
ret 8
Function at 0x419272
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4192a4
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4250c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x694], edi
je 0x42512c
cmp dword [ebp + 8], 0x100
jne 0x42511b
cmp word [ebp + 0xc], 0xd
jne 0x42511b
cmp byte [esi + 0x69a], 0
je 0x425100
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x42511b
cmp byte [esi + 0x69b], 0
jne 0x42511b
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x425117
push 1
push edi
push edi
push edi
push str.return
push esi
call fcn.00416eb1
xor eax, eax
jmp 0x42512f
mov eax, dword [esi + 0x694]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x425509
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x67a374]
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 0x4255c3
movzx eax, word [esi]
test ax, ax
je 0x4255c3
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x42554b
cmp dx, 0x5c
jne 0x42554d
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x42553f
cmp edi, esi
je 0x425596
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.005d618b
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4255d1
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00425509
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.005d5d6f
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.005d5cfe
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004503a3
leave
ret
call fcn.00450efe
int3

Function at 0x425b95
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x425c11
cmp dword [edi + 4], 0xffffffff
jne 0x425c11
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x662bf8
push esi
call fcn.005d5cfe
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x425be3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x425be3
mov eax, 0x2000000
jmp 0x425c16
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004280d4
add esp, 0x10
test eax, eax
jne 0x425c01
mov eax, dword [ebp - 4]
jmp 0x425c16
push eax
call fcn.004287f6
mov dword [edi], eax
mov eax, dword [0x689558]
pop ecx
jmp 0x425c16
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x4281e1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x428214
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42820f
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x42823e
mov edx, dword [edi + 0x18]
push esi
mov esi, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x14]
cmovbe esi, ecx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.005c6940
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4283da
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x428499
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fdf40]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fdf40]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fdf40]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fdf40]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fdf40]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fdf40]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fdf40]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fdf40]
sub edi, 1
jne 0x4283f2
pop edi
test esi, esi
je 0x4284b5
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5fdf40]
inc edx
sub esi, 1
jne 0x42849d
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x42948b
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x5f6287
call fcn.00450c37
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.00429818
call fcn.00413ca0
push eax
lea ecx, [ebp - 0x94]
call fcn.0041194b
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00413ca6
mov ecx, eax
call fcn.00412046
test al, al
je 0x4295a1
push ebx
lea ecx, [ebp - 0x94]
call fcn.00411b42
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.00411b22
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x429512
push str.Error_opening_file
jmp 0x429682
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x42961b
cmp edi, 0x400000
ja 0x42962c
and dword [ebp - 0x2c8], 0
push edi
call fcn.0045041a
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x42958a
push ebx
call fcn.00450415
pop ecx
mov ecx, esi
call fcn.00429818
push 0
push str.Could_not_read_file
jmp 0x429682
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.004296cd
push dword [ebp - 0x2cc]
jmp 0x4296b0
call fcn.00413ca6
push eax
lea ecx, [ebp - 0x94]
call fcn.00411b25
call fcn.00413e69
test al, al
je 0x4295c2
call fcn.00413cac
jmp 0x4295d9
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00411b22
push eax
call fcn.00425c1b
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4295ea
push eax
push str.Error_opening_zip_file
jmp 0x429682
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0042565b
add esp, 0x14
test eax, eax
je 0x429611
push 0
push str.Could_not_find_ziped_file
jmp 0x429682
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x429624
push 0
push str.File_is_empty
jmp 0x429682
cmp ebx, 0x400000
jbe 0x429635
push 0
push 0x5fe6cc
jmp 0x429682
push ebx
call fcn.0045041a
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.00425ff2
add esp, 0x18
test eax, eax
je 0x42968d
cmp eax, 0x600
je 0x42968d
push dword [ebp - 0x2c8]
call fcn.00450415
pop ecx
call fcn.00413e69
test al, al
jne 0x42967b
push edi
call fcn.004254b7
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.00429840
mov bl, al
jmp 0x4296b8
call fcn.00413e69
test al, al
jne 0x42969d
push edi
call fcn.004254b7
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.004296cd
push edi
mov bl, al
call fcn.00450415
pop ecx
lea ecx, [ebp - 0x94]
call fcn.00411a22
mov al, bl
call fcn.00450be1
ret 8