joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ca70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
push 0
push eax
push 2
lea eax, [ebp - 4]
mov edi, ecx
push eax
push edi
mov esi, edx
call ebx
test eax, eax
je 0x44cb0a
cmp dword [ebp - 8], 2
jb 0x44cb0a
movsx eax, word [ebp - 4]
mov dword [esi], eax
sub eax, 0
je 0x44cadf
sub eax, 1
je 0x44cb0a
sub eax, 1
jne 0x44cb0a
push eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call ebx
test eax, eax
je 0x44cb0a
cmp dword [ebp - 8], 8
jb 0x44cb0a
movsd xmm0, qword [ebp - 0x18]
mov eax, 1
movsd qword [esi + 8], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call ebx
test eax, eax
je 0x44cb0a
cmp dword [ebp - 8], 4
jb 0x44cb0a
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4b01f4]
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 4]
push 0
push ecx
push edx
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x44f3a1
mov eax, dword [ebp - 4]
test eax, eax
je 0x44f3a1
push eax
call fcn.0047408e
mov esi, eax
add esp, 4
test esi, esi
je 0x44f39a
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jne 0x44f391
push edi
mov dword [ebx], eax
call dword [0x4b01c4]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004740af
add esp, 4
push edi
call dword [0x4b01c4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453ea0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 4], ecx
test esi, esi
je 0x453f78
mov eax, dword [ebp + 8]
nop dword [eax]
cmp ax, word [esi + 2]
jne 0x453f12
test byte [esi], 0x10
je 0x453ed1
test ebx, ebx
jne 0x453ed5
jmp 0x453f12
test ebx, ebx
jne 0x453f12
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test byte [esi], 8
cwde
je 0x453ee9
test eax, eax
jns 0x453f0f
jmp 0x453eed
test eax, eax
js 0x453f0f
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [esi]
cwde
test cl, 4
je 0x453f03
test eax, eax
jns 0x453f0b
jmp 0x453f07
test eax, eax
js 0x453f0b
movzx edi, word [esi + 4]
test edi, edi
jne 0x453f1c
mov eax, dword [ebp + 8]
cmp byte [esi], 0
jl 0x453f78
add esi, 8
jmp 0x453ec0
test cl, 0x40
je 0x453f4f
cmp edi, 0x7d0
jl 0x453f57
mov esi, dword [ebp - 4]
push 0
movzx eax, di
or eax, 0x10000
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x7d0
jl 0x453f29
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
je 0x453f78
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x453f78
test al, 1
je 0x453f2c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4540d0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push edi
mov ebx, ecx
mov edi, edx
xor eax, eax
mov word [ebx], ax
lea eax, [edi - 0x60]
cmp eax, 9
ja 0x45411b
push esi
push 2
push 0x40
call fcn.00474099
add esp, 8
mov esi, eax
push 0x3f
push esi
push 0x65
push dword [0x4b0080]
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [edi - 0x60]
push ecx
push esi
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.004740af
add esp, 0x10
pop esi
jmp 0x454167
lea eax, [edi - 0x70]
cmp eax, 0x17
ja 0x454138
lea eax, [edi - 0x6f]
push eax
push 0x49d728
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x454167
xor eax, eax
nop word [eax + eax]
cmp dword [eax*8 + str._bf_tg_fh_ri], edi
je 0x454151
inc eax
cmp eax, 0x14
jl 0x454140
jmp 0x454167
push 0x3f
push ebx
push dword [eax*8 + 0x49d1f4]
push dword [0x4b0080]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebx], 0
jne 0x45417f
push 2
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [ebx], ax
xor eax, eax
mov word [ebx + 2], ax
pop edi
pop ebx
ret
Function at 0x454190
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
push edi
push 0
push 0x78
mov edi, edx
push ebx
mov dword [ebp - 4], edi
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x79
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
movsx eax, word [edi + 0x12]
cmp esi, eax
jne 0x454208
push 2
push 0x80
call fcn.00474099
mov edi, eax
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, edi
movsx edx, word [eax + esi*2]
call fcn.004540d0
push edi
lea ecx, [esi + 0x6e]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
call fcn.004740af
mov edi, dword [ebp - 4]
add esp, 4
push 1
lea eax, [esi + 0x6e]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, 8
jl 0x4541c2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, edx
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
cmp dword [esi + 0x2a4], 0
lea ecx, [ebp - 1]
push 1
push ecx
push eax
setne byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46470e
cmp byte [ebp - 1], 0
push edi
je 0x464701
mov esi, dword [esi + 0x2a4]
mov edi, dword [0x4b00b4]
cmp edi, esi
je 0x4646e8
test esi, esi
jne 0x464687
xor ecx, ecx
jmp 0x46468d
mov ecx, dword [esi + 0x1d8]
cmp dword [0x4b00b8], ecx
je 0x4646b1
mov dword [0x4b00bc], 0
test ecx, ecx
je 0x4646ab
mov eax, dword [ecx + 0x7c]
mov dword [0x4b00bc], eax
mov dword [0x4b00b8], ecx
mov dword [0x4b00b4], esi
test esi, esi
je 0x4646ce
mov eax, dword [esi + 0x1d0]
mov dword [0x4b0094], eax
mov eax, dword [esi + 0x1d4]
jmp 0x4646da
mov dword [0x4b0094], 0
xor eax, eax
push eax
mov dword [0x4b008c], eax
call dword [sym.imp.MMFS2.dll_Ordinal_831]
mov esi, edi
mov ecx, dword [ebp - 8]
call fcn.0044aec0
mov ecx, esi
mov edi, eax
call fcn.00402b80
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x464720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 1], 0
xor edi, edi
lea ecx, [ebp - 0x10]
push edi
push ecx
push 1
lea ecx, [ebp - 1]
mov eax, edx
push ecx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4647a9
cmp byte [ebp - 1], 0
je 0x4647a4
push dword [ebx + 0x2ac]
mov edx, dword [ebx + 0x44]
mov ecx, ebx
push edi
call fcn.00463af0
mov ecx, dword [ebx + 0x2a4]
add esp, 8
test ecx, ecx
je 0x4647a9
call fcn.00402b80
mov ecx, dword [ebx + 0x2a4]
xor edx, edx
mov esi, eax
call fcn.00406580
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.0044cb20
mov ecx, esi
mov edi, eax
call fcn.00402b80
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465930
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4acca0]
xor eax, ebp
mov dword [ebp - 4], eax
push 6
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp + 8]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x465978
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.0047e665
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004705b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004705b7
mov esp, ebp
pop ebp
ret
Function at 0x46c0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4af350]
push edi
test eax, eax
je 0x46c129
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x46c129
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x46c129
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46c111
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c111
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46c111
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x54]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x46c130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4af350]
push edi
test eax, eax
je 0x46c1a9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x46c1a9
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x46c1a9
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46c191
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c191
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46c191
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x58]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x46c1b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4af350]
push edi
test eax, eax
je 0x46c229
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x46c229
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x46c229
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46c211
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c211
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46c211
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x4c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18
Function at 0x46c230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4af350]
push edi
test eax, eax
je 0x46c2a9
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x46c2a9
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x46c2a9
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46c291
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c291
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46c291
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x46c530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4af350]
push edi
test eax, eax
je 0x46c594
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x46c594
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x46c594
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x46c585
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c585
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46c585
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x46c58e
push dword [ebp + 0x10]
mov eax, dword [edi + 0x3c]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x46c5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4af350]
push edi
test eax, eax
je 0x46c604
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x46c604
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x46c604
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46c5f5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46c5f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46c5f5
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x46c5fe
push dword [ebp + 0x10]
mov eax, dword [edi + 0x40]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x477ac7
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00477962
Function at 0x401550
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x401703
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseEventLog]
nop dword [eax]
push 0
call esi
sub byte [edi + ebp], 0x2b
push 0
call esi
add byte [edi + ebp], 0x87
push 0
call esi
xor byte [edi + ebp], 0x7a
push 0
call esi
add byte [edi + ebp], 0xb0
push 0
call esi
add byte [edi + ebp], 0x84
push 0
call esi
add byte [edi + ebp], 0x57
push 0
call esi
add byte [edi + ebp], 0xf1
push 0
call esi
xor byte [edi + ebp], 0xeb
push 0
call esi
add byte [edi + ebp], 0xbd
push 0
call esi
add byte [edi + ebp], 0x97
push 0
call esi
xor byte [edi + ebp], 0xcb
push 0
call esi
add byte [edi + ebp], 0xd0
push 0
call esi
add byte [edi + ebp], 0x2f
push 0
call esi
add byte [edi + ebp], 0x2d
push 0
call esi
add byte [edi + ebp], 0x95
push 0
call esi
add byte [edi + ebp], 0xfd
push 0
call esi
xor byte [edi + ebp], 0x6d
push 0
call esi
add byte [edi + ebp], 0x21
push 0
call esi
add byte [edi + ebp], 0xc
push 0
call esi
add byte [edi + ebp], 0x6c
push 0
call esi
add byte [edi + ebp], 0x6d
push 0
call esi
add byte [edi + ebp], 0xf7
push 0
call esi
add byte [edi + ebp], 0xdd
push 0
call esi
add byte [edi + ebp], 0x19
push 0
call esi
add byte [edi + ebp], 0x43
push 0
call esi
xor byte [edi + ebp], 0x63
push 0
call esi
add byte [edi + ebp], 0x57
push 0
call esi
add byte [edi + ebp], 0xb9
push 0
call esi
add byte [edi + ebp], 0x67
push 0
call esi
add byte [edi + ebp], 0xb2
push 0
call esi
add byte [edi + ebp], 4
push 0
call esi
xor byte [edi + ebp], 0x46
push 0
call esi
xor byte [edi + ebp], 0x53
push 0
call esi
xor byte [edi + ebp], 0xe6
push 0
call esi
add byte [edi + ebp], 0x6a
push 0
call esi
add byte [edi + ebp], 0x9f
push 0
call esi
xor byte [edi + ebp], 0x70
push 0
call esi
add byte [edi + ebp], 0xee
push 0
call esi
add byte [edi + ebp], 0x5f
push 0
call esi
xor byte [edi + ebp], 0x23
push 0
call esi
add byte [edi + ebp], 0x47
push 0
call esi
xor byte [edi + ebp], 0x3a
push 0
call esi
add byte [edi + ebp], 0xd4
push 0
call esi
xor byte [edi + ebp], 0x99
push 0
call esi
add byte [edi + ebp], 0x70
push 0
call esi
xor byte [edi + ebp], 0x46
push 0
call esi
add byte [edi + ebp], 0xb6
push 0
call esi
add byte [edi + ebp], 0xf8
push 0
call esi
add byte [edi + ebp], 0xdc
inc edi
cmp edi, ebx
jb 0x401570
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x466300
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x25000]
push edi
or ebp, 0xffffffff
jmp 0x466322
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x466329
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466318
mov eax, 1
add ebx, ebx
jne 0x46633b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46634c
jne 0x46636b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46636b
dec eax
add ebx, ebx
jne 0x466358
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x466330
add ebx, ebx
jne 0x466367
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4663bd
xor ecx, ecx
sub eax, 3
jb 0x466383
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4663f2
sar eax, 1
mov ebp, eax
jmp 0x46638e
add ebx, ebx
jne 0x46638e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46635c
inc ecx
add ebx, ebx
jne 0x46639c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46635c
add ebx, ebx
jne 0x4663a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46639e
jne 0x4663ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46639e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4663dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4663ce
jmp 0x46631e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4663dc
add edi, ecx
jmp 0x46631e
pop esi
mov edi, esi
mov ecx, 0x9c1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4663fa
cmp byte [edi], 9
jne 0x4663fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4663ff
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x466477
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6c1c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6c250]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46642c
mov ecx, edi
jns 0x46645b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6c254]
or eax, eax
je 0x466471
mov dword [ebx], eax
add ebx, 4
jmp 0x466449
call dword [esi + 0x6c264]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4664a8
cmp al, 0xef
ja 0x46649b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x46647d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x46648a
mov ebp, dword [esi + 0x6c258]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4664dc
sub esp, 0xffffff80
jmp 0x411f8f
Function at 0x4012a2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x20]
mov dword [ebp - 0xc], edi
jmp 0x4012b5
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x68]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x4012d4
test ecx, ecx
jne 0x4012e2
test edx, edx
jne 0x4012e2
mov dword [ebp - 8], edi
jmp 0x40134c
cmp eax, 0xffffffff
jne 0x4012e2
mov dword [ebp - 8], 0xfffffffe
jmp 0x40134c
mov eax, dword [esi + 0x20]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x40134c
mov eax, dword [esi + 0x2c]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00405d50
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
sub dword [esi + 0x64], edi
sub dword [esi + 0x60], edi
add esp, 0xc
sub dword [esi + 0x50], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x401313
mov eax, dword [esi + 0x34]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x401332
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4013f2
mov ebx, dword [esi + 0x68]
add ebx, dword [esi + 0x60]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x2c]
mov dword [ebp - 4], eax
cmp eax, ecx
jbe 0x401371
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x40137b
xor eax, eax
jmp 0x4013b3
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x14], 0
jne 0x40139d
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call section..text
add esp, 0xc
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call fcn.00405d50
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x68], eax
mov edi, dword [esi + 0x68]
cmp edi, 3
jb 0x4013de
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x3c], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x48]
mov dword [esi + 0x3c], eax
cmp edi, 0x106
jae 0x4013f2
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x4012b2
pop edi
pop ebx
leave
ret

Function at 0x404ce6
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 8], 0
jne 0x404d08
push dword [esi + 0x40]
lea eax, [esi + 0x50]
push 0x1000
push 1
push eax
mov dword [esi + 4], eax
call fcn.004065e2
add esp, 0x10
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
ret

Function at 0x404d0c
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
mov edi, 0x1000
sub edi, dword [esi + 0x14]
je 0x404d43
push dword [esi + 0x44]
lea ebx, [esi + 0x1050]
push edi
push 1
push ebx
call fcn.00406761
add esp, 0x10
cmp eax, edi
je 0x404d39
or dword [esi + 0x4c], 0xffffffff
xor eax, eax
jmp 0x404d45
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0x1000
mov eax, edi
pop edi
pop ebx
ret