joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f573
Capabilities:
Parse pe header

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

Function at 0x431790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4317bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4317bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1000f7f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000f7ff
pop dword [ebp - 0x20]
mov eax, 0x6f8abbfe
sub eax, 0x5f89c3ff
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x5ea52cea
sub dword [ebp - 0x30], 0x1052e79f
mov dword [ebp - 0x2c], 0x71dae18e
sub dword [ebp - 0x2c], 0x3fa79549
mov dword [ebp - 0x28], 0x5434c9e2
add dword [ebp - 0x28], 0xf8177a4c
mov dword [ebp - 0x24], 0xcf4449e7
add dword [ebp - 0x24], 0x30bbb619
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x54635333
sub dword [ebp - 0x30], 0xdff0e9dd
mov dword [ebp - 0x2c], 0x6dfae983
sub dword [ebp - 0x2c], 0x2c8e880e
mov dword [ebp - 0x28], 0xe3d0a404
sub dword [ebp - 0x28], 0x80613798
mov dword [ebp - 0x24], 0x8671c3b9
sub dword [ebp - 0x24], 0x8671c3b9
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3e43f
push 0
call eax
mov ecx, 0xc14a73f8
sub ecx, 0xc14a2be2
mov edi, eax
mov ebx, 0x73b71739
add ebx, 0x9c4b98c7
add ebx, dword [ebp - 0x20]
mov esi, 0x3ec0534e
sub esi, 0xb6426cd0
sub dword [ebp - 0x14], 0xd5c01c62
mov edx, dword [ebx]
add dword [ebp - 8], edx
add edx, esi
xor dword [ebp - 0x14], 0x5494cd14
mov dword [edi], edx
sub dword [ebp - 0x14], 0x5b91fc1b
add edi, 0x297145ec
add edi, 0xd68eba18
add ebx, 0x8ca3b67c
sub ebx, 0x8ca3b678
loop 0x1000f917
add eax, 0x1132b
xor ebx, ebx
add ebx, eax
add eax, 0x8e0d076c
sub eax, 0x8e0d0767
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x43227f87
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x11d95dd7
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x44b810
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov dword [esi], 0
mov eax, dword [0x65bd7c]
push eax
call sub.IMM32.dll_ImmGetContext
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
mov dword [0x65bd7c], eax
call edi
test ax, ax
push 0x10
setne bl
call edi
test ax, ax
jge 0x44b84c
or dword [esi], 0x2000000
push 0x11
call edi
test ax, ax
jge 0x44b85b
or dword [esi], 0x4000000
push 0
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
test bl, bl
je 0x44b86d
or dword [esi], 0x657260
mov eax, esi
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..data
nop
mov ebx, 0x408ecc
mov ecx, 0x71f36dba
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0xe360016
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x402d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x402e9d
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0x3c]
cmp dword [eax + edx + 0x74], 0
je 0x402e9d
cmp word [eax + edx + 0x14], 0x68
jb 0x402e9d
mov eax, dword [eax + edx + 0x78]
mov edx, dword [ecx]
mov esi, ecx
mov edi, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov ecx, edi
call dword [0x64689c]
mov dword [ebp - 0x14], esi
mov ecx, esi
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x402e9d
mov ecx, dword [ebp + 8]
cmp ecx, 0xffff
ja 0x402dbc
mov word [ebx], cx
jmp 0x402edf
mov edi, dword [ebp - 0x14]
mov ecx, dword [eax + 0x20]
mov esi, eax
mov eax, dword [edi]
mov dword [ebp - 0x10], ecx
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x64689c]
mov ecx, edi
push dword [ebp - 0x10]
call ebx
mov edx, eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], esi
lea ecx, [eax*4]
test ecx, ecx
je 0x402e9d
lea ecx, [edx + eax*4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov esi, edx
inc eax
mov dword [ebp - 0x24], eax
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, ecx
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0x14]
sub eax, esi
mov ecx, eax
shr eax, 0x1f
sar ecx, 2
add eax, ecx
and eax, 0xfffffffe
lea ecx, [esi + eax*2]
mov eax, dword [esi + eax*2]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edi]
mov dword [ebp - 0x28], eax
mov ebx, dword [ecx + 4]
mov ecx, ebx
call dword [0x64689c]
mov ecx, edi
push dword [ebp - 0x28]
call ebx
mov ecx, dword [ebp + 8]
mov cl, byte [ecx]
test cl, cl
je 0x402e70
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
nop word cs:[eax + eax]
cmp cl, byte [eax]
jne 0x402e75
movzx ecx, byte [edx]
inc eax
inc edx
test cl, cl
jne 0x402e60
jmp 0x402e73
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
movzx eax, byte [eax]
movzx ecx, cl
lea ebx, [edi + 4]
mov edx, ecx
sub edx, eax
test edx, edx
cmovg esi, ebx
cmp ecx, eax
mov ecx, dword [ebp - 0x10]
cmovs ecx, edi
je 0x402ea9
xor eax, eax
cmp esi, ecx
jne 0x402e10
jmp 0x402e9f
xor eax, eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi]
mov eax, dword [eax + 0x24]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], eax
mov ecx, ebx
call dword [0x64689c]
mov ecx, esi
push dword [ebp - 0x10]
call ebx
sub edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
sar edi, 1
movzx eax, word [eax + edi]
add ax, word [ecx + 0x10]
mov word [edx], ax
mov al, 1
jmp 0x402e9f
Function at 0x404d40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x49f8b0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
cmp dword [0x6d0fc0], 0
je 0x404d7a
xor eax, eax
jmp 0x404dd5
mov dword [esp], 0x38
call fcn.005d0220
mov ecx, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], eax
call fcn.00404e10
sub esp, 4
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0xffffffff
mov dword [0x6d0fc0], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test eax, eax
je 0x404dc0
mov dword [esp], esi
call fcn.005d3244
jmp 0x404dc2
xor eax, eax
mov ecx, edi
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00404f80
sub esp, 8
mov al, 1
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404e10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x49f860
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x28], 0
mov dword [ebp - 0x10], 0
push 0x18
call fcn.005d0220
add esp, 4
mov edx, dword [ebp - 0x20]
mov esi, eax
add esi, 0x18
lea ecx, [edx + 0x20]
mov dword [edx + 0x20], eax
mov dword [edx + 0x28], esi
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], 0
mov dword [edx + 0x24], esi
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], ecx
push 0x40
call fcn.005d0220
add esp, 4
mov ecx, dword [ebp - 0x20]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x34], 1
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x404f80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x49f8c0
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
lea esi, [ebp - 0x34]
mov dword fs:[0], edx
push 3
push ecx
push eax
push esi
call fcn.004050e0
add esp, 0x10
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4050a2
mov edi, dword [ebp - 0x34]
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], eax
mov dword [ebp - 0x20], 0
push 0x800
push 0
push str.api_ms_win_downlevel_shell32_l1_1_0.dll
call fcn.005d3370
test eax, eax
mov dword [ebp - 0x28], eax
je 0x40501a
push 0x6583ae
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405027
mov ecx, eax
call dword [0x64689c]
lea eax, [ebp - 0x20]
push eax
push edi
call ecx
jmp 0x405029
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x405029
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea edx, [eax + ecx*4]
sub esp, 0xc
mov cl, byte [ebp - 0x24]
mov byte [esp + 8], cl
mov ecx, esi
mov dword [esp + 4], edx
mov dword [ebp - 0x3c], eax
mov dword [esp], eax
call fcn.00405320
mov dword [ebp - 0x10], 0
mov ecx, ebx
push esi
mov dword [ebp - 0x38], ebx
call fcn.00405700
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x28], 0
je 0x40509a
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x34]
call fcn.005d38f0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x406c90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x138
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4a2460
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ecx, dword [0x6d301c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x6d1020]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406cf6
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, 0x6d101c
add esp, 0x138
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6d1020
call fcn.005d3d07
add esp, 4
cmp dword [0x6d1020], 0xffffffff
jne 0x406cdd
lea eax, [ebp - 0x140]
push 0x118
push 0
push eax
call fcn.0061e8c0
add esp, 0xc
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 0x11c
mov dword [ebp - 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0
push 0
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x78
call fcn.005d0220
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov edx, dword fs:[0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [0x6d107c]
mov ecx, dword [0x6d301c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x406dc9
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 1
push dword [ebp - 0x28]
push 0x6d1058
lea eax, [ebp - 0x144]
push eax
call fcn.00406ec0
mov eax, dword [ebp - 0x20]
mov dword [0x6d101c], eax
push 0x6d1020
call fcn.005d3d59
add esp, 4
jmp 0x406cdd
push 0x6d107c
call fcn.005d3d07
add esp, 4
cmp dword [0x6d107c], 0xffffffff
jne 0x406d91
mov dword [0x6d105c], 0
mov dword [0x6d1058], 0
mov dword [0x6d1064], 0
mov dword [0x6d1060], 0
mov dword [0x6d106c], 0
mov dword [0x6d1068], 0
mov dword [0x6d1074], 0
mov dword [0x6d1070], 0
mov dword [0x6d1078], 0
mov dword [ebp - 0x10], 2
push 0x6d1058
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x6d107c
call fcn.005d3d59
add esp, 4
jmp 0x406d91
Function at 0x407520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov edx, dword [0x6ccc30]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
xor edx, ebp
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
push edx
push esi
push edi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x407588
mov eax, dword [ebp - 0x10]
mov esi, 0x3f4
add eax, 0xfffffffd
cmp eax, 1
ja 0x407588
cmp dword [ebp - 0x14], 4
jne 0x407588
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
xor esi, esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005ce525
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8

Function at 0x4075a0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1010
call fcn.0061d060
mov edx, dword [0x6ccc30]
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x810]
lea esi, [ebp - 0x1018]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x101c]
mov dword [ebp - 0x1018], 1
mov dword [ebp - 0x101c], 0x800
push edx
push ebx
push esi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x4076d1
mov eax, dword [ebp - 0x1018]
mov esi, dword [ebp + 0xc]
cmp eax, 2
je 0x40763d
mov edi, 0x3f4
cmp eax, 1
jne 0x4076d1
push ebx
call fcn.005d3244
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x40769a
sub esp, 0xc
mov al, byte [ebp - 0x1010]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
jmp 0x40768e
lea eax, [ebp - 0x1010]
push 0x400
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x101c], eax
dec eax
mov edi, 0xea
cmp eax, 0x3ff
ja 0x4076d1
lea ebx, [ebp - 0x1010]
push ebx
call fcn.005d3244
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x14]
mov ecx, ebx
cmp eax, edi
jae 0x4076ae
sub esp, 0xc
mov al, byte [ebp - 0x1014]
mov byte [esp + 4], al
mov dword [esp + 8], ecx
mov ecx, esi
mov dword [esp], edi
call fcn.00405590
jmp 0x4076cf
cmp eax, 8
mov eax, esi
jb 0x4076a3
mov esi, dword [eax]
mov ecx, edi
mov dword [eax + 0x10], edi
add ecx, edi
push ecx
push ebx
jmp 0x4076c0
cmp eax, 8
mov eax, esi
jb 0x4076b7
mov esi, dword [eax]
mov edx, edi
mov dword [eax + 0x10], edi
add edx, edi
push edx
push ecx
push esi
call fcn.0061e340
add esp, 0xc
mov word [esi + edi*2], 0
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov eax, edi
add esp, 0x1010
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x40f1a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x6ccc30]
mov edi, dword [ebp + 8]
mov esi, 0x57
xor eax, ebp
test edi, edi
mov dword [ebp - 0x10], eax
je 0x40f22b
cmp dword [ebp + 0xc], 0
je 0x40f22b
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40f22b
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x2c]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f223
test byte [ebp - 0x18], 0xf0
lea esi, [ebp - 0x30]
mov eax, 4
mov ecx, 0x40
cmove ecx, eax
push esi
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40f223
push ebx
push dword [ebp + 0xc]
push edi
call fcn.0061e340
add esp, 0xc
push esi
push dword [ebp - 0x30]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, esi
jmp 0x40f22b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40f3c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4d4820
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [esi + 8]
mov dword [esi], vtable.acrobat_broker::SandboxBrokerClientImpl.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 0x30], eax
push 0x18
call fcn.005d0220
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi + 8], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x10], 0
mov byte [esi + 0x14], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], eax
push 8
call fcn.005d0220
add esp, 4
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], 0
lea edx, [ecx + 0x20]
mov dword [ecx + 0x20], eax
mov dword [eax], edx
lea eax, [ecx + 0x4c]
mov dword [ebp - 0x2c], edx
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x54], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x28], eax
lea eax, [ecx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40fca0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1418
call fcn.0061d060
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4a6fc0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x6c8c48]
cmp eax, 0xffffffff
je 0x40fe10
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x40fe10
and ebx, 0xfffffffc
lea eax, [ebp - 0x824]
push 0x800
push ebx
push eax
call fcn.0061e340
add esp, 0xc
mov ecx, dword [0x6c8c48]
lea eax, [ebp - 0x823]
push eax
mov dword [ebp - 0x20], ecx
push ecx
call fcn.00410540
add esp, 8
test ebx, ebx
je 0x40fd32
push ebx
call fcn.005db8b4
add esp, 4
call fcn.00410560
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x40fe24
lea eax, [ebp - 0x1424]
push 0xc00
push 0x6d11ec
push eax
call fcn.0061e340
add esp, 0xc
mov dword [ebp - 0x10], 0
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, 0x100
mov al, 1
jmp 0x40fd8b
mov ecx, dword [ebp - 0x24]
cmp ecx, 2
lea ecx, [ecx - 1]
jb 0x40fdfc
test al, 1
je 0x40fdfc
mov edi, 0xfffff400
xor eax, eax
lea ebx, [ebp - 0x824]
mov dword [ebp - 0x24], ecx
jmp 0x40fdb8
add ebx, 8
add edi, 0xc
je 0x40fd80
mov esi, dword [ebx]
test esi, esi
je 0x40fdb0
cmp dword [ebp + edi - 0x824], 0
je 0x40fdb0
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebp + edi - 0x81c]
jne 0x40fdb0
mov ecx, dword [ebp + edi - 0x820]
test ecx, ecx
je 0x40fdb0
mov dword [ebx], 0
mov dword [ebp - 0x10], 0xffffffff
call dword [0x64689c]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x40fdb0
mov dword [ebp - 0x10], 0xffffffff
push 2
push dword [ebp - 0x20]
call fcn.00410540
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1418
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.004a7000
jmp 0x40fd48