joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ebx
push ebx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ebx, [ebp - 0x210]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 8]
lea eax, [ebx - 3]
pop ebx
pop esi
pop ebp
ret

Function at 0x401692
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
jmp loc.00465000
Function at 0x402370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov edi, dword [ebp + 8]
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x40239e
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402396
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x402396
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov eax, dword [ebp + 0xc]
add edi, eax
and esi, 0xf
jbe 0x40240b
nop
cmp eax, edi
jae 0x402396
mov ecx, eax
shr ecx, 3
mov dl, byte [ecx + 0x30000000]
test dl, dl
je 0x4023fa
mov cl, al
and cl, 7
inc cl
cmp cl, dl
jl 0x4023fa
push eax
call sym.Install.dat___asan_report_load2
mov eax, dword [ebp + 0xc]
add esp, 4
movzx ecx, word [eax]
lea eax, [eax + ecx*2]
add eax, 2
mov dword [ebp + 0xc], eax
sub esi, 1
jne 0x4023d0
cmp eax, edi
jae 0x402396
mov ecx, eax
shr ecx, 3
mov dl, byte [ecx + 0x30000000]
test dl, dl
je 0x402435
mov cl, al
and cl, 7
inc cl
cmp cl, dl
jl 0x402435
push eax
call sym.Install.dat___asan_report_load2
mov eax, dword [ebp + 0xc]
add esp, 4
xor ecx, ecx
cmp word [eax], cx
pop edi
cmove eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov edi, dword [ebp + 8]
shr eax, 4
inc eax
mov dword [ebp - 4], ecx
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x402610
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402610
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x402610
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov eax, dword [ebp + 0xc]
add edi, eax
and esi, 0xf
jbe 0x402534
cmp eax, edi
jae 0x402610
mov ecx, eax
shr ecx, 3
mov dl, byte [ecx + 0x30000000]
test dl, dl
je 0x402523
mov cl, al
and cl, 7
inc cl
cmp cl, dl
jl 0x402523
push eax
call sym.Install.dat___asan_report_load2
mov eax, dword [ebp + 0xc]
add esp, 4
movzx ecx, word [eax]
lea eax, [eax + ecx*2]
add eax, 2
mov dword [ebp + 0xc], eax
sub esi, 1
jne 0x4024f5
cmp eax, edi
jae 0x402610
mov ecx, eax
shr ecx, 3
mov dl, byte [ecx + 0x30000000]
test dl, dl
je 0x402562
mov cl, al
and cl, 7
inc cl
cmp cl, dl
jl 0x402562
push eax
call sym.Install.dat___asan_report_load2
mov eax, dword [ebp + 0xc]
add esp, 4
cmp word [eax], 0
je 0x402610
mov ecx, eax
shr ecx, 3
mov dl, byte [ecx + 0x30000000]
test dl, dl
je 0x402592
mov cl, al
and cl, 7
inc cl
cmp cl, dl
jl 0x402592
push eax
call sym.Install.dat___asan_report_load2
mov eax, dword [ebp + 0xc]
add esp, 4
movzx ecx, word [eax]
lea edi, [eax + 2]
push 0
push 0
push 0
push 0
push ecx
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 4]
mov esi, eax
push esi
call fcn.00403340
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
shr ecx, 3
mov dl, byte [ecx + 0x30000000]
test dl, dl
je 0x4025e3
mov cl, al
and cl, 7
inc cl
cmp cl, dl
jl 0x4025e3
push eax
call sym.Install.dat___asan_report_load2
mov eax, dword [ebp + 0xc]
add esp, 4
movzx eax, word [eax]
push 0
push 0
push esi
push dword [ebp + 8]
push eax
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 4]
push esi
call fcn.00403460
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x406cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0045610a
Function at 0x413620
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [ebp - 0x3c]
mov edi, dword [ebp + 0xc]
dec edx
dec edi
not edx
add edi, dword [ebp + 8]
mov esi, edx
and esi, dword [ebp + 8]
and edi, edx
cmp esi, edi
ja 0x413682
nop word [eax + eax]
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push esi
call sym.Install.dat___sanitizer_virtual_query
add esp, 0xc
cmp eax, 0x1c
jne 0x41368a
mov eax, dword [ebp - 8]
test eax, eax
je 0x41368a
cmp eax, 1
je 0x41368a
cmp eax, 0x10
je 0x41368a
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41368a
add esi, eax
cmp esi, edi
jbe 0x413650
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4138a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x28], 0
setne al
ret
Function at 0x41b040
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x6b4888]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x5a4d
mov eax, dword [edi + 0x3c]
add eax, edi
cmp word [edi], cx
jne 0x41b119
cmp dword [eax], 0x4550
jne 0x41b119
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jb 0x41b119
mov ecx, dword [eax + 0x7c]
mov dword [ebp - 0x114], ecx
test ecx, ecx
je 0x41b119
mov esi, dword [eax + 0x78]
xor ebx, ebx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x108], ebx
mov ecx, dword [esi + edi + 0x1c]
mov eax, dword [esi + edi + 0x20]
add ecx, edi
mov edx, dword [esi + edi + 0x24]
add eax, edi
mov esi, dword [esi + edi + 0x18]
add edx, edi
mov dword [ebp - 0x10c], esi
test esi, esi
je 0x41b119
nop dword [eax]
mov esi, dword [eax + ebx*4]
add esi, edi
mov edi, dword [ebp + 0xc]
mov bl, byte [edi]
cmp bl, byte [esi]
jne 0x41b0f8
test bl, bl
je 0x41b0f4
mov bl, byte [edi + 1]
cmp bl, byte [esi + 1]
jne 0x41b0f8
add edi, 2
add esi, 2
test bl, bl
jne 0x41b0d8
xor esi, esi
jmp 0x41b0fd
sbb esi, esi
or esi, 1
test esi, esi
je 0x41b12c
mov ebx, dword [ebp - 0x108]
mov edi, dword [ebp + 8]
inc ebx
mov dword [ebp - 0x108], ebx
cmp ebx, dword [ebp - 0x10c]
jb 0x41b0d0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00590271
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov esi, dword [ebp + 8]
movzx eax, word [edx + eax*2]
mov edx, dword [ebp - 0x110]
mov ecx, dword [ecx + eax*4]
add esi, ecx
cmp ecx, edx
jb 0x41b1ea
mov eax, dword [ebp - 0x114]
add eax, edx
cmp ecx, eax
jae 0x41b1ea
push esi
call fcn.0041b760
mov edi, eax
add esp, 4
cmp edi, 0xff
jb 0x41b174
call fcn.0041af40
push edi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0041b6f0
add esp, 0xc
cmp edi, 0x100
jae 0x41b1fd
lea eax, [ebp - 0x104]
mov byte [ebp + edi - 0x104], 0
push 0x2e
push eax
call fcn.0041b740
mov esi, eax
add esp, 8
test esi, esi
jne 0x41b1b1
call fcn.0041af40
lea eax, [ebp - 0x104]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x41b1cc
call fcn.0041af40
lea eax, [esi + 1]
push eax
push edi
call fcn.0041b040
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00590271
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00590271
mov esp, ebp
pop ebp
ret
call fcn.00590557
int3
Function at 0x43f070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00590370
mov eax, dword [0x6b4888]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2008], 0
push 0x2000
push eax
call fcn.00416dc0
lea eax, [ebp - 0x2004]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f0b2
push 0
lea ecx, [ebp - 0x2008]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [0x10e4d24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43f0ea
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00590271
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push str.__fSuccess______0_
push 0x11d
push str.D:_a_work1_s_src_vctools_asanllvmcompiler_rtlib_asan_asan_coe_win.cpp
call fcn.004123d0
int3

Function at 0x43f110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00590370
mov eax, dword [0x6b4888]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2008], 0
push 0x2000
push eax
call fcn.00416dc0
lea eax, [ebp - 0x2004]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f155
push 0
lea ecx, [ebp - 0x2008]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [0x10e4d24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43f18d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00590271
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push str.__fSuccess______0_
push 0x11d
push str.D:_a_work1_s_src_vctools_asanllvmcompiler_rtlib_asan_asan_coe_win.cpp
call fcn.004123d0
int3

Function at 0x43f1b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00590370
mov eax, dword [0x6b4888]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2008], 0
push edx
push 0x2000
push eax
call fcn.00416dc0
lea eax, [ebp - 0x2004]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f200
push 0
lea ecx, [ebp - 0x2008]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [0x10e4d24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43f238
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00590271
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push str.__fSuccess______0_
push 0x11d
push str.D:_a_work1_s_src_vctools_asanllvmcompiler_rtlib_asan_asan_coe_win.cpp
call fcn.004123d0
int3
Function at 0x43f260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00590370
mov eax, dword [0x6b4888]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2008], 0
push ecx
push 0x2000
push eax
call fcn.00416dc0
lea ecx, [ebp - 0x2004]
add esp, 0x14
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f2b0
push 0
lea eax, [ebp - 0x2008]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x2004]
push eax
push dword [0x10e4d24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43f2e8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00590271
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push str.__fSuccess______0_
push 0x11d
push str.D:_a_work1_s_src_vctools_asanllvmcompiler_rtlib_asan_asan_coe_win.cpp
call fcn.004123d0
int3

Function at 0x43f310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00590370
mov eax, dword [0x6b4888]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2008], 0
push 0x2000
push eax
call fcn.00416dc0
lea eax, [ebp - 0x2004]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f356
push 0
lea ecx, [ebp - 0x2008]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [0x10e4d24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43f38e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00590271
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push str.__fSuccess______0_
push 0x11d
push str.D:_a_work1_s_src_vctools_asanllvmcompiler_rtlib_asan_asan_coe_win.cpp
call fcn.004123d0
int3

Function at 0x43f3b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00590370
mov eax, dword [0x6b4888]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2008], 0
push 0x2000
push eax
call fcn.00416dc0
lea ecx, [ebp - 0x2004]
add esp, 0x14
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43f400
push 0
lea eax, [ebp - 0x2008]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x2004]
push eax
push dword [0x10e4d24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43f438
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00590271
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push str.__fSuccess______0_
push 0x11d
push str.D:_a_work1_s_src_vctools_asanllvmcompiler_rtlib_asan_asan_coe_win.cpp
call fcn.004123d0
int3
Function at 0x43f710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
test esi, esi
je 0x43f7e0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x43f7dd
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push esi
push str._nFailed_to_open_file__ws._Internal_error__x._nTrying_to_default_to_a_newly_created_temp_file.
call fcn.0043f3b0
add esp, 0xc
push esi
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x43f77f
call edi
push eax
push str._nFailed_to_get_temp_directory._No_log_file._Internal_error__x_n
call fcn.0043f110
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
ret
lea eax, [esi + eax*2]
push eax
push 0
push str.Asan_COE
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x43f7ab
call edi
push eax
push str._nFailed_to_get_temp_file_name._Internal_error__x_n
call fcn.0043f110
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
ret
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x43f7dc
call edi
push eax
push esi
push str._nFailed_to_open_temp_file__ws_with_error__x_n
call fcn.0043f3b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
ret
push 0
push 0
push 0
push str.__wszResultsFilePath______0_
push 0x5ee
push str.D:_a_work1_s_src_vctools_asanllvmcompiler_rtlib_asan_asan_coe_win.cpp
call fcn.004123d0
int3
Function at 0x43fa70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
call fcn.00440320
mov esi, dword [0x1213310]
movzx eax, ax
mov dword [ebp - 8], eax
mov eax, dword [0x1213308]
mov dword [ebp + 8], eax
cmp eax, 3
ja 0x43fb93
test eax, eax
jle 0x43fb3f
xorps xmm3, xmm3
xorps xmm2, xmm2
mov ebx, 0x121330c
push edi
mov edx, dword [ebx + 4]
xor eax, eax
test edx, edx
je 0x43fb10
cmp edx, 8
jb 0x43faf6
mov edi, dword [ebx]
mov ecx, edx
movaps xmm1, xmmword [0x5da8c0]
and ecx, 0xfffffff8
movups xmm0, xmmword [edi + eax*4]
psubd xmm0, xmm1
pxor xmm3, xmm0
movups xmm0, xmmword [edi + eax*4 + 0x10]
add eax, 8
psubd xmm0, xmm1
pxor xmm2, xmm0
cmp eax, ecx
jb 0x43fad2
cmp eax, edx
jae 0x43fb10
mov edi, dword [ebx]
nop dword [eax + eax]
mov ecx, dword [edi + eax*4]
inc eax
sub ecx, 0x61c88647
xor esi, ecx
cmp eax, edx
jb 0x43fb00
add ebx, 0xc
sub dword [ebp + 8], 1
jne 0x43fab6
mov ebx, dword [ebp - 4]
pxor xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
pxor xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
pxor xmm2, xmm0
movd eax, xmm2
pop edi
xor esi, eax
mov eax, dword [ebp - 8]
xor edx, edx
movzx eax, ax
mov ecx, 0x409
div ecx
mov eax, esi
shl eax, 6
add edx, eax
mov eax, esi
shr eax, 2
add edx, 0x9e3779b9
add eax, edx
xor esi, eax
mov eax, 0x7ee2825b
mul esi
shr edx, 9
imul eax, edx, 0x409
sub esi, eax
cmp dword [ebx], 0xffffffff
jne 0x43fbaf
push esi
mov dword [ebx], esi
call fcn.0043fbd0
add esp, 4
test al, al
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0
push str.__num_stacks___0__num_stacks___3______0_
push 0x1f7
push str.D:_a_work1_s_src_vctools_asanllvmcompiler_rtlib_asan_asan_coe_win.cpp
call fcn.004123d0
push 0
push 0
push 0
push 0
push str.__coe_current_error_hash_index__1______0_
push 0x225
push str.D:_a_work1_s_src_vctools_asanllvmcompiler_rtlib_asan_asan_coe_win.cpp
call fcn.004123d0
int3
Function at 0x43fd30
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x6b4888]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x828]
push esi
push eax
push 0x200
lea eax, [ebp - 0x40c]
push eax
push ebx
call sub.KERNEL32.dll_K32EnumProcessModules
cdq
or eax, edx
je 0x43fe83
mov eax, dword [ebp - 0x828]
xor esi, esi
shr eax, 2
mov dword [ebp - 0x82c], eax
test eax, eax
je 0x43fe57
push edi
nop dword [eax]
nop dword [eax + eax]
mov edi, dword [ebp + esi*4 - 0x40c]
lea eax, [ebp - 0x838]
push 0xc
push eax
push edi
push ebx
call sub.KERNEL32.dll_K32GetModuleInformation
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp - 0x834]
push 0x104
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call sub.KERNEL32.dll_K32GetModuleFileNameExW
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x826], ax
test ax, ax
jne 0x43fdd4
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call sub.KERNEL32.dll_K32GetModuleBaseNameW
xor eax, eax
movzx ecx, word [ebp + eax - 0x20c]
lea eax, [eax + 2]
mov word [ebp + eax - 0x61e], cx
test cx, cx
jne 0x43fe01
mov eax, dword [ebp - 0x414]
mov ecx, dword [0x110d2ec]
push 0
push 0
push dword [ebp - 0x410]
cdq
push edx
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x824]
push eax
push 0
push ebx
call ecx
or eax, edx
je 0x43fe67
inc esi
cmp esi, dword [ebp - 0x82c]
jl 0x43fd90
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00590271
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push str.__SymLoadModuleExW_process__0__ret.image_name__ret.module_name___DWORD64_ret.base_address__ret.load_size__0__0_______0_
push 0x443
push str.D:_a_work1_s_src_vctools_asanllvmcompiler_rtlib_asan_asan_coe_win.cpp
call fcn.004123d0
push 0
push 0
push 0
push 0
push str.__K32EnumProcessModules_process__module_handles_0___128__sizeof_HMODULE___cbNeeded_______0_
push 0x450
push str.D:_a_work1_s_src_vctools_asanllvmcompiler_rtlib_asan_asan_coe_win.cpp
call fcn.004123d0
int3

Function at 0x440540
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x44057b
cmp esi, 0x7fe
jb 0x440580
push 0x800
push str.Log_file_name_is_large_than__d_characters._n
call fcn.00416530
push str.No_logfile_created_for_environment_variable_COE_LOG_FILE_n
call fcn.00416530
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret
push esi
push 0x1214f50
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x44059e
mov eax, 0x1214f50
pop esi
pop ebp
ret
push str.Unexpected_failure:_get_COE_LOG_FILE_environment_variable_value
call fcn.00418e00
add esp, 4
call fcn.00412450
int3
Function at 0x440a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
call fcn.0043f660
test al, al
je 0x440a22
pop ebp
jmp fcn.0043ffe0
pop ebp
ret

Function at 0x4492d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x449315
call fcn.004673ad
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x449312
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44935c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x449338
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5cba4c]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x449359
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x5cba4c]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc