joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4069b2
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x4069bf
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4069f8
cmp eax, 0x80
je 0x4069f8
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.004077f0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x4069bb
mov al, 1
pop esi
ret

Function at 0x406da6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x124]
push 0x118
push ebx
mov dword [ebp - 0x12c], ebx
push eax
mov dword [ebp - 0x128], 0x11c
call fcn.0040b2e0
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x406f05.2
mov edi, dword [ebp - 0x124]
xor esi, esi
inc esi
cmp edi, 6
je 0x406e96
cmp edi, 0xa
je 0x406e96
cmp edi, 5
jne case.0x406f05.2
cmp dword [ebp - 0x120], 2
jne 0x406e80
cmp byte [ebp - 0xe], 1
jne 0x406e46
lea ecx, [ebp - 0x130]
call fcn.00406d22
mov ecx, eax
mov dword [ebp - 0x12c], esi
call fcn.004017e6
test al, al
je 0x406e46
xor eax, eax
mov bl, 1
inc eax
jmp 0x406e4c
mov eax, dword [ebp - 0x12c]
test al, 1
je 0x406e5e
mov ecx, dword [ebp - 0x130]
lea ecx, [ecx - 0x10]
call fcn.00401251
test bl, bl
jne case.0x406f05.1
test dword [ebp - 0x10], 0x8000
je case.0x406f05.7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a756
leave
ret
cmp dword [ebp - 0x120], esi
jne case.0x406f05.2
test dword [ebp - 0x10], 0x200
jne case.0x406f05.2
xor eax, eax
inc eax
jmp 0x406e71
mov eax, dword [ebp - 0x120]
mov ecx, 0x42b378
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], eax
call fcn.0040401c
mov esi, eax
test esi, esi
je case.0x406f05.2
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406edc
lea ecx, [ebp - 0x12c]
push ecx
push ebx
push ebx
push dword [ebp - 0x130]
push edi
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je case.0x406f05.2
mov eax, dword [ebp - 0x12c]
cmp eax, 0x1b
ja 0x406f14
je case.0x406f05.4
dec eax
cmp eax, 0x18
ja case.0x406f05.2
movzx eax, byte [eax + 0x406f76]
jmp dword [eax*4 + 0x406f66]
push 2
pop eax
jmp 0x406e71
cmp eax, 0x54
ja 0x406f34
je case.0x406f05.4
sub eax, 0x30
je case.0x406f05.1
sub eax, 0x16
je case.0x406f05.4
dec eax
sub eax, 1
je case.0x406f05.4
jmp case.0x406f05.2
cmp eax, 0x79
jb case.0x406f05.2
cmp eax, 0x7a
jbe 0x406f62
cmp eax, 0x7c
jbe case.0x406f05.2
cmp eax, 0x7e
jbe case.0x406f05.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x406f05.2
push 3
jmp 0x406f0e
push 4
jmp 0x406f0e
Function at 0x4078cb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x808]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.0040b2e0
mov esi, dword [0x431ddc]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.00404d93
push edi
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.00401251
lea ecx, [ebp - 0x808]
call fcn.00407e03
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
sub eax, 3
je 0x40797f
sub eax, 1
jne 0x407970
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0040a756
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x407e03
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407e72
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x407e4e
push ebx
push edi
push eax
call fcn.0040c710
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x407e69
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x4125bc
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x430008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x412607
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004127dd
test al, al
jne 0x412601
sub edx, 2
cmp edx, edi
jne 0x4125e7
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x412629
lea eax, [edi + 2]
cmp edx, eax
je 0x412629
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00412508
add esp, 0x10
jmp 0x412723
push esi
lea ecx, [ebp - 0x255]
call fcn.004127dd
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41266c
push dword [ebp - 0x25c]
jmp 0x412619
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4126a9
cmp word [ebp - 0x226], 0
je 0x4126ca
cmp word [ebp - 0x226], ax
jne 0x4126a9
cmp word [ebp - 0x224], 0
je 0x4126ca
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00412508
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x412716
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x412683
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4126fe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x412723
push 0x412338
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00416370
add esp, 0x10
jmp 0x4126f3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a756
leave
ret

Function at 0x4134f1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421b84
push 0x421b7c
push str.FlsAlloc
push 0x1e
call fcn.0041342e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413525
push dword [ebp + 8]
mov ecx, esi
call dword [0x4202cc]
call esi
jmp 0x41352b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41356f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421b94
push 0x421b8c
push str.FlsGetValue
push 0x20
call fcn.0041342e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4135a6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4202cc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x403000
Capabilities:
Access peb ldr_data
Get file attributes
Get file size
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor eax, eax
add eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x428ee4], eax
mov eax, dword [0x428ee8]
xor edx, edx
mov ecx, 0x6cc1019a
div ecx
xor edx, edx
push str.X_Zpn_T.0WheLT_
push 0x38091fe5
push str._sVC__xwwZt7W_S
push str.c_T2_xxjnw
mov ecx, eax
xor ecx, 0x38
add ecx, 0xfb
mov dword [0x428ee8], ecx
or ecx, 0xf68e0d8e
mov eax, 0xc1
div ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
and eax, 0x7d
sub eax, esi
xor eax, 0x7b
mov dword [0x428ee8], eax
call fcn.0040398f
imul eax, eax, 0x58ce78a1
or eax, 0x4d
mov dword [0x428ee8], eax
call fcn.0040399b
imul eax, eax, 0x145a74
or eax, 0x4ad6
mov dword [0x428ee8], eax
call fcn.004039ab
mov dword [0x428ee8], eax
jmp loc.00432000

Function at 0x403cd7
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [0x428ee8]
push str._PZR2Fgyw9I
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, dword [ebp + 8]
mov ecx, eax
or esi, 0xd19f8a47
xor edx, edx
mov eax, 0x7a3cb5a5
div esi
xor edx, edx
and ecx, 0x772d
mov esi, eax
or esi, 0xe8b4c33e
mov eax, 0x7676
div esi
sub ecx, eax
lea eax, [edi + ecx]
pop edi
pop esi
pop ebp
ret

Function at 0x403eeb
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push str.m_w59EMikJ2N4K
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
mov eax, dword [ebp + 0xc]
not ecx
and ecx, dword [ebp + 8]
xor edx, edx
and ecx, 0x10
or ecx, 0x38435ceb
div ecx
pop ebp
ret

Function at 0x403f12
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push str.N_Y_IYTt_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 0xc]
add ecx, 0x7c1b904
and eax, 0x9b1
or ecx, 0x5776dec3
xor edx, edx
div ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
sub eax, ecx
sub eax, dword [ebp + 8]
pop ebp
ret

Function at 0x403f92
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x403fc0
mov ecx, dword [ebp - 4]
cmp ecx, 2
jl 0x403fc0
push dword [eax + ecx*4 - 4]
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
leave
ret
xor eax, eax
leave
ret
Function at 0x404a0f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403fc5
add eax, dword [ebp - 4]
push eax
call dword [sym.imp.msvcrt.dll_exit]
leave
ret 0x10
Function at 0x10001010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10008edb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x24]
mov dword [esi + 0x24], edx
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov dx, word [edi + 0x30]
mov word [esi + 0x30], dx
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0x3c]
lea eax, [edi + 0x40]
lea ecx, [esi + 0x40]
push eax
mov dword [esi + 0x3c], edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [edi + 0x44]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esi + 0x44]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [edi + 0x48]
mov dword [esi + 0x48], edx
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov ecx, dword [edi + 0x50]
mov dword [esi + 0x50], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi], sym.KCCOMM32.dll_const_CCommBase::vftable
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x10001c20
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x54], 1
jne 0x10001c55
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x78]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001c55
mov ecx, dword [esi + 0x64]
push 0xffffffffffffffff
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret

Function at 0x10002100
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ch, 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.10001e73
pop ebp
xchg esp, eax
push eax
insd dword es:[edi], dx
lea eax, [ebp - 0x58]
push eax
call fcn.10001e83
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.10001e38
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10002161
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10001e73
xchg edx, eax
mov eax, dword [0x458d1bcb]
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x10002220
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push esi
push dword [ebp + 8]
call fcn.10001e38
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10001e83
push eax
push esi
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.10001e38
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10001e83
push eax
push esi
push dword [ebp + 8]
call fcn.10001e38
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10001e73
pop ebx
push esi
leave
loopne 0x1000227e
popfd
jl 0x100022f8
invalid
invalid
Function at 0x100025a0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000254a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10002568
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100025c6
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
invalid
invalid
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100025ad
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100025b6
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100025c0
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100025a2
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000252c
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10002613
dec eax
je 0x1000260a
sub eax, 3
je 0x10002601
mov dword [ebp - 4], 0x40
jmp 0x10002630
mov dword [ebp - 4], 4
jmp 0x10002616
mov dword [ebp - 4], 0x20
jmp 0x10002616
mov dword [ebp - 4], ecx
cld
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10002662
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x100025e2
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10001e73
dec edi
jne 0x10002615
xor bh, bh
jne 0x1000266d
push 1
push esi
call edi
mov eax, esi
jmp 0x1000266e
push 0x8000
push ebx
push esi
call dword [ebp - 8]
rcr byte [edi + 0x5e], 0x5b

Function at 0x10002db0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
invalid
Function at 0x10005840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10009378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov edi, ecx
push 8
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov dword [ebp - 0x18], esi
push 0x200
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [ebp - 0x24]
mov dword [esi], eax
mov dword [esi + 4], ebx
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.10008b68
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x38]
mov dword [ebp - 0x34], eax
push edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [edi + 0x6c]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10005916
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10005961
mov ecx, dword [ebp - 0x20]
push 0x3a98
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10005961
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x14]
push ebx
lea eax, [ebp - 0x38]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x10005961
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1000592b
mov dword [esi + 4], eax
mov ecx, dword [edi + 0x58]
push esi
call sub.MFC42.DLL_CPtrList::AddTail
jmp 0x1000593c
mov eax, dword [esi]
push eax
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
add esp, 8
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CEvent::CEvent
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push eax
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CEvent::CEvent
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005a30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10009398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push 0
mov esi, ecx
push 0
push 1
push 0
lea ecx, [esp + 0x18]
call fcn.10008b68
xor ecx, ecx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], 0
mov eax, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x10]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esi + 0x6c]
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10005ad2
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CEvent::CEvent
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10005b22
mov edx, dword [esp + 0xc]
push 0x3a98
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10005b1b
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CEvent::CEvent
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
push 0x20050000
jmp 0x10005b27
push 0x20020000
mov ecx, esi
call sym.KCCOMM32.dll_public:_void___thiscall_CCommBase::SetLastError_unsigned_long_int_
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CEvent::CEvent
mov ecx, dword [esp + 0x24]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8

Function at 0x10005b90
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x54], 1
jne 0x10005bd7
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x6c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov eax, dword [esi + 0x64]
push 0x3e8
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10005bd7
mov edx, dword [esi + 0x60]
push 0xffffffffffffffff
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
ret