joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d5a90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], eax
mov ebx, eax
mov eax, dword [0x562500]
mov edx, dword [0x562500]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx]
jne 0x4d5b60
mov eax, dword [0x562120]
cmp byte [eax + 0x11c], 0
jne 0x4d5b60
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x28], 0
mov eax, dword [0x562120]
cmp dword [eax + 0x170], 0
je 0x4d5b54
mov eax, dword [0x562120]
mov eax, dword [eax + 0x170]
call fcn.004f4de0
test al, al
je 0x4d5b54
mov eax, dword [0x562120]
mov eax, dword [eax + 0x170]
mov edx, dword [0x562120]
mov edx, dword [edx + 0x170]
mov edx, dword [edx]
call dword [edx + 0x344]
test al, al
je 0x4d5b4c
push 8
mov eax, dword [0x562120]
call fcn.004239d0
push eax
call sub.user32.dll_ShowWindow
lea esi, [esi]
call fcn.00545380
lea esi, [esi]
mov eax, dword [0x562120]
call fcn.00426c10
jmp 0x4d5bc4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x4d5b89
mov eax, dword [ebp - 4]
mov edx, dword [0x562120]
mov eax, dword [eax + 0x24]
cmp eax, dword [edx + 0x170]
jne 0x4d5b89
mov eax, dword [0x562120]
call fcn.00426c10
jmp 0x4d5bc4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x24], 0
je 0x4d5bc4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
test dword [eax + 0x48c], 8
je 0x4d5bc4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov dword [eax + 0xc], 1
mov eax, dword [0x562500]
mov edx, dword [0x562500]
mov edx, dword [edx]
call dword [edx + 0x90]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4db180
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 8
mov eax, fcn.004d9920
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00413600
mov dword [ebp - 0x20], eax
mov eax, str.MAINICON
push eax
push dword [0x5d32d0]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4db1d8
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
mov esi, esi
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, str.Window
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
cmp byte [ebp - 8], 0
je 0x4db254
or dword [ebp - 0x30], 0x800
cmp dword [0x57b530], 6
jb 0x4db22c
or dword [ebp - 0x30], 0x20000
mov esi, esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov eax, str.HintWindow
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne byte [ebp - 8]
mov esi, esi
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4dc2f0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push dword [eax - 8]
call sub.user32.dll_GetClipboardData
mov edx, dword [ebp - 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x14], 0
je 0x4dc388
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalSize
mov edx, dword [ebp - 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x1c], 0
jle 0x4dc388
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
xor eax, eax
push fcn.004dc2d0
push ebp
push 0x4146f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004dc2d0
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dca30
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2c]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.004dca10
push ebp
push 0x4146f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4dcafc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.00469160
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
call fcn.004690b0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.00469870
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.0046ad20
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4dcb53
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.004dc9f0
push ebp
push 0x4146f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004dc9f0
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004dca10
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x505290
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
jne 0x5052b8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x50536e
mov esi, esi
xor eax, eax
push 0x50534f
push ebp
push 0x414a70
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040ce70
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x505344
cmp dword [ebp - 8], 0
je 0x505344
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x50536e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5456d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
xor eax, eax
push fcn.005456b0
push ebp
push 0x4146f0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.0040a6f0
cmp dword [ebp - 0xc], 0
jle 0x545738
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x54572c
mov eax, 0x5d32f0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a6f0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
call fcn.0040ae30
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x545761
mov edx, dword [edx - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x54576d
mov eax, 0x5d32f0
call fcn.0042eb70
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.005456b0
mov esp, ebp
pop ebp
ret
Function at 0x546b00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, ecx
mov edx, 0x5c76d8
call fcn.0040e580
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00546af0
push ebp
push 0x4146f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
add eax, 0x34
xor edx, edx
call fcn.00408960
mov eax, dword [ebp - 0xc]
mov edx, fcn.004d9920
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
xor dx, dx
call fcn.004092b0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, 0x30
call fcn.00408960
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.00544de0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00547170
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
jne 0x546c1c
mov eax, dword [ebp - 4]
call fcn.004f98d0
test al, al
jne 0x546c1c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00546af0
mov esp, ebp
pop ebp
ret
Function at 0x1001cf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100df320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001cf80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1001cfb0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1001cfb0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1001d0ab
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1001cfd9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001d00d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1001d06c
sub eax, 1
je 0x1001d06c
sub eax, 2
jne 0x1001d0ab
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1007fed0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001d08a
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001d0ab
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1001d0ab
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a7270
mov esp, ebp
pop ebp
ret 4
Function at 0x1007fed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x1007fedf
pop dword [ebp - 0x38]
mov eax, 0x1007fedf
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xf691a39f
add dword [ebp - 0x48], 0x57c0a1ac
mov dword [ebp - 0x44], 0x6ce4ee72
add dword [ebp - 0x44], 0xc54e5dd3
mov dword [ebp - 0x40], 0xd6d10db1
sub dword [ebp - 0x40], 0x8a84c983
mov dword [ebp - 0x3c], 0x2be51572
sub dword [ebp - 0x3c], 0x2be51572
lea eax, [ebp - 0x48]
push eax
mov eax, 0x9f47a8b
sub eax, 0xf9e909ab
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xb2e44980
sub dword [ebp - 0x48], 0x3e71e02a
mov dword [ebp - 0x44], 0x90444905
add dword [ebp - 0x44], 0xb1281870
mov dword [ebp - 0x40], 0x1b196215
sub dword [ebp - 0x40], 0xb7a9f5a9
mov dword [ebp - 0x3c], 0x57d0f840
sub dword [ebp - 0x3c], 0x57d0f840
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x74d035e9
add eax, 0x9b3b3ab3
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x61e86
push 0
call eax
mov ecx, 0x87df8a34
add ecx, 0x7820cd0a
mov edi, eax
mov edx, 0x4d300b18
sub edx, 0x3d20d718
add edx, dword [ebp - 0x38]
mov esi, 0x332e90f3
sub esi, 0x277684a8
add dword [ebp - 0x20], 0xbcace21
mov ebx, dword [edx]
sub dword [ebp - 0x24], edi
add ebx, esi
xor dword [ebp - 0x30], edi
mov dword [edi], ebx
add dword [ebp - 0x1c], 0x2f5036a8
add edi, 4
add edx, 4
loop 0x1007fffc
add eax, 0x6b4f6a57
sub eax, 0x6b4e1a8c
xor ebx, ebx
add ebx, eax
add eax, 0xa95e7274
sub eax, 0xa95e726f
mov ecx, 0xe90ef6f7
add ecx, 0x26f10909
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x10087ee7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a3d10]
jne 0x10087ef1
repz ret
jmp fcn.10093823

Function at 0x1009655f
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.1008646f
and dword [ebp - 4], 0
cmp dword [0x100a5290], 0
mov ebx, eax
jne 0x10096610
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100966c1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100966c1
push eax
call fcn.100863fd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100a5290], eax
call esi
push eax
call fcn.100863fd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100a5294], eax
call esi
push eax
call fcn.100863fd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100a5298], eax
call esi
push eax
call fcn.100863fd
pop ecx
mov dword [0x100a52a0], eax
test eax, eax
je 0x10096610
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100863fd
pop ecx
mov dword [0x100a529c], eax
mov eax, dword [0x100a529c]
cmp eax, ebx
je 0x10096668
cmp dword [0x100a52a0], ebx
je 0x10096668
push eax
call fcn.10086478
push dword [0x100a52a0]
mov esi, eax
call fcn.10086478
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10096668
test edi, edi
je 0x10096668
call esi
test eax, eax
je 0x1009665f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1009665f
test byte [ebp - 0xc], 1
jne 0x10096668
or dword [ebp + 0x10], 0x200000
jmp 0x100966a1
mov eax, dword [0x100a5294]
cmp eax, ebx
je 0x100966a1
push eax
call fcn.10086478
pop ecx
test eax, eax
je 0x100966a1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100966a1
mov eax, dword [0x100a5298]
cmp eax, ebx
je 0x100966a1
push eax
call fcn.10086478
pop ecx
test eax, eax
je 0x100966a1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100a5290]
call fcn.10086478
pop ecx
test eax, eax
je 0x100966c1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100966c3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1009b781
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 dword [0x100a3140], 0
mov byte [0x100a3144], 0
mov dword [0x100a3138], 0x180c
mov dword [0x100a3134], 0x7f5
mov dword [0x100a313c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1009b892
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x100a3148], 0
mov edx, dword [0x100a3140]
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 [0x100a3148], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x100a3140], edx
mov dword [0x100a3134], 0x1f66
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x100a3144], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x100a3144]
mov edx, dword [0x100a3140]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x100a3134], 0x727
mov edx, dword [0x100a313c]
add edx, 1
mov dword [0x100a313c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1009b7d5
jmp 0x1009b8c9
xor eax, eax
mov dword [0x100a313c], 0
mov dword [ebp - 0x20], eax
jmp 0x1009b7d5
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x100a3134]
add eax, 0xffffe923
mov dword [0x100a3134], eax
mov eax, dword [0x100a313c]
add eax, 1
mov dword [0x100a313c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1009b892
jmp 0x1009b87e
mov dword [0x100a3134], 0x7e7
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1009b8db
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x100a3134], 0xb3c
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
mov esi, eax
add esi, 1
imul edi, eax, 0x30
mov ebx, edx
add ebx, edi
add ebx, 0x2c
imul eax, eax, 0x30
add edx, eax
add edx, 0x28
mov eax, dword [ebx]
movzx edx, word [edx]
xor edx, eax
add edx, ecx
cmp esi, 0x106
mov eax, edx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], esi
jne 0x1009b90a
mov eax, 1
lea ecx, [ebp - 0x12c]
mov dword [0x100a3134], 0xfffffe5e
mov dword [0x100a3138], 0x399
mov byte [ebp - 0x12c], 0x56
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov cl, byte [eax + 0x1009d22c]
mov dl, byte [eax + 0x1009d1fd]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x144], eax
jne 0x1009b999
mov dword [0x100a3138], 0xffffb7ae
mov dword [0x100a3134], 0x145a
call fcn.1009ca8f
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.1009b493
mov ecx, eax
mov dword [0x100a3150], eax
mov eax, esp
mov edx, dword [ebp - 0x13c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, eax, 0x30
mov edi, edx
add edi, esi
add edi, 0x2c
mov esi, dword [edi]
imul edi, eax, 0x30
mov ebx, edx
add ebx, edi
add ebx, 0x20
mov edi, dword [ebx]
imul ebx, eax, 0x30
add edx, ebx
add edx, 0x28
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.1009bfac
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x106
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x1009ba34
lea eax, [0x1009d20b]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x100a3138], 0x463
mov dword [0x100a3134], 0x44f
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.1009b781
mov dword [0x100a3134], 0x1806
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.1009bd80
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0x2afd5
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [0x100a3138], 0xa49
mov dword [edx + 4], 0x14b600
mov ecx, dword [ebp - 0x148]
add ecx, 0x286f6
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2020
mov dword [0x100a3134], 0x156
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret