joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4317ec
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x460ee8
push str.FlsAlloc
push 0
call fcn.0043176c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43181e
push dword [ebp + 8]
mov ecx, esi
call fcn.0042ea87
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x431860
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x460f18
push str.FlsSetValue
push 3
call fcn.0043176c
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x431894
mov ecx, esi
call fcn.0042ea87
call esi
jmp 0x43189a
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x4402f8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [str.unknown]
mov eax, 0x104
push edi
push eax
mov dword [ebp - 0x424], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], ebx
push eax
push ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x208
test eax, eax
jne 0x44035c
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042f8e0
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00444a6c
test eax, eax
jns 0x440386
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4403ac
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
sub edi, 1
jne 0x4403a4
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.004486d7
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop edi
push edi
call fcn.00440726
mov ecx, dword [ebp - 0x41c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x420]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push eax
push str.Executable:__ls_v_d._d._d._d
push edi
call fcn.00440726
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push edi
call fcn.00440726
mov eax, dword [0x46a778]
add esp, 0x34
sub eax, ebx
je 0x44044d
sub eax, 1
je 0x440445
sub eax, 1
je 0x44043d
sub eax, 1
je 0x440435
sub eax, 1
jne 0x440453
mov esi, dword [str.debug]
jmp 0x440453
mov esi, dword [str.verbose]
jmp 0x440453
mov esi, dword [str.standard]
jmp 0x440453
mov esi, dword [str.warning]
jmp 0x440453
mov esi, dword [str.none]
push esi
push str.____logging_level:__hs____
push edi
call fcn.00440726
add esp, 0xc
cmp dword [ebp - 0x418], 0
pop edi
pop esi
pop ebx
je 0x440479
push dword [ebp - 0x418]
call fcn.00445636
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042e06f
mov esp, ebp
pop ebp
ret
Function at 0x440764
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
and dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x46a774]
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x4407a0
push edi
push ebx
push 0x46b5f8
call fcn.00402376
mov esi, eax
test esi, esi
js 0x4407f7
xor esi, esi
jmp 0x4407f7
test eax, eax
je 0x4407f7
push 0
lea edx, [ebp - 4]
sub eax, edi
push edx
push eax
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4407d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4407d3
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4407e7
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x4407f7
mov ecx, dword [0x46a774]
jmp 0x4407a4
push esi
push 0x310
push str.logutil.cpp
call fcn.00403821
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x443af1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x11c
push ebx
push 0
push eax
call fcn.0042f8e0
mov eax, dword [0x46b6d4]
add esp, 0xc
test eax, eax
jne 0x443bd5
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
or ecx, eax
cmp dword [ebp - 0x11c], 4
mov dword [0x46b6d8], ecx
jne 0x443b65
xor eax, eax
inc eax
jmp 0x443bd0
cmp dword [ebp - 0x11c], 5
jne 0x443b96
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x443b7c
push 2
jmp 0x443bcf
cmp ecx, 1
jne 0x443b85
push 3
jmp 0x443bcf
xor eax, eax
cmp ecx, 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
jmp 0x443bd0
cmp dword [ebp - 0x11c], 6
jne 0x443bcd
cmp dword [ebp - 0x118], 0
jne 0x443bb6
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 5
jmp 0x443bd0
cmp dword [ebp - 0x118], 1
jne 0x443bcd
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
jmp 0x443bd0
push 9
pop eax
mov dword [0x46b6d4], eax
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, dword [0x46b6d8]
mov dword [edi], eax
pop edi
pop esi
pop ebx
call fcn.0042e06f
mov esp, ebp
pop ebp
ret 8
Function at 0x446357
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0xc]
call fcn.0044490d
mov esi, eax
test esi, esi
js 0x4464ad
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x44647e
cmp dword [ebp - 4], 0
je 0x4464ac
xor ebx, ebx
and dword [ebp + 0x10], ebx
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
sub eax, ebx
push eax
mov eax, dword [ebp + 0x20]
add eax, ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x446458
add ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x4463dc
cmp ebx, dword [ebp - 4]
jb 0x4463ab
add dword [edi], ebx
push 0
pop eax
adc dword [edi + 4], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x446426
push eax
push eax
push eax
push eax
push dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 8], eax
call fcn.0044490d
test eax, eax
js 0x446426
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*8]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 8]
cmp dword [ebp - 8], 0
je 0x446426
cmp ebx, 8
jb 0x4463ff
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x44644c
cmp dword [eax], 0
je 0x44644c
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.00445c8a
mov esi, eax
test esi, esi
js 0x4464ac
cmp dword [ebp - 4], 0
jne 0x446381
jmp 0x4464ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44646f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x446476
mov esi, 0x80004005
push esi
push 0x1a6
jmp 0x4464a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x446495
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x44649c
mov esi, 0x80004005
push esi
push 0x19a
push str.dlutil.cpp
call fcn.00403821
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x24

Function at 0x448a03
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], 4
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000005
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x448a55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x448a44
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x448a55
push esi
push 0x18
push str.inetutil.cpp
call fcn.00403821
jmp 0x448a61
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
and dword [edx + 4], 0
mov dword [edx], ecx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41c5f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 5]
push esi
cmp eax, 4
ja case.0x41c607.2
jmp dword [eax*4 + 0x41c6e4]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
or dword [esi + 0x68], 4
test eax, eax
je 0x41c638
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
jne 0x41c638
mov eax, dword [esi + 0x5c]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 8]
xor eax, eax
add ecx, 0xffffffb8
cmp edx, 0xfffffffc
sete al
push eax
call fcn.0041cd90
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 8]
push eax
call edx
test byte [esi + 0x68], 4
je 0x41c698
mov eax, dword [esi + 0x5c]
and dword [esi + 0x68], 0xfffffffb
test eax, eax
je 0x41c698
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x41c698
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, 0x49ac5c
test edx, edx
jle 0x41c6c5
push 0x30e
push 0x4b22bc
call fcn.0041bb10
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x31a
push str.Unrecognized_Negative_verb_in_DoVerb__.__bad.
call fcn.0041bb10
add esp, 8
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x422020
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4b09fc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x422010
call fcn.004726c7
add esp, 4
call fcn.00421ed0
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4220ae
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x422074
mov edx, dword [ebp - 0x18]
push edx
jmp 0x4220a8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0044c290
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ef01
mov esp, ebp
pop ebp
ret
Function at 0x488507
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b09fc]
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.0047b0f3
and dword [ebp - 0x14], 0
cmp dword [0x4b32ec], 0
mov dword [ebp - 0x18], eax
jne 0x4885ba
push 0x497bc4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x488662
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x497bb8
push ebx
call edi
test eax, eax
je 0x488662
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x497ba8
push ebx
mov dword [0x4b32ec], eax
call edi
push eax
call esi
push 0x497b94
push ebx
mov dword [0x4b32f0], eax
call edi
push eax
call esi
push 0x497b78
push ebx
mov dword [0x4b32f4], eax
call edi
push eax
call esi
mov dword [0x4b32fc], eax
test eax, eax
je 0x4885ba
push 0x497b60
push ebx
call edi
push eax
call esi
mov dword [0x4b32f8], eax
mov eax, dword [0x4b32f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x488613
cmp dword [0x4b32fc], ecx
je 0x488613
push eax
call esi
push dword [0x4b32fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x488613
test ebx, ebx
je 0x488613
call edi
test eax, eax
je 0x48860a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48860a
test byte [ebp - 8], 1
jne 0x488613
or dword [ebp + 0x10], 0x200000
jmp 0x488646
mov eax, dword [0x4b32f0]
cmp eax, dword [ebp - 0x18]
je 0x488646
push eax
call esi
test eax, eax
je 0x488646
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x488646
mov eax, dword [0x4b32f4]
cmp eax, dword [ebp - 0x18]
je 0x488646
push eax
call esi
test eax, eax
je 0x488646
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b32ec]
call esi
test eax, eax
je 0x488662
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x488664
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ef01
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10257f04
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, 0
sete dl
cmp eax, 0
sete dh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov byte [ebp - 0x16], dh
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
mov dl, byte [ebp - 0x16]
and cl, dl
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x102580e5
mov dword [0x102a23dc], 0x25ed
mov dword [0x102a23d8], 0x14fc
mov ecx, dword fs:[0x18]
mov dword [0x102a23d8], 0xffffeafc
mov eax, dword [ecx + 0x30]
mov dword [0x102a23dc], 0xffffd3cf
mov eax, dword [eax + 0xc]
add eax, 0x14
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], dl
mov dword [ebp - 0x28], esi
jmp 0x10258045
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x34], eax
mov word [ebp - 0x36], dx
mov word [ebp - 0x38], di
jb 0x10257fd3
mov ax, word [ebp - 0x36]
mov word [ebp - 0x38], ax
mov ax, word [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
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 byte [ebp - 0x39], bl
jne 0x102580c3
jmp 0x102580a3
mov dword [0x102a23d8], 0xe77
mov eax, dword [ebp - 0x40]
add eax, 0x24
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x28]
add ecx, 0x10
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
cmp ecx, edx
sete bl
mov bh, byte [ebp - 0x21]
and bh, bl
test bh, 1
mov dword [ebp - 0x4c], ecx
jne 0x1025805f
jmp 0x10258072
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
cmp eax, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], ecx
je 0x102580e5
jmp 0x10258002
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], eax
jmp 0x102580e5
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov dx, word [ecx]
mov dword [0x102a23d8], 0x26b6
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
je 0x10258045
jmp 0x10257f9f
mov dword [0x102a23d8], 0x667
mov eax, dword [ebp - 0x34]
add eax, 1
mov ecx, dword [ebp - 0x54]
cmp eax, ecx
mov dword [ebp - 0x2c], eax
jb 0x10257f9f
mov al, byte [ebp - 0x39]
test al, 1
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x28], ecx
jne 0x102580d5
jmp 0x10258045
mov dword [0x102a23dc], 0xffffc994
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x102584f8
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 [0x102a23e4], 0
mov byte [0x102a23e8], 0
mov dword [0x102a23d8], 0x1f87
mov dword [0x102a23e0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1025855a
xor eax, eax
mov dword [0x102a23d8], 0xd51
mov dword [0x102a23e0], 0
mov dword [ebp - 0x20], eax
jmp 0x10258582
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102a23e0]
add eax, 1
mov dword [0x102a23e0], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1025855a
jmp 0x1025853f
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x102a23ec], 0
mov dword [0x102a23d8], 0x17de
mov edx, dword [0x102a23e4]
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 [0x102a23ec], edi
mov dword [0x102a23dc], 0x51e
mov dword [0x102a23d8], 0xffffe312
mov eax, edi
cdq
idiv ecx
mov dword [0x102a23e4], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x102a23e8], cl
mov dword [0x102a23d8], 0x1980
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x102a23d8]
add ecx, 0x1ff7
mov dword [0x102a23dc], ecx
mov cl, byte [0x102a23e8]
mov edx, dword [0x102a23e4]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x102a23d8], 0x5e6
mov edx, dword [0x102a23dc]
add edx, 0xfffffd1a
mov dword [0x102a23dc], edx
mov edx, dword [0x102a23e0]
add edx, 1
mov dword [0x102a23e0], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10258582
mov dword [0x102a23d8], 0x1e31
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10258688
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x16c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x102a23d8], 0xeb4
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]
xor edx, edx
lea esi, section..data
imul edi, eax, 0xb4
mov ebx, esi
add ebx, edi
add ebx, 0xb0
mov edi, dword [ebx]
imul ebx, eax, 0xb4
add esi, ebx
add esi, 0xa8
movzx esi, word [esi]
xor esi, edi
add esi, ecx
add eax, 1
cmp eax, 0x655
mov ecx, esi
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x140], edx
jne 0x102586b7
mov eax, dword [ebp - 0x140]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1025a528]
mov dh, byte [eax + 0x1025a4f9]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x140], ecx
jne 0x10258718
lea eax, [ebp - 0x12c]
mov dword [0x102a23d8], 0xf0b
mov dword [ebp - 0x144], eax
call fcn.102594a7
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.1025825e
mov ecx, eax
mov dword [0x102a23f8], 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, dword [0x102a23dc]
add edx, 0xffffd942
mov dword [0x102a23d8], edx
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, 0xb4
mov edi, edx
add edi, esi
add edi, 0xb0
mov esi, dword [edi]
imul edi, eax, 0xb4
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0xb4
add edx, ebx
add edx, 0xa8
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.10258a0f
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x655
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x102587cb
lea eax, str._r_X
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x102a23dc], 0xe6d
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.102584f8
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.10258fc1
mov dword [0x102a23d8], 0x1e27
mov eax, dword [ebp - 0x148]
add eax, 0xc7021
mov ecx, dword [ebp - 0x130]
mov dword [ecx], eax
mov dword [ecx + 4], 0x147600
mov eax, dword [ebp - 0x148]
add eax, 0x1d912
mov dword [ecx + 8], eax
mov eax, dword [0x102a23d8]
mov dword [ebp - 0x168], eax
xor eax, eax
mov ecx, dword [ebp - 0x168]
add ecx, 0xffffe53e
mov dword [0x102a23d8], ecx
mov ecx, dword [ebp - 0x130]
mov dword [ecx + 0xc], 0x2010
add esp, 0x16c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10258a9b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov dword [0x102a23dc], 0x26de
mov dword [ebp - 0x10], eax
call fcn.102580f0
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov dword [0x102a23dc], 0xe73
mov eax, dword [eax + esi]
cmp eax, 0x4550
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
je 0x10258ae7
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x78]
mov dword [0x102a23d8], 0x16bd
mov dword [ebp - 0x20], eax
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x20]
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + edx + 0x18]
cmp edi, 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
je 0x10258bf5
jmp 0x10258b4e
mov eax, dword [ebp - 0x30]
add eax, 1
mov cl, byte [ebp - 0x31]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x32]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x38], eax
jne 0x10258b7a
jmp 0x10258ba3
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [ebp - 0x4c]
add ecx, edx
mov esi, dword [ebp - 0x14]
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 - 0x30], eax
mov byte [ebp - 0x31], bh
mov byte [ebp - 0x32], cl
jne 0x10258b24
mov al, byte [ebp - 0x32]
test al, 1
jne 0x10258bd2
jmp 0x10258bac
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x24]
cmp edx, esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x2c], eax
jb 0x10258b60
jmp 0x10258bf5
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x14]
add edi, dword [edx + ecx*4]
mov dword [0x102a23d8], 0x22a3
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x2c]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret