joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
xor ecx, ecx
xor esi, esi
xor edi, edi
test eax, eax
jbe 0x40204c
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc ecx
and ecx, 0x800000ff
jns 0x401feb
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [ecx + eax]
mov ebx, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x402008
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + eax]
mov byte [esp + 0x18], dl
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x18]
mov byte [esi + eax], dl
xor edx, edx
mov dl, byte [ecx + eax]
and ebx, 0xff
add edx, ebx
and edx, 0x800000ff
jns 0x402036
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + eax]
mov bl, byte [edi + ebp]
xor bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edi + ebp], bl
inc edi
cmp edi, edx
jb 0x401fda
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x402050
Capabilities:
Contain obfuscated stackstrings
Create http request
Write file on windows

Disassembly:
sub esp, 0x428
push ebx
push esi
xor ebx, ebx
push edi
mov al, 0x6c
push ebx
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov byte [esp + 0x25], al
push ebx
push ebx
lea eax, [esp + 0x18]
mov dl, 0x69
mov cl, 0x61
push ebx
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x20], 0x4d
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x7a
mov byte [esp + 0x23], dl
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], 0x2f
mov byte [esp + 0x28], 0x34
mov byte [esp + 0x29], 0x2e
mov byte [esp + 0x2a], 0x30
mov byte [esp + 0x2b], 0x20
mov byte [esp + 0x2c], 0x28
mov byte [esp + 0x2d], 0x63
mov byte [esp + 0x2e], 0x6f
mov byte [esp + 0x2f], 0x6d
mov byte [esp + 0x30], 0x70
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], 0x74
mov byte [esp + 0x33], dl
mov byte [esp + 0x34], 0x62
mov byte [esp + 0x36], 0x65
mov byte [esp + 0x37], 0x29
mov byte [esp + 0x38], bl
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x2c], edi
jne 0x402103
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x428
ret
mov ecx, dword [esp + 0x438]
push ebx
push 0x80000000
push ebx
push ebx
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x40212c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x428
ret
mov edx, dword [esp + 0x43c]
push ebp
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4021a2
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x38]
push eax
push 0x400
push ecx
push esi
call dword [0x404b54]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push 0
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
push ebp
call ebx
mov eax, dword [esp + 0x2c]
test eax, eax
ja 0x402153
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x30]
mov ebx, 1
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x428
ret
Function at 0x4021c0
Capabilities:
Contain obfuscated stackstrings
Get file size

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov bl, 0x53
mov eax, dword [esp + 0x98]
mov dword [esp + 0x10], 0x3e8
push eax
call fcn.00401e20
add esp, 4
test eax, eax
je 0x402381
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push 0x404b60
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402381
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], bl
push ecx
push esi
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], 0x56
mov byte [esp + 0x27], 0x49
mov byte [esp + 0x28], 0x44
mov byte [esp + 0x29], 0
mov byte [esp + 0x2c], 0x3a
mov byte [esp + 0x2d], 0x32
mov byte [esp + 0x2e], 0x30
mov byte [esp + 0x2f], 0x31
mov byte [esp + 0x30], 0x33
mov byte [esp + 0x31], 0x2d
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], 0x56
mov byte [esp + 0x34], 0x31
mov byte [esp + 0x35], 0
call fcn.00401cc0
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x402381
lea esi, [esp + 0x24]
lea eax, [edi + 9]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4022b8
test cl, cl
je 0x4022b4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4022b8
add eax, 2
add esi, 2
test cl, cl
jne 0x402294
xor eax, eax
jmp 0x4022bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402381
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
push 0x404b60
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402381
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 4
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebp, eax
lea eax, [esp + 0x14]
push 0
push eax
push edi
push ebp
push esi
call dword [0x404b58]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
push edi
push ebp
call fcn.00401c90
push ebp
call fcn.004010d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x402381
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x9c]
push str.DllFuUpgradrs1
test eax, eax
je 0x402364
lea ecx, [esp + 0x34]
push ecx
jmp 0x402369
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x30]
push eax
push esi
call fcn.00401570
add esp, 8
test eax, eax
jne 0x4023ba
push str.languages
call dword [sym.imp.MSVCRT.dll_printf]
push 0x404b60
push 0x40458c
call fcn.00402050
add esp, 0xc
test eax, eax
je 0x4023aa
mov dword [esp + 0x10], 0x14
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4021cc
push 0x4040a0
call eax
push esi
call fcn.00401630
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x402500
Capabilities:
Create thread

Disassembly:
sub esp, 0x108
push edi
lea eax, [esp + 4]
push 6
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x10], 0x43
mov byte [esp + 0x11], 0x61
mov byte [esp + 0x12], 0x63
mov byte [esp + 0x13], 0x72
mov byte [esp + 0x14], 0x6b
mov byte [esp + 0x15], 0
call fcn.00401f10
push 0x6f0
lea edx, [esp + 0x1c]
push 0x4040a0
push edx
call fcn.00401fc0
mov eax, dword [esp + 0x130]
push str.Win7
push eax
xor edi, edi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x20
test eax, eax
je 0x40256d
mov edi, 1
jmp 0x4025a8
push 0x40468c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4025a8
push esi
push 0
push 0
push 0x40468c
push 0x4023e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
push str.Cacrk.dll
call fcn.004021c0
add esp, 8
pop edi
add esp, 0x108
ret 0x10
Function at 0x4079a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab888
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4dd434]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x407a57
push 0x11
xor eax, eax
mov dword [ebp - 0x10], 7
push 0x4d5644
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
call fcn.00402fc0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00403490
cmp dword [eax + 0x14], 8
jb 0x407a11
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x407a34
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00401650
cmp dword [esi + 0x18], 0
je 0x407a57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407a57
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40f240
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
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x40f265
or esi, 2
push 1
call edi
test ax, ax
jns 0x40f271
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x40f27d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x40f289
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x411a40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [edi + 0x2d0]
call fcn.00409260
mov ebx, dword [ebp + 8]
test eax, eax
jle 0x411a9b
nop
push esi
lea ecx, [edi + 0x2d0]
mov byte [ebp + 0xb], 0
call fcn.00408b20
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push ebx
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x411c43
lea ecx, [edi + 0x2d0]
inc esi
call fcn.00409260
cmp esi, eax
jl 0x411a60
sub ebx, 0x100
je 0x411bcc
sub ebx, 4
je 0x411b17
sub ebx, 2
jne 0x411bc1
cmp dword [edi + 0xe0], ebx
je 0x411bc1
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.00498b0e
mov ecx, dword [edi + 0xe0]
lea edx, [ebp + 8]
add esp, 4
mov word [ebp + 8], ax
mov eax, dword [ecx]
push reloc.WS2_32.dll_select
push edx
push 0x413d40
call dword [eax + 0x110]
mov esi, eax
test esi, esi
je 0x411bc1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x104]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x20]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 0xe4]
test eax, eax
je 0x411bc1
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
xorps xmm0, xmm0
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0xc], xmm0
mov word [ebp - 0xc], ax
mov eax, dword [edi + 0xf4]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xf8]
push 0x11
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call ebx
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call ebx
test ax, ax
jns 0x411b7e
or esi, 2
push 1
call ebx
test ax, ax
jns 0x411b8a
or esi, 1
push 0x10
call ebx
test ax, ax
jns 0x411b96
or esi, 4
push 0x12
call ebx
test ax, ax
jns 0x411ba2
or esi, 0x20
mov word [ebp - 0xa], si
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe4]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x411bc1
mov ecx, dword [edi + 0xe4]
test ecx, ecx
je 0x411c2a
mov eax, dword [ecx]
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x411c2a
mov ecx, dword [edi + 0xe4]
mov eax, dword [ecx]
mov eax, dword [eax + 0xe8]
call eax
test al, al
je 0x411c2a
mov ecx, dword [edi + 0xe4]
push str.RichEdit
mov eax, dword [ecx]
call dword [eax + 0x10]
push eax
call fcn.0045df8d
add esp, 8
test eax, eax
je 0x411c2a
mov ecx, dword [edi + 0xe4]
call fcn.00421ba0
test al, al
jne 0x411bc1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, edi
setns al
movzx eax, al
push eax
call fcn.00413070
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412c60
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 0x412c9b
mov ecx, dword [edi + 0x84]
cmp eax, ecx
je 0x412c9b
cmp esi, dword [edi + 0xe4]
je 0x412c9b
cmp byte [edi + 0xdc], 0
jne 0x412c9b
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xe4]
cmp esi, eax
je 0x412d94
test eax, eax
je 0x412d09
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x20], 0x14
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe4]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
push 1
push 0
push 0
push 0
push str.killfocus
push dword [edi + 0xe4]
mov ecx, edi
call fcn.004129d0
mov dword [edi + 0xe4], 0
test esi, esi
je 0x412d94
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, edi
jne 0x412d94
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x412d94
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xe8]
call eax
test al, al
je 0x412d94
xorps xmm0, xmm0
mov dword [edi + 0xe4], esi
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe4]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
push 1
push 0
push 0
push 0
push str.setfocus
push dword [edi + 0xe4]
mov ecx, edi
call fcn.004129d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41f850
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 0x41f895
cmp byte [ebp + 8], 0
je 0x41f889
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4239c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x694], 0
je 0x423a2f
cmp dword [ebp + 8], 0x100
jne 0x423a1f
cmp word [ebp + 0xc], 0xd
jne 0x423a1f
cmp byte [esi + 0x69a], 0
je 0x4239fe
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x423a1f
cmp byte [esi + 0x69b], 0
jne 0x423a1f
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x423a18
push 1
push 0
push 0
push 0
push str.return
push esi
call fcn.004129d0
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x694]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10

Function at 0x423ec0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4dd434]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x423fba
movzx eax, word [ebx]
test ax, ax
je 0x423fba
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x423f00
cmp ax, 0x5c
jne 0x423f02
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x423ef4
cmp edi, ebx
je 0x423f4f
sub edi, ebx
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push ebx
push eax
call fcn.004980c4
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x423fca
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.00423ec0
add esp, 8
lea ecx, [ebp - 0x414]
sub ecx, esi
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x423f60
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x423f72
lea edi, [ebp - 0x414]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x423f90
mov ecx, ebx
lea eax, [ebp - 0x414]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
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.0048bdd6
mov esp, ebp
pop ebp
ret
call fcn.0048cb0a
int3

Function at 0x4246b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x424749
cmp dword [esi + 4], 0xffffffff
jne 0x424749
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4246e0
cmp dword [ebp + 0x10], 1
mov eax, dword [0x4d51fc]
mov dword [edi], eax
mov edi, dword [ebp + 8]
jne 0x424713
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x424713
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00427050
add esp, 0x10
test eax, eax
jne 0x424733
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.00427890
add esp, 4
mov dword [esi], eax
mov eax, dword [0x4df130]
pop edi
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x427190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x4271ce
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4271c2
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x4271df
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0045e210
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4272ee
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x4273ad
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4afd08]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4afd08]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4afd08]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4afd08]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4afd08]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4afd08]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4afd08]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4afd08]
sub edi, 1
jne 0x427306
pop edi
test esi, esi
je 0x4273cb
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4afd08]
sub esi, 1
jne 0x4273b1
not eax
pop esi
pop ebp
ret
Function at 0x4317f0
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
and edi, 7
je 0x431817
cmp eax, edi
jge 0x43180f
push esi
call fcn.0042cb50
add esp, 4
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x431840
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 0x431823
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x43185c
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x43184d
xor dl, dl
jmp 0x431852
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x431845
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 0x431892
mov dword [0x4df138], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4318ab
pop edi
mov dword [0x4df138], 0x4b1784
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4318c5
push edi
push ecx
push esi
call fcn.00435790
add esp, 0xc
test eax, eax
je 0x43188c
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0045e210
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret
Function at 0x440db0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x4e0a60], ecx
inc eax
cmp eax, 0x100
jb 0x440db2
cmp eax, 0x800
jae 0x440e83
nop
mov edx, dword [eax*4 + 0x4e0660]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4e0a60]
mov dword [eax*4 + 0x4e0a60], edx
inc eax
cmp eax, 0x800
jb 0x440e60
mov dword [0x4df288], 0x45a080
call fcn.00459eb0
mov ecx, dword [0x4df288]
test eax, eax
mov edx, 0x45a120
cmove ecx, edx
mov dword [0x4df288], ecx
ret

Function at 0x440f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x440f54
pop edi
xor eax, eax
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x400000
mov dword [edi], 0
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x440fa9
test ecx, ecx
je 0x440fa2
mov ecx, 0x400000
test esi, esi
jne 0x440f63
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop ebx
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]