joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d1b1
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x101
push ebx
mov edi, str.SoftwareMicrosoftClickToRunOverRide
mov dword [ebp - 4], ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d232
lea eax, [ebp - 8]
mov edi, str.AllowJitvInAppvVirtualizedProcess
push eax
push edi
push dword [ebp - 4]
call fcn.0040d704
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Registry_override
test al, al
je 0x40d21b
cmp dword [ebp - 8], ebx
setne bl
call esi
push edi
call esi
test bl, bl
je 0x40d214
push str._is_enabled.__C2R_JitV_will_run_in_AppV_virtualized_processes._n
jmp 0x40d225
push str._is_disabled.__C2R_JitV_will_NOT_run_in_AppV_virtualized_processes._n
jmp 0x40d225
call esi
push edi
call esi
push str._not_found_n
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d249
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Registry_override_key
call esi
push edi
call esi
push str._does_not_exist_n
call esi
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d74a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x4132a4], eax
je 0x40d76c
cmp dword [0x4132a4], ebx
jne 0x40d800
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x4132a4
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x4132a4
push 4
push edi
mov dword [0x4132a4], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x4132a4]
not eax
mov dword [0x417220], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40da3b
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x415438
call fcn.0040dfd1
push 1
call fcn.0040dabe
pop ecx
test al, al
jne 0x40d8e4
push 7
call fcn.0040e623
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040da89
mov byte [ebp - 0x24], al
mov eax, dword [0x4175dc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40d8dd
test eax, eax
jne 0x40d94e
mov dword [0x4175dc], ecx
push 0x4112c4
push 0x4112ac
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40d931
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40da35
push 0x4112a8
push 0x411274
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4175dc], 2
jmp 0x40d953
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040dc1b
pop ecx
call fcn.0040e617
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40d983
push esi
call fcn.0040db8e
pop ecx
test al, al
je 0x40d983
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0040e852
call esi
call fcn.0040e61d
mov esi, eax
cmp dword [esi], edi
je 0x40d9a1
push esi
call fcn.0040db8e
pop ecx
test al, al
je 0x40d9a1
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.0040e738
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0040e76b
test al, al
jne 0x40d9da
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x40d9e3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040dc38
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40da35
call fcn.0040e017
ret
call fcn.0040d74a
jmp 0x40d8c5

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x408cba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
push ebx
push 0x4011e0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x417888
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x408d39
mov ecx, dword [ebp - 8]
mov byte [ebp - 0x14], bl
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408cfe
push dword [ebp - 0x14]
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 8]
lea ecx, [ebp - 0x30]
call fcn.0040a973
add esp, 0xc
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
call fcn.00408aa4
pop ecx
xor ecx, ecx
inc ecx
cmp dword [eax], 3
jne 0x408d3c
jmp 0x408d3e
mov ecx, dword [ebp - 0x14]
mov bl, 1
test cl, 1
je 0x408d4b
lea ecx, [ebp - 0x30]
call fcn.00409db4
mov ecx, esi
test bl, bl
je 0x408d58
push 0x406dcc
jmp 0x408d5b
push dword [ebp - 8]
call fcn.00409c73
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b163
leave
ret

Function at 0x408f7d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x44], 0x417888
push edi
xor edi, edi
mov dword [ebp - 0x48], edi
cmp dword [ebx + 0x10], edi
je 0x409032
lea edx, [ebp - 0x48]
call fcn.00408a73
test al, al
je 0x409032
push 0x44
pop esi
push esi
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.0040ce40
xor eax, eax
mov dword [ebp - 0x90], esi
lea edi, [ebp - 0xa0]
add esp, 0xc
cmp dword [ebx + 0x14], 8
mov esi, 0x406dd0
stosd dword es:[edi], eax
push 0xf
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
jb 0x408ff1
mov ebx, dword [ebx]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x90]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409032
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x409034
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b163
leave
ret
Function at 0x409776
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
lea ecx, [ebp - 0x6c]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ecx
push 0x20019
push ebx
movzx eax, al
push 0x406e10
sub eax, 0x7fffffff
mov dword [ebp - 0x6c], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4097d8
push 0x406dcc
mov ecx, esi
call fcn.00409c73
cmp dword [ebp - 0x6c], ebx
je 0x409880
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409880
push edi
push 0x64
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], ebx
push ebx
push eax
call fcn.0040ce40
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x406db8
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409865
mov edi, dword [ebp - 0x74]
test edi, edi
je 0x409865
cmp dword [ebp - 0x70], 1
jne 0x409865
shr edi, 1
cmp edi, 0x32
jae 0x409865
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x406db8
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [edi + edi]
mov edx, eax
cmp word [ebp + ecx - 0x6a], bx
je 0x409856
lea eax, [edi + 1]
cmp eax, 0x32
jae 0x409856
cmp ecx, 0x64
jae 0x409892
xor eax, eax
mov word [ebp + ecx - 0x68], ax
lea eax, [ebp - 0x68]
test edx, edx
je 0x409862
mov eax, 0x406dcc
push eax
jmp 0x40986a
push 0x406dcc
mov ecx, esi
call fcn.00409c73
cmp dword [ebp - 0x6c], ebx
je 0x40987f
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b163
leave
ret 8
call fcn.0040b293
int3

Function at 0x40bc26
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bc65
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bc65
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bc65
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40bc65
cmp dword [ecx + 0x74], 0xe
jbe 0x40bc65
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x416450
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41647d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41647d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x7ffe543c
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
xor eax, ecx
xor eax, ecx
add al, 0
push bx
inc esp
inc esp
and al, 0xff
pushf
popf
inc esi
dec esi
push bx
inc esp
inc esp
and al, 0xff
push es
pop ds
cld
call 0x7ffe5462
pop edx
xor dx, dx
cld
add edx, 0xd5e0
inc esi
dec esi
and al, 0xff
xor ecx, ecx
clc
mov cl, 0x1e
push eax
pop eax
xor byte [ecx + edx], 0x63
loop 0x7ffe5478
clc
push dword fs:[0x24]
add al, 0
pop dword [edx + 0xa]
inc esi
dec esi
nop
mov cl, 0xff
push edx
loop 0x7ffe5490
cld
mov dword [edx + 0x11], 0xffffacbb
mov ecx, dword [eax + 0x2c]
pushal
inc eax
popal
mov dword [edx + 0x1b], ecx
push es
pop ds
add al, 0
mov dword [edx + 0x100], ecx
cld
mov dword [eax + 0x2c], esp
add al, 0
push 0
clc
push 0
push 0
and al, 0xff
clc
push 0
add al, 0
push 0x30
add al, 0
and bh, 0xff
push 0x20
push es
pop ds
add al, 0
push 0
and al, 0xff
inc esi
dec esi
cld
push 0
xor eax, ecx
xor eax, ecx
add edx, 0xffff7f31
pushal
inc eax
popal
push edx
pushf
popf
push edx
clc
and al, 0xff
push 0
call dword [edx + 0x8212]
and al, 0xff
cld
add al, 0
add esp, 0x3f8
and al, 0xff
xor eax, eax
add al, 0
and bh, 0xff
inc eax
ret 0xc
Function at 0x10023c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52a3618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.1001eb30
test eax, eax
jne 0x10023c9c
push ebp
push 0x52f0fc4
mov ecx, edi
call fcn.10022eb0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.1001e6b0
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.100165c0
push ebx
mov dword [esp + 0x4c], ebp
call fcn.1001ece0
add esp, 4
test eax, eax
je 0x10023d3f
add esi, 0x18
push esi
call fcn.10017010
add esi, eax
push esi
call fcn.10017010
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x10024042
jmp dword [ecx*4 + 0x5224080]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.10022ff0
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.10017010
add esi, eax
push esi
call fcn.10017010
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x10023d90
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x52a741c]
test eax, eax
je 0x10023d90
mov eax, 1
jmp 0x10023d92
xor eax, eax
cmp ebx, 8
jge 0x10023ff7
cmp ebx, 7
ja 0x10024042
jmp dword [ebx*4 + 0x5224090]
test eax, eax
jne 0x1002400a
mov ecx, dword [esp + 0x10]
push eax
push 0x52f0fb0
call fcn.10022eb0
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.10024550
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x52cd050
call fcn.100167c0
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x1002b7e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5316c78]
xor edx, edx
cmp eax, edx
jne 0x1002b806
xor eax, eax
mov byte [eax + 0x5316b78], al
inc eax
cmp eax, 0x100
jl 0x1002b7ee
mov dword [0x5316c78], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5316b78
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1002b897
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x1002b86a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x1002b838
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1002b910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1002b963
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1002b94a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100328f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x10032a88
cmp ebp, ebx
jle 0x10032a88
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x1003294e
dec eax
or eax, 0xfffffff8
inc eax
je 0x10032955
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x10032964
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x1003296b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.10097bcc
add esp, 4
cmp eax, ebx
je 0x1003298c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.10097bcc
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x10032a7e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x10032a65
mov al, byte [edx]
cmp al, 0xc0
jbe 0x10032a51
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x10032a46
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x10032a54
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x10032a54
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x100329f0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x100329e1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x1003a3c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x52a4878
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.1003af40
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x52a74d0]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x52a745c]
test eax, eax
je 0x1003a469
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.1003a050
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x52a7490]
push edi
lea ecx, [esp + 0x4c]
call fcn.1009e829
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.10050e40
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x52a70f8]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x52a7430]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x52a749c]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.1009e89b
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
Function at 0x1003a9a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52a48a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.10038560
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x1003a9f9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.10035940
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.10035930
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.1003a050
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x52a7430]
push 0
lea ecx, [esp + 0x4c]
call fcn.1009e829
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.10050e40
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.10037fc0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x52a70fc]
mov ecx, ebx
call fcn.100358b0
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x1003aac4
push edi
mov ecx, esi
call fcn.100380d0
push eax
push ebp
mov ecx, esi
call fcn.10038290
cmp eax, dword [esp + 0x40]
jg 0x1003aac0
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x1003aa9e
mov eax, ebx
jmp 0x1003aaca
cmp edi, ebx
jl 0x1003aac8
mov eax, ebx
jmp 0x1003aaca
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x1003aadb
mov dword [esp + 0x30], eax
jmp 0x1003aae6
cmp edi, ebx
jl 0x1003aae1
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.10035870
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x1003ab2d
push edi
mov ecx, esi
call fcn.10037ff0
push eax
push ebx
mov ecx, esi
call fcn.100383c0
cmp eax, dword [esp + 0x44]
jg 0x1003ab25
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x1003aaff
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x1003ab37
cmp edi, ebp
jl 0x1003ab31
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x1003ab37
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x1003ab40
mov ecx, eax
jmp 0x1003ab49
cmp edi, ebp
jl 0x1003ab46
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.10037fe0
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.1009e89b
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc