joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40adf4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.0040c4a0
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x40ae53
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.00404e27
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
jmp 0x40ae94
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x40d3d0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.00404eb0
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40ae9a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40aeb8
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040ada7
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x40b09e
Capabilities:
Get file size

Disassembly:
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
je 0x40b0b1
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov dword [esi], ebx
push dword [esp + 0xc]
call fcn.00404457
mov edi, eax
cmp edi, 0xffffffff
pop ecx
je 0x40b0fc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push dword [esi + 4]
mov dword [esi], eax
push eax
push edi
call fcn.00404de9
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40b0f5
mov eax, dword [esi]
cmp dword [eax], 0x66676572
je 0x40b0f5
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
ret 4
Function at 0x40bf5d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [ebp - 4], eax
jbe 0x40c133
lea eax, [esi + 0x18]
mov dword [ebp - 0x30], eax
mov word [eax], bx
lea eax, [esi + 0x218]
mov dword [ebp - 0x1c], eax
mov word [eax], bx
lea eax, [esi + 0x418]
mov dword [ebp - 8], eax
mov word [eax], bx
lea eax, [esi + 0x618]
mov dword [ebp - 0xc], eax
mov word [eax], bx
lea eax, [esi + 0x818]
mov dword [ebp - 0x10], eax
mov word [eax], bx
lea eax, [esi + 0xa18]
mov dword [ebp - 0x18], eax
mov word [eax], bx
lea eax, [esi + 0xc18]
push edi
push dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov word [eax], bx
lea eax, [esi + 0xe18]
mov dword [ebp - 0x28], eax
mov word [eax], bx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push edi
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x40dbc8
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c039
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [esi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c088
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._4.4X_4.4X
lea eax, [ebp - 0x58]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
push 0x40d3d0
lea eax, [ebp - 0x58]
push eax
push edi
lea esi, [ebp - 0x258]
call fcn.0040bece
test eax, eax
jne 0x40c098
lea eax, [ebp - 0x58]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
mov esi, dword [ebp - 0x30]
push str.ProductName
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.0040bece
mov esi, dword [ebp - 0x1c]
push str.FileDescription
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.0040bece
mov esi, dword [ebp - 8]
push str.FileVersion
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.0040bece
mov esi, dword [ebp - 0xc]
push str.ProductVersion
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.0040bece
mov esi, dword [ebp - 0x10]
push str.CompanyName
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.0040bece
mov esi, dword [ebp - 0x18]
push str.InternalName
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.0040bece
mov esi, dword [ebp - 0x20]
push str.LegalCopyright
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.0040bece
mov esi, dword [ebp - 0x28]
push str.OriginalFileName
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.0040bece
xor ebx, ebx
push edi
inc ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x40c216
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40d388
call fcn.0040c424
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40c251
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c251
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40c269
cmp eax, 0x20b
je 0x40c256
mov dword [ebp - 0x1c], edi
jmp 0x40c27d
cmp dword [ecx + 0x84], 0xe
jbe 0x40c251
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40c277
cmp dword [ecx + 0x74], 0xe
jbe 0x40c251
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x411610], 0xffffffff
or dword [0x411614], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4102bc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4102b8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41160c], eax
call fcn.004019ef
cmp dword [section..data], edi
jne 0x40c2da
push fcn.004019ef
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040c412
push 0x40d384
push 0x40d380
call sub.msvcrt.dll__initterm
mov eax, dword [0x4102b4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x4102b0]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x40d37c
push 0x40d364
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40c340
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40c3fa
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40c38e
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40c35c
cmp ax, 0x22
jne 0x40c349
cmp word [esi], 0x22
jne 0x40c367
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40c375
cmp ax, 0x20
jbe 0x40c362
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x40c39b
movzx eax, word [ebp - 0x48]
jmp 0x40c39e
cmp word [esi], 0x20
jbe 0x40c367
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40c38e
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x40c3bf
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40c3f4
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040c45d
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40288e
pop dword [ebp - 0x40]
mov eax, 0x28ac9876
sub eax, 0x286c6fe8
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xeb8c523b
sub dword [ebp - 0x50], 0x9d3a0cf0
mov dword [ebp - 0x4c], 0xba74e86a
sub dword [ebp - 0x4c], 0x88419c25
mov dword [ebp - 0x48], 0xc795f07e
add dword [ebp - 0x48], 0x84b653b0
mov dword [ebp - 0x44], 0x37993d2e
add dword [ebp - 0x44], 0xc866c2d2
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xf36bdb9c
add dword [ebp - 0x50], 0x81068dba
mov dword [ebp - 0x4c], 0x21ebf23
sub dword [ebp - 0x4c], 0xc0b25dae
mov dword [ebp - 0x48], 0x7a3eb6f9
add dword [ebp - 0x48], 0xe930b573
mov dword [ebp - 0x44], 0xc02e554b
sub dword [ebp - 0x44], 0xc02e554b
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x36fd2
push 0
call eax
mov ecx, 0x9c2cc506
sub ecx, 0x9c2c7b74
xor edx, edx
add edx, eax
mov ebx, 0x411000
add ebx, dword [ebp - 0x40]
mov esi, 0xdd4d8f3a
mov edi, dword [ebx]
add dword [ebp - 0x34], edx
xor edi, esi
xor dword [ebp - 0x10], 0x101df646
mov dword [edx], edi
xor dword [ebp - 0x38], 0x2180cf38
add edx, 0xd3169447
add edx, 0x2ce96bbd
add ebx, 0xfef9d64d
sub ebx, 0xfef9d649
loop 0x40299c
add eax, 0x1191b
xor ebx, ebx
add ebx, eax
add eax, 0xc9f0ec8b
add eax, 0x360f137a
mov ecx, 0xe7365af4
add ecx, 0x1909a50c
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40942f
pop dword [ebp - 0x38]
mov eax, 0x662317ca
add eax, 0x9a1d7c65
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x269f4cff
add dword [ebp - 0x48], 0x27b2f84c
mov dword [ebp - 0x44], 0x5bd2cdaa
sub dword [ebp - 0x44], 0x299f8165
mov dword [ebp - 0x40], 0x442fd558
sub dword [ebp - 0x40], 0xf7e3912a
mov dword [ebp - 0x3c], 0x405ffb92
add dword [ebp - 0x3c], 0xbfa0046e
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xc486fc7b
sub dword [ebp - 0x48], 0x50149325
mov dword [ebp - 0x44], 0xc6521e1a
add dword [ebp - 0x44], 0x7b1a435b
mov dword [ebp - 0x40], 0xae3a1b5
add dword [ebp - 0x40], 0x588bcab7
mov dword [ebp - 0x3c], 0xcddffe5f
sub dword [ebp - 0x3c], 0xcddffe5f
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x38e02
push 0
call eax
mov ecx, 0x572b05a5
add ecx, 0xa8d53fb4
mov edx, eax
mov edi, 0xa4f6a860
add edi, 0x5b4b07a0
add edi, dword [ebp - 0x38]
mov esi, 0x6bb6017b
add esi, 0xbb5ef669
xor dword [ebp - 0x34], eax
mov ebx, dword [edi]
xor dword [ebp - 0x14], esi
sub ebx, esi
mov dword [edx], ebx
xor dword [ebp - 4], edi
add edx, 0x2aff3a21
add edx, 0xd500c5e3
add edi, 0x55d39938
sub edi, 0x55d39934
loop 0x409547
add eax, 0x10837
mov ebx, eax
add eax, 0x9fe538a0
add eax, 0x601ac765
mov ecx, 0x35127c18
sub ecx, 0x34d27c18
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4065ec
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 0x406610
xor eax, eax
test eax, eax
je 0x406623
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406623
xor ecx, ecx
jmp 0x406626
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 0x40674f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x406786
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 0x406760
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40675b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b7
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 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x406799
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

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

Disassembly:
push dword [ecx + 0x10]
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
ret

Function at 0x401370
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x401385
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp + 8], 3
cmp ebx, 1
jne 0x4013ff
push esi
push ebx
push ebx
push esi
mov dword [ebp + 8], 0x40000003
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4013cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_create_event:__d_n
call fcn.004cf547
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.004cf48e
mov esi, eax
add esp, 4
test esi, esi
je 0x4013eb
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
jmp 0x4013ed
xor esi, esi
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x10], ebx
mov ebx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0xc
push eax
push 1
push str.D:_A_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGWGX___AU__A_OICI_GA___BA_S:_ML__NW___ME_
mov dword [ebp - 4], 0
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
push 0
call fcn.004c7a40
add esp, 4
lea ecx, [ebp - 0xc]
xor edx, edx
cmp eax, 8
cmovle ecx, edx
push ecx
push 0x1388
push 0x200
push 0x200
push 0xff
push edx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x401479
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateNamedPipe_failed_with__d._n
call fcn.004cf547
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0x428
call fcn.004cf48e
add esp, 4
test eax, eax
je 0x4013c4
push esi
push ebx
push edi
push dword [ebp + 8]
mov ecx, eax
call fcn.00401250
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4015b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
push 0x200
push 0
lea edi, [esi + 0x18]
push edi
call fcn.004cf600
add esp, 0xc
cmp dword [esi + 4], 1
jne 0x4015f2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4015f2
push eax
push dword [esi + 0x10]
mov ecx, 0x200
cmp dword [ebp + 8], ecx
cmovbe ecx, dword [ebp + 8]
push ecx
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
pop edi
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x401600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40160e
pop ebp
ret 8
push 0
lea edx, [ebp + 8]
mov dword [ebp + 8], 0
push edx
push dword [ebp + 0xc]
push eax
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
pop ebp
ret 8
Function at 0x401920
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x401958
cmp dword [esi + 0x10], 0
jne 0x401958
push 0
push 0
push esi
push 0x401810
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
mov eax, 1
setne cl
mov dword [esi + 0x10], ecx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x402650
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x40268e
cmp dword [esi + 8], 0
jne 0x40268e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push esi
push 0x402470
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
setne cl
mov dword [esi + 8], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4097f0
Capabilities:
Link many functions at runtime

Disassembly:
push edi
push 0x50f884
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
jne 0x409812
mov dword [edi + 4], eax
mov ecx, edi
call fcn.00409c20
xor eax, eax
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SynCR_Init
push eax
call esi
push str.SynCR_SetParam
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.SynCR_GetParam
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.SynCR_Recog
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.SynCR_CleanUp
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 8]
pop esi
test eax, eax
je 0x409861
call eax
mov dword [edi + 4], eax
cmp dword [edi + 8], 0
je 0x409807
cmp dword [edi + 0xc], 0
je 0x409807
cmp dword [edi + 0x10], 0
je 0x409807
cmp dword [edi + 0x14], 0
je 0x409807
cmp dword [edi + 0x18], 0
je 0x409807
cmp dword [edi + 4], 0
je 0x409807
mov eax, 1
pop edi
ret

Function at 0x40aad0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10000
call fcn.004d12b0
push esi
push 0x7fff
lea eax, [ebp - 0x10000]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
cmp esi, 0x7fff
jbe 0x40ab04
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40aafd
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10000]
push eax
push ecx
push eax
push dword [ebp + 0xc]
call fcn.004d0f3e
add esp, 0x10
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40dce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40dcf5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40dd34
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40dd30
lea ebx, [ebx]
cmp esi, edx
jae 0x40dd34
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40dd20
cmp esi, edx
jb 0x40dd39
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40f0d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507d0a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.004ce89f
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x40f168
lea eax, [ebp + 8]
mov dword [ebp + 8], str.bad_locale_name
push eax
lea ecx, [ebp - 0x1c]
call fcn.004d24ed
push 0x5582dc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
push eax
call fcn.004d0374
push eax
push esi
call fcn.004ceda4
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40f480
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507d76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CFPSoundZone.0
mov dword [esi + 4], vtable.CFPSoundZone.1.0
cmp dword [0x656b74], 0
mov dword [ebp - 4], 1
je 0x40f51b
mov ecx, 0x658670
call fcn.0040fcb0
test eax, eax
jne 0x40f51b
push dword [0x656b80]
call fcn.004d0e0a
push dword [0x656b7c]
mov dword [0x656b80], 0
call fcn.004d0e0a
add esp, 8
mov dword [0x656b7c], 0
push 0
push dword [0x656b74]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x656b74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x656b74], 0
lea eax, [esi + 0x1d0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.0049d9b0
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret