joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6b00
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x67c374]
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.004514eb
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0044f60f
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 0x405980
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6dd2
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x67c374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x424]
push eax
push 0
push 0
mov dword [ebp - 0x428], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405a4f
push 0x410
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.005c8440
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x424]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a31
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00405df0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004514cc
mov esp, ebp
pop ebp
ret 4

Function at 0x406510
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 0x406569
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406569
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x406558
cmp esi, edx
jae 0x406569
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406546
cmp esi, edx
jae 0x406569
cmp word [esi], 0
je 0x406569
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 0x406b00
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6f38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x67c374]
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 0x406b6c
cmp edx, 8
lea esi, [ebp + 8]
push 2
cmovae esi, dword [ebp + 8]
lea edi, [ecx + 1]
push 0x664fc4
mov dword [ebp + 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.005c7ec0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x406b84
push 1
push 0x664fc4
mov byte [ebp - 0x2c], 0
lea ecx, [ebp + 8]
push dword [ebp - 0x2c]
push 1
call fcn.0040cdf0
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov edi, dword [ebp + 8]
cmp ebx, 8
mov edx, dword [ebp + 0x18]
cmovae ecx, edi
test edx, edx
je 0x406bb2
mov eax, edx
mov esi, ecx
nop
cmp word [esi], 0x5c
je 0x406cc9
add esi, 2
sub eax, 1
jne 0x406ba0
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x406ca1
nop
xor eax, eax
mov dword [ebp - 0x18], 0
cmp edx, esi
mov word [ebp - 0x28], ax
mov ecx, esi
mov dword [ebp - 0x14], 7
cmovb ecx, edx
lea eax, [ebp + 8]
cmp ebx, 8
push ecx
cmovae eax, edi
lea ecx, [ebp - 0x28]
push eax
call fcn.00405df0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406c18
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 + 0x1c]
lea ecx, [ebp + 8]
mov edi, dword [ebp + 8]
inc esi
mov edx, dword [ebp + 0x18]
cmp ebx, 8
cmovae ecx, edi
cmp esi, edx
jae 0x406c52
mov eax, edx
sub eax, esi
lea esi, [ecx + esi*2]
je 0x406c52
nop dword [eax + eax]
cmp word [esi], 0x5c
je 0x406cda
add esi, 2
sub eax, 1
jne 0x406c40
or esi, 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x406c98
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406c85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d11
push edx
push ecx
call fcn.004514dd
mov ebx, dword [ebp + 0x1c]
add esp, 8
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x406bc0
cmp ebx, 8
jb 0x406cf5
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x406ceb
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d11
jmp 0x406ceb
test esi, esi
je 0x406bb2
sub esi, ecx
sar esi, 1
jmp 0x406bb5
test esi, esi
je 0x406c52
sub esi, ecx
sar esi, 1
jmp 0x406c55
push ebx
push edi
call fcn.004514dd
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.004514cc
mov esp, ebp
pop ebp
ret
call fcn.005cbcb9
int3
Function at 0x407040
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6f8b
mov eax, dword fs:[0]
push eax
mov eax, 0x167c
call fcn.00452110
mov eax, dword [0x67c374]
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 dword [ebp - 0x1684], esi
push 0x1450
lea eax, [ebp - 0x1668]
push 0
push eax
call fcn.005c8440
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c8440
add esp, 0x18
lea eax, [ebp - 0x1688]
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x407278
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x1688]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x1688]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x664fd0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1668]
push 0x664fe8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x1670], 0
xor eax, eax
mov dword [ebp - 0x166c], 7
lea ecx, [ebp - 0x1680]
mov word [ebp - 0x1680], ax
push 7
push 0x664ff4
call fcn.00405df0
lea ecx, [ebp - 0x1668]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407140
mov eax, dword [ebp - 0x166c]
sub ecx, edx
mov edx, dword [ebp - 0x1670]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x4071a3
cmp dword [ebp - 0x166c], 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x1680]
cmovae esi, dword [ebp - 0x1680]
lea eax, [ebp - 0x1668]
push eax
lea edi, [edx + ecx]
mov dword [ebp - 0x1670], edi
lea eax, [esi + edx*2]
push eax
call fcn.005c7ec0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x1684]
jmp 0x4071c4
push ecx
lea eax, [ebp - 0x1668]
mov byte [ebp - 0x1684], 0
push eax
push dword [ebp - 0x1684]
push ecx
lea ecx, [ebp - 0x1680]
call fcn.0040cdf0
push str.edit_dir
lea ecx, [esi + 0x2c]
call fcn.004146d9
cmp dword [ebp - 0x166c], 8
lea ecx, [ebp - 0x1680]
cmovae ecx, dword [ebp - 0x1680]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x3c]
lea ecx, [ebp - 0x1668]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4071f6
sub ecx, edx
lea eax, [ebp - 0x1668]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x4b8]
call fcn.00405df0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x166c]
cmp edx, 8
jb 0x40725b
mov ecx, dword [ebp - 0x1680]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407251
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4072ac
push edx
push ecx
call fcn.004514dd
add esp, 8
xor eax, eax
mov dword [ebp - 0x1670], 0
mov dword [ebp - 0x166c], 7
mov word [ebp - 0x1680], ax
push str.edit_dir
lea ecx, [esi + 0x2c]
call fcn.004146d9
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xec]
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.004514cc
mov esp, ebp
pop ebp
ret
call fcn.005cbcb9
int3
Function at 0x4095d0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f72c8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x67c374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ecx + 0x4b8]
push str._shchannel.json
lea ecx, [ebp - 0x60]
call fcn.0040c9b0
add esp, 4
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x6658a0]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x7275746f
mov dword [ebp - 0x1c], 0x74723c24
mov dword [ebp - 0x18], 0x7b7b6373
mov byte [ebp - 0x14], 0
nop dword [eax + eax]
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x1b
jb 0x409640
lea ecx, [ebp - 0x2f]
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409670
sub ecx, edx
lea eax, [ebp - 0x2f]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.004053a0
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push 0x665404
cmovae eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
call fcn.005d234b
mov ecx, dword [ebp - 0x64]
add esp, 0xc
test ecx, ecx
je 0x4096d3
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push ecx
push dword [ebp - 0x38]
cmovae eax, dword [ebp - 0x48]
push 1
push eax
call fcn.005cc7a6
push dword [ebp - 0x64]
call fcn.005ccd33
add esp, 0x14
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x409703
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4096f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409764
push edx
push ecx
call fcn.004514dd
add esp, 8
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 8
jb 0x40974b
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409741
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409769
push edx
push ecx
call fcn.004514dd
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004514cc
mov esp, ebp
pop ebp
ret
call fcn.005cbcb9
call fcn.005cbcb9
int3
Function at 0x4150d6
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 0x4150f9
or esi, 2
push 1
call edi
test ax, ax
jns 0x415105
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x415111
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x41511d
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x41833e
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 0x418379
mov ecx, dword [edi + 0x84]
cmp eax, ecx
je 0x418379
cmp esi, dword [edi + 0xe8]
je 0x418379
cmp byte [edi + 0xe0], 0
jne 0x418379
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xe8]
cmp esi, eax
je 0x418463
test eax, eax
je 0x4183e2
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.00417ff3
and dword [edi + 0xe8], 0
test esi, esi
je 0x418463
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, edi
jne 0x418463
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xdc]
test al, al
je 0x418463
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe8]
test al, al
je 0x418463
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.00417ff3
pop edi
pop esi
leave
ret 8
Function at 0x41a3b4
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 0x41a3e6
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 0x426204
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 0x426270
cmp dword [ebp + 8], 0x100
jne 0x42625f
cmp word [ebp + 0xc], 0xd
jne 0x42625f
cmp byte [esi + 0x69a], 0
je 0x426244
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x42625f
cmp byte [esi + 0x69b], 0
jne 0x42625f
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x42625b
push 1
push edi
push edi
push edi
push str.return
push esi
call fcn.00417ff3
xor eax, eax
jmp 0x426273
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 0x42664d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x67c374]
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 0x426707
movzx eax, word [esi]
test ax, ax
je 0x426707
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x42668f
cmp dx, 0x5c
jne 0x426691
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x426683
cmp edi, esi
je 0x4266da
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.005d6edd
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x426715
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0042664d
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.005d6ac1
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.005d6a50
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.004514cc
leave
ret
call fcn.0045202e
int3

Function at 0x426cd9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x426d55
cmp dword [edi + 4], 0xffffffff
jne 0x426d55
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x664fc4
push esi
call fcn.005d6a50
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x426d27
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x426d27
mov eax, 0x2000000
jmp 0x426d5a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00429218
add esp, 0x10
test eax, eax
jne 0x426d45
mov eax, dword [ebp - 4]
jmp 0x426d5a
push eax
call fcn.0042993a
mov dword [edi], eax
mov eax, dword [0x68b658]
pop ecx
jmp 0x426d5a
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x429325
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 0x429358
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 0x429353
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x429382
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.005c7940
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 0x429510
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x42951e
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4295dd
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 + 0x600f50]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x600f50]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x600f50]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x600f50]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x600f50]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x600f50]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x600f50]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x600f50]
sub edi, 1
jne 0x429536
pop edi
test esi, esi
je 0x4295f9
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x600f50]
inc edx
sub esi, 1
jne 0x4295e1
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x42a5cf
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x5f846f
call fcn.00451d67
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.0042a95c
call fcn.00414de0
push eax
lea ecx, [ebp - 0x94]
call fcn.00412a8b
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00414de6
mov ecx, eax
call fcn.00413186
test al, al
je 0x42a6e5
push ebx
lea ecx, [ebp - 0x94]
call fcn.00412c82
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.00412c62
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x42a656
push str.Error_opening_file
jmp 0x42a7c6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x42a75f
cmp edi, 0x400000
ja 0x42a770
and dword [ebp - 0x2c8], 0
push edi
call fcn.00451543
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 0x42a6ce
push ebx
call fcn.0045153e
pop ecx
mov ecx, esi
call fcn.0042a95c
push 0
push str.Could_not_read_file
jmp 0x42a7c6
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.0042a811
push dword [ebp - 0x2cc]
jmp 0x42a7f4
call fcn.00414de6
push eax
lea ecx, [ebp - 0x94]
call fcn.00412c65
call fcn.00414fa9
test al, al
je 0x42a706
call fcn.00414dec
jmp 0x42a71d
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00412c62
push eax
call fcn.00426d5f
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x42a72e
push eax
push str.Error_opening_zip_file
jmp 0x42a7c6
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0042679f
add esp, 0x14
test eax, eax
je 0x42a755
push 0
push str.Could_not_find_ziped_file
jmp 0x42a7c6
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x42a768
push 0
push str.File_is_empty
jmp 0x42a7c6
cmp ebx, 0x400000
jbe 0x42a779
push 0
push 0x6016dc
jmp 0x42a7c6
push ebx
call fcn.00451543
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.00427136
add esp, 0x18
test eax, eax
je 0x42a7d1
cmp eax, 0x600
je 0x42a7d1
push dword [ebp - 0x2c8]
call fcn.0045153e
pop ecx
call fcn.00414fa9
test al, al
jne 0x42a7bf
push edi
call fcn.004265fb
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.0042a984
mov bl, al
jmp 0x42a7fc
call fcn.00414fa9
test al, al
jne 0x42a7e1
push edi
call fcn.004265fb
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.0042a811
push edi
mov bl, al
call fcn.0045153e
pop ecx
lea ecx, [ebp - 0x94]
call fcn.00412b62
mov al, bl
call fcn.00451d11
ret 8
Function at 0x4382f9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x438327
cmp eax, edi
jge 0x43831b
push esi
call fcn.004347f2
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x43834a
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x438330
mov dword [esi + 8], edx
jmp 0x43835f
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x438355
xor dl, dl
jmp 0x43835a
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x43834a
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x438399
push str.zlib_corrupt
call fcn.0043471d
add esp, 4
jmp 0x4383d9
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4383a9
push str.read_past_buffer
jmp 0x43838f
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4383c3
push edi
push ecx
push esi
call fcn.0043ae15
add esp, 0xc
test eax, eax
je 0x4383d9
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.005c7940
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret