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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40f0e3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f0df
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x40f110
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
sbb byte [esi + 0x1d], dh
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40f145
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40f151
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40f135
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41aa60
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x41aa73
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41aa6f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x41aaa0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x41aadf
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x41aad5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x41aae1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x41aac5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4068b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068dc
xor eax, eax
test eax, eax
je 0x4068ef
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068ef
xor ecx, ecx
jmp 0x4068f2
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a15
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a5dec], 0
push esi
jne 0x406a4c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a26
mov dword [ecx*4 + 0x7a5de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a21
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a7d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a5de8]
xor eax, esi
inc ecx
dec edx
jne 0x406a5f
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40107c
Capabilities:
Get common file path

Disassembly:
push edi
sub esp, 0x200
mov edi, esp
push 0x7c
push edi
call sub.KERNEL32.dll_GetSystemDirectoryA
lea ecx, [edi + 0x7c]
push ecx
push edi
add edi, eax
mov eax, 0x69636d5c
stosd dword es:[edi], eax
mov eax, 0x337a7471
stosd dword es:[edi], eax
mov eax, 0x6c642e32
stosd dword es:[edi], eax
mov eax, 0x6c
stosd dword es:[edi], eax
call sub.KERNEL32.dll_FindFirstFileA
add esp, 0x200
pop edi
inc eax
jne 0x4010bc
ret
pushal
jmp fcn.00401294

Function at 0x4015d4
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
push ecx
push esi
push ebx
push eax
push esi
call fcn.004014c8
pop ecx
push ecx
call sub.KERNEL32.dll_GetCommandLineA
pop ecx
push ecx
mov esi, 0x1c
push esi
call sub.KERNEL32.dll_Sleep
pop ecx
pop ebp
ret 0x10

Function at 0x4016f0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
lea esi, [ecx + 0x140]
push edi
mov ecx, esp
push ecx
push 0x2b
add dword [esp], 0x15
mov edi, 0xfffffe70
push edi
add dword [esp], 0xaec
mov ecx, section..data
push ecx
xor edx, edx
add edx, sym.imp.KERNEL32.dll_VirtualProtect
call dword [edx]
pop edx
mov ecx, 0x403400
mov dword [esi - 0x118], ecx
lea ebx, [ecx + 0x197]
push 0x40251f
pop edi
xor ecx, ecx
inc edi
inc edi
inc edi
inc edi
mov edx, dword [edi - 4]
mov dword [ebx - 0x197], edx
add ebx, 4
xor dword [ebx - 0x19b], 0xe7a32584
sub dword [ebx - 0x19b], 0x4eac6723
add ecx, 4
cmp ecx, 0x55c
jne 0x40173a
mov eax, 0
push eax
call sub.KERNEL32.dll_GlobalFree
pop ebp
ret 0x10
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x6f2038fe
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x5c8e2c4a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4014de
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], 2
mov esi, eax
jne 0x40159b
mov ecx, dword [esi + 4]
cmp word [ecx], 0x2d
jne 0x40159b
and dword [ebp - 4], 0
call fcn.00401b3f
test eax, eax
jne 0x401551
push 0x10
push 0x40102c
push 0x401038
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x1a9
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x40104c
push 0x401018
call fcn.00401ba8
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 4], 0
mov eax, dword [esi + 4]
je 0x40157c
push eax
call dword [sym.imp.ntdll.dll__wcslwr]
pop ecx
mov ecx, eax
call fcn.00401a35
jmp 0x40154a
movzx eax, word [eax + 2]
push eax
call dword [sym.imp.ntdll.dll_towlower]
movzx eax, ax
pop ecx
sub eax, 0x69
je 0x4015bd
sub eax, 0xa
je 0x4015b4
dec eax
sub eax, 1
je 0x4015ad
push 0xa0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push section..text
jmp 0x40153e
call fcn.0040179d
jmp 0x40154a
xor ecx, ecx
call fcn.004015c2
jmp 0x40154a
xor ecx, ecx
inc ecx
jmp 0x4015b6
Function at 0x4015c2
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
push ebx
push esi
push edi
mov esi, 0xf003f
mov dword [ebp - 0xc], ecx
push esi
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
je 0x401787
test edi, edi
je 0x401787
push esi
push 0x401080
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401619
test esi, esi
je 0x401619
mov ebx, 0x431
jmp 0x40177c
push ecx
lea eax, [ebp - 8]
push eax
push ecx
lea ecx, [ebp - 0x640]
call fcn.0040146c
add esp, 0xc
test eax, eax
je 0x401775
mov eax, dword [ebp - 8]
xor ecx, ecx
mov esi, dword [sym.imp.ntdll.dll_wcscpy_s]
mov edi, 0x104
mov word [eax], cx
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x438]
push edi
push eax
call esi
push 0x40109c
push edi
mov edi, dword [sym.imp.ntdll.dll_wcscat_s]
lea eax, [ebp - 0x438]
push eax
call edi
lea ecx, [ebp - 0x438]
call fcn.00401998
push 0x4010b8
lea eax, [ebp - 0x230]
push 0x104
push eax
call esi
lea eax, [ebp - 0x640]
mov esi, 0x104
push eax
lea eax, [ebp - 0x230]
push esi
push eax
call edi
push 0x4010bc
lea eax, [ebp - 0x230]
push esi
push eax
call edi
add esp, 0x3c
mov edi, dword [ebp - 4]
xor eax, eax
push eax
push eax
push eax
push eax
push 0x4010d8
lea eax, [ebp - 0x230]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x4010e4
push 0x401080
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401762
test esi, esi
je 0x401762
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x40110c
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x40171b
push 0x401134
push 0x401078
call fcn.00401ba8
pop ecx
pop ecx
mov ebx, eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x401731
push 0x40114c
jmp 0x401767
cmp dword [ebp - 0xc], 0
je 0x401775
push 4
pop edx
mov ecx, esi
call fcn.004018df
mov ebx, eax
test ebx, ebx
jne 0x401775
lea eax, [ebp - 0x28]
push eax
push 0x80
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x401775
push 0x40115c
jmp 0x401767
push 0x4010fc
push 0x401078
call fcn.00401ba8
pop ecx
pop ecx
mov ebx, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x401798
push 0x401068
push 0x401078
call fcn.00401ba8
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40179d
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push esi
push 9
push 0x40131c
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push eax
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0x401184
mov ecx, 0x40119c
call fcn.00401973
test eax, eax
jne 0x4017e1
mov edx, 0x4011b0
xor ecx, ecx
call fcn.00401973
mov edi, 0xf003f
push edi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4018bf
test ebx, ebx
je 0x4018bf
push edi
push 0x401080
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4018a3
test edi, edi
je 0x4018a3
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x401842
push 0x4011d4
push 0x4011bc
call fcn.00401ba8
pop ecx
pop ecx
cmp dword [ebp - 0x18], 4
jne 0x40186a
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40186a
push 0x4011e8
push 0x4011bc
call fcn.00401ba8
pop ecx
pop ecx
cmp dword [ebp - 0x18], 1
je 0x40187c
xor edx, edx
mov ecx, edi
inc edx
call fcn.004018df
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40189a
push 0x40120c
push 0x4011bc
call fcn.00401ba8
pop ecx
pop ecx
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4018b6
push 0x4011c8
push 0x4011bc
call fcn.00401ba8
pop ecx
pop ecx
mov esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4018d8
push 0x4011ba
push 0x401068
push 0x4011bc
call fcn.00401ba8
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4018df
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ebx, eax
add ebx, 0xea60
adc edx, edi
mov dword [ebp - 8], edx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x401926
push 0x4011d4
push 0x40121c
call fcn.00401ba8
pop ecx
pop ecx
jmp 0x40192b
cmp dword [ebp - 0x20], esi
je 0x40196c
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp edx, dword [ebp - 8]
jb 0x401902
ja 0x401947
cmp eax, ebx
jb 0x401902
cmp dword [ebp - 0x20], esi
je 0x40196c
push 0x102
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0x40122c
push 0x40121c
call fcn.00401ba8
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a35
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push ebx
push esi
push ecx
lea eax, [ebp - 8]
mov esi, ecx
push eax
push ecx
xor ebx, ebx
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], ebx
call fcn.0040146c
add esp, 0xc
test eax, eax
je 0x401b38
push edi
xor eax, eax
mov dword [ebp - 0x5c], 0x44
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
push 0x40
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
push eax
call sub.ntdll.dll_memset
mov eax, dword [ebp - 8]
xor ecx, ecx
push esi
mov word [eax - 2], cx
lea eax, [ebp - 0x264]
push eax
push 0x401274
lea eax, [ebp - 0x46c]
push 0x104
push eax
call dword [sym.imp.ntdll.dll_swprintf_s]
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x264]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x46c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
jne 0x401aee
lea eax, [ebp - 0x46c]
push eax
push 0x4012a8
push 0x4012bc
call fcn.00401ba8
add esp, 0xc
jmp 0x401b3b
push 0x7530
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
test eax, eax
je 0x401b1b
cmp eax, 0xffffffff
jne 0x401b28
push 0x4012c8
push 0x4012bc
call fcn.00401ba8
pop ecx
pop ecx
jmp 0x401b3b
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x401ba8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
mov esi, eax
mov ebx, 0x400
lea eax, [ebp - 4]
push eax
push ebx
push esi
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp dword [ebp - 4], edi
je 0x401c32
push dword [ebp - 4]
lea eax, [ebp - 0x204]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x4012f4
push 0x200
push eax
call dword [sym.imp.ntdll.dll_sprintf_s]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x604]
push ebx
push eax
call dword [sym.imp.ntdll.dll_vsprintf_s]
add esp, 0x2c
lea eax, [ebp - 0x604]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop 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 0x408290
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push ebx
push edx
sub esi, esi
add esi, 0x30
mov ebx, dword fs:[esi]
push ecx
mov ecx, dword [ebx + 8]
dec ebx
Function at 0x1001a653
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001d3ac
push ebx
push esi
call fcn.1001d2d8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d26c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d359
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d3ab
push edi
push eax
call fcn.1001e2ca
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d379
call fcn.1001bdb4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d3aa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d26c
add esp, 0x20
test eax, eax
jne 0x1001d398
push edi
call fcn.1001bdb4
jmp 0x1001d3a0
push ebx
call fcn.1001bdb4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001d619
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cc8
push 0x10025cc0
push str.FlsAlloc
push 0x1f
call fcn.1001d535
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d64d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024150]
call esi
jmp 0x1001d653
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d697
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cd8
push 0x10025cd0
push str.FlsGetValue
push 0x21
call fcn.1001d535
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d6ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001d6d6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025ce0
push 0x10025cd8
push str.FlsSetValue
push 0x22
call fcn.1001d535
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d710
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10024150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10022d90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022dbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022dbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x476001
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47602f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47604d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475f6b
jmp 0x47604d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47604d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00475f6b
test edi, edi
mov eax, edi
jne 0x476037
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4c1a7c]
test ecx, ecx
je 0x476100
jmp 0x476000
ret 8

Function at 0x484170
Capabilities:
Encode data using xor

Disassembly:
pop esi
das
mov al, byte [0x910c39bb]
imul ecx, dword [eax + 0xe], 0xa65eee33
dec byte [esi - 0x74f3fd6]
test dword [eax - 0x75d90859], ebp
daa
add eax, esp
sub dword [ebp - 0x31e38c15], ecx
pop esi
invalid