joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x431fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x442740]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x4421b8]
cmp eax, 0xffffffff
jne 0x4198b9
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x4198c6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x41992d
jmp 0x4198fc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x41996a
test edi, edi
jne 0x419970
push 0x417ef0
push 0x4450c0
call fcn.004179b0
mov eax, dword [0x4421b8]
add esp, 8
cmp eax, 0xffffffff
je 0x41992d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x419956
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x419956
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x4199a8
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x419999
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x419970
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x4198f0
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x419a07
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4199ec
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x419a07
jmp 0x4199e0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4199e0
jmp 0x419a07
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x419a05
cmp esi, dword [eax + 8]
jne 0x419a05
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4199f5
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x419a1b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x419a1b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.0040abd0
cmp esi, ebx
jne 0x4199c0
mov ebp, dword [esp + 0x14]
jmp 0x4198f0
Function at 0x419a40
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x18]
push eax
push 4
push edx
push 0x419bf0
push 0
push 0
call fcn.00421b7a
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x419a69
pop esi
xor al, al
pop ebx
ret
mov ecx, dword [esi]
mov eax, 1
push edi
add ecx, 4
lock xadd dword [ecx], eax
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x419a8d
cmp eax, 0xffffffff
je 0x419a8d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x42957d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x442740]
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.004210b7
mov dword [ebp - 0x14], eax
cmp dword [0x446064], esi
jne 0x429670
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4295fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x429750
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x429750
push 0x438c78
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x429750
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x446064], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x446068], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44606c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x446074], eax
test eax, eax
je 0x42966d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x446070], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x429695
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x429688
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4296aa
push 4
pop eax
jmp 0x429752
cmp dword [ebp - 0x14], esi
je 0x4296aa
push dword [0x446064]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42968f
mov eax, dword [0x446070]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x429708
cmp dword [0x446074], edi
je 0x429708
push eax
call ebx
push dword [0x446074]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x429708
test eax, eax
je 0x429708
call ecx
test eax, eax
je 0x4296fd
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 0x4296fd
test byte [ebp - 8], 1
jne 0x429708
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x429738
mov eax, dword [0x446068]
cmp eax, edi
je 0x429735
push eax
call ebx
test eax, eax
je 0x429735
call eax
mov esi, eax
test esi, esi
je 0x429735
mov eax, dword [0x44606c]
cmp eax, edi
je 0x429735
push eax
call ebx
test eax, eax
je 0x429735
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x446064]
call ebx
test eax, eax
je 0x429750
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x429752
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae1a
mov esp, ebp
pop ebp
ret
Function at 0x892a90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1db000]
push edi
or ebp, 0xffffffff
jmp 0x892ab2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x892ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x892aa8
mov eax, 1
add ebx, ebx
jne 0x892acb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x892adc
jne 0x892afb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x892afb
dec eax
add ebx, ebx
jne 0x892ae8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x892ac0
add ebx, ebx
jne 0x892af7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x892b4d
xor ecx, ecx
sub eax, 3
jb 0x892b13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x892b82
sar eax, 1
mov ebp, eax
jmp 0x892b1e
add ebx, ebx
jne 0x892b1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x892aec
inc ecx
add ebx, ebx
jne 0x892b2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x892aec
add ebx, ebx
jne 0x892b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x892b2e
jne 0x892b4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x892b2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x892b6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x892b5e
jmp 0x892aae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x892b6c
add edi, ecx
jmp 0x892aae
pop esi
mov edi, esi
mov ecx, 0x69d5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x892b8a
cmp byte [edi], 0x2c
jne 0x892b8a
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 0x892b8f
lea edi, [esi + 0x489000]
mov eax, dword [edi]
or eax, eax
je 0x892c07
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x496b94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x496cd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x892bbc
mov ecx, edi
jns 0x892beb
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 + 0x496cd8]
or eax, eax
je 0x892c01
mov dword [ebx], eax
add ebx, 4
jmp 0x892bd9
call dword [esi + 0x496ce8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x892c38
cmp al, 0xef
ja 0x892c2b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x892c0d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x892c1a
mov ebp, dword [esi + 0x496cdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x892c6c
sub esp, 0xffffff80
jmp 0x4aee20
Function at 0x403995
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004100a0
mov eax, dword [0x283e620]
mov ecx, dword [0x283d274]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403a65
mov edi, ecx
mov ebx, eax
cmp dword [0x283e620], 0x959
jne 0x403a55
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x403650
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0x403688
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push 0x4036a4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.00403827
add edi, 8
dec ebx
jne 0x4039c1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d0c
Capabilities:
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x800
push esi
xor esi, esi
cmp dword [0x283e620], 0x400
push edi
jne 0x403dda
push esi
call dword [sym.imp.USER32.dll_GetDC]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push esi
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push esi
push esi
push esi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateA]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push esi
call fcn.004043e0
pop ecx
push esi
push esi
call fcn.004048c3
push esi
push esi
call fcn.004043a0
push esi
push esi
call fcn.004046a6
fldz
add esp, 8
fst qword [esp + 8]
fstp qword [esp]
call fcn.00404040
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404080
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404580
fstp st(0)
push esi
push esi
call fcn.004047fc
push esi
call fcn.00404abf
add esp, 0x14
push esi
push esi
call fcn.00404330
push esi
call fcn.00404970
add esp, 0xc
xor edi, edi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp edi, 0x4f4c8f6
jg 0x403df7
inc edi
cmp edi, 0x3446f09
jl 0x403ddc
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x12e82fe
jg 0x403e16
inc edi
cmp edi, 0x3011b
jl 0x403df9
mov eax, dword [0x445c44]
mov dword [0x283e620], eax
call fcn.00403a6a
mov edi, 0x2ec37
cmp dword [0x283e620], 0x51f
jne 0x403e42
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec edi
jne 0x403e2a
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406c7d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4427c4]
jne 0x406c87
repz ret
jmp fcn.0040b56c
Function at 0x40d1de
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4427c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040568b
and dword [ebp - 0x14], 0
cmp dword [0x45a7d0], 0
mov dword [ebp - 0x18], eax
jne 0x40d291
push 0x403474
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d339
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403468
push ebx
call edi
test eax, eax
je 0x40d339
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403458
push ebx
mov dword [0x45a7d0], eax
call edi
push eax
call esi
push 0x403444
push ebx
mov dword [0x45a7d4], eax
call edi
push eax
call esi
push 0x403428
push ebx
mov dword [0x45a7d8], eax
call edi
push eax
call esi
mov dword [0x45a7e0], eax
test eax, eax
je 0x40d291
push 0x403410
push ebx
call edi
push eax
call esi
mov dword [0x45a7dc], eax
mov eax, dword [0x45a7dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d2ea
cmp dword [0x45a7e0], ecx
je 0x40d2ea
push eax
call esi
push dword [0x45a7e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d2ea
test ebx, ebx
je 0x40d2ea
call edi
test eax, eax
je 0x40d2e1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d2e1
test byte [ebp - 8], 1
jne 0x40d2ea
or dword [ebp + 0x10], 0x200000
jmp 0x40d31d
mov eax, dword [0x45a7d4]
cmp eax, dword [ebp - 0x18]
je 0x40d31d
push eax
call esi
test eax, eax
je 0x40d31d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d31d
mov eax, dword [0x45a7d8]
cmp eax, dword [ebp - 0x18]
je 0x40d31d
push eax
call esi
test eax, eax
je 0x40d31d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45a7d0]
call esi
test eax, eax
je 0x40d339
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d33b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c7d
leave
ret
Function at 0x101bc5e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov esi, dword [0x101c9ac4]
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
add esi, 0x2dd
mov dword [0x101c9ac8], esi
mov dword [0x101c9ac4], 0xc52
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x101bc807
mov dword [0x101c9ac8], 0xffffdbfd
mov dword [0x101c9ac4], 0xffffdfef
mov ecx, dword fs:[0x18]
mov eax, 0xa0f
mov dword [0x101c9ac4], 0x2178
mov edx, dword [0x101c9ac8]
add edx, 0xffffdf4b
mov dword [0x101c9ac4], edx
mov ecx, dword [ecx + 0x30]
mov dword [0x101c9ac4], 0x147e
mov ecx, dword [ecx + 0xc]
add ecx, 0x14
mov edx, dword [ebp - 0x10]
cmp edx, 0
setne bl
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x21], bl
mov dword [ebp - 0x28], eax
jmp 0x101bc6b7
xor eax, eax
mov dword [0x101c9ac4], 0x13a9
mov dword [ebp - 0x18], eax
jmp 0x101bc807
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [0x101c9ac8], eax
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
mov dword [ebp - 0x2c], eax
je 0x101bc6a3
mov eax, dword [ebp - 0x2c]
mov cx, word [eax + 0x24]
mov dword [0x101c9ac4], 0x2324
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x21]
and bh, bl
test bh, 1
mov dword [ebp - 0x30], eax
mov word [ebp - 0x32], cx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], esi
jne 0x101bc706
jmp 0x101bc716
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x101bc807
mov dword [0x101c9ac4], 0x511
mov ax, word [ebp - 0x32]
shr ax, 1
mov word [ebp - 0x3e], ax
mov ax, word [ebp - 0x3e]
movzx ecx, ax
cmp ax, 0
mov dword [ebp - 0x44], ecx
jne 0x101bc74f
mov eax, 0x12b
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], eax
jmp 0x101bc6b7
xor eax, eax
mov dword [ebp - 0x48], eax
jmp 0x101bc756
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x4e], dx
mov word [ebp - 0x50], di
jb 0x101bc78a
mov ax, word [ebp - 0x4e]
mov word [ebp - 0x50], ax
mov ax, word [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x4c]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov al, bl
mov byte [ebp - 0x51], bl
mov byte [ebp - 0x52], al
jne 0x101bc7db
mov dword [0x101c9ac8], 0x12aa
mov eax, dword [ebp - 0x4c]
add eax, 1
mov ecx, dword [ebp - 0x44]
cmp eax, ecx
mov dl, byte [ebp - 0x51]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x52], dl
jb 0x101bc756
mov al, byte [ebp - 0x52]
mov dword [0x101c9ac4], 0x1d6a
test al, 1
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x58], ecx
jne 0x101bc7f7
jmp 0x101bc73c
mov eax, dword [ebp - 0x58]
mov dword [0x101c9ac4], 0xc0f
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101bcc40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x101c9ac4]
add edi, 0xffffdec1
mov dword [0x101c9ac8], edi
mov dword [0x101c9ad0], 0
mov byte [0x101c9ad4], 0
mov dword [0x101c9ac4], 0x1a
mov dword [0x101c9acc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101c9ac8]
add eax, 0xfffff269
mov dword [0x101c9ac4], eax
mov eax, dword [0x101c9acc]
add eax, 1
mov dword [0x101c9acc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101bcc97
xor eax, eax
mov dword [0x101c9ac4], 0x1c79
mov dword [0x101c9acc], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101c9ad8], 0
mov dword [0x101c9ac4], 0x1497
mov edx, dword [0x101c9ad0]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x101c9ad8], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x101c9ad0], edx
mov dword [0x101c9ac4], 0x1e26
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x101c9ad4], cl
mov dword [0x101c9ac4], 0x9ab
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x101c9ad4]
mov edx, dword [0x101c9ad0]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x101c9ac4]
add edx, 0x1871
mov dword [0x101c9ac8], edx
mov dword [0x101c9ac4], 0x1c53
mov edx, dword [0x101c9acc]
add edx, 1
mov dword [0x101c9acc], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x101bcce5
mov dword [0x101c9ac8], 0x1ee0
mov dword [0x101c9ac4], 0x1809
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101bce50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [0x101c9ac8]
mov dword [0x101c9acc], 0
mov dword [0x101c9ad0], 0
mov dword [0x101c9adc], 0
mov dword [0x101c9ac8], 0x20f1
add edi, 0xffffec51
mov dword [0x101c9ac4], edi
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x101bd019
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
jmp 0x101bceca
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
mov dword [0x101c9ac4], 0x2192
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101c9acc], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101c9ad0], edx
mov dword [0x101c9ac8], 0x1491
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101c9ad4], cl
mov dword [0x101c9ac4], 0x246a
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x101c9ac8], 0x211
mov cl, byte [0x101c9ad4]
mov edx, dword [0x101c9ad0]
mov byte [edi + edx], cl
mov dword [0x101c9ac4], 0x38
mov edx, dword [0x101c9acc]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101c9ad0]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x101c9adc], ebx
mov dword [0x101c9ac8], 0xffffd934
mov dword [0x101c9ac4], 0xcc1
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x30]
mov ch, byte [edx + ebx]
mov dl, cl
add dl, byte [0x101c9ae1]
mov byte [0x101c9ae0], dl
mov byte [0x101c9ae1], ch
mov dword [0x101c9ac8], 0x1552
mov byte [0x101c9ae2], cl
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
mov dword [0x101c9ac4], 0x2441
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x3c], ebx
je 0x101bd00f
mov eax, dword [0x101c9acc]
mov ecx, dword [0x101c9ad0]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], edx
jmp 0x101bceca
mov eax, 0x2441
mov dword [ebp - 0x20], eax
jmp 0x101bd019
mov eax, dword [ebp - 0x20]
add eax, 0x4ac
mov dword [0x101c9ac4], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret