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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57fb2b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x601328]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
mov eax, dword [0x601328]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push edi
lea ecx, [esp + 0x30]
call fcn.00473cb3
mov dword [esp + 0xa0], edi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], vtable.CChromeToolbarData.0
mov dword [esp + 0x2c], 0xf
call fcn.00408900
push str.cfhdojbkjhnklbpkdaibdccddilifddb
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 1
call fcn.00408330
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
call fcn.004902ea
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.00473b59
lea esi, [esp + 0x2c]
call fcn.004740be
mov eax, edi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0054677c
mov esp, ebp
pop ebp
ret 4

Function at 0x531dda
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57fb2b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x601328]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
mov eax, dword [0x601328]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push edi
lea ecx, [esp + 0x30]
call fcn.00473cb3
mov dword [esp + 0xa0], edi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], vtable.CChromeToolbarData.0
mov dword [esp + 0x2c], 0xf
call fcn.00408900
push str.gighmmpiobklfepjocnamgkkbiglidom
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 1
call fcn.00408330
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
call fcn.004902ea
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.00473b59
lea esi, [esp + 0x2c]
call fcn.004740be
mov eax, edi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0054677c
mov esp, ebp
pop ebp
ret 4

Function at 0x531eaa
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x54], 0x10
jb 0x531eb8
mov eax, dword [esi + 0x40]
jmp 0x531ebb
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
cmp dword [esi + 0x8c], 8
jb 0x531ed9
mov esi, dword [esi + 0x78]
jmp 0x531edc
add esi, 0x78
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
dec eax
neg eax
sbb al, al
inc al
pop esi
test bl, bl
pop ebx
je 0x531ef8
test al, al
je 0x531ef8
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x5344eb
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x14
mov eax, 0x568b5f
call fcn.0054d3d9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x534505
mov eax, dword [eax + 4]
jmp 0x534508
add eax, 4
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
jne 0x534534
xor al, al
call fcn.0054d4b1
ret 4
lea eax, [ebp - 0x18]
mov edi, str._Adblock_Plus_preferences
push eax
mov ecx, edi
mov byte [ebp + 0xb], bl
call fcn.004165e0
push ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx - 0xc]
lea edx, [ecx + 2]
cmp eax, edx
jae 0x534572
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00409cb0
mov al, bl
jmp 0x53452c
lea eax, [ecx + ecx]
mov dword [ebp - 0x14], eax
add eax, 2
push eax
call fcn.00545b75
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
push ebx
push eax
call fcn.0054ff70
add esp, 0x10
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x534603
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.004165e0
mov ecx, edi
lea esi, [ebp - 0x1c]
call fcn.00403f00
cmp eax, 0xffffffff
je 0x5345cf
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x1c]
call fcn.00409cb0
cmp byte [ebp + 0xb], bl
jne 0x534603
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.00494662
mov ecx, edi
lea esi, [ebp - 0x1c]
call fcn.00403f00
cmp eax, 0xffffffff
je 0x5345fb
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x1c]
call fcn.00409cb0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.00547866
mov bl, byte [ebp + 0xb]
pop ecx
jmp 0x534566

Function at 0x54677c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x601328]
jne 0x546786
repz ret
jmp fcn.00553174
Function at 0x559205
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00552b83
and dword [ebp - 4], 0
cmp dword [0x6055b0], 0
mov ebx, eax
jne 0x5592b6
push 0x590f10
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x559367
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
test eax, eax
je 0x559367
push eax
call fcn.00552b11
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x6055b0], eax
call esi
push eax
call fcn.00552b11
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6055b4], eax
call esi
push eax
call fcn.00552b11
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x6055b8], eax
call esi
push eax
call fcn.00552b11
pop ecx
mov dword [0x6055c0], eax
test eax, eax
je 0x5592b6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00552b11
pop ecx
mov dword [0x6055bc], eax
mov eax, dword [0x6055bc]
cmp eax, ebx
je 0x55930e
cmp dword [0x6055c0], ebx
je 0x55930e
push eax
call fcn.00552b8c
push dword [0x6055c0]
mov esi, eax
call fcn.00552b8c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x55930e
test edi, edi
je 0x55930e
call esi
test eax, eax
je 0x559305
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x559305
test byte [ebp - 0xc], 1
jne 0x55930e
or dword [ebp + 0x10], 0x200000
jmp 0x559347
mov eax, dword [0x6055b4]
cmp eax, ebx
je 0x559347
push eax
call fcn.00552b8c
pop ecx
test eax, eax
je 0x559347
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x559347
mov eax, dword [0x6055b8]
cmp eax, ebx
je 0x559347
push eax
call fcn.00552b8c
pop ecx
test eax, eax
je 0x559347
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6055b0]
call fcn.00552b8c
pop ecx
test eax, eax
je 0x559367
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x559369
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x55eb01
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00552b83
and dword [ebp - 4], 0
cmp dword [0x6055d4], 0
mov ebx, eax
jne 0x55ebb2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x55ec63
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x55ec63
push eax
call fcn.00552b11
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x6055d4], eax
call esi
push eax
call fcn.00552b11
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6055d8], eax
call esi
push eax
call fcn.00552b11
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6055dc], eax
call esi
push eax
call fcn.00552b11
pop ecx
mov dword [0x6055e4], eax
test eax, eax
je 0x55ebb2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00552b11
pop ecx
mov dword [0x6055e0], eax
mov eax, dword [0x6055e0]
cmp eax, ebx
je 0x55ec0a
cmp dword [0x6055e4], ebx
je 0x55ec0a
push eax
call fcn.00552b8c
push dword [0x6055e4]
mov esi, eax
call fcn.00552b8c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x55ec0a
test edi, edi
je 0x55ec0a
call esi
test eax, eax
je 0x55ec01
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x55ec01
test byte [ebp - 0xc], 1
jne 0x55ec0a
or dword [ebp + 0x10], 0x200000
jmp 0x55ec43
mov eax, dword [0x6055d8]
cmp eax, ebx
je 0x55ec43
push eax
call fcn.00552b8c
pop ecx
test eax, eax
je 0x55ec43
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x55ec43
mov eax, dword [0x6055dc]
cmp eax, ebx
je 0x55ec43
push eax
call fcn.00552b8c
pop ecx
test eax, eax
je 0x55ec43
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6055d4]
call fcn.00552b8c
pop ecx
test eax, eax
je 0x55ec63
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x55ec65
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8ccbd5
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x8cc92e
pop esi
push 0x82fb2758
pop ebx
call fcn.008ccc0e
inc ebx
xor dword [edi], esi
add ecx, ecx
add ecx, ebx
inc edi
sub ecx, ecx
inc ecx
add ecx, 0xc59d5ceb
cmp edi, edx
jne fcn.008ccbd5
dec ebx
and ecx, ebx
ret
Function at 0x10010027
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10010069
push 6
call fcn.1003356f
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push str.CallWindowProcA
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10010093
push 6
call fcn.1003356f
add esp, 4
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.10010135
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push 0
push dword [0x1005951a]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100100e0
push 6
call fcn.1003356f
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0
je 0x10010119
mov dword [ebp - 0x10], esp
push 0xffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10010114
push 6
call fcn.1003356f
add esp, 4
call fcn.1001026d
call fcn.1001026d
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x1001012f
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100101fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x1001021d
mov dword [ebp + 8], 0x400
mov eax, dword [ebp + 8]
mov dword [0x10059522], eax
mov dword [ebp - 8], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
push dword [0x1005951a]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x1001025c
push 6
call fcn.1003356f
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10010267
mov esp, ebp
pop ebp
ret 8
Function at 0x10016812
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 2
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x10016849
push 6
call fcn.1003356f
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x41
jl 0x10016867
cmp dword [ebp - 4], 0x5a
jg 0x10016867
mov eax, 1
jmp 0x1001686c
mov eax, 0
test eax, eax
je 0x10016878
add dword [ebp - 4], 0x20
mov eax, dword [ebp - 4]
jmp 0x10016880
mov esp, ebp
pop ebp
ret 4
Function at 0x10033d10
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.10048d5e
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x10033d7a
push esi
lea edi, [eax + 0x400]
call fcn.10048d87
push edi
call fcn.10048d5e
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x10033d4a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10033d96
push ecx
push esi
call fcn.100360d0
add esp, 8
mov ebx, eax
push esi
call fcn.10048d87
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10034ba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10034c32
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x10034c24
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x10034c1c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10034be5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x100351f0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x1003520e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10035203
pop esi
ret
Function at 0x10035360
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x10035373
xor eax, eax
pop esi
add esp, 0x10
ret
push esi
call fcn.10036f90
add esp, 4
test eax, eax
jne 0x10035385
pop esi
add esp, 0x10
ret
mov eax, dword [esi]
mov ecx, 1
push ebx
push ebp
cmp eax, ecx
push edi
mov dword [esp + 0x10], 0
jne 0x10035446
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jle 0x100354c3
lea ebx, [esp + 0x34]
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x100353ce
mov esi, dword [ebx]
jmp 0x100353e2
push ebx
call fcn.10036df0
mov esi, eax
add esp, 4
test esi, esi
je 0x10035426
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x1003540d
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1003540d
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x1003541a
push esi
call fcn.1003cded
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100354c3
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x100353be
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
cmp eax, 2
jne 0x100354c3
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 4]
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jle 0x100354c3
dec eax
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x10035477
mov esi, dword [ebx]
jmp 0x1003548b
push ebx
call fcn.10036df0
mov esi, eax
add esp, 4
test esi, esi
je 0x100354b5
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x100354a8
mov eax, dword [esp + 0x18]
push ecx
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
test ebp, ebp
je 0x100354b5
push esi
call fcn.1003cded
add esp, 4
mov eax, dword [esp + 0x24]
add ebx, 0xc
dec eax
mov dword [esp + 0x24], eax
jne 0x10035467
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
Function at 0x10035530
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x10035549
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.10036f90
add esp, 4
test eax, eax
jne 0x1003555e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10035578
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x10035578
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x10035660
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x100355b0
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x100355c7
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x100355cb
mov esi, dword [esp + 0x2c]
push esi
call fcn.10048d5e
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10035604
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.10048d87
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jbe 0x10035620
mov al, byte [ecx]
test al, al
je 0x10035620
cmp al, 0x1a
je 0x10035620
inc edi
inc ecx
cmp edi, edx
jb 0x10035610
lea ecx, [edi + 1]
push ecx
call fcn.10033740
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push esi
call fcn.1003c850
push ebx
mov byte [edi + esi], 0
call fcn.10048d87
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x100356db
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x1003567a
or eax, 0xffffffff
jmp 0x1003567e
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x100356ad
mov cl, byte [edx]
test cl, cl
je 0x100356ad
cmp cl, 0x1a
je 0x100356ad
inc edi
inc edx
cmp edi, eax
jb 0x1003569c
lea edx, [edi + 1]
push edx
call fcn.10033740
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call fcn.1003c850
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x10037840
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x1003784c
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x100378df
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x100378a9
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.100378f0
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x1003787e
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret

Function at 0x10037910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x10037a0d
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x10037962
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x1003798e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.100378f0
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x100379cf
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x10037951
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x100389d0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x10059a44]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x100389e3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x10038a24
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x10059aec]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x10038a56
mov bl, byte [esp + ecx + 0x4c]
jmp 0x10038a5a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x10038a4b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x10038a78
mov bl, byte [esp + ecx + 0x4c]
jmp 0x10038a7c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x10038a6d
xor ecx, ecx
mov eax, 0x10059a54
xor ebx, ebx
mov bl, byte [ecx + 0x10059afc]
cmp byte [esp + ebx + 0x14], 0
je 0x10038aa7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x10059b14]
cmp byte [esp + ebx + 0x14], 0
je 0x10038abe
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x10038a8e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x10038a17
lea edx, [esp + 0x84]
push edx
call fcn.10038b00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret