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

Disassembly:
push 0x14
mov eax, 0x6e04df67
call fcn.6e0493a3
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6e040ace
cmp dword [ebp - 0x18], 1
jne 0x6e040ace
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
inc eax
mov dword [ebp - 4], ebx
push 2
pop edx
mov dword [ebp - 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.6e04655a
mov esi, eax
mov dword [ebp - 0x1c], esi
pop ecx
test esi, esi
je 0x6e040ace
push dword [ebp - 0x14]
push ebx
push esi
call fcn.6e04655a
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea eax, [eax*2 - 2]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6e040ac3
cmp dword [ebp - 0x18], 1
jne 0x6e040ac3
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x14], eax
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.6e04655a
mov dword [edi], eax
pop ecx
test eax, eax
je 0x6e040ac3
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
push ebx
push eax
call fcn.6e04655a
lea eax, [ebp - 0x20]
push eax
push 0x6e05c7fc
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x6e040aa7
push ebx
call fcn.6e04655a
pop ecx
test al, al
je 0x6e040aa7
mov eax, dword [ebp - 0x14]
push ebx
inc eax
push eax
push dword [edi]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
jmp 0x6e040ac3
push dword [edi]
call fcn.6e04977e
and dword [edi], 0
pop ecx
jmp 0x6e040ac3
test esi, esi
je 0x6e040ace
push esi
call fcn.6e04977e
pop ecx
call fcn.6e049301
ret

Function at 0x6e0411f3
Capabilities:
Print debug messages

Disassembly:
push esi
push 0x6e05c544
xor esi, esi
call fcn.6e04655a
pop ecx
test eax, eax
jne 0x6e041214
push 0x6e05c55c
call fcn.6e04655a
pop ecx
test eax, eax
je 0x6e041217
xor esi, esi
inc esi
cmp byte [0x6e07047b], 0
jne 0x6e041229
cmp byte [0x6e07047a], 0
je 0x6e04125f
push edi
push esi
push str._BrowserIntegrationWin__IsLoadedInProcByAcrobat__d
mov edi, 0x6e070898
push edi
call fcn.6e04655a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e04124e
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e04125e
push edi
call fcn.6e003fc0
pop ecx
pop edi
mov eax, esi
pop esi
ret
Function at 0x6e04306c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x6e071820], 0
jne 0x6e0430ec
push esi
lea eax, [ebp - 4]
mov byte [0x6e071820], 1
push eax
push 1
xor esi, esi
push esi
push dword [0x6e06c628]
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6e0430eb
push edi
push 4
pop edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], esi
push eax
push esi
push dword [0x6e06c62c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6e0430e1
cmp dword [ebp - 8], edi
jne 0x6e0430e1
cmp dword [ebp - 0xc], 1
sete byte [0x6e071821]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [0x6e071821]
leave
ret

Function at 0x6e0435b8
Capabilities:
Print debug messages

Disassembly:
push esi
push str.sftldr.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
jne 0x6e043636
push str.sftldr_wow64.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
jne 0x6e043636
push ebx
push str.AppVEntSubsystems32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
setne bl
cmp byte [0x6e07047b], 0
jne 0x6e0435fa
cmp byte [0x6e07047a], 0
je 0x6e043631
movzx eax, bl
mov esi, 0x6e071400
push eax
push str._ACTWinBrowser__IsRunningInAppV_isAppV5___d
push esi
call fcn.6e04655a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e043621
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e043631
push esi
call fcn.6e003fc0
pop ecx
mov al, bl
pop ebx
pop esi
ret
cmp byte [0x6e07047b], 0
jne 0x6e043648
cmp byte [0x6e07047a], 0
je 0x6e04367a
push str._ACTWinBrowser__IsRunningInAppV_isAppV4OrEarlier
mov esi, 0x6e071400
push esi
call fcn.6e04655a
cmp byte [0x6e07047a], 0
pop ecx
pop ecx
je 0x6e04366a
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e04367a
push esi
call fcn.6e003fc0
pop ecx
mov al, 1
pop esi
ret
Function at 0x6e0464b9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp byte [0x6e07047b], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
jne 0x6e0464d6
cmp byte [0x6e07047a], 0
je 0x6e04650b
push dword [esi]
mov edi, 0x6e071400
push str._ACTWinBrowser__ACTSetSandboxBrokerHandles_handle__0x_x
push edi
call fcn.6e04655a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e0464fb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e04650b
push edi
call fcn.6e003fc0
pop ecx
push dword [ebp + 8]
call fcn.6e04655a
pop ecx
test al, al
jne 0x6e04651c
inc al
jmp 0x6e046556
cmp dword [ebp + 8], 0
je 0x6e046554
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xa
ja 0x6e046554
movzx eax, byte [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x6e04653d
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push 0
push 0x30
lea eax, [ebp - 0x30]
push eax
push 5
push dword [ebp + 8]
call fcn.6e04534a
add esp, 0x14
jmp 0x6e046556
xor al, al
pop edi
pop esi
leave
ret

Function at 0x6e047ca3
Capabilities:
Print debug messages

Disassembly:
push esi
push 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x6e047cc0
push 8
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x6e07047b], 0
jne 0x6e047cd6
cmp byte [0x6e07047a], 0
je 0x6e047e15
push edi
push 0x64
push str.sizeof__t_ASMBlock____d
mov edi, 0x6e071858
push edi
call fcn.6e04655a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e047cfc
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047d15
push edi
call fcn.6e003fc0
cmp byte [0x6e07047b], 0
pop ecx
jne 0x6e047d1e
cmp byte [0x6e07047a], 0
je 0x6e047d3e
push 4
push str.sizeof_Uns32____d
push edi
call fcn.6e04655a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e047d3e
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047d57
push edi
call fcn.6e003fc0
cmp byte [0x6e07047b], 0
pop ecx
jne 0x6e047d60
cmp byte [0x6e07047a], 0
je 0x6e047d80
push 4
push str.sizeof_HANDLE____d
push edi
call fcn.6e04655a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e047d80
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047d99
push edi
call fcn.6e003fc0
cmp byte [0x6e07047b], 0
pop ecx
jne 0x6e047da2
cmp byte [0x6e07047a], 0
je 0x6e047dc2
push 4
push str.sizeof_Handle32____d
push edi
call fcn.6e04655a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e047dc2
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047ddb
push edi
call fcn.6e003fc0
cmp byte [0x6e07047b], 0
pop ecx
jne 0x6e047de4
cmp byte [0x6e07047a], 0
je 0x6e047e04
push 4
push str.sizeof_void____d
push edi
call fcn.6e04655a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e047e04
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047e14
push edi
call fcn.6e003fc0
pop ecx
pop edi
mov eax, esi
pop esi
ret
Function at 0x6e047eae
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x6e04ca0e
call fcn.6e04936c
cmp byte [0x6e07047b], 0
mov ebx, 0x6e071858
mov edi, dword [ebp + 8]
jne 0x6e047ed9
mov al, byte [0x6e07047a]
test al, al
jne 0x6e047ed9
lea esi, [edi + 4]
jmp 0x6e047ef0
lea esi, [edi + 4]
push esi
push str.ASM_Release__s
push ebx
call fcn.6e04655a
mov al, byte [0x6e07047a]
add esp, 0xc
test al, al
je 0x6e047efb
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047f0b
push ebx
call fcn.6e003fc0
pop ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.6e04655a
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.6e03d080
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x6e047f3e
mov ecx, dword [ebx]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x6e050848]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x28]
call fcn.6e0108ff
and dword [edi + 0x4c], 0
and dword [edi + 0x44], 0
call fcn.6e049316
ret
Function at 0x6e047f54
Capabilities:
Print debug messages

Disassembly:
push 0x24
mov eax, 0x6e04e1e0
call fcn.6e04936c
cmp byte [0x6e07047b], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
jne 0x6e047f81
cmp byte [0x6e07047a], 0
je 0x6e047fd0
call fcn.6e04655a
test al, al
mov edx, 0x6e051790
mov ecx, str._in_AppContaner
cmove ecx, edx
push ecx
push str.ASM_Retrieve_retrieving_shared_memory_in_Plug_in_s
push 0x6e071858
call fcn.6e04655a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e047fbc
push 0x6e071858
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047fd0
push 0x6e071858
call fcn.6e003fc0
pop ecx
and dword [esi], 0
lea eax, [edi + 4]
and dword [ebx], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.6e04655a
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.6e03d080
or dword [ebp - 4], 0xffffffff
mov ebx, eax
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.6e0108ff
test ebx, ebx
jne 0x6e04804e
cmp byte [0x6e07047b], bl
jne 0x6e04801a
cmp byte [0x6e07047a], bl
je 0x6e0480c2
push str.ASM_Retrieve_ERROR__finding_memory_mapped_file_
mov ebx, 0x6e071858
push ebx
call fcn.6e04655a
cmp byte [0x6e07047a], 0
pop ecx
pop ecx
je 0x6e04803c
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e0480c2
push ebx
call fcn.6e003fc0
pop ecx
jmp 0x6e0480c2
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x6e050848]
mov ecx, ebx
call esi
mov dword [edi + 0x44], eax
test eax, eax
jne 0x6e04807d
cmp byte [0x6e07047b], al
jne 0x6e048076
cmp byte [0x6e07047a], al
je 0x6e0480c2
push str.ASM_Retrieve_ERROR__getting_memory_mapped_file_handle_
jmp 0x6e04801f
mov eax, dword [ebx]
push dword [edi + 0x48]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x6e050848]
mov ecx, ebx
call esi
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x6e0480b2
cmp byte [0x6e07047b], al
jne 0x6e0480a8
cmp byte [0x6e07047a], al
je 0x6e0480c2
push str.ASM_Retrieve_ERROR__mapping_for_writing_
jmp 0x6e04801f
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x48]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x4c]
mov dword [ecx], eax
call fcn.6e049316
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1002aaee
pop dword [ebp - 0x20]
mov eax, 0x493c68e2
add eax, 0xc6c6420c
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x4186b89b
sub dword [ebp - 0x30], 0xf3347350
mov dword [ebp - 0x2c], 0xfc30a7d7
sub dword [ebp - 0x2c], 0xc9fd5b92
mov dword [ebp - 0x28], 0xd13346d6
sub dword [ebp - 0x28], 0x84e702a8
mov dword [ebp - 0x24], 0xedb3a99b
sub dword [ebp - 0x24], 0xedb3a99b
lea eax, [ebp - 0x30]
push eax
mov eax, 0xb390491
add eax, 0x4c9bba7
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x56c9bd19
add dword [ebp - 0x30], 0x1da8ac3d
mov dword [ebp - 0x2c], 0xa3202147
add dword [ebp - 0x2c], 0x9e4c402e
mov dword [ebp - 0x28], 0x252eaf9f
sub dword [ebp - 0x28], 0xc1bf4333
mov dword [ebp - 0x24], 0x5e777786
sub dword [ebp - 0x24], 0x5e777786
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x34acc
push 0
call eax
mov ecx, 0xf052249f
sub ecx, 0xf051e3cb
xor edx, edx
add edx, eax
mov edi, 0xc1e01b6b
sub edi, 0xb1dc856b
add edi, dword [ebp - 0x20]
mov esi, 0xc7883469
xor dword [ebp - 4], 0x2d3c0be
mov ebx, dword [edi]
sub dword [ebp - 0xc], 0x14753650
add ebx, esi
sub dword [ebp - 0xc], edx
mov dword [edx], ebx
add dword [ebp - 0x18], 0x5b89dc10
add edx, 0x102e99df
sub edx, 0x102e99db
add edi, 4
loop 0x1002ac07
add eax, 0xf623
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x40474a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404789
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404789
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404789
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404789
cmp dword [ecx + 0x74], 0xe
jbe 0x404789
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x424345
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4a5e32
call fcn.0049fb10
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
lea ecx, [esi + 0x48]
mov dword [ebp - 4], edi
call fcn.00402e04
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.00402e04
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
mov dword [esi], fcn.00423b36
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x424ee2
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov eax, 0x4a5ec1
call fcn.0049fb10
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea ecx, [esi + 0xc]
mov dword [ebp - 4], ebx
mov byte [esi + 8], bl
mov byte [esi + 9], bl
mov byte [esi + 0xa], bl
mov byte [esi + 0xb], bl
call fcn.004026dd
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004026dd
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.004026dd
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.004026dd
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x427694
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a6276
call fcn.0049fb10
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
lea ecx, [esi + 0x10]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [edi + 0x10]
push eax
call fcn.00402f1c
and dword [ebp - 4], 0
lea eax, [edi + 0x1c]
push eax
lea ecx, [esi + 0x1c]
call fcn.00427898
mov eax, dword [edi + 0x28]
add edi, 0x34
mov dword [esi + 0x28], eax
mov al, byte [edi - 8]
mov byte [esi + 0x2c], al
mov al, byte [edi - 7]
mov byte [esi + 0x2d], al
mov eax, dword [edi - 4]
push edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 1
mov dword [esi + 0x30], eax
call fcn.00427829
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x493312
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 1
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, 0x20
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x49337b
mov eax, 0x20
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, ecx
je 0x4933bc
lea ebx, [esi + 0xc8]
mov ebp, 0x20
cmp dword [ebx + 8], edi
je 0x4933a1
mov ecx, ebx
call fcn.00493000
add ebx, 0x28
dec ebp
jne 0x493395
mov edx, dword [esi + 0x5c]
cmp edx, edi
je 0x4933b7
mov ecx, dword [esi + 0x14]
call dword [ecx + 4]
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.00492ed0
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea edx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + edx*8]
mov ecx, ebp
call fcn.00493460
mov ebx, eax
cmp ebx, edi
jne 0x49341f
lea ecx, [ebp + 0x20]
call fcn.00497ea0
mov ebx, eax
cmp ebx, edi
jne 0x49341f
lea ecx, [ebp + 0x1c]
call fcn.00497ea0
mov ebx, eax
cmp ebx, edi
jne 0x49341f
push ebp
call fcn.004934a0
mov ebx, eax
cmp ebx, edi
je 0x493434
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.00493480
cmp ebx, edi
jle 0x49342f
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x493434
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x493446
cmp dword [esi + 0x40], edi
jne 0x493446
cmp dword [esi + 0x3c], edi
jne 0x493446
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret
Function at 0x49f990
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x49f9d3
cmp eax, 0x40
je 0x49f9c5
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea ecx, [esi + 0x20]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebp, dword [ecx]
bswap ebp
bswap eax
mov dword [edi], ebp
mov dword [edi + 4], eax
add edi, 8
add ecx, 8
dec edx
jne 0x49fa18
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret
Function at 0x401680
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x4016db
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4016a0
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x4016bc
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.004043d0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x4016fd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40176f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40176f
test esi, esi
je 0x40176f
cmp word [esi + 0x24], 2
jbe 0x401769
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x401769
cmp dword [esi + 0x18], 0
je 0x401769
test ebp, ebp
je 0x401725
cmp ebp, eax
jne 0x401769
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.004043d0
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x40174a
cmp edx, dword [esi + 0x18]
jne 0x401769
cmp dword [esp + 0x14], eax
je 0x40177c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00401f40
add esp, 8
test eax, eax
je 0x40177c
mov esi, dword [esi]
cmp esi, ebx
jne 0x401703
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x402500
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x80dc00]
sub esp, 0x11c
test eax, eax
jne 0x4025fe
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00403a50
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x402550
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41e100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x402560
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41e104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x402595
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00401680
pop edi
pop esi
pop ebx
test eax, eax
je 0x4025f9
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4025f9
mov dword [0x80dc00], eax
add esp, 0x11c
ret
mov eax, dword [0x80dc00]
add esp, 0x11c
ret

Function at 0x402610
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x80d348
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x402739
cmp dword fs:[0xc0], eax
je 0x40263b
mov dword [0x80d344], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x80d22c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x80d230], eax
movzx edx, word [esi + 0xac]
mov dword [0x80d234], edx
mov eax, dword [esi + 0xb0]
mov dword [0x80d238], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40269b
push 0x7f
push eax
push 0x80d23c
call fcn.004043d0
mov edx, dword [0x80d234]
add esp, 0xc
jmp 0x4026a3
xor eax, eax
mov word [0x80d23c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x80d33c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x80d33e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x80d340], ax
mov ecx, eax
mov byte [0x80d342], 0
cmp byte [0x7ffe0268], 0
je 0x4026ea
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x80d342], bl
cmp ebx, 1
pop ebx
jne 0x402704
and ecx, 0xffef
mov word [0x80d340], cx
test edx, edx
jne 0x402739
call fcn.00402610
cmp dword [0x80d22c], 6
ja 0x402739
jb 0x402721
cmp dword [0x80d230], 4
jae 0x402739
call fcn.00402610
cmp dword [0x80d22c], 0xa
jae 0x402739
mov dword [0x80d234], 1
ret