joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016b0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401723
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.CreateFile_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x40184b
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x401761
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.GetFileSize_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x40184b
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x401794
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.malloc_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x40184b
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4017e4
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.ReadFile_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x40184b
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._WriteFile_20
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401834
call sym._GetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.WriteFile_failed_with_error__d._n
call sym._printf
mov eax, 0
jmp 0x40184b
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
call eax
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualFree_12
sub esp, 0xc
nop
leave
ret
Function at 0x401b30
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x154]
mov dword [esp], eax
call sym._memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x164]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x154], 0x44
lea eax, [ebp - 0x164]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x154]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
mov eax, dword [ebp - 0x164]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._SetFilePointer_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._SetEndOfFile_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x714412c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x7144131b
cmp byte [esi + ebx - 1], 0xa
je 0x714412ef
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x7144f0c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x1028f1a2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1028f1e1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1028f1e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1028f1e1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1028f1e1
cmp dword [ecx + 0x74], 0xe
jbe 0x1028f1e1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x102922c1
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 0x1029235e
push ebx
push esi
call fcn.1029228a
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.1029221e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1029230b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1029235d
push edi
push eax
call fcn.1028fcb7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1029232b
call fcn.1028fc7d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1029235c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1029221e
add esp, 0x20
test eax, eax
jne 0x1029234a
push edi
call fcn.1028fc7d
jmp 0x10292352
push ebx
call fcn.1028fc7d
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 0x102925cb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1029a598
push 0x1029a590
push str.FlsAlloc
push 0x1f
call fcn.102924e7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x102925ff
push dword [ebp + 8]
mov ecx, esi
call dword [0x1029813c]
call esi
jmp 0x10292605
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10292649
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1029a5a8
push 0x1029a5a0
push str.FlsGetValue
push 0x21
call fcn.102924e7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10292680
push dword [ebp + 8]
mov ecx, esi
call dword [0x1029813c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10292688
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1029a5b0
push 0x1029a5a8
push str.FlsSetValue
push 0x22
call fcn.102924e7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x102926c2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1029813c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10297730
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1029775d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1029775d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x426c80
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x80000001
call dword [0x45601c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x426ced
mov edx, dword [ebp + 8]
push edx
call fcn.0044e290
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.FyStore
mov ecx, dword [ebp - 4]
push ecx
call dword [0x456018]
mov edx, dword [ebp - 4]
push edx
call dword [0x456028]
push str.FyStore_is_registered_success_____n
call fcn.0043ac80
add esp, 4
jmp 0x426cfa
push str.FyStore_is_registered_failure_____n
call fcn.0043ac80
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40b850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x40b879
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40b88f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b886
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x40b8c2
nop
cmp esi, ecx
jae 0x40b886
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x40b8b0
cmp esi, ecx
jae 0x40b886
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40b970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.0046c13a
mov ebx, eax
test ebx, ebx
jne 0x40b990
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x40ba63
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ba63
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ba63
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x40b9f4
cmp esi, ecx
jae 0x40ba63
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x40b9e2
cmp esi, ecx
jae 0x40ba63
movzx eax, word [esi]
test ax, ax
je 0x40ba63
mov ebx, dword [ebp - 4]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40ba2a
push edi
mov ecx, ebx
call fcn.0040bed0
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x40ba2d
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.005d80bc
push eax
call fcn.0040b8e0
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x40ba6e
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
pop esi
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0040bfb0
int3

Function at 0x40cbe0
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.00476d14
Function at 0x410042
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov ecx, dword [edi + 0x10]
sub ecx, dword [ebp - 0x78]
mov edx, dword [edi + 0x14]
sbb edx, dword [ebp - 0x74]
call fcn.005f6ec0
mulsd xmm0, qword [ebp - 0x80]
cvttsd2si eax, xmm0
add eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x2c]
jge 0x41004f
mov edi, dword [edi + 0x20]
jg 0x410066
test edi, edi
jne 0x410021
jmp 0x410132
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
push 1
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov byte [ebp - 4], 2
lea edi, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x4100b4
push ecx
invalid
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4100a5
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4100a5
push edx
call fcn.0040b710
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41009d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
jmp 0x4100b4
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040bb80
mov esi, dword [ebp - 0x24]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4100d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x410132
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x410132
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esi - 0xc]
mov edi, eax
push esi
inc ecx
push ecx
push edi
call fcn.005d8bc3
add esp, 0xc
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x41012c
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x410132
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x41014d
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x41014d
mov eax, dword [ecx]
push edx
call dword [eax + 0x28]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x410169
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005cf250
mov esp, ebp
pop ebp
ret
Function at 0x41ffa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x68f014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, 0x280
push edi
mov edi, ecx
cmp dx, ax
ja 0x420177
cmp dword [edi + 0x7548], 0xffffffff
je 0x420177
movzx eax, byte [ebp + 8]
mov ecx, 0xe1
shl ax, 8
or ax, cx
mov word [ebp - 0x50c], ax
mov eax, edx
and eax, 0xffe0
or eax, 0xe0
mov word [ebp - 0x50a], ax
mov eax, edx
shl eax, 8
or eax, 0xe0
push ebx
push esi
mov word [ebp - 0x508], ax
xor eax, eax
movzx esi, dx
test esi, esi
je 0x4200d2
cmp esi, 0x20
jb 0x4200d2
mov edx, dword [ebp + 0x10]
lea ebx, [ebp - 0x506]
lea ecx, [edx - 1]
add ecx, esi
cmp ebx, ecx
lea ebx, [ebp + esi*2 - 0x508]
ja 0x420048
cmp ebx, edx
jae 0x4200d5
movaps xmm3, xmmword [0x665be0]
mov ebx, 8
mov ecx, esi
and ecx, 0xffffffe0
movd xmm2, ebx
nop dword [eax]
movq xmm1, qword [edx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
psllw xmm1, xmm2
por xmm1, xmm3
movups xmmword [ebp + eax*2 - 0x506], xmm1
movq xmm1, qword [edx + 8]
punpcklbw xmm1, xmm0
psllw xmm1, xmm2
por xmm1, xmm3
movups xmmword [ebp + eax*2 - 0x4f6], xmm1
movq xmm1, qword [edx + 0x10]
punpcklbw xmm1, xmm0
psllw xmm1, xmm2
por xmm1, xmm3
movups xmmword [ebp + eax*2 - 0x4e6], xmm1
movq xmm1, qword [edx + 0x18]
add edx, 0x20
punpcklbw xmm1, xmm0
psllw xmm1, xmm2
por xmm1, xmm3
movups xmmword [ebp + eax*2 - 0x4d6], xmm1
add eax, 0x20
cmp eax, ecx
jl 0x420060
jmp 0x4200d5
mov edx, dword [ebp + 0x10]
cmp eax, esi
jge 0x4200f8
sub edx, eax
mov ebx, 0xe0
movzx ecx, byte [edx + eax]
shl cx, 8
or cx, bx
mov word [ebp + eax*2 - 0x506], cx
inc eax
cmp eax, esi
jl 0x4200e0
mov eax, dword [edi + 0x754c]
xorps xmm0, xmm0
mov dword [ebp - 0x514], 0
push eax
movups xmmword [ebp - 0x524], xmm0
mov dword [ebp - 0x514], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x510]
push eax
lea eax, [esi*2 + 6]
push eax
lea eax, [ebp - 0x50c]
push eax
push dword [edi + 0x7548]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
test eax, eax
jne 0x420177
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x420177
push 1
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x524]
push eax
push dword [edi + 0x7548]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005cf250
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f9518
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x68f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
call fcn.004695f7
mov dword [ebp - 4], 0
mov dword [esi], vtable.CMemCacheDC.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], vtable.CBitmap.0
mov byte [ebp - 4], 1
lea ebx, [esi + 0x20]
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 4], 0
mov ecx, edi
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], 0
cmp dword [edi + 0xc], eax
push ebx
sete al
mov dword [esi + 0x30], eax
mov eax, dword [edi]
call dword [eax + 0x50]
cmp dword [esi + 0x30], 0
je 0x4234c6
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00469fcf
push 2
push ebx
push dword [edi + 8]
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [ebx + 0xc]
sub ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esi + 0x10]
call fcn.0046a011
lea eax, [esi + 0x10]
test eax, eax
je 0x42344f
mov eax, dword [eax + 4]
push eax
push dword [esi + 4]
call fcn.0046a6ba
mov dword [esi + 0x18], eax
push dword [edi + 8]
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, esi
call fcn.0046a868
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
push dword [ebp - 0x14]
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x48]
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
push dword [ebp - 0x14]
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x40]
push 2
push ebx
push dword [edi + 8]
call dword [sym.imp.GDI32.dll_DPtoLP]
push dword [esi + 0x24]
lea eax, [ebp - 0x20]
mov ecx, esi
push dword [ebx]
push eax
call fcn.0046aa99
jmp 0x4234d8
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
push dword [edi + 8]
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push ebx
mov ecx, esi
call fcn.0048fee0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x427ab0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f998d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x68f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x24], 0
jne 0x427b7a
mov dword [ebp - 0x18], vtable.CRBFile.0
mov dword [ebp - 0x14], vtable.CRBFile.1.0
mov dword [ebp - 4], 0
push 0x647ad8
push dword [ebx + 0x1c]
call fcn.005d4100
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
test esi, esi
je 0x427b7a
push esi
call fcn.005e4543
push 2
push 0
push esi
mov edi, eax
call fcn.005e491b
push esi
call fcn.005e4543
push 0
push edi
mov edi, dword [ebp - 0x10]
mov esi, eax
push edi
call fcn.005e491b
push esi
mov dword [ebx + 0x28], esi
call fcn.00469540
push edi
push dword [ebx + 0x28]
mov dword [ebx + 0x24], eax
push 1
push eax
call fcn.005e4cac
add esp, 0x34
cmp eax, dword [ebx + 0x28]
je 0x427b71
push dword [ebx + 0x24]
call fcn.0046953b
add esp, 4
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
push edi
call fcn.005d7dbb
add esp, 4
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4281b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6f20
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x68f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4281f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp + 8], 1
mov dword [esi], vtable.CRBProperty.0
je 0x428207
push 0x34
push esi
call fcn.005cf25e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42a060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f9ae5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x68f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], vtable.CRBFile.0
mov dword [ebp - 0x68], vtable.CRBFile.1.0
push 0x65c52c
push ecx
mov dword [ebp - 4], 0
call fcn.005d4100
mov ebx, eax
add esp, 8
mov dword [ebp - 0x64], ebx
test ebx, ebx
jne 0x42a0bf
or eax, 0xffffffff
jmp 0x42a1c5
push ebx
call fcn.005e4543
push 2
push 0
push ebx
mov esi, eax
call fcn.005e491b
push ebx
call fcn.005e4543
push 0
push esi
push ebx
mov edi, eax
call fcn.005e491b
push edi
call fcn.00469540
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.005e4cac
push ebx
call fcn.005d7dbb
add esp, 0x38
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x5c]
push edi
push esi
call fcn.0044d9f0
push esi
mov byte [ebp - 4], 1
call fcn.0046953b
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
add esp, 4
test eax, eax
cmovne ecx, eax
xor ebx, ebx
mov dword [ebp - 0x60], ecx
nop dword [eax + eax]
mov ecx, dword [ebx + 0x648434]
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x42a19a
push str.Failed_to_load_CAM_simulation_property_set
push 3
call fcn.0040cb80
mov edx, dword [ebp - 0x60]
add esp, 8
xor eax, eax
xor edi, edi
movzx esi, word [edx]
test si, si
je 0x42a1a4
cmp si, 0x7b
jne 0x42a171
inc eax
mov edi, 1
jmp 0x42a180
cmp si, 0x7d
jne 0x42a180
test eax, eax
je 0x42a1a4
sub eax, 1
je 0x42a190
add edx, 2
mov dword [ebp - 0x60], edx
movzx ecx, word [edx]
mov esi, ecx
test cx, cx
jne 0x42a163
test edi, edi
je 0x42a1a4
cmp word [edx], 0
je 0x42a1a4
add ebx, 4
cmp ebx, 0x2c
jb 0x42a130
jmp 0x42a1b3
push str.Giving_up_on_simulation_configuration_file.
push 3
call fcn.0040cb80
add esp, 8
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x42a1c3
push ecx
call fcn.0046953b
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005cf250
mov esp, ebp
pop ebp
ret