joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020a2
Capabilities:
Terminate process

Disassembly:
push eax
mov ebp, esp
push 0xffffffffffffffff
push 0x403a50
push fcn.00402290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
pop edi
push edi
nop
adc eax, sym.imp.MSVCRT.dll___set_app_type
pop ecx
or dword [0x405c8c], 0xffffffff
or dword [0x405c90], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x405c80]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x405c7c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x405c88], eax
call fcn.004022e1
cmp dword [0x405ba0], ebx
jne 0x402127
push 0x4022de
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004022cc
push 0x405014
push 0x405010
call sub.MSVCRT.dll__initterm
mov eax, dword [0x405c78]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x405c74]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
nop
adc eax, sym.imp.MSVCRT.dll___wgetmainargs
push 0x40500c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0
mov eax, dword [sym.imp.MSVCRT.dll__wcmdln]
mov esi, dword [eax]
cmp esi, ebx
jne 0x40218f
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp - 0x74], esi
cmp word [esi], 0x22
jne 0x4021dd
add esi, edi
mov dword [ebp - 0x74], esi
mov ax, word [esi]
cmp ax, bx
je 0x4021ab
cmp ax, 0x22
jne 0x402198
cmp word [esi], 0x22
jne 0x4021b6
add esi, edi
mov dword [ebp - 0x74], esi
mov ax, word [esi]
cmp ax, bx
je 0x4021c4
cmp ax, 0x20
jbe 0x4021b1
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [0x403010]
test byte [ebp - 0x30], 1
je 0x4021ea
movzx eax, word [ebp - 0x2c]
jmp 0x4021ed
cmp word [esi], 0x20
jbe 0x4021b6
add esi, edi
mov dword [ebp - 0x74], esi
jmp 0x4021dd
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [0x403014]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406060], 1
mov dword [0x40605c], 1
mov dword [0x406058], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x40606c]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406080]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406068]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x403018], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x4017f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
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 sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401850
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406074]
test esi, esi
jle 0x401970
mov eax, dword [0x406078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401884
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401907
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401870
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401997
mov eax, dword [0x406078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x406078]
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 0x401977
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401900
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401910
add dword [0x406074], 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 [0x406078]
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 0x401900
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40188e
mov eax, dword [0x406078]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x401eb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406088]
sub esp, 4
test ebx, ebx
je 0x401f05
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 0x401efe
test esi, esi
je 0x401efe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ee0
mov dword [esp], 0x406090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402240
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402265
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402270
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402265
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4022b8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4022ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4022ba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4022a0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x402620
Capabilities:
Hide graphical window
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x24
call dbg.__main
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x406040]
sub esp, 8
test eax, eax
je 0x402680
lea edx, [ebp - 9]
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], 1
mov dword [esp], 0x13
call eax
sub esp, 0x10
test eax, eax
je 0x4026a0
mov eax, dword [0x406044]
test eax, eax
je 0x402693
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push eax
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esp], 0xc0000350
call sym.Trigger_BSOD_long_
jmp 0x402680
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..reloc
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x66be663b
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x71cb343f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x4c84
mov ecx, 0x728c
test eax, eax
je 0x401310
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x401310
cmp eax, edx
jae 0x401310
mov ecx, 0x243b
mov eax, 0xb40b40b5
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4011c5
lea ebx, [ebx]
inc ecx
mov eax, ecx
and eax, 0x80000003
jns 0x4011ef
dec eax
or eax, 0xfffffffc
inc eax
jne 0x4011f2
inc ecx
cmp ecx, 0x780f
jl 0x4011e0
mov esi, dword [ebp + 8]
sub dword [ebp + 0xc], esi
mov ebx, 0x2ec
mov eax, 0x5397829d
imul ebx
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401205
inc edi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
sub eax, ecx
jne 0x40123f
add edi, edi
jmp 0x401248
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add edi, eax
cmp edi, 0x4f10
jl 0x401218
mov ecx, 0x188e
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401255
mov ebx, 0x2dd7
nop
mov eax, 0x77975b9
imul ebx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x401270
mov ecx, 0x4345
mov edx, 0x22
mov ebx, 0x34e5
mov eax, 0xc9
cmp eax, 0x22
cmovg eax, edx
dec ecx
jne 0x401297
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4012b5
mov al, byte [ecx + esi + 1]
add al, 0x2b
xor byte [ecx + esi], al
inc ecx
cmp ecx, edx
jb 0x4012a7
mov ecx, 0x594e
lea ebx, [ebx]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4012c0
mov ecx, 0x23c2
lea ebx, [ebx]
mov eax, 0x939a85c5
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4012e0
mov eax, 0x84a9f9c9
imul ebx
add edx, ebx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x4012f5
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 0x22b63cbf
imul esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x401310
mov eax, 0x5d9f7391
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401323
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402e30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov edx, 0x90
push esi
push edi
lea eax, [edx - 0x26]
lea ecx, [edx + 0x34]
mov edi, 0x4db6
mov dword [ebp - 8], 0x2dd7
mov dword [ebp - 4], 0x68ac
mov dword [ebp - 0xc], 0x83
mov edi, edi
cmp edx, 0x83
cmovg edx, dword [ebp - 0xc]
dec dword [ebp - 4]
jne 0x402e60
mov edx, 0x5cc
mov dword [ebp - 0xc], 0x21
jmp 0x402e80
cmp eax, 0x21
cmovl eax, dword [ebp - 0xc]
dec edx
jne 0x402e80
mov ebx, 0x4753
nop
mov eax, 0x1b4e81b5
imul ebx
sar edx, 3
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402e90
mov ebx, 0x2796
mov esi, 0x3dc3
lea ecx, [ecx]
mov eax, 0xa16b312f
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402eb0
mov edx, 0x49
mov eax, 0x66c1
lea esi, [edx - 0x30]
cmp ecx, edx
cmovl ecx, edx
dec eax
jne 0x402ed2
lea ebx, [ebx]
mov eax, 0x78787879
imul edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402ee0
mov edi, dword [ebp + 8]
lea ecx, [edi + 0x10]
lea esp, [esp]
mov eax, 0x9c09c09d
imul ebx
add edx, ebx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402f00
inc byte [edi + 0x114]
mov dl, byte [edi + 0x114]
mov eax, 0x4345
mov ebx, 2
jmp 0x402f30
cmp esi, ebx
cmovg esi, ebx
dec eax
jne 0x402f30
movzx eax, byte [edi + 0xc]
movzx esi, dl
add esi, ecx
lea ebx, [edi + 0x10]
movzx ecx, byte [esi]
add eax, ecx
mov byte [edi + 0xc], al
movzx eax, al
lea edi, [eax + ebx]
push edi
push esi
call fcn.00403430
add esp, 8
lea esp, [esp]
mov eax, 0x60f25deb
imul dword [ebp - 8]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 8], eax
jne 0x402f60
movzx eax, byte [esi]
add al, byte [edi]
movzx ecx, byte [ebp + 0xc]
movzx eax, al
pop edi
mov al, byte [eax + ebx]
movzx eax, al
pop esi
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10037470
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
pop ebp
ret 4
Function at 0x10047560
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1038bdad
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1049b0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x11b92250]
mov eax, dword [ebp + 0xc]
add ebx, 0xc6c19814
mov edi, dword [ebp + 8]
xor ebx, 0x26996288
mov dword [ebp - 0x44], eax
mov eax, dword [0x1054c3e4]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x30], ebx
test eax, eax
jne 0x100476e6
mov edi, dword [0x1054c3e8]
test edi, edi
jne 0x10047670
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x18]
mov dword [ebp - 0x3c], ebx
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ecx + ebx + 0x78]
add ecx, ebx
mov dword [ebp - 0x38], ecx
cmp ecx, ebx
je 0x1004764a
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x1004764a
mov ecx, dword [ecx + 0x20]
lea ecx, [ecx + edx*4]
add ecx, ebx
sub ecx, 4
dec edx
mov dword [ebp - 0x34], ecx
mov edi, 0xc2cbe774
mov dword [ebp - 0x2c], edx
mov ecx, dword [ecx]
add ecx, ebx
mov bl, byte [ecx]
inc ecx
test bl, bl
je 0x10047640
movsx esi, bl
lea ecx, [ecx + 1]
sub bl, 0x41
mov edx, esi
or edx, 0x20
cmp bl, 0x19
mov bl, byte [ecx - 1]
cmova edx, esi
xor edx, edi
imul edi, edx, 0x1000193
test bl, bl
jne 0x10047612
mov edx, dword [ebp - 0x2c]
cmp edi, 0xc403a18
je 0x1004764e
mov ecx, dword [ebp - 0x34]
mov ebx, dword [eax + 0x18]
test edx, edx
jne 0x100475f8
mov eax, dword [eax]
jmp 0x100475d3
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x30]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
add ecx, esi
add eax, esi
movzx eax, word [eax + edx*2]
mov edi, dword [ecx + eax*4]
add edi, esi
mov dword [0x1054c3e8], edi
lea eax, [ebp - 0x28]
mov ecx, 0x10537b40
push eax
call fcn.100564a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
mov eax, dword [0x11b92250]
cmova ecx, dword [ebp - 0x28]
add eax, 0xc6c19814
xor eax, 0x26996288
push ecx
push dword [eax + 0x17c]
call edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [0x1054c3e4], eax
cmp ecx, 0xf
jbe 0x100476d1
push ecx
push dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push eax
call fcn.10034640
mov eax, dword [0x1054c3e4]
add esp, 0xc
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call eax
mov ecx, dword [ebx + 0x10c]
mov esi, eax
add esp, 8
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x44]
sub eax, dword [ecx]
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
jle 0x1004772c
mov eax, dword [0x11b92250]
add eax, 0xc6c19814
xor eax, 0x26996288
mov eax, dword [eax + 0x10c]
mov eax, dword [eax + 0x1c]
mov dword [ecx], eax
cmp byte [edi], 0
sete al
mov byte [edi], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102fe398
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10047be0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1038be0f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1049b0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
lea eax, [esi + 0x50]
movq qword [esi + 0x5ec], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
mov word [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0x3f800000
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
push 0x60
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
push 0
push eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
call fcn.1034c920
mov byte [esi + 0xb0], 0
xorps xmm0, xmm0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
movups xmmword [esi + 0xc4], xmm0
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0xf
mov byte [esi + 0xc4], 0
mov dword [ebp - 4], 0
movups xmmword [esi + 0xdc], xmm0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0xf
mov byte [esi + 0xdc], 0
movups xmmword [esi + 0xf4], xmm0
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0xf
mov byte [esi + 0xf4], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0xbf800000
mov dword [esi + 0x118], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
push 0x4b0
mov dword [esi + 0x130], 0
mov dword [esi + 0x134], 0
mov dword [esi + 0x138], 0
add esi, 0x13c
push 0
push esi
call fcn.1034c920
add esp, 0x14
mov ecx, esi
call fcn.100482f0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004ea50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi], 0
lea edi, [esi + 2]
je 0x1004eac0
cmp byte [esi + 1], 0
jne 0x1004eb07
xor ecx, ecx
mov byte [esi + 1], 1
mov dword [esp + 0x10], ecx
nop word [eax + eax]
mov ebx, ecx
xor edx, edx
xor edx, dword [esi + 0x24]
xor ebx, dword [esi + 0x20]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
mov ecx, dword [esp + 0x10]
xor ebx, eax
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [edi + ecx], al
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 0x19
jb 0x1004ea80
jmp 0x1004eb07
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov ebx, ecx
xor edx, edx
xor edx, dword [esi + 0x24]
xor ebx, dword [esi + 0x20]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
mov ecx, dword [esp + 0x10]
xor ebx, eax
mov eax, ebx
shrd eax, edx, 7
xor al, byte [edi + ecx]
xor al, bl
mov byte [edi + ecx], al
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 0x19
jb 0x1004eac6
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x1a]
push eax
push edi
call fcn.10053f20
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1004ebd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi], 0
lea edi, [esi + 2]
je 0x1004ec40
cmp byte [esi + 1], 0
jne 0x1004ec87
xor ecx, ecx
mov byte [esi + 1], 1
mov dword [esp + 0x10], ecx
nop word [eax + eax]
mov ebx, ecx
xor edx, edx
xor edx, dword [esi + 0x14]
xor ebx, dword [esi + 0x10]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
mov ecx, dword [esp + 0x10]
xor ebx, eax
mov eax, ebx
shrd eax, edx, 7
xor al, bl
xor byte [edi + ecx], al
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 0xe
jb 0x1004ec00
jmp 0x1004ec87
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov ebx, ecx
xor edx, edx
xor edx, dword [esi + 0x14]
xor ebx, dword [esi + 0x10]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
mov ecx, dword [esp + 0x10]
xor ebx, eax
mov eax, ebx
shrd eax, edx, 7
xor al, byte [edi + ecx]
xor al, bl
mov byte [edi + ecx], al
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 0xe
jb 0x1004ec46
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 0xf]
push eax
push edi
call fcn.10053f20
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4