joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405450
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0xffff0000
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x67c
mov eax, dword [0x41b704]
mov dword [ebp - 0x648], 0x45
mov dword [ebp - 0x634], 0x100
test eax, eax
mov dword [esp + 4], str.Component_Categories_
cmove eax, edx
mov dword [esp], 0x80000000
mov dword [ebp - 0x64c], 0xffff0001
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x664]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x628], 1
mov dword [ebp - 0x668], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x40569c
mov ebx, 0xffffffff
lea esi, [ebp - 0x60c]
lea esi, [esi]
mov eax, dword [ebp - 0x664]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x405660
lea eax, [ebp - 0x660]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x664]
mov dword [esp], eax
mov eax, dword [ebp - 0x668]
call eax
sub esp, 0xc
test eax, eax
jne 0x4054d8
lea eax, [ebp - 0x65c]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x65c], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x658], 0x200
mov dword [ebp - 0x654], 0x200
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
jne 0x4055f0
cmp word [ebp - 0x20c], 0
je 0x4055f0
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x638], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, esi
mov edx, esi
mov eax, 1
sub esp, 4
mov dword [esp], 0
call sym._CreateITEM_INFO
mov dword [esp + 8], 0
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x650]
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4d0]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x4054d8
lea eax, [ebp - 0x658]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x654]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x40c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x660]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x4054d8
cmp word [ebp - 0x20c], 0
jne 0x405585
jmp 0x4054d8
mov eax, dword [ebp - 0x664]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41b704]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4d0]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4056b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x460
mov eax, dword [0x41b714]
mov dword [ebp - 0x448], 5
mov dword [esp + 4], str.AppID_
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x434], 0x100
mov dword [ebp - 0x44c], 0xffff0001
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call edi
sub esp, 0xc
test eax, eax
jne 0x405864
mov esi, 0xffffffff
lea ebx, [ebp - 0x40c]
lea esi, [esi]
mov eax, dword [ebp - 0x45c]
add esi, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x405828
lea eax, [ebp - 0x458]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x405720
lea eax, [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x454], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x458]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, ebx
test ecx, ecx
jne 0x4057c0
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], 0
mov eax, edx
cmove eax, ebx
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, ebx
mov edx, ebx
mov eax, 2
sub esp, 4
mov dword [esp], 0
call sym._CreateITEM_INFO
mov dword [esp + 8], 0
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x450]
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4d0]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x405720
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41b714]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x41b4d0]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406e40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
call sym._AddBaseEntries
call sym._AddComponentCategories
call sym._AddCOMandAll
call sym._AddApplicationID
call sym._AddTypeLib
pop ebp
jmp sym._AddInterfaces

Function at 0x407010
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
xor eax, eax
mov ebp, esp
mov dword [eax + 0x41b700], edx
add eax, 4
cmp eax, 0x20
jb 0x407017
call sym._AddComponentCategories
pop ebp
jmp sym._AddCOMandAll
Function at 0x40cb90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40cbe8
cmp byte [esi + ebx - 1], 0xa
je 0x40cbbc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41b484], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x40d210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x40d3e8
mov edi, dword [0x41b484]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x40d2f7
test byte [0x40e2e8], 8
jne 0x40d390
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x40e2f8], 8
jne 0x40d350
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40d299
cmp esi, 3
jbe 0x40d308
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x40d2aa
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4164f0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x40d299
mov dword [esp], 0x40e2f8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x40d270
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x40d270
mov dword [esp], 0x40e2e8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x40d25b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x40d263
mov eax, 0xffffffff
jmp 0x40d2f7

Function at 0x40d470
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x40d530
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40d5af
cmp al, 9
je 0x40d5a0
cmp al, 0x20
je 0x40d5a0
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp al, 0x5c
je 0x40d608
cmp al, 0x22
je 0x40d618
mov dword [ebp - 0x54], 0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x40d5af
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x40d560
test edi, 1
jne 0x40d560
lea esi, [esi]
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 9
je 0x40d5a0
cmp al, 0x20
je 0x40d5a0
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x24], 1
jne 0x40d5ca
mov word [ebp - 0x20], 1
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40d577
and dword [ebp - 0x54], 1
jne 0x40d570
xor edi, 1
jmp 0x40d577
Function at 0x10024b59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10024b68
pop dword [ebp - 0x34]
mov eax, 0xe7e9404e
add eax, 0x28190b1a
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x40ba37b0
sub dword [ebp - 0x44], 0xf267f265
mov dword [ebp - 0x40], 0x544f9083
sub dword [ebp - 0x40], 0x221c443e
mov dword [ebp - 0x3c], 0xb201ca26
sub dword [ebp - 0x3c], 0x65b585f8
mov dword [ebp - 0x38], 0x25d3558
add dword [ebp - 0x38], 0xfda2caa8
lea eax, [ebp - 0x44]
push eax
mov eax, 0xa408c542
sub eax, 0x9408b426
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x560aa571
sub dword [ebp - 0x44], 0xe1983c1b
mov dword [ebp - 0x40], 0x9efa043a
add dword [ebp - 0x40], 0xa2725d3b
mov dword [ebp - 0x3c], 0xda1b6809
sub dword [ebp - 0x3c], 0x76abfb9d
mov dword [ebp - 0x38], 0x3efc6d9b
sub dword [ebp - 0x38], 0x3efc6d9b
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x2727c9b1
add eax, 0xe8d8474f
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x401bf
push 0
call eax
mov ecx, 0x1871fd20
add ecx, 0xe78e4b2d
xor esi, esi
add esi, eax
mov edx, 0x10036a00
add edx, dword [ebp - 0x34]
mov edi, 0x7a0bfbb3
sub dword [ebp - 0x24], 0x620e54bc
mov ebx, dword [edx]
xor dword [ebp - 0x10], 0x2a4a5fdd
xor ebx, edi
add dword [ebp - 0x10], 0x7f85a550
mov dword [esi], ebx
add dword [ebp - 0x18], ecx
add esi, 4
add edx, 4
loop 0x10024c80
add eax, 0x335ddd7f
add eax, 0xcca33688
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x1002e08f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100075dc]
jne 0x1002e6f5
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10032ca0], eax
mov dword [0x10032c9c], ecx
mov dword [0x10032c98], edx
mov dword [0x10032c94], ebx
mov dword [0x10032c90], esi
mov dword [0x10032c8c], edi
mov word [0x10032cb8], ss
mov word [0x10032cac], cs
mov word [0x10032c88], ds
mov word [0x10032c84], es
mov word [0x10032c80], fs
mov word [0x10032c7c], gs
pushfd
pop dword [0x10032cb0]
mov eax, dword [ebp]
mov dword [0x10032ca4], eax
mov eax, dword [ebp + 4]
mov dword [0x10032ca8], eax
lea eax, [ebp + 8]
mov dword [0x10032cb4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10032bf0], 0x10001
mov eax, dword [0x10032ca8]
mov dword [0x10032ba4], eax
mov dword [0x10032b98], 0xc0000409
mov dword [0x10032b9c], 1
mov eax, dword [0x100075dc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10032ad8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10032be8], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x100075ec
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10032be8], 0
jne 0x1002e7e1
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1000cd63
pop dword [ebp - 0x34]
mov eax, 0x1000cd63
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3c237
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x5484
xor ebx, ebx
add ebx, eax
mov esi, 0x19830c56
add esi, 0xf67e79aa
add esi, dword [ebp - 0x34]
mov edx, 0xdfde4c4c
add edx, 0xfc6b9b8c
sub dword [ebp - 0x14], 0x6ccce101
mov edi, dword [esi]
add dword [ebp - 0x14], edx
xor edi, edx
mov dword [ebp - 0x10], 0x9a1dcf90
mov dword [ebx], edi
mov dword [ebp - 0x14], 0x8d4df4e0
add ebx, 0x58efd3e7
sub ebx, 0x58efd3e3
add esi, 0xceeef1df
add esi, 0x31110e25
loop 0x1000cdb4
add eax, 0xd94a025c
add eax, 0x26b74287
mov ebx, eax
add eax, 0x69d9966e
sub eax, 0x69d99669
mov ecx, 0x348e7e44
sub ecx, 0x248e7e44
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x703c1028
Capabilities:
Encode data using xor

Disassembly:
push ebp
movzx eax, al
shl eax, 4
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 8
mov dword [ebp - 0x10], eax
lea eax, [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov ebx, edx
xor ecx, ecx
lea edi, [esi + eax]
mov al, byte [edi + ecx]
inc ecx
xor byte [ebx], al
inc ebx
cmp ecx, 4
jne 0x703c104c
add dword [ebp - 0x10], 4
add edx, 4
cmp edx, dword [ebp - 0x14]
jne 0x703c1042
pop eax
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x703c11a4
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, 0x10
mov esi, dword [ebp - 0x20]
cmp dword [ebp - 0x2c], esi
je 0x703c1373
cmp eax, 0x10
jne 0x703c1361
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x1c]
mov ecx, 4
lea edx, [ebp - 0x1c]
lea esi, [eax + 0xf0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
call fcn.703c1028
mov dword [ebp - 0x28], 1
lea edx, [ebp - 0x1c]
lea edi, [ebp - 0x18]
mov ecx, edx
mov byte [ebp - 0x21], 0
mov eax, ecx
movzx esi, byte [eax]
inc byte [ebp - 0x21]
add eax, 4
mov bl, byte [esi + str.cw]
mov byte [eax - 4], bl
cmp byte [ebp - 0x21], 4
jne 0x703c1207
inc ecx
cmp edi, ecx
jne 0x703c1201
mov al, byte [ebp - 0x17]
mov cl, byte [ebp - 0x1b]
cmp dword [ebp - 0x28], 0xe
mov byte [ebp - 0x1b], al
mov al, byte [ebp - 0x13]
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0xf]
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0x1a]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x12]
mov byte [ebp - 0x12], cl
mov cl, byte [ebp - 0x16]
mov byte [ebp - 0x1a], al
mov al, byte [ebp - 0xe]
mov byte [ebp - 0xe], cl
mov cl, byte [ebp - 0x19]
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x19], al
mov al, byte [ebp - 0x11]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x15], cl
mov byte [ebp - 0x11], al
je 0x703c1321
lea eax, [edx + 0x10]
mov dword [ebp - 0x30], eax
mov al, byte [edx]
mov cl, byte [edx + 1]
mov bl, 0x1b
add edx, 4
xor ecx, eax
mov byte [ebp - 0x21], al
mov al, byte [edx - 2]
xor al, byte [edx - 1]
movzx edi, byte [ebp - 0x21]
mov byte [ebp - 0x22], al
mov esi, eax
mov eax, ecx
shr al, 7
xor esi, ecx
add ecx, ecx
imul eax, ebx
xor edi, esi
xor edi, eax
mov al, byte [edx - 3]
xor al, byte [edx - 2]
xor ecx, edi
mov edi, eax
shr al, 7
imul eax, ebx
mov byte [edx - 4], cl
mov ecx, esi
xor cl, byte [edx - 3]
add edi, edi
xor ecx, eax
mov al, byte [ebp - 0x22]
xor ecx, edi
movzx edi, byte [edx - 1]
shr al, 7
mov byte [edx - 3], cl
mov ecx, esi
xor cl, byte [edx - 2]
imul eax, ebx
xor esi, edi
xor ecx, eax
mov al, byte [ebp - 0x22]
add eax, eax
xor eax, ecx
mov cl, byte [ebp - 0x21]
xor cl, byte [edx - 1]
mov byte [edx - 2], al
mov eax, ecx
add ecx, ecx
shr al, 7
imul eax, ebx
xor esi, eax
xor ecx, esi
mov byte [edx - 1], cl
cmp dword [ebp - 0x30], edx
jne 0x703c127c
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
call fcn.703c1028
inc dword [ebp - 0x28]
jmp 0x703c11f9
mov ecx, dword [ebp + 8]
mov eax, 0xe
lea edx, [ebp - 0x1c]
call fcn.703c1028
mov eax, 0xf
mov edi, dword [ebp + 8]
mov dl, byte [edi + eax + 0xf0]
cmp dl, 0xff
jne 0x703c1354
mov byte [edi + eax + 0xf0], 0
sub eax, 1
jae 0x703c1336
jmp 0x703c135f
mov edi, dword [ebp + 8]
inc edx
mov byte [edi + eax + 0xf0], dl
xor eax, eax
mov ebx, dword [ebp - 0x20]
mov dl, byte [ebp + eax - 0x1c]
inc eax
inc dword [ebp - 0x20]
xor byte [ebx], dl
jmp 0x703c11be
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x703ca670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], ebx
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
mov dword [esp], eax
call fcn.703d0cf8
mov dword [esp + 4], ebx
lea esi, [ebx + eax]
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call fcn.703d0cf8
mov dword [esp + 4], ebx
add eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x24]
mov dword [esp], eax
call fcn.703d0cf8
add eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x24], eax
lea eax, [edi + edi]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], edi
je 0x703ca734
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
mov eax, dword [eax + edi*4]
mov dword [esp], eax
call fcn.703d0cf8
lea ecx, [ebx + eax]
mov dword [esp], ecx
mov dword [ebp - 0x2c], ecx
call fcn.703cabfc
mov ecx, dword [ebp - 0x2c]
cmp eax, 0xa6caa1c5
jne 0x703ca722
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
call fcn.703d0cf8
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], ebx
add eax, ebx
movzx edx, word [edx]
mov eax, dword [eax + edx*4]
mov dword [esp], eax
call fcn.703d0cf8
jmp 0x703ca736
mov dword [esp], ecx
inc edi
call fcn.703cabfc
cmp eax, 0xffe885ef
jne 0x703ca6c2
jmp 0x703ca6fa
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x703ca780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x703d57c2]
xor edx, edx
test eax, eax
je 0x703ca837
mov edx, dword [0x703d5778]
test edx, edx
jne 0x703ca837
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], 0
mov esi, dword [eax + ecx + 0x78]
add esi, eax
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x24]
add edi, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov edi, dword [esi + 0x20]
add ebx, eax
mov dword [ebp - 0x1c], ebx
xor ebx, ebx
add edi, eax
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x18], edi
je 0x703ca827
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov esi, dword [edi + ecx*4]
cmp word [eax + esi], 0x775a
jne 0x703ca822
mov edi, dword [ebp - 0x1c]
test ebx, ebx
movzx esi, word [edi + ecx*2]
jne 0x703ca804
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + esi*4]
add ebx, eax
jmp 0x703ca822
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx + esi*4]
add edi, eax
mov esi, edi
sub esi, ebx
cmp ebx, edi
jbe 0x703ca818
mov esi, ebx
sub esi, edi
test edx, edx
je 0x703ca820
cmp edx, esi
jbe 0x703ca822
mov edx, esi
inc dword [ebp - 0x10]
jmp 0x703ca7d6
mov dword [0x703d5778], edx
add esp, 0x14
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
ret