joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a1240
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, eax
call fcn.100a0610
push 0xa0
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
xor ebp, ebp
add esp, 4
cmp esi, ebp
jne 0x100a1273
push 0xa0
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
push 0xa0
push ebp
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esi + 0xc], ebx
mov dword [esi], edi
mov dword [esi + 8], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], 1
mov dword [esi + 0x9c], ebp
mov dword [esi + 0x98], ebp
mov dword [esi + 0x20], 0xa
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x38], eax
mov eax, 0x1000
push esi
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x18]
push str.file_x
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
push esi
push ecx
push 0x100d0160
call sym.tcl85.dll_Tcl_CreateChannel
mov edx, dword [esi + 0x34]
add esp, 0x10
mov dword [esi + 8], eax
mov eax, dword [esi + 0x30]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetupComm]
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
push 0x100d35d4
push edi
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
lea ecx, [esi + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
test bl, 2
je 0x100a1332
push ebp
push ebp
push 1
push ebp
call edi
mov dword [esi + 0x4c], eax
test bl, 4
je 0x100a1382
push ebp
push ebp
push 1
push ebp
call edi
push ebp
push 1
push 1
push ebp
mov dword [esi + 0x60], eax
call edi
push ebp
push ebp
push ebp
push ebp
mov dword [esi + 0x80], eax
call edi
push ebp
push ebp
push ebp
push ebp
mov dword [esi + 0x84], eax
call edi
lea edx, [esp + 0xc]
push edx
push ebp
push esi
push 0x100a10e0
push pe_nt_image_headers32
push ebp
mov dword [esi + 0x88], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 8]
push str.auto
push str._translation
push eax
push ebp
call sym.tcl85.dll_Tcl_SetChannelOption
mov ecx, dword [esi + 8]
push 0x100c76ec
push str._eofchar
push ecx
push ebp
call sym.tcl85.dll_Tcl_SetChannelOption
mov eax, dword [esi + 8]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x100a6fa0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x5f8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x5f4], eax
push ebx
push ebp
push esi
mov esi, edx
mov ebx, ecx
mov eax, esi
push edi
mov dword [esp + 0x10], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a6fc5
sub eax, edx
lea ebp, [eax + esi - 1]
cmp ebp, esi
jbe 0x100a700a
cmp byte [ebp], 0x2f
je 0x100a6fe3
dec ebp
cmp ebp, esi
ja 0x100a6fd6
jmp 0x100a7008
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a6fe8
sub eax, edx
mov ecx, ebp
sub ecx, esi
dec eax
cmp ecx, eax
jne 0x100a7007
push str.last_character_in_lib_cannot_be__
call sym.tcl85.dll_Tcl_Panic
add esp, 4
inc ebp
cmp ebp, esi
jne 0x100a7019
push str.no___character_found_in_lib
call sym.tcl85.dll_Tcl_Panic
add esp, 4
push 0x104
lea edx, [esp + 0x400]
push edx
push 0x100c7d98
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x100a7056
mov byte [esp + 0xf0], al
push 0x104
lea eax, [esp + 0xf4]
push eax
push str.TCL_LIBRARY
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
jmp 0x100a7091
mov ax, word [esp + 0x3fc]
lea esi, [esp + 0xf0]
lea edi, [esp + 0x3fc]
test ax, ax
je 0x100a708e
movzx eax, ax
movzx ecx, ax
push esi
push ecx
call sym.tcl85.dll_Tcl_UniCharToUtf
add edi, 2
add esi, eax
movzx eax, word [edi]
add esp, 8
test ax, ax
jne 0x100a7074
mov byte [esi], 0
cmp byte [esp + 0xf0], 0
je 0x100a71ac
lea edx, [esp + 0xf0]
push 0xffffffffffffffff
push edx
call sym.tcl85.dll_Tcl_NewStringObj
push eax
push ebx
push 0
call sym.tcl85.dll_Tcl_ListObjAppendElement
add esp, 0x14
cmp byte [esp + 0xf0], 0
lea eax, [esp + 0xf0]
je 0x100a70de
jmp 0x100a70d0
cmp byte [eax], 0x5c
jne 0x100a70d8
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x100a70d0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xf8]
push edx
call sym.tcl85.dll_Tcl_SplitPath
mov esi, dword [esp + 0x24]
mov ebx, dword [sym.imp.MSVCR90.dll_free]
mov edi, dword [esp + 0x20]
add esp, 0xc
test esi, esi
jle 0x100a7185
mov eax, dword [edi + esi*4 - 4]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100a7185
mov dword [edi + esi*4 - 4], ebp
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x2c]
push edi
mov ebp, 0xc8
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], ebp
mov byte [esp + 0x34], 0
call sym.tcl85.dll_Tcl_JoinPath
mov ecx, dword [esp + 0x2c]
push ecx
push eax
call sym.tcl85.dll_Tcl_NewStringObj
mov esi, eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x3c]
add esp, 0x14
cmp eax, edx
je 0x100a716a
push eax
call ebx
add esp, 4
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebp
mov byte [esp + 0x28], 0
jmp 0x100a7199
lea ecx, [esp + 0xf0]
push 0xffffffffffffffff
push ecx
call sym.tcl85.dll_Tcl_NewStringObj
add esp, 8
mov esi, eax
mov edx, dword [esp + 0x10]
push esi
push edx
push 0
call sym.tcl85.dll_Tcl_ListObjAppendElement
push edi
call ebx
add esp, 0x10
mov ecx, dword [esp + 0x604]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b1b48
add esp, 0x5f8
ret
Function at 0x100a8930
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2e8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2e4], eax
push ebx
mov ebx, dword [esp + 0x2f0]
push esi
lea esi, [esp + 0xe4]
mov dword [esp + 8], ebx
call fcn.100a8670
test eax, eax
jne 0x100a8978
pop esi
pop ebx
mov ecx, dword [esp + 0x2e4]
xor ecx, esp
call fcn.100b1b48
add esp, 0x2e8
ret
mov ecx, dword [0x100d3a70]
mov edx, dword [ecx + 0x14]
push ebp
push edi
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x104]
push eax
call edx
mov edi, eax
cmp edi, 0xffffffff
je 0x100a8a70
test ebx, ebx
je 0x100a8b02
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push ebx
push 0
call sym.tcl85.dll_Tcl_UtfToExternalDString
mov ecx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x10
mov ebx, ecx
mov esi, eax
test ecx, ecx
jle 0x100a8a0f
cmp byte [esi], 0xa
jne 0x100a8a09
mov ecx, esi
sub ecx, eax
je 0x100a89f1
push 0
lea edx, [esp + 0x18]
push edx
push ecx
push eax
push edi
call ebp
test eax, eax
je 0x100a8a6c
push 0
lea eax, [esp + 0x18]
push eax
push 2
push 0x100c7f6c
push edi
call ebp
test eax, eax
je 0x100a8a6c
lea eax, [esi + 1]
dec ebx
inc esi
test ebx, ebx
jg 0x100a89d6
sub esi, eax
je 0x100a8a23
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
push edi
call ebp
test eax, eax
je 0x100a8a6c
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x100a8a39
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0
push 0
push 0
lea eax, [esp + 0x30]
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0xc8
mov byte [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100a8b02
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x100a8aa7
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x100a8a8a
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea edx, [esp + 0x24]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xc8
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x10c
jb 0x100a8ad5
sub eax, 0x2733
cmp eax, 0x25
jb 0x100a8acc
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0x16
jmp 0x100a8ae4
mov esi, dword [eax*4 + 0x100b3be8]
jmp 0x100a8adc
movzx esi, byte [eax + 0x100b3aa8]
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x100d3a70]
mov edx, dword [ecx + 0x1c]
lea eax, [esp + 0xec]
push eax
call edx
xor eax, eax
jmp 0x100a8b2d
push 8
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100a8b22
push 8
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov dword [esi], 3
mov dword [esi + 4], edi
mov eax, esi
mov ecx, dword [esp + 0x2f4]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.100b1b48
add esp, 0x2e8
ret
Function at 0x100a8bb0
Capabilities:
Create pipe

Disassembly:
sub esp, 8
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x100a8c3e
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_malloc]
push esi
push edi
mov edi, dword [esp + 0xc]
push 8
call ebx
mov esi, eax
add esp, 4
test esi, esi
jne 0x100a8bf4
push 8
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov edx, dword [esp + 0x18]
mov dword [esi], 3
mov dword [esi + 4], edi
mov edi, dword [esp + 0x10]
push 8
mov dword [edx], esi
call ebx
mov esi, eax
add esp, 4
test esi, esi
jne 0x100a8c23
push 8
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], edi
mov dword [esi], 3
pop edi
mov dword [eax], esi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.tcl85.dll_TclWinConvertError
add esp, 4
xor eax, eax
add esp, 8
ret
Function at 0x100a9a80
Capabilities:
Create thread

Disassembly:
sub esp, 0x30
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x100a9ab4
push 0x64
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
call fcn.100a8410
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
cmp edi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x28], eax
je 0x100a9b51
push ebx
push 1
push 1
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x38], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x44], eax
call edi
lea ecx, [esp + 0x10]
push ecx
push ebx
push esi
push 0x100aa8b0
push pe_nt_image_headers32
push ebx
mov dword [esi + 0x48], eax
call ebp
push 2
push eax
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
or dword [esi + 8], 2
jmp 0x100a9b54
mov dword [esi + 0x30], ebx
cmp dword [esp + 0x48], ebx
je 0x100a9b9f
push ebx
push 1
push 1
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x34], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x3c], eax
call edi
lea edx, [esp + 0x10]
push edx
push ebx
push esi
push 0x100aa9b0
push pe_nt_image_headers32
push ebx
mov dword [esi + 0x40], eax
call ebp
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x30]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
or dword [esi + 8], 4
push esi
lea ecx, [esp + 0x18]
push str.file_x
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
mov edx, dword [esi + 8]
add esp, 0xc
push edx
push esi
lea eax, [esp + 0x1c]
push eax
push 0x100d00b8
call sym.tcl85.dll_Tcl_CreateChannel
push str.auto
push str._translation
push eax
push ebx
mov dword [esi + 4], eax
call sym.tcl85.dll_Tcl_SetChannelOption
mov ecx, dword [esi + 4]
push 0x100c76ec
push str._eofchar
push ecx
push ebx
call sym.tcl85.dll_Tcl_SetChannelOption
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x6c]
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b1b48
add esp, 0x30
ret
Function at 0x100ab4b0
Capabilities:
Resolve dns

Disassembly:
push ecx
cmp dword [0x100d35f0], 1
je 0x100ab4ca
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0xe
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 8]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, 2
push ecx
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
test edi, edi
jne 0x100ab4fe
xor eax, eax
mov dword [esi + 4], eax
mov eax, 1
pop ecx
ret
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x100ab4f4
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x100ab53e
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esp + 8]
push edx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
add esp, 0xc
mov eax, 1
pop ecx
ret
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0x94
xor eax, eax
pop ecx
ret

Function at 0x100ac5a0
Capabilities:
Set socket configuration

Disassembly:
cmp dword [0x100d35f0], 1
je 0x100ac5ad
or eax, 0xffffffff
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
ret
Function at 0x100acc30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [0x100d34dc]
push ebx
push ebp
push esi
push edi
test eax, eax
jne 0x100acc93
push 0x64
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100acc71
push 0x64
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
push 0x64
push 0
push esi
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ebx, 0x100d34dc
mov dword [0x100d34dc], esi
call fcn.1008f950
mov eax, dword [0x100d34dc]
push 0x100bcd5c
mov ebp, eax
mov byte [eax], 0
call dword [sym.imp.MSVCR90.dll_getenv]
mov edi, eax
add esp, 4
test edi, edi
je 0x100acd53
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100accb5
sub esi, ecx
cmp esi, 3
jle 0x100accc8
mov esi, 3
cmp dword [esp + 0xd4], 0
je 0x100acd07
lea ebx, [esi + edi]
push str._:0123456789
push ebx
call dword [sym.imp.MSVCR90.dll_strspn]
add ebx, eax
add esp, 8
cmp byte [ebx], 0
je 0x100acd07
mov eax, ebx
mov edi, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100accf2
sub eax, edx
mov esi, eax
cmp esi, 3
jle 0x100acd07
mov esi, 3
mov ebx, dword [0x100d2fcc]
mov eax, esi
test edi, edi
jne 0x100acd17
xor eax, eax
jmp 0x100acd24
test esi, esi
jge 0x100acd24
mov eax, dword [ebx + 0x18]
push edi
call eax
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 4]
push 0x3f
push ebp
lea edx, [esp + 0x2c]
push edx
push 3
push eax
mov eax, dword [ebx + 0x14]
push edi
push eax
call ecx
mov edx, dword [esp + 0x38]
add esp, 0x28
mov byte [edx + ebp], 0
cmp byte [ebp], 0
jne 0x100acde5
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
test eax, eax
jne 0x100acd70
xor edi, edi
jmp 0x100acd77
mov edi, dword [esp + 0xd4]
push str.unicode
push 0
call sym.tcl85.dll_Tcl_GetEncoding
add esp, 8
mov esi, eax
lea ebx, [esp + 0x78]
test edi, edi
jne 0x100acd94
lea ebx, [esp + 0x24]
mov edi, esi
test esi, esi
jne 0x100acda0
mov edi, dword [0x100d2fcc]
test ebx, ebx
jne 0x100acda8
xor eax, eax
jmp 0x100acdb1
mov ecx, dword [edi + 0x18]
push ebx
call ecx
add esp, 4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [edi + 0x14]
push 0x3f
push ebp
lea ecx, [esp + 0x30]
push ecx
push 3
push eax
mov eax, dword [edi + 4]
push ebx
push edx
call eax
mov ecx, dword [esp + 0x38]
add esp, 0x28
mov byte [ecx + ebp], 0
call fcn.10040e50
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.100b1b48
add esp, 0xc0
ret
Function at 0x100b1350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, dword [edi]
jle 0x100b1399
lea ecx, [esp + 0x10]
push ecx
call sym.tcl85.dll_TclBN_mp_init
add esp, 4
test eax, eax
jne 0x100b1451
lea edx, [esp + 0x10]
push edx
push esi
call sym.tcl85.dll_TclBN_mp_copy
add esp, 8
test eax, eax
jne 0x100b1451
mov ecx, dword [edi]
mov esi, edi
jmp 0x100b13c6
lea eax, [esp + 0x10]
push eax
call sym.tcl85.dll_TclBN_mp_init
add esp, 4
test eax, eax
jne 0x100b1451
lea ecx, [esp + 0x10]
push ecx
push edi
call sym.tcl85.dll_TclBN_mp_copy
add esp, 8
test eax, eax
jne 0x100b1451
mov ecx, dword [esi]
mov edx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
jle 0x100b13de
mov edi, dword [esi + 0xc]
mov edi, dword [edi + eax*4]
xor dword [edx + eax*4], edi
inc eax
cmp eax, ecx
jl 0x100b13d0
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x100b13ff
lea eax, [edx + ecx*4 - 4]
lea ebx, [ebx]
cmp dword [eax], 0
jne 0x100b13fd
dec ecx
sub eax, 4
test ecx, ecx
jg 0x100b13f0
test ecx, ecx
jne 0x100b1409
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 8]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov dword [esp + 0x28], ebx
mov ebx, dword [eax + 0xc]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
call sym.tcl85.dll_TclBN_mp_clear
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100b1b48
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100b1b52
repz ret
jmp fcn.100b1f84
Function at 0x1001723
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001150
call fcn.010018c0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100175e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100175e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001776
cmp eax, 0x20b
je 0x1001763
mov dword [ebp - 0x1c], edi
jmp 0x100178a
cmp dword [ecx + 0x84], 0xe
jbe 0x100175e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001784
cmp dword [ecx + 0x74], 0xe
jbe 0x100175e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003014], 0xffffffff
or dword [0x1003018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100300c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100301c], eax
call fcn.010018bc
cmp dword [section..data], edi
jne 0x10017e5
push fcn.010018bc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010018aa
push 0x10010fc
push 0x10010f8
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1003004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10010f4
push 0x10010f0
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010011bc
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x100185c
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001891
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010018f9
ret

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 0x406775
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43f794], 0
jne 0x4067b3
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406789
mov dword [ecx*4 + 0x43f790], eax
inc ecx
cmp ecx, 0x100
jl 0x406784
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4067e0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43f790]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4067c1
not eax
pop ebp
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 0x4032a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x4032c3
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + esi]
xor byte [edi + eax], cl
inc eax
cmp eax, edx
jb 0x4032b3
pop edi
pop esi
pop ebp
ret

Function at 0x4032d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
push edi
call dword [0x23b094]
cmp eax, dword [0x23aec0]
je 0x403330
mov edx, 1
mov dword [0x23aec0], eax
push ebx
mov dword [0x23a500], eax
mov ebx, edx
mov edi, 4
lea esi, [edx + 7]
nop word [eax + eax]
mov eax, dword [edi + 0x23a4fc]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
lea edx, [ebx + 1]
mov dword [edi + 0x23a500], eax
mov ebx, edx
mov edi, esi
add esi, 4
cmp edx, 0x270
jl 0x403300
pop ebx
jmp 0x403340
mov eax, dword [0x23aec4]
cmp eax, 0x270
jl 0x403408
xor eax, eax
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [eax*4 + 0x23a500]
mov edx, dword [eax*4 + 0x23a504]
xor edx, ecx
and edx, 0x7fffffff
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
mov ecx, dword [ecx*4 + 0x231134]
xor ecx, dword [eax*4 + 0x23ab34]
xor ecx, edx
mov dword [eax*4 + 0x23a500], ecx
inc eax
cmp eax, 0xe3
jl 0x403350
mov edi, dword [eax*4 + 0x23a500]
lea esi, [eax*4 + 0x23a500]
nop dword [eax]
mov eax, edi
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x231134]
xor eax, dword [esi - 0x38c]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x23aebc
jl 0x4033a0
mov ecx, dword [0x23aebc]
mov eax, dword [0x23a500]
and ecx, 0x80000000
and eax, 0x7fffffff
or ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x231134]
xor ecx, dword [0x23ab30]
xor eax, eax
mov dword [0x23aebc], ecx
mov ecx, dword [eax*4 + 0x23a500]
inc eax
mov dword [0x23aec4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
pop edi
xor eax, ecx
pop esi
ret