joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10072260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x100722fb
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x100722b2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x100722b2
cmp esi, ebx
jge 0x100722b2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x100722f5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x100722f5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100783dc]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100783dc]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1007230d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x10072530
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
mov eax, dword [ebp + 8]
je 0x10072558
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10072572
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.10056ccc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10076450
leave
ret 4

Function at 0x10072740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10072776
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x100727d5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.10056ccc
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10056ccc
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.10056ccc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10076450
leave
ret 0x10
Function at 0x100727f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1007281c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1007284d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1007284b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10056ccc
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1007284d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10076450
leave
ret 8
Function at 0x1004d2a
Capabilities:
Get domain information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebx + 0x18]
call fcn.01004b1d
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
test eax, eax
jl 0x1004d52
cmp dword [ebp - 4], esi
jne 0x1004d61
push esi
push esi
push 1
push 0x459
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov esi, dword [ebp - 4]
sub esp, 0x24
push 9
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0100f178
push 0
call dword [sym.imp.msvcrt.dll_time]
push eax
call dword [sym.imp.msvcrt.dll_srand]
cmp dword [ebx + 0x2c], 0
pop ecx
pop ecx
je 0x1004da0
mov esi, dword [ebp - 4]
sub esp, 0x24
push 9
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0100de58
push dword [ebp - 4]
call sub.NETAPI32.dll_DsRoleFreeMemory
call fcn.0100d7aa
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1006568
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x1006595
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetMailslotInfo]
test eax, eax
jne 0x1006599
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x10065c3
push edi
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esi + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc

Function at 0x100d882
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
mov dword [0x101120c], 1
je 0x100d8a7
mov dword [0x1011214], 0x42a
mov dword [0x1011218], esi
jmp 0x100d8b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1011214], eax
cmp dword [0x1011150], 0
je 0x100d8c9
cmp dword [0x1011204], 0
je 0x100d8c9
call fcn.0100d7aa
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100d8d1
Capabilities:
Listen for remote procedure calls

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf]
push edi
xor ebx, ebx
push ebx
push ebx
push dword [0x1011148]
call esi
cmp eax, ebx
mov edi, 0x100302c
je 0x100d8f6
push eax
push edi
call fcn.0100d882
push ebx
push ebx
push dword [0x1011118]
call esi
cmp eax, ebx
je 0x100d90b
push eax
push edi
call fcn.0100d882
push ebx
push ebx
push dword [0x10110e0]
call esi
cmp eax, ebx
je 0x100d920
push eax
push edi
call fcn.0100d882
push ebx
push 0x1002c38
push 0x64
push 0x1002c24
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
cmp eax, ebx
je 0x100d942
push eax
push 0x1003010
call fcn.0100d882
push 1
push 0xc8
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x100d963
push eax
push 0x1002ff8
call fcn.0100d882
ret
Function at 0x100db76
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push dword [0x10112c0]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
cmp dword [0x10111fc], esi
jne 0x100dc58
push 0x4c
call fcn.010032c8
cmp eax, esi
pop ecx
je 0x100dba7
mov ecx, eax
call fcn.01004d2a
jmp 0x100dba9
xor eax, eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1011200], eax
cmp dword [eax + 0x2c], esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
je 0x100dc28
push esi
push esi
push dword [0x1011058]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf]
cmp eax, esi
je 0x100dbde
push eax
push 0x100302c
call fcn.0100d882
push ebx
lea eax, [esp + 0x10]
push eax
push esi
push esi
push 0x1007f49
push esi
push esi
call edi
mov ebx, eax
cmp ebx, esi
jne 0x100dc00
push esi
push 0x1003098
call fcn.0100d882
push ebx
call ebp
lea eax, [esp + 0x10]
push eax
push esi
push esi
push 0x100c60b
push esi
push esi
call edi
mov ebx, eax
cmp ebx, esi
jne 0x100dc24
push esi
push 0x1003098
call fcn.0100d882
push ebx
call ebp
pop ebx
lea eax, [esp + 0xc]
push eax
push esi
push esi
push 0x100db07
push esi
push esi
call edi
mov edi, eax
cmp edi, esi
jne 0x100dc49
push esi
push 0x1003098
call fcn.0100d882
push edi
call ebp
pop edi
mov dword [0x10111fc], 1
pop ebp
push dword [0x10112c0]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ecx
ret

Function at 0x100dcd5
Capabilities:
List domain servers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f8
push ebx
push esi
push edi
call fcn.0100d7aa
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, edi
shl eax, 3
push eax
lea eax, [ebp - 4]
push eax
push 0x64
push 0
call sub.NETAPI32.dll_NetServerEnum
push 0x14
mov ebx, eax
call fcn.010032c8
test eax, eax
pop ecx
je 0x100dd2c
mov ecx, eax
call fcn.0100dda7
mov dword [ebp + 8], eax
jmp 0x100dd30
and dword [ebp + 8], 0
test ebx, ebx
je 0x100dd66
cmp ebx, 0xea
je 0x100dd66
push edi
push esi
lea eax, [ebp - 0x3f8]
push 0x10030b0
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push 0x459
lea eax, [ebp - 0x3f8]
push eax
call fcn.0100d882
jmp 0x100dd9d
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x100dd9d
push 8
call fcn.010032c8
test eax, eax
pop ecx
je 0x100dd88
mov ecx, dword [ebp - 4]
push dword [ecx + 4]
mov ecx, eax
call fcn.0100690b
jmp 0x100dd8a
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
call fcn.01006786
add dword [ebp - 4], 8
inc esi
cmp esi, dword [ebp - 8]
jb 0x100dd6d
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100de58
Capabilities:
Get domain controller name
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0x10
pop esi
mov ebx, ecx
mov dword [ebp - 4], esi
call fcn.0100d7aa
push 0x38
call fcn.010032c8
xor edi, edi
cmp eax, edi
pop ecx
je 0x100de86
push ebx
mov ecx, eax
call fcn.0100ddcd
jmp 0x100de88
xor eax, eax
push 0x14
mov dword [ebx + 0x10], eax
call fcn.010032c8
cmp eax, edi
pop ecx
je 0x100dea0
mov ecx, eax
call fcn.0100dda7
jmp 0x100dea2
xor eax, eax
push 0xc
mov dword [ebx + 0xc], eax
call fcn.010032c8
cmp eax, edi
pop ecx
je 0x100debb
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x100debd
xor eax, eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x40], 0x1c20
mov dword [ebx + 8], edi
call fcn.0100d7aa
push esi
call fcn.010032c8
cmp eax, edi
pop ecx
mov esi, 0x410
je 0x100deee
push esi
push 0x1002814
mov ecx, eax
call fcn.010064ff
jmp 0x100def0
xor eax, eax
mov dword [ebx + 0x44], eax
call fcn.0100d7aa
push 0x10
call fcn.010032c8
cmp eax, edi
pop ecx
je 0x100df13
push esi
push 0x1002c64
mov ecx, eax
call fcn.010064ff
jmp 0x100df15
xor eax, eax
mov dword [ebx + 0x48], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x100df39
push edi
push edi
push 1
push 0x459
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 8
call fcn.010032c8
cmp eax, edi
pop ecx
je 0x100df52
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0100690b
jmp 0x100df54
xor eax, eax
sub esp, 0x24
push 9
pop ecx
mov edi, esp
lea esi, [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov dword [ebx + 0x20], eax
call fcn.0100dc67
test eax, eax
jne 0x100df7e
push 0x459
push 0x10030f8
call fcn.0100d882
mov eax, dword [ebx + 4]
xor esi, esi
sub eax, esi
je 0x100dfb9
dec eax
je 0x100df9b
push 0x459
push 0x10030e4
call fcn.0100d882
jmp 0x100dfc3
call fcn.0100d7aa
lea eax, [ebp + 0x28]
push eax
push esi
push esi
call sub.NETAPI32.dll_NetGetDCName
cmp eax, esi
je 0x100dfca
cmp eax, 0xea
je 0x100dfca
mov dword [ebx + 4], esi
mov ecx, ebx
mov dword [ebx + 0x24], esi
call fcn.0100dcb0
pop edi
pop esi
pop ebx
leave
ret 0x24
push 8
call fcn.010032c8
cmp eax, esi
pop ecx
je 0x100dfe6
mov ecx, dword [ebp + 0x28]
add ecx, 4
push ecx
mov ecx, eax
call fcn.0100690b
jmp 0x100dfe8
xor eax, eax
mov ecx, ebx
mov dword [ebx + 0x24], eax
call fcn.0100de20
jmp 0x100dfc3
Function at 0x1010231
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10032a0
call fcn.010103ac
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x101026c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101026c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1010284
cmp eax, 0x20b
je 0x1010271
mov dword [ebp - 0x1c], edi
jmp 0x1010298
cmp dword [ecx + 0x84], 0xe
jbe 0x101026c
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1010292
cmp dword [ecx + 0x74], 0xe
jbe 0x101026c
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10112d8], 0xffffffff
or dword [0x10112dc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10112d0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10112cc]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10112d4], eax
call fcn.01008df9
cmp dword [0x10111e0], edi
jne 0x10102f3
push fcn.01008df9
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01010446
push 0x10011ec
push 0x10011e8
call sub.msvcrt.dll__initterm
mov eax, dword [0x10112c8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10112c4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10011e4
push 0x10011c4
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100da1b
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x101036a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x101039f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010103e5
ret
Function at 0x4012e0
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 0x40133b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401300
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40131c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401000
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 0x40135d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4013cf
mov esi, dword [ebx]
cmp esi, ebx
je 0x4013cf
test esi, esi
je 0x4013cf
cmp word [esi + 0x24], 2
jbe 0x4013c9
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4013c9
cmp dword [esi + 0x18], 0
je 0x4013c9
test ebp, ebp
je 0x401385
cmp ebp, eax
jne 0x4013c9
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401000
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x4013aa
cmp edx, dword [esi + 0x18]
jne 0x4013c9
cmp dword [esp + 0x14], eax
je 0x4013dc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00402ee0
add esp, 8
test eax, eax
je 0x4013dc
mov esi, dword [esi]
cmp esi, ebx
jne 0x401363
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 0x402290
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x822808]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x40243d
cmp dword [0x82280c], 0
jne 0x402429
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00403b00
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x4022e0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41e0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x4022f0
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41e0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x402325
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00403b00
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402384
sub edx, esi
sar edx, 1
je 0x40243d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x4023a0
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40243d
xor eax, eax
push ebx
test edx, edx
je 0x4023d8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x4023d8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x4023c1
xor eax, eax
test edx, edx
je 0x4023f2
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x4023f2
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4023e0
xor eax, eax
test edx, edx
je 0x40240f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x40240f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402400
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x822808]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x402450
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x402478
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x402486
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x40249f
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x4024ad
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x4024c6
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x4024d4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x4024ed
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x4024fb
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x402542
add dword [esp], 5
retf

Function at 0x4028a0
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x822948
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4029c9
cmp dword fs:[0xc0], eax
je 0x4028cb
mov dword [0x822944], 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 [0x82282c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x822830], eax
movzx edx, word [esi + 0xac]
mov dword [0x822834], edx
mov eax, dword [esi + 0xb0]
mov dword [0x822838], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40292b
push 0x7f
push eax
push 0x82283c
call fcn.00401000
mov edx, dword [0x822834]
add esp, 0xc
jmp 0x402933
xor eax, eax
mov word [0x82283c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x82293c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x82293e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x822940], ax
mov ecx, eax
mov byte [0x822942], 0
cmp byte [0x7ffe0268], 0
je 0x40297a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x822942], bl
cmp ebx, 1
pop ebx
jne 0x402994
and ecx, 0xffef
mov word [0x822940], cx
test edx, edx
jne 0x4029c9
call fcn.004028a0
cmp dword [0x82282c], 6
ja 0x4029c9
jb 0x4029b1
cmp dword [0x822830], 4
jae 0x4029c9
call fcn.004028a0
cmp dword [0x82282c], 0xa
jae 0x4029c9
mov dword [0x822834], 1
ret
Function at 0x4029d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x402a1b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x402a0b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x4029f1
jmp 0x402a10
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x402a6b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x402a30
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402a30
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x402a4c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401000
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 0x402a8d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x402b00
mov esi, dword [ebx]
cmp esi, ebx
je 0x402b00
test esi, esi
je 0x402b00
cmp word [esi + 0x24], 2
jbe 0x402afa
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x402afa
cmp dword [esi + 0x18], 0
je 0x402afa
test ebp, ebp
je 0x402ab5
cmp ebp, eax
jne 0x402afa
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401000
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402ada
cmp eax, dword [esi + 0x18]
jne 0x402afa
cmp dword [esp + 0x10], 0
je 0x402b0d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00402ee0
add esp, 8
test eax, eax
je 0x402b0d
mov esi, dword [esi]
cmp esi, ebx
jne 0x402a93
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x403b30
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x8233f8]
sub esp, 0x11c
test eax, eax
jne 0x403c2e
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.00403b00
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x403b80
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 0x403b90
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 0x403bc5
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.004012e0
pop edi
pop esi
pop ebx
test eax, eax
je 0x403c29
mov eax, dword [eax + 0x18]
test eax, eax
je 0x403c29
mov dword [0x8233f8], eax
add esp, 0x11c
ret
mov eax, dword [0x8233f8]
add esp, 0x11c
ret