joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4117d8
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
and eax, 3
push esi
push edi
je 0x4117ed
push 4
pop ecx
sub ecx, eax
add ebx, ecx
cmp dword [0x441e34], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
jne 0x41181f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push ebx
push 8
push dword [0x4418fc]
mov dword [0x441e2c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x441e2c]
call esi
mov edi, dword [0x441e34]
add dword [0x441e34], ebx
push dword [0x441e34]
push dword [0x441e2c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x4418fc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
push ebx
push dword [0x441e2c]
call esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x411865
cmp dword [esp + 0x18], esi
je 0x411889
push 0x14
push 0x441e30
call fcn.00411ec0
test esi, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
je 0x411889
add ebx, edi
push ebx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x411f60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x43fd1c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x411fa6
mov ecx, dword [ebp - 4]
add ecx, 5
push ecx
push 0
mov edx, dword [0x441ff4]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x411fc7
mov edx, dword [ebp - 4]
add edx, 5
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x441ff4]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.004125d0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x4120f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x43fd1c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x4121e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x43fd1c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret
Function at 0x412210
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edx
mov eax, dword [0x43fd1c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
mov dword [ebp - 4], ecx
pop edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x412250
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], eax
mov eax, dword [0x43fd1c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4124b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43fd1c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4124d4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
sub eax, 4
cmp dword [ebp - 8], eax
jl 0x412521
mov ecx, dword [ebp - 8]
add ecx, 0x4000
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
add ecx, 5
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x441ff4]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x412550
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x43fd1c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x41258e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x41258e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x412590
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4129a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push ebx
push esi
push edi
push eax
push ecx
mov ebx, 1
xor esi, esi
mov dword [ebp - 8], esi
push ebx
call fcn.0041b510
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add esp, 0xc
test edx, edx
je 0x412b5d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, 0x7fffffff
mov dword [ecx + 0x280], eax
mov dword [edx + 0x284], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.MSVCRT.dll_longjmp]
mov dword [eax + 0x288], esi
mov eax, dword [ebp - 4]
push 0x40
push edx
push eax
mov dword [ecx + 0x28c], esi
call fcn.00416120
push esi
push eax
call sub.MSVCRT.dll__setjmp3
add esp, 0x14
test eax, eax
je 0x412a22
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
push esi
push ecx
push edi
push edx
call fcn.0041b5e0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push ecx
push edx
push eax
call fcn.004161b0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push ecx
push edx
call fcn.004155d0
add esp, 0x28
test eax, eax
jne 0x412a63
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
test eax, eax
jne 0x412aa5
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xb4], 0x2000
mov eax, dword [edx + 0xb4]
mov ecx, dword [ebp - 4]
push eax
push ecx
call fcn.0041b700
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 4]
add esp, 8
cmp dword [eax + 0xb0], 0
jne 0x412aa5
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ecx + 0x98], 0x413a10
mov ecx, dword [ebp - 4]
mov dword [edx + 0x9c], fcn.00413a60
mov edx, dword [ebp - 8]
test edx, edx
mov dword [ecx + 0xa0], eax
jne case.0x412af0.0
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.5
push eax
call fcn.00421790
add eax, 6
add esp, 0xc
cmp eax, 6
ja case.0x412af0.5
jmp dword [eax*4 + 0x412ba0]
push str.zlib_memory_error
jmp 0x412b19
mov edx, dword [ebp - 4]
push str.zlib_stream_error
push edx
jmp 0x412b1d
mov eax, dword [ebp - 4]
push str.zlib_version_error
push eax
jmp 0x412b1d
push str.Unknown_zlib_error
mov ecx, dword [ebp - 4]
push ecx
call fcn.004161d0
mov dword [ebp - 8], ebx
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
test edx, edx
mov edx, dword [ebp - 4]
je 0x412b66
mov ecx, dword [eax + 0xb0]
push ecx
push edx
call fcn.0041b6d0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
mov dword [eax + 0xb0], 0
call fcn.0041b590
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xb0]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xb4]
mov eax, dword [ebp - 4]
push 0
push 0
push eax
mov dword [ecx + 0x88], edx
call fcn.00416580
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416140
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x41615a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x41615a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x421159
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x441e90], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
jne 0x42118f
push 0x441e74
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x441e90], 1
push 0x441e74
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x441e8c]
cmp eax, ebx
mov edi, eax
je 0x4211f3
cmp dword [ebp - 4], ebx
jne 0x421333
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x4211c6
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x4211b7
jmp 0x4211e4
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.00420fab
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x4211a5
cmp dword [ebp - 4], ebx
jne 0x421333
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x421333
mov edi, dword [0x441e8c]
jmp 0x421233
cmp dword [edi + 0xc], 0x3f
jl 0x4212cd
mov edi, dword [edi]
cmp edi, ebx
jne 0x421227
push 0x310
push 8
push dword [0x4418fc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x42132a
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, ebx
mov dword [edi + 8], eax
je 0x42131c
push ebx
push ebx
push edi
push 0x420ffc
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x421313
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00420fab
mov eax, dword [0x441e8c]
cmp eax, ebx
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
je 0x4212c5
mov dword [eax + 4], edi
mov dword [0x441e8c], edi
jmp 0x421333
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.00420fab
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x421333
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x4418fc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x441e74
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x847058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8471a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x84707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84706a
add dl, dl
jne 0x847089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8470dc
xor eax, eax
add dl, dl
jne 0x847096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84717d
add dl, dl
jne 0x8470a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8470b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8470bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8470c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8470d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x847075
mov eax, 1
add dl, dl
jne 0x8470ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8470f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8470e1
sub eax, ebx
mov ebx, 1
jne 0x847128
mov ecx, 1
add dl, dl
jne 0x84710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x847119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x847105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x847075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x84713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x84714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x847136
cmp eax, 0x7d00
jae 0x84716d
cmp eax, 0x500
jb 0x847168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x847075
cmp eax, 0x7f
ja 0x847170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x847075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x84719e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x847075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10030ed0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100ebbf8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov esi, ecx
push edi
push 4
mov dword [esi + 0x30], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xc], ebx
call fcn.100ad42f
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x10030f40
call fcn.100a9a39
mov dword [edi], eax
call fcn.100a97f8
mov ecx, eax
call fcn.1000924b
jmp 0x10030f42
xor edi, edi
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
call fcn.100088bb
mov dword [ebp - 4], ebx
push eax
call fcn.10024c90
add esp, 4
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x10030f88
call fcn.100095b2
cmp eax, ebx
je 0x10030f88
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push 0x20
mov ecx, edi
call eax
mov byte [esi + 0x40], al
cmp dword [esi + 0x38], ebx
jne 0x1003103c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
or eax, 4
and eax, 0x17
and ecx, eax
mov dword [esi + 0xc], eax
je 0x1003103c
mov dword [ebp - 0x14], 1
test cl, 4
je 0x10030fe9
call fcn.100aa105
lea ecx, [ebp - 0x14]
push ecx
push 0x100feb64
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.10008777
push 0x1010dac8
lea edx, [ebp - 0x28]
push edx
call fcn.100ae911
test cl, 2
je 0x10031015
call fcn.100aa105
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x100feb7c
lea ecx, [ebp - 0x28]
call fcn.10008777
push 0x1010dac8
lea ecx, [ebp - 0x28]
push ecx
call fcn.100ae911
call fcn.100aa105
lea edx, [ebp - 0x14]
push edx
push 0x100feb94
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.10008777
push 0x1010dac8
lea eax, [ebp - 0x28]
push eax
call fcn.100ae911
cmp byte [ebp + 0xc], bl
je 0x1003104a
push esi
call fcn.100a96d9
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x10031250
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e75fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x100f9ab4
call fcn.100a9652
mov dword [ebp - 4], 0
push 4
call fcn.100ad42f
mov edi, eax
add esp, 4
test edi, edi
je 0x100312aa
call fcn.100a9a39
mov dword [edi], eax
call fcn.100a97f8
mov ecx, eax
call fcn.1000924b
jmp 0x100312ac
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10037000
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x1003702d
push esi
push edi
jmp 0x10037010
movzx esi, byte [edx]
movzx esi, byte [esi + 0x100f3488]
lea edi, [eax*8]
xor esi, edi
dec ecx
xor eax, esi
inc edx
test ecx, ecx
jg 0x10037010
pop edi
pop esi
ret

Function at 0x1003d0a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
mov eax, ebp
test ebp, ebp
jne 0x1003d0b7
xor ebx, ebx
jmp 0x1003d0cf
cmp byte [ebp], 0
je 0x1003d0c6
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x1003d0c0
sub eax, ebp
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x1003d18e
jmp 0x1003d0f4
mov esi, dword [esp + 0x10]
cmp esi, 2
jge 0x1003d0fc
xor esi, 1
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x1003d11c
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov edx, esi
shl edx, 4
mov edx, dword [edx + eax]
call fcn.10036400
test eax, eax
jne 0x1003d17b
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
shl esi, 4
mov ecx, dword [esi + edx + 0xc]
add ecx, 4
cmp dword [ecx + 0xc], 0
je 0x1003d165
xor eax, eax
mov edi, ebx
mov edx, ebp
test ebx, ebx
jle 0x1003d15f
lea ecx, [ecx]
movzx esi, byte [edx]
movzx esi, byte [esi + 0x100f3488]
lea ebp, [eax*8]
xor esi, ebp
dec edi
xor eax, esi
inc edx
test edi, edi
jg 0x1003d140
mov ebp, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x1003d167
xor edx, edx
push ebp
call fcn.10037090
add esp, 4
test eax, eax
je 0x1003d198
mov edi, dword [eax + 8]
test edi, edi
jne 0x1003d18e
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x1003d0f0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor edi, edi
jmp 0x1003d17b
Function at 0x1003d1a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, edi
test edi, edi
jne 0x1003d1b6
xor ebx, ebx
jmp 0x1003d1cf
cmp byte [edi], 0
je 0x1003d1c6
jmp 0x1003d1c0
inc eax
cmp byte [eax], 0
jne 0x1003d1c0
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov edx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
test edx, edx
jle 0x1003d28c
mov ecx, dword [ecx + 8]
push esi
mov dword [esp + 0x14], ecx
jmp 0x1003d1f4
mov eax, dword [esp + 0x10]
cmp eax, 2
jge 0x1003d1fc
xor eax, 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
shl eax, 4
mov esi, dword [eax + edx + 0xc]
add eax, edx
test ecx, ecx
je 0x1003d21c
mov edx, dword [eax]
call fcn.10036400
test eax, eax
jne 0x1003d26b
cmp dword [esi + 0x20], 0
lea ecx, [esi + 0x14]
je 0x1003d255
xor eax, eax
mov esi, ebx
mov edx, edi
test ebx, ebx
jle 0x1003d24f
nop
movzx edi, byte [edx]
movzx edi, byte [edi + 0x100f3488]
lea ebp, [eax*8]
xor edi, ebp
dec esi
xor eax, edi
inc edx
test esi, esi
jg 0x1003d230
mov edi, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x1003d257
xor edx, edx
push edi
call fcn.10037090
add esp, 4
test eax, eax
je 0x1003d288
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x1003d27e
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jl 0x1003d1f0
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
jmp 0x1003d26b
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x100419f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x10041a0b
mov esi, 0x80
cmp esi, dword [edi]
jne 0x10041a16
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [0x1012c374]
test eax, eax
je 0x10041a21
call eax
lea ecx, [esi*8]
push ebp
push ecx
call fcn.100410c0
mov ebp, eax
mov eax, dword [0x1012c378]
add esp, 4
mov dword [esp + 8], ebp
test eax, eax
je 0x10041a43
call eax
test ebp, ebp
jne 0x10041a4f
pop ebp
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [edi + 0xc]
push ebx
push edx
call fcn.10036090
push ebp
mov dword [edi + 0xc], ebp
call dword [0x1011c064]
mov ebx, eax
shr ebx, 3
lea eax, [ebx*8]
push eax
push 0
push ebp
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call fcn.100ae530
mov ecx, dword [edi + 8]
add esp, 0x14
mov dword [edi + 8], 0
test ecx, ecx
je 0x10041b2f
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
xor eax, eax
test edx, edx
jle 0x10041ac3
nop
movzx ebx, byte [esi]
movzx ebx, byte [ebx + 0x100f3488]
lea ebp, [eax*8]
xor ebx, ebp
dec edx
xor eax, ebx
inc esi
test edx, edx
jg 0x10041aa0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
xor edx, edx
div ebx
lea eax, [ebp + edx*8]
test eax, eax
je 0x10041b0a
mov esi, dword [eax]
test esi, esi
je 0x10041ae0
mov edx, dword [eax + 4]
jmp 0x10041ae2
xor edx, edx
inc esi
mov dword [eax], esi
mov dword [eax + 4], ecx
test edx, edx
je 0x10041b0a
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x10041b02
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x10041b23
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x10041b23
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x10041b19
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x10041a93
pop ebx
pop ebp
mov eax, 1
pop esi
add esp, 8
ret