joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bcff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x10015f10]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000bd42
cmp word [esi], dx
jne 0x1000bd42
or byte [edi + eax + 0x28], 4
jmp 0x1000bd47
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1000be80
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1000be60
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1000bd89
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000bdbf
cmp eax, edx
jae 0x1000bdcb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1000bd61
jmp 0x1000be80
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000be5c
cmp dword [ebp - 0x14], 0
je 0x1000be5c
mov eax, dword [ebx*4 + 0x10015f10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1000be34
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1000be7a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10015f10]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x10015f10]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10015f10]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1000be7d
pop ebx
cmp word [ebp - 4], bx
jne 0x1000be45
cmp esi, dword [ebp + 0xc]
jne 0x1000be45
mov word [esi], bx
jmp 0x1000be7d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000bb23
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1000be80
push 0xd
jmp 0x1000be79
mov ecx, dword [ebx*4 + 0x10015f10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000be77
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000be80
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000c5f1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000c56d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1000c769
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1000c769
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1000c718
jg 0x1000c64a
test eax, eax
je 0x1000c70e
push 1
push 0x1000
call fcn.10005776
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1000c670
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1000c705
push 0x8000
push ebx
call fcn.1000c49e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1000c69c
jg 0x1000c697
cmp ecx, 0x1000
jb 0x1000c69c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100096dc
add esp, 0x10
cmp eax, 0xffffffff
je 0x1000c6e1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1000c697
jl 0x1000c6c8
test ecx, ecx
jne 0x1000c689
push dword [ebp - 0xc]
push ebx
call fcn.1000c49e
push esi
call fcn.100057d3
add esp, 0xc
xor edi, edi
jmp 0x1000c77a
cmp byte [edi + 0x24], 0
je 0x1000c6f8
cmp dword [edi + 0x20], 5
jne 0x1000c6f8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1000c703
mov edi, dword [edi + 0x18]
jmp 0x1000c705
xor edi, edi
push esi
call fcn.100057d3
pop ecx
jmp 0x1000c77a
test ecx, ecx
jg 0x1000c6da
jl 0x1000c718
test eax, eax
jae 0x1000c6da
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000bb23
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1000c73b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1000c6da
jmp 0x1000c772
push ebx
call fcn.10009ca6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1000c6da
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1000c77a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1000c777
mov edi, dword [edi + 0x18]
jmp 0x1000c77a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1000bb23
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000e800
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e82d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e82d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4063b0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4063ef
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4063ef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4063ef
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4063ef
cmp dword [ecx + 0x74], 0xe
jbe 0x4063ef
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40bf43
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 0x40bfe0
push ebx
push esi
call fcn.0040bf0c
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.0040bea0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40bf8d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bfdf
push edi
push eax
call fcn.0040cb60
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40bfad
call fcn.0040aa01
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40bfde
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040bea0
add esp, 0x20
test eax, eax
jne 0x40bfcc
push edi
call fcn.0040aa01
jmp 0x40bfd4
push ebx
call fcn.0040aa01
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 0x40d2dd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43cc08
push 0x43cc00
push str.FlsAlloc
push 0x1f
call fcn.0040d19c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d311
push dword [ebp + 8]
mov ecx, esi
call dword [0x416174]
call esi
jmp 0x40d317
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d35b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43cc18
push 0x43cc10
push str.FlsGetValue
push 0x21
call fcn.0040d19c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d392
push dword [ebp + 8]
mov ecx, esi
call dword [0x416174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d39a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43cc20
push 0x43cc18
push str.FlsSetValue
push 0x22
call fcn.0040d19c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d3d4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x416174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x412830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41285d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41285d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000194e
Capabilities:
Check if file exists
Get file attributes
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x100019fb
push edi
push esi
call sub.mfc140u.dll_operator_2
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
mov esi, str.C:_buildAgentwork_b687d30c96366458clarityCswControlsCommonAboutWnd.cpp
test eax, eax
jne 0x1000199c
push eax
push str.GetFileVersionInfoW__LPTSTR_szFileName__dwHandle__dwSize__pVer_
push 0x1d
push esi
call sub.cswbasemfc14.dll_Ordinal_1234
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10022a60
push edi
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 8], 0x34
je 0x100019c7
push 0
push str.sizeof_VS_FIXEDFILEINFO___cbSize
push 0x21
push esi
call sub.cswbasemfc14.dll_Ordinal_1234
add esp, 0x10
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push dword [ebp + 0xc]
push str._s:__2i._2i._2i._2i.
push dword [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
push edi
call sub.mfc140u.dll_operator
add esp, 0x20
pop edi
jmp 0x10001a24
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x10001a13
push 0x89e
jmp 0x10001a18
push 0x89f
push dword [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
add esp, 0xc
pop esi
leave
ret
Function at 0x10001fd6
Capabilities:
Get common file path
Query environment variable
Read .ini file

Disassembly:
push 0x38
mov eax, 0x1001eef2
call fcn.1001d218
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], edi
xor ebx, ebx
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov esi, 0x104
mov dword [ebp - 4], ebx
push esi
push esi
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push str.CSW_CONFIG_FOLDER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x10002028
push esi
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__19]
push 0x10022a60
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
test esi, esi
je 0x10002073
push 0x10022a60
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator_1]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_Ordinal_5884]
dec eax
lea ecx, [ebp - 0x3c]
push eax
call dword [sym.imp.mfc140u.dll_Ordinal_1653]
cmp ax, 0x5c
je 0x100020a5
push ebx
push str.sConfigDir_sConfigDir.GetLength_____1___L
push 0x137
push str.C:_buildAgentwork_b687d30c96366458clarityCswControlsCommonAtlToCswApp.cpp
call sub.cswbasemfc14.dll_Ordinal_1234
add esp, 0x10
push str.others.ini
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100016cd
add esp, 0xc
mov ecx, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
push 0x14
lea eax, [ebp - 0x38]
push eax
push 0x10022a64
push str.Language
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, edi
call fcn.1001d1c7
ret
Function at 0x100035ef
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10035280]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100372ac], 0
je 0x10003612
mov al, 1
jmp 0x10003724
cmp byte [0x10035041], 0
je 0x10003722
push str.CSWNETCOM.DLL
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.10002d6a
pop ecx
pop ecx
test eax, eax
je 0x10003722
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10003665
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x100372ac], eax
jmp 0x1000366a
mov eax, dword [0x100372ac]
test eax, eax
je 0x1000371b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NETCOM_GetFreeComs
push eax
call esi
push str.NETCOM_GetComsCount
push dword [0x100372ac]
mov dword [0x100372b0], eax
call esi
push str.NETCOM_SetComAttr
push dword [0x100372ac]
mov dword [0x100372b4], eax
call esi
push str.NETCOM_ComWrite
push dword [0x100372ac]
mov dword [0x100372b8], eax
call esi
push str.NETCOM_ComRead
push dword [0x100372ac]
mov dword [0x100372bc], eax
call esi
push str.NETCOM_ComReadQueue
push dword [0x100372ac]
mov dword [0x100372c0], eax
call esi
cmp dword [0x100372b0], 0
mov dword [0x100372c4], eax
pop esi
je 0x10003716
cmp dword [0x100372b4], 0
je 0x10003716
cmp dword [0x100372b8], 0
je 0x10003716
cmp dword [0x100372bc], 0
je 0x10003716
cmp dword [0x100372c0], 0
je 0x10003716
test eax, eax
jne 0x1000360b
call fcn.10002beb
mov byte [0x10035041], 0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d1a5
leave
ret
Function at 0x10003730
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10035280]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10037284], 0
je 0x10003753
mov al, 1
jmp 0x10003861
cmp byte [0x10035040], 0
je 0x1000385f
push str.CSWNETPAD.DLL
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.10002d6a
pop ecx
pop ecx
test eax, eax
je 0x1000385f
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100037a6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10037284], eax
jmp 0x100037ab
mov eax, dword [0x10037284]
test eax, eax
je 0x10003858
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NETPAD_GetFreeComs
push eax
call esi
push str.NETPAD_GetComsCount
push dword [0x10037284]
mov dword [0x10037288], eax
call esi
push str.NETPAD_SetComAttr
push dword [0x10037284]
mov dword [0x1003728c], eax
call esi
push str.NETPAD_ComWrite
push dword [0x10037284]
mov dword [0x10037290], eax
call esi
push str.NETPAD_ComRead
push dword [0x10037284]
mov dword [0x10037294], eax
call esi
push str.NETPAD_ComReadQueue
push dword [0x10037284]
mov dword [0x10037298], eax
call esi
cmp dword [0x10037288], 0
mov dword [0x1003729c], eax
pop esi
je 0x10003853
cmp dword [0x1003728c], 0
je 0x10003853
cmp dword [0x10037290], 0
je 0x10003853
cmp dword [0x10037294], 0
je 0x10003853
cmp dword [0x10037298], 0
jne 0x1000374c
call fcn.10002c21
mov byte [0x10035040], 0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001d1a5
leave
ret
Function at 0x100040d3
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0x41c
mov eax, 0x1001f1dc
call fcn.1001d218
mov ebx, ecx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x428], ebx
lea ecx, [ebx + 0x2088]
mov dword [ebx], vtable.CGSerial.0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
xor eax, eax
lea edi, [ebx + 0x208c]
mov ecx, edi
mov dword [ebp - 4], eax
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor eax, eax
push eax
push eax
push eax
push eax
mov byte [ebp - 4], 1
mov byte [ebx + 0x10], al
call esi
mov dword [ebx + 8], eax
xor eax, eax
push eax
push eax
push eax
push eax
call esi
mov dword [ebx + 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
call esi
or dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x58], eax
xor eax, eax
push eax
push eax
push eax
push eax
call esi
mov dword [ebx + 0x50], eax
xor eax, eax
push eax
push eax
push eax
push eax
call esi
or dword [ebx + 0x2070], 0xffffffff
mov ecx, edi
or dword [ebx + 0x2078], 0xffffffff
or dword [ebx + 0x2080], 0xffffffff
mov dword [ebx + 0x3c], eax
xor eax, eax
push 0x10024138
mov byte [ebx + 0x206d], al
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x205c], eax
mov dword [ebx + 0x2074], eax
mov dword [ebx + 0x207c], eax
mov byte [ebx + 0x2084], al
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
mov esi, 0x104
mov byte [ebx + 0x2090], 1
push esi
lea eax, [ebp - 0x218]
push eax
push str.CSW_CONFIG_FOLDER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x100041d3
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x102
ja 0x10004208
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x218]
lea esi, [ebx + 0x2088]
push eax
mov ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
mov ecx, esi
call dword [sym.imp.mfc140u.dll_Ordinal_8182]
test al, al
jne 0x10004236
push str.Debug_Logs_
mov ecx, esi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
xor eax, eax
lea ecx, [ebx + 0x14]
push ecx
mov dword [ebx + 0x2060], eax
mov word [ebx + 0x2064], ax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, ebx
call fcn.1001d1c7
ret
Function at 0x1000a0c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x1003ab04]
push 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000a111
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000a111
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1000a111
push 0
push dword [ebp + 8]
push eax
call fcn.1000c13a
add esp, 0xc
push dword [ebp + 8]
push dword [ebp + 8]
call fcn.10009d1c
xor eax, eax
inc eax
jmp 0x1000a113
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x1000a2d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10035280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x50]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push ecx
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp + 0xc]
push eax
call fcn.1000c392
add esp, 0x10
cmp byte [ebp + 0x14], 0
je 0x1000a3b4
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push str.COMCTL32.DLL
call esi
mov edi, eax
test edi, edi
jne 0x1000a333
push 2
push eax
push str.COMCTL32.DLL
call esi
mov edi, eax
test edi, edi
je 0x1000a3b4
push 5
push 0x3ee
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000a3ad
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000a3ad
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.1000c2af
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x1000a3ad
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
call fcn.1000c392
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
add esp, 0x10
push 4
push dword [ebp - 0x58]
push dword [ebx]
call esi
push 8
push dword [ebp - 0x5c]
mov dword [ebx], eax
push dword [ebx + 4]
call esi
push dword [ebp - 0x4c]
mov dword [ebx + 4], eax
push dword [ebp - 0x50]
push eax
jmp 0x1000a3cd
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 4
push dword [ebp - 0x58]
push dword [ebx]
call esi
push 8
push dword [ebp - 0x54]
mov dword [ebx], eax
push dword [ebx + 4]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx + 4], eax
xor ecx, ebp
pop ebx
call fcn.1001d1a5
leave
ret
Function at 0x1000bafc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x10035280]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x1003ab04]
push edi
push 0xf0
push eax
xor edi, edi
mov dword [ebp - 0x214], ecx
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000bc84
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000bc84
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000bc84
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1000bc84
mov ecx, dword [esi + 4]
mov dword [ebp - 0x210], eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x218], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x1000bbf3
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.1000cdd7
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x210]
push 0
push 0x143
movzx eax, ax
push eax
mov eax, dword [ebp - 0x214]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x104]
cmovne ecx, edi
mov edi, ecx
cmp dword [ebp - 0x108], eax
je 0x1000bc72
push dword [ebp - 0x108]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x1000bc72
mov ecx, 0x1234
cmp cx, ax
jne 0x1000bc72
or dword [ebp - 0x238], 0xffffffff
lea eax, [ebp - 0x208]
push 3
push esi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x23c], 1
mov dword [ebp - 0x20c], eax
call fcn.1000cdd7
mov eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x234], eax
cmp eax, ecx
je 0x1000bc46
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp - 0x210]
push 0
push 0x40b
movzx eax, ax
push eax
mov eax, dword [ebp - 0x214]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x1000bc82
add esi, dword [ebp - 0x218]
test edi, edi
jne 0x1000bb5a
jmp 0x1000bc84
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1001d1a5
leave
ret 4