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

Disassembly:
mov ecx, dword fs:[0x18]
mov eax, dword [esp + 8]
cmp dword [ecx + 4], eax
jbe 0x1000c379
lea edx, [esp + 8]
cmp eax, edx
jbe 0x1000c379
mov dl, byte [0x10038029]
push ebx
mov bl, byte [0x1003af95]
push esi
push edi
test dl, dl
jne 0x10015d0b
test bl, bl
je 0x10015cc1
mov cl, byte [0x1003af96]
test cl, cl
je 0x10015cd6
mov esi, dword [0x10038060]
mov eax, esi
cmp eax, 0xffffffff
je 0x1000c39a
test dl, dl
jne 0x1000c312
test bl, bl
je 0x10015d27
test cl, cl
je 0x10015d3c
mov edx, esi
mov eax, dword [0x1003afc8]
cmp eax, 0x1000c3f0
jne 0x10015da8
test bl, bl
je 0x10015d6e
test cl, cl
je 0x10015d81
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1000c3d1
mov esi, eax
mov ecx, dword [esp + 0x10]
lea edx, [ecx + 4]
test dl, 7
je 0x1000c35b
shr edx, 3
lea edx, [edx*8 + 8]
mov edi, dword [esi + 8]
lea eax, [edi + edx]
cmp eax, dword [esi + 4]
ja 0x1000c38a
mov ecx, dword [esi]
mov dword [esi + 8], eax
add edi, ecx
mov dword [eax + ecx - 4], edx
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
ret 8
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
pop edi
pop esi
pop ebx
ret 8
push 0x1000da90
call dword [0x1003afc4]
mov esi, eax
call fcn.1000c030
mov dl, byte [0x10038029]
mov cl, byte [0x1003af96]
mov bl, byte [0x1003af95]
test al, al
je 0x10015d16
mov dword [0x10038060], esi
jmp 0x1000c2fe
call fcn.1000bf30
mov esi, eax
push esi
call fcn.1000c730
push eax
call dword [0x1003afcc]
jmp 0x1000c345
mov cl, 1
mov bl, cl
mov byte [0x1003af96], cl
mov byte [0x1003af95], bl
jmp 0x1000c2ed
mov eax, dword fs:[0x18]
cmp dword [eax + 0x10], 0x10000
mov dl, byte [0x10038029]
mov cl, byte [0x1003af96]
mov bl, byte [0x1003af95]
jb 0x1000c2ed
mov eax, dword [0x1003805c]
mov esi, dword [0x10038060]
jmp 0x1000c2f5
mov cl, byte [0x1003af96]
jmp 0x1000c2ed
mov dword [0x1003805c], esi
mov esi, dword [0x10038060]
jmp 0x1000c2fe
mov cl, 1
mov bl, cl
mov byte [0x1003af96], cl
mov byte [0x1003af95], bl
jmp 0x1000c312
mov ecx, dword fs:[0x18]
cmp dword [ecx + 0x10], 0x10000
mov bl, byte [0x1003af95]
mov cl, byte [0x1003af96]
jae 0x10015d63
mov esi, dword [0x10038060]
jmp 0x1000c312
mov edx, dword [0x1003805c]
jmp 0x1000c314
mov byte [0x1003af96], 1
mov byte [0x1003af95], 1
jmp 0x1000c334
mov eax, dword fs:[0x18]
cmp dword [eax + 0x10], 0x10000
jb 0x1000c334
call fcn.1001c67b
mov esi, dword [eax]
push edx
mov edx, dword [esi + 4]
mov ecx, eax
call edx
jmp 0x1000c33b
push edx
call eax
jmp 0x1000c33b
Function at 0x1000c420
Capabilities:
Encode data using xor
Get thread local storage value

Disassembly:
cmp byte [0x10038029], 0
jne 0x10015c62
mov cl, byte [0x1003af95]
test cl, cl
je 0x10015c29
mov al, byte [0x1003af96]
test al, al
je 0x10015c3d
mov edx, dword [0x10038060]
push esi
mov esi, dword [0x1003afc8]
cmp esi, 0x1000c3f0
jne 0x10015cad
test cl, cl
je 0x10015c72
test al, al
je 0x10015c85
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 8]
test ecx, ecx
je 0x1000c495
test eax, eax
je 0x1000c49f
mov edx, dword [ecx]
cmp edx, eax
ja 0x1000c495
mov esi, dword [ecx + 8]
add esi, edx
cmp eax, esi
jb 0x1000c4a3
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
ret 4
push ebx
push ebp
mov ebx, eax
push edi
mov edi, dword [ecx + 8]
add edi, dword [ecx]
lea ecx, [ecx]
mov eax, dword [edi - 4]
lea esi, [edi - 4]
cdq
xor eax, edx
sub eax, edx
sub edi, eax
cmp edi, ebx
ja 0x1000c4b0
mov eax, dword [esi]
test eax, eax
jle 0x1000c4cb
neg eax
mov dword [esi], eax
mov eax, dword [ecx + 8]
mov edx, dword [ecx]
add edx, eax
lea ebp, [esi + 4]
cmp ebp, edx
jne 0x1000c4e0
add eax, dword [esi]
mov dword [ecx + 8], eax
jne 0x1000c4e7
pop edi
pop ebp
pop ebx
pop esi
ret 4
mov eax, dword [edi - 4]
test eax, eax
jg 0x1000c4e0
jmp 0x10015cb5
mov al, 1
mov cl, al
mov byte [0x1003af96], al
mov byte [0x1003af95], cl
jmp 0x1000c448
mov eax, dword fs:[0x18]
cmp dword [eax + 0x10], 0x10000
jb 0x10015c62
mov edx, dword [0x1003805c]
mov al, byte [0x1003af96]
mov cl, byte [0x1003af95]
jmp 0x1000c44e
mov al, byte [0x1003af96]
mov cl, byte [0x1003af95]
jmp 0x1000c448
mov byte [0x1003af96], 1
mov byte [0x1003af95], 1
jmp 0x1000c471
mov ecx, dword fs:[0x18]
cmp dword [ecx + 0x10], 0x10000
jb 0x1000c471
call fcn.1001c67b
mov esi, dword [eax]
push edx
mov edx, dword [esi + 4]
mov ecx, eax
call edx
jmp 0x1000c478
push edx
call esi
jmp 0x1000c478
neg eax
mov dword [edi - 4], eax
sub ebx, eax
jmp 0x1000c4a8
Function at 0x1000c500
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [ecx + 4]
mov dword [ecx], vtable.AcRxCopyOnWriteObject.0
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
cmp byte [0x10038029], 0
jne 0x1000c537
cmp byte [0x1003af95], 0
je 0x1001641c
cmp byte [0x1003af96], 0
je 0x1001642d
mov eax, dword [0x10038060]
push eax
call dword [0x1003afc8]
test eax, eax
je 0x1000c59b
mov ecx, eax
mov eax, dword [ecx]
cmp eax, esi
ja 0x1000c59b
mov edx, dword [ecx + 8]
add edx, eax
cmp esi, edx
jae 0x1000c59b
push ebx
push ebp
mov ebx, esi
push edi
mov edi, dword [ecx]
add edi, dword [ecx + 8]
mov eax, dword [edi - 4]
lea esi, [edi - 4]
cdq
xor eax, edx
sub eax, edx
sub edi, eax
cmp edi, ebx
ja 0x1000c562
mov eax, dword [esi]
test eax, eax
jle 0x1000c57d
neg eax
mov dword [esi], eax
mov eax, dword [ecx + 8]
mov edx, dword [ecx]
add edx, eax
lea ebp, [esi + 4]
cmp ebp, edx
jne 0x1000c596
add eax, dword [esi]
mov dword [ecx + 8], eax
jne 0x1001644a
pop edi
pop ebp
pop ebx
pop esi
ret
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
ret
mov al, 1
mov byte [0x1003af96], al
mov byte [0x1003af95], al
jmp 0x1000c537
mov eax, dword fs:[0x18]
cmp dword [eax + 0x10], 0x10000
jb 0x1000c537
mov eax, dword [0x1003805c]
jmp 0x1000c53c
mov eax, dword [edi - 4]
test eax, eax
jg 0x1000c596
neg eax
mov dword [edi - 4], eax
sub ebx, eax
jmp 0x1000c55d
Function at 0x1000d670
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esi + 8]
push ebx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 5], bl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
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 + 0x30], ebx
movzx edx, word [eax]
cmp edx, 0x5a4d
jne 0x10015b38
add eax, dword [eax + 0x3c]
mov edx, 0x8664
mov dword [esi + 0x18], eax
add eax, 4
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x18]
add eax, 0x18
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x20]
cmp word [eax], dx
je 0x10015b69
mov byte [esi + 5], 1
mov edx, dword [esi + 0x18]
cmp dword [edx], 0x4550
jne 0x10015b71
movzx eax, word [eax + 0x10]
push edi
lea edx, [eax + edx + 0x18]
push ecx
xor edi, edi
mov eax, esi
mov dword [esi + 0x14], edx
call fcn.1000d5e0
mov dword [esi + 0x1c], eax
lea eax, [esp + 8]
push eax
mov edi, 1
mov eax, esi
call fcn.1000d5e0
lea ecx, [esp + 8]
mov dword [esi + 0x2c], eax
push ecx
mov edi, 0xd
mov eax, esi
call fcn.1000d5e0
lea edx, [esp + 8]
mov dword [esi + 0x30], eax
push edx
mov edi, 6
mov eax, esi
call fcn.1000d5e0
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
pop edi
cmp eax, ebx
je 0x1000d75e
mov ecx, 3
mov eax, dword [esi + 0x28]
cmp dword [eax + 0x10], ebx
je 0x1000d75e
cmp dword [eax + 0xc], ecx
je 0x1000d75e
add eax, 0x1c
mov dword [esi + 0x28], eax
cmp eax, ebx
jne 0x1000d747
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x1000d76d
cmp dword [eax + 0x10], ebx
jne 0x1000d76d
mov dword [esi + 0x28], ebx
pop ebx
pop ecx
ret
sub edx, 0x14c
cmp edx, 0xa4
ja case.0x10015b4d.333
movzx ecx, byte [edx + 0x10015b84]
jmp dword [ecx*4 + 0x10015b7c]
mov dword [esi + 0xc], eax
mov dword [esi], 1
pop ebx
pop ecx
ret
mov dword [esi], 2
pop ebx
pop ecx
ret
mov byte [esi + 5], bl
jmp 0x1000d6d6
mov dword [esi], 4
pop ebx
pop ecx
ret
Function at 0x1000da20
Capabilities:
Get thread local storage value

Disassembly:
cmp eax, 2
jne 0x1000da26
ret
push ecx
sub eax, 0
je 0x1000da80
dec eax
je 0x1000da73
sub eax, 2
jne 0x1000da48
push edi
mov edi, dword [0x1003b114]
mov eax, dword [edi]
mov dword [esp + 4], eax
push esi
cmp eax, edi
jne 0x1000da4a
pop esi
pop edi
pop ecx
ret
mov esi, dword [eax + 0x10]
test esi, esi
je 0x1000da64
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
mov edi, dword [0x1003b114]
lea esi, [esp + 8]
call fcn.1000dac0
mov eax, dword [esp + 8]
jmp 0x1000da42
push 0x1003ae64
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop ecx
ret
push 0x1003ae64
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1000da34

Function at 0x1000daf0
Capabilities:
Read file via mapping

Disassembly:
cmp dword [0x1003af9c], 0
jne 0x1000dafa
ret
mov eax, dword [0x10038054]
dec eax
cmp eax, 0x1f
ja 0x1000db41
call fcn.1000dc40
mov ecx, dword [0x1003af9c]
push 0
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x1000db3c
mov ecx, dword [0x10038054]
dec ecx
mov edx, 1
shl edx, cl
push eax
not edx
and dword [eax], edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call fcn.1000ddc0
mov eax, dword [0x1003af9c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1003af9c], 0
ret
Function at 0x1000dcb0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x58
mov eax, dword [0x10038018]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [0x1003af90]
push ebx
push str.16_session_mem
push eax
push 8
push str._.s_s
lea ecx, [esp + 0x18]
push 0x27
push ecx
mov dword [0x10038054], 0x21
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x18
call fcn.1000dc40
lea edx, [esp + 8]
push edx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [0x1003af9c], eax
test eax, eax
jne 0x10014fc4
lea eax, [esp + 8]
push eax
push 0x800
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x1003af9c], eax
test eax, eax
je 0x10014fb8
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x10014fb8
push esi
mov esi, eax
mov byte [esp + 0xb], 1
test bl, bl
je 0x10014fcb
mov ecx, dword [0x1003afa4]
push 0x3fd
push ecx
lea edx, [esi + 0x10]
push 0x3fe
push edx
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
mov dword [0x10038054], 1
mov dword [esi], 1
mov dword [esi + 4], 0xe
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call fcn.1000ddc0
mov al, byte [esp + 0xb]
pop esi
mov ecx, dword [esp + 0x58]
pop ebx
xor ecx, esp
call fcn.10010ef0
add esp, 0x58
ret
call fcn.1000ddc0
mov al, 1
jmp 0x1000ddae
xor bl, bl
jmp 0x1000dd33
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x10014ffe
call fcn.1000df20
test al, al
jne 0x10014ff4
mov eax, dword [0x1003af8c]
push eax
push 0x15
push 0x11
push 0
push 0x3e43
call fcn.1001f155
add esp, 0x14
mov byte [esp + 0xb], 0
jmp 0x1000dd9d
xor ecx, ecx
mov edx, 1
shl edx, cl
test eax, edx
je 0x10015016
inc ecx
cmp ecx, 0x20
jl 0x10015000
jmp 0x1000dd9d
mov edx, 1
shl edx, cl
or edx, eax
inc ecx
mov dword [esi], edx
mov dword [0x10038054], ecx
jmp 0x1000dd9d

Function at 0x1000deb0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x3c
mov eax, dword [0x10038018]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
call fcn.1000df20
test al, al
jne 0x1000df01
mov esi, dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
pxor xmm0, xmm0
lea eax, [esp + 0x10]
movdqa xmmword [esp + 0x10], xmm0
push eax
movdqa xmmword [esp + 0x24], xmm0
mov dword [esp + 0x14], 0x20
call esi
cmp dword [esp + 0x24], 0xa00000
jb 0x10014539
mov al, 1
mov ecx, dword [esp + 0x3c]
pop esi
xor ecx, esp
call fcn.10010ef0
mov esp, ebp
pop ebp
ret
push 1
push 0x1000
push 0xa00000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1001459e
mov ecx, dword [0x1003af8c]
push ecx
push 0x15
push 0x11
push 5
push 0x3e42
call fcn.1001f155
add esp, 0x14
cmp eax, 2
je 0x100145b1
pxor xmm0, xmm0
lea edx, [esp + 0x10]
movdqa xmmword [esp + 0x10], xmm0
push edx
movdqa xmmword [esp + 0x24], xmm0
mov dword [esp + 0x14], 0x20
call esi
cmp dword [esp + 0x24], 0xa00000
jb 0x10014539
jmp 0x1000df01
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1000df01
xor al, al
jmp 0x1000df03
Function at 0x1000df20
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [eax], 0
je 0x1000df79
mov ebx, dword [sym.imp.MSVCR100.dll_wcsncmp]
mov edi, eax
movzx eax, word [edi]
cmp eax, 0x20
je 0x1000df7f
cmp eax, 9
je 0x1000df7f
movzx eax, word [edi]
cmp eax, 0x2d
je 0x1000df90
cmp eax, 0x2f
je 0x1000df90
movzx esi, word [edi]
test si, si
je 0x1000df79
lea esp, [esp]
movzx eax, si
cmp eax, 0x20
je 0x1000df84
cmp eax, 9
je 0x1000df84
movzx esi, word [edi + 2]
add edi, 2
test si, si
jne 0x1000df60
pop edi
pop esi
xor al, al
pop ebx
ret
add edi, 2
jmp 0x1000df37
cmp word [edi], 0
jne 0x1000df37
pop edi
pop esi
xor al, al
pop ebx
ret
push 9
add edi, 2
push str.Embedding
push edi
call ebx
add esp, 0xc
test eax, eax
jne 0x1000df51
jmp 0x10013d72
movzx esi, word [edi + 0x26]
add edi, 0x26
push esi
call fcn.10019d73
add esp, 4
test al, al
jne 0x10013d8f
test si, si
jne 0x1000df60
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x1000ef80
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
mov eax, dword [0x10038018]
xor eax, esp
mov dword [esp + 0x20], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x20
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x18]
cmp eax, 0x80100000
ja 0x1000f013
mov ecx, dword [0x10038058]
push esi
xor dl, dl
push edi
mov dword [0x1003ae60], ecx
xor eax, eax
mov esi, 0x100263e4
lea ebx, [ebx]
mov byte [eax + 0x10039e48], dl
inc eax
cmp ecx, 0x800
jg 0x1000eff0
cmp eax, dword [esi - 4]
jne 0x1000efd0
mov dl, byte [esi]
cmp dl, 0xff
je 0x1000f002
add esi, 8
jmp 0x1000efd0
cmp eax, 0x800
je 0x1000f024
lea edi, [ecx + 1]
cmp eax, edi
jne 0x1000efdf
xor dl, dl
jmp 0x1000efdf
mov ecx, dword [esp + 0x28]
pop edi
pop esi
xor ecx, esp
call fcn.10010ef0
add esp, 0x24
ret
lea ecx, [eax - 0x100000]
shr ecx, 0x14
mov dword [0x10038058], ecx
jmp 0x1000efb9
mov dl, 2
jmp 0x1000efdf

Function at 0x10010ef0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10038018]
jne 0x10010efa
repz ret
jmp fcn.100114e6

Function at 0x10019a9f
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
push esi
lea ebx, [ebx]
mov eax, dword [ecx - 4]
lea esi, [ecx - 4]
cdq
xor eax, edx
sub eax, edx
sub ecx, eax
cmp ecx, dword [esp + 0xc]
ja 0x10019aaf
mov eax, dword [esi]
pop esi
ret 8
Function at 0x1001b8ab
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002c2b0
push 0x10011659
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x10038018]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x2c], edi
mov ebx, dword [esi + 0x20]
mov dword [ebp - 0x20], ebx
push 0x1c
lea eax, [ebp - 0x54]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x24]
push edx
push 0x40
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001b9d4
mov dword [ebp - 4], edi
xor eax, eax
mov word [ebp - 0x38], ax
mov dword [ebp - 0x36], edi
xor ecx, ecx
mov word [ebp - 0x32], cx
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x34], ecx
push 8
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 3
jge 0x1001b975
lea edx, [ebp - 0x30]
push edx
push 8
lea eax, [esi + 4]
push eax
mov ecx, dword [esi + 0x20]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jg 0x1001b975
inc dword [ebp - 0x1c]
jmp 0x1001b94f
push 8
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [ebp - 0x38]
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x34]
mov dword [esi + 8], ecx
xor dword [esi + 0x1c], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x1001b9b3
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp - 0x2c], 2
jne 0x1001b9d4
add esi, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1001c695
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
test ebx, ebx
je 0x1001c70c
push ebx
push edi
call fcn.10019ae2
test al, al
jne 0x1001c6bd
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop ebx
ret 8
push ebp
push esi
lea ebx, [ebx]
mov ecx, dword [edi + 8]
add ecx, dword [edi]
mov eax, dword [ecx - 4]
lea esi, [ecx - 4]
cdq
xor eax, edx
sub eax, edx
sub ecx, eax
cmp ecx, ebx
ja 0x1001c6ca
mov eax, dword [esi]
test eax, eax
jle 0x1001c6e5
neg eax
mov dword [esi], eax
mov eax, dword [edi + 8]
mov edx, dword [edi]
add edx, eax
lea ebp, [esi + 4]
cmp ebp, edx
jne 0x1001c70a
add eax, dword [esi]
mov dword [edi + 8], eax
je 0x1001c70a
mov eax, dword [ecx - 4]
test eax, eax
jg 0x1001c70a
neg eax
mov dword [ecx - 4], eax
sub ebx, eax
jmp 0x1001c6c5
pop esi
pop ebp
pop edi
pop ebx
ret 8
Function at 0x1001dae2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xff4
mov eax, dword [0x10038018]
xor eax, esp
mov dword [esp + 0xff0], eax
cmp byte [0x1003af97], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
jne 0x1001dc85
mov byte [0x1003af97], 1
test esi, esi
jne 0x1001db25
mov esi, str._null_
test edi, edi
jne 0x1001db2e
mov edi, str._null_
push 0x207
lea ecx, [esp + 0x34]
xor eax, eax
push ecx
push eax
mov word [esp + 0x3c], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp + 0x10]
push ebx
push edx
push edi
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.10019407
add esp, 0x14
cmp byte [0x10038028], 0
je 0x1001dc7e
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10019610
add esp, 4
test al, al
jne 0x1001dc7e
xor edx, edx
mov word [esp + 0x238], dx
test ebx, ebx
je 0x1001dbaa
push ebx
push 0xc8
push str.Status:___.s._n
lea eax, [esp + 0x244]
push 0xe9
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x14
mov ebx, dword [ebp + 0x10]
push ebx
push edi
push 0x104
lea ecx, [esp + 0x3c]
push ecx
push 0x104
lea edx, [esp + 0x24c]
push edx
push esi
push 0x190
push str.Failed:___.s._n_sModule:___.s._nFile:___.s_.__Line:__d.
lea eax, [esp + 0x434]
push 0x5f1
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
lea ecx, [esp + 0x43c]
add esp, 0x2c
push ecx
call sym.Ac1st19.dll_void___cdecl_PerfLog_WriteAssertEvent_wchar_t_const__
add esp, 4
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
je 0x1001dc0c
push esi
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov esi, eax
lea edx, [esp + 0x10]
push edx
call fcn.10019656
push 0x2012
push str.ASSERT_Error.__Shift_Ignore_to_suppress
lea eax, [esp + 0x418]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x10
mov esi, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
lea ecx, [esp + 0x10]
test ax, ax
push ecx
sets byte [esp + 0x13]
call fcn.10019638
cmp esi, 5
jne 0x1001dc62
cmp byte [esp + 0xf], 0
je 0x1001dc7e
push ebx
call fcn.1001b2b1
add esp, 4
jmp 0x1001dc7e
cmp esi, 4
jne 0x1001dc6f
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x1001dc7e
push ebx
push edi
push str.User_aborted_during_ASSERT_file__s__line__d
call sym.Ac1st19.dll_acrx_abort
add esp, 0xc
mov byte [0x1003af97], 0
mov ecx, dword [esp + 0xffc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10010ef0
mov esp, ebp
pop ebp
ret
Function at 0x10020123
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10011f8a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x10038018]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x20]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0xffffffff
call fcn.1000cc00
test al, al
je 0x100201c3
lea ecx, [esp + 0xc]
push ecx
call fcn.10018c39
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.1001af68
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x28], 0
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push ecx
push edi
mov ecx, esi
call edx
mov esi, eax
lea eax, [esp + 0x14]
push eax
call fcn.1001af59
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi]
mov edx, dword [edx + 0x2c]
push eax
push ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x1002058c
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10011fba
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10038018]
xor eax, esp
mov dword [esp + 0x30], eax
push ebp
push esi
push edi
mov eax, dword [0x10038018]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, dword [esp + 0x54]
cmp dword [esi + 0x44], 0
je 0x100206f8
cmp byte [esi + 0x4a], 0
je 0x100206f8
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, esi
call edx
lea ecx, [esp + 0x10]
movzx eax, ax
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0xffff
call fcn.10019827
add esp, 8
test al, al
jne 0x100206ea
lea eax, [esp + 0x24]
push eax
call fcn.1001de5d
mov dword [esp + 0x4c], 0
lea ebp, [esi + 0x4c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.1001b500
mov edi, dword [eax]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.1001b500
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
lea edx, [esp + 0x18]
push edx
add ecx, edi
push ecx
mov ecx, dword [esi + 0x44]
push eax
push ebp
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_wchar_t__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x10020678
dec eax
je 0x1002067c
sub eax, 2
je 0x100206d9
lea eax, [esp + 0x24]
push eax
call fcn.1001b7c9
xor al, al
jmp 0x100206fa
mov byte [esi + 0x4a], 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.1001b500
mov edi, dword [esp + 0x18]
sub edi, dword [eax]
je 0x100206b9
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.1001b500
mov ecx, dword [esi + 0x54]
mov eax, dword [eax]
push ecx
push edi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100206e0
cmp byte [esi + 0x4a], 0
je 0x100206ee
test edi, edi
jne 0x10020621
push edi
push 8
lea edx, [esp + 0x2c]
push edx
call fcn.1001de10
jmp 0x10020621
lea ecx, [esp + 0x24]
push ecx
jmp 0x100206f3
lea edx, [esp + 0x24]
push edx
call fcn.1001b7c9
xor al, al
jmp 0x100206fa
lea eax, [esp + 0x24]
push eax
call fcn.1001b7c9
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10010ef0
add esp, 0x40
ret 4