joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401005
Capabilities:
Accept command line arguments
Get file size
Read file on windows
Write file on windows

Disassembly:
jmp 0x401010
call sub.KERNEL32.dll_AllocConsole
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov dword [0x404200], eax
call sub.KERNEL32.dll_GetCommandLineW
push 0x404218
push eax
call sub.SHELL32.dll_CommandLineToArgvW
mov dword [0x40421c], eax
mov ebx, dword [0x404218]
cmp ebx, 1
jne 0x40105c
push 0
push 0
push 0x13
push str.Brakuje_parametrow.
push dword [0x404200]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x4011d6
cmp ebx, 2
jne 0x40114f
call sub.KERNEL32.dll_GetCommandLineW
push 0
push 0x20
push 3
push 0
push 0
push 0x80000000
push str.plik.txt
call sub.KERNEL32.dll_CreateFileW
mov dword [0x404204], eax
cmp eax, 0xffffffff
jne 0x4010b4
push str.Blad_podczas_proby_odczytu_pliku.
call sub.KERNEL32.dll_lstrlenW
push 0
push 0x404214
push eax
push str.Blad_podczas_proby_odczytu_pliku.
push dword [0x404200]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x4011d6
push 0
push dword [0x404204]
call sub.KERNEL32.dll_GetFileSize
mov dword [0x40420c], eax
push 4
push 0x1000
push eax
push 0
call sub.KERNEL32.dll_VirtualAlloc
or eax, eax
jne 0x4010f1
push 0
push 0
push 0x20
push str.Blad_podczas_alokowania_pamieci.
push dword [0x404200]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x40114a
mov dword [0x404208], eax
push 0
push 0x404210
push dword [0x40420c]
push eax
push dword [0x404204]
call sub.KERNEL32.dll_ReadFile
cmp eax, 0xffffffff
jne 0x40112c
push 0
push 0
push 0x21
push str.Blad_podczas_proby_odczytu_pliku.
push dword [0x404200]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x40114a
push 0
push 0x404214
push dword [0x40420c]
push dword [0x404208]
push dword [0x404200]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x4011d6
cmp ebx, 3
jne 0x40119e
call sub.KERNEL32.dll_GetCommandLineW
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push str.plik2.txt
call sub.KERNEL32.dll_CreateFileW
mov dword [0x404204], eax
call sub.KERNEL32.dll_GetCommandLineW
push str.gitara_siema_plik_numer_2
call sub.KERNEL32.dll_lstrlenW
push 0
push 0
push 0x19
push str.gitara_siema_plik_numer_2
push dword [0x404204]
call sub.KERNEL32.dll_WriteFile
jmp 0x4011d6
cmp ebx, 3
jbe 0x4011bb
push 0
push 0
push 0x13
push str.Za_duzo_parametrow_
push dword [0x404200]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x4011d6
push 0x8000
push 0x40420c
push eax
call sub.KERNEL32.dll_VirtualFree
push dword [0x404204]
call sub.KERNEL32.dll_CloseHandle
call sub.KERNEL32.dll_FreeConsole
push 0
call sub.KERNEL32.dll_ExitProcess
int3
Function at 0x1002620
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
xor eax, eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100271e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x534
je 0x100269c
cmp dword [ebp - 0x24], 0x7a
jne 0x100271c
mov edx, dword [ebp - 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10026bd
mov dword [ebp - 0x24], 8
jmp 0x1002753
mov eax, dword [ebp - 0x20]
lea ecx, [eax + eax + 2]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10026df
mov dword [ebp - 0x24], 8
jmp 0x1002753
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1002713
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x1002753
mov dword [ebp - 0x24], 0
jmp 0x100271e
jmp 0x1002753
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [0x100406c]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.AUTHZ.dll_AuthzInitializeContextFromSid]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1002753
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x10], 0
je 0x1002763
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], 0
je 0x1002773
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40129f
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401298
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b5c8]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xec6a34]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40132c
push 0x4182f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xec6a34]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xec6a30]
cmove eax, edx
xor edx, edx
mov dword [0xec6a30], eax
cmp ecx, 0x3eb
mov eax, dword [0xec6988]
cmove eax, edx
mov dword [0xec6988], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xec6a2c], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x4012fa
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d2fe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405535
mov dword [ebp - 0x14], eax
cmp dword [0x8221e4], esi
jne 0x40d3f1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d37e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4d1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4d1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4d1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x8221e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x8221e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x8221ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8221f4], eax
test eax, eax
je 0x40d3ee
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8221f0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d416
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d409
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d42b
push 4
pop eax
jmp 0x40d4d3
cmp dword [ebp - 0x14], esi
je 0x40d42b
push dword [0x8221e4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d410
mov eax, dword [0x8221f0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d489
cmp dword [0x8221f4], edi
je 0x40d489
push eax
call ebx
push dword [0x8221f4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d489
test eax, eax
je 0x40d489
call ecx
test eax, eax
je 0x40d47e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d47e
test byte [ebp - 8], 1
jne 0x40d489
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4b9
mov eax, dword [0x8221e8]
cmp eax, edi
je 0x40d4b6
push eax
call ebx
test eax, eax
je 0x40d4b6
call eax
mov esi, eax
test esi, esi
je 0x40d4b6
mov eax, dword [0x8221ec]
cmp eax, edi
je 0x40d4b6
push eax
call ebx
test eax, eax
je 0x40d4b6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x8221e4]
call ebx
test eax, eax
je 0x40d4d1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404840
mov esp, ebp
pop ebp
ret
Function at 0x412402
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41242e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4124cb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4124f5
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412470
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4124fa
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4124f5
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x5e96a3
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa61ccc
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x5e9723
arpl word [edx + esi], si
clc
cmp esp, dword [edi]
lea ebp, [eax]
pop eax
pop ebp
invalid
adc dword [ebx], ebx
test eax, 0x7c92dda4
xor al, 0x1e
jno 0x5e97a4
invalid
pmuludq mm0, qword [esi - 0x43b12048]
in al, 0xb7
mov eax, dword [0xb8608507]
xchg byte [ebx - 0x15], dl
jl 0x5e97e2
pop ebx
movsb byte es:[edi], byte [esi]
adc bl, 8
pop ecx
int3
or eax, 0x9626ac4
sar edi, cl
xchg edx, eax
sahf
lahf
xchg dword [edi - 0x34], esp
fldenv [esi]
dec esi
push ds
cmp byte [ebx - 0x18], dl
retf

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1000a704
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x78]
lea ecx, [esp + 0x20]
mov edx, dword [0x10048148]
add edx, 0x678
mov dword [0x10048144], edx
mov dword [0x10048148], 0x2569
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1000b96b
lea ecx, [0x1000a84a]
mov dword [0x10048148], 0xfdb
mov edx, dword [esp + 0x78]
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], 0x139e00
mov edx, dword [0x10048130]
mov dword [esp + 0x58], edx
mov edx, dword [0x10048134]
mov dword [esp + 0x70], edx
mov edx, dword [0x10048138]
mov dword [esp + 0x34], edx
mov edx, dword [0x1004813c]
mov dword [esp + 0x40], edx
mov edx, dword [0x10048140]
mov dword [esp + 0x44], edx
mov dword [0x10048144], 0xc23
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1000a836
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
jmp 0x1000a836
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], ecx
mov dword [0x10048148], 0x2258
mov dword [0x10048144], 0x3ff3
mov edx, dword [esp + 8]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x64], esi
mov esi, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1000b7de
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x1000a7c6
jmp 0x1000a7aa
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x1000a81d
jmp 0x1000a7aa
Function at 0x1000aec1
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10048150], 0
mov dword [0x10048144], 0x14d6
mov byte [0x10048154], 0
mov dword [0x1004814c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1000afc0
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x10048150]
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 0x28], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x24]
movzx esi, byte [edi + ebx]
mov edi, dword [ebp - 0x28]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov eax, esi
cdq
idiv ecx
mov dword [0x10048150], edx
mov dword [0x10048148], 0x218a
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + ebx]
mov byte [0x10048154], cl
mov esi, dword [ebp - 0x18]
mov cl, byte [esi + edx]
mov byte [esi + ebx], cl
mov edx, dword [0x10048148]
add edx, 0xfffff0ae
mov dword [0x10048148], edx
mov cl, byte [0x10048154]
mov edx, dword [0x10048150]
mov byte [esi + edx], cl
mov edx, dword [0x10048148]
add edx, 0xfffff395
mov dword [0x10048144], edx
mov edx, dword [0x1004814c]
add edx, 1
mov dword [0x1004814c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1000af0b
jmp 0x1000afe8
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1004814c]
add eax, 1
mov dword [0x1004814c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000afc0
jmp 0x1000aff0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x1004814c], 0
mov dword [ebp - 0x20], eax
jmp 0x1000af0b
Function at 0x1000b025
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1004814c], 0
mov dword [0x10048150], 0
mov dword [0x10048158], 0
mov dword [0x10048148], 0x1bc4
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1000b167
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add eax, 1
mov edi, edx
add edi, 1
mov dword [0x10048148], 0xbd3
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x1004814c], edx
mov dword [0x10048144], 0x20e2
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10048150], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x10048154], cl
mov dword [0x10048144], 0x3ae4
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10048154]
mov edx, dword [0x10048150]
mov byte [ebx + edx], cl
mov dword [0x10048148], 0xd1
mov edx, dword [0x1004814c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10048150]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10048158], ecx
mov dword [0x10048144], 0x11c4
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov dl, byte [edx + esi]
xor dl, byte [ebx + ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + esi], dl
mov dword [0x10048144], 0x2708
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x34], edi
jne 0x1000b179
mov dword [0x10048144], 0x231d
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x1004814c]
mov ecx, dword [0x10048150]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
jmp 0x1000b088
Function at 0x1000b2d6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x10048144], 0x2f7
mov dword [0x10048148], 0xaf
mov dword [ebp - 0x10], eax
call fcn.1000b195
mov ecx, eax
mov dword [0x10048148], 0x2258
mov edx, dword [eax + 0x3c]
mov edx, dword [eax + edx + 0x78]
mov esi, ecx
add esi, dword [eax + edx + 0x20]
mov eax, dword [eax + edx + 0x24]
mov dword [0x10048144], 0x11a0
mov edi, edx
add edi, 0x18
mov ebx, ecx
add ebx, edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
cmp edx, 0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
je 0x1000b457
jmp 0x1000b36b
mov al, byte [ebp - 0x2d]
test al, 1
jne 0x1000b42a
jmp 0x1000b400
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
add ecx, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [0x10048148], 0x2bb
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x2d], cl
je 0x1000b35b
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x2d]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x55], ch
mov al, byte [ebp - 0x55]
test al, 1
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x48], ecx
jne 0x1000b39f
jmp 0x1000b35b
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov edx, dword [ebp - 0x3c]
add edx, 1
mov esi, dword [ebp - 0x28]
cmp edx, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
jb 0x1000b37b
jmp 0x1000b457
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov dword [0x10048144], 0x1371
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x18]
add edi, dword [edx + ecx*4]
mov dword [0x10048148], 0xfffff618
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x2c]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret