joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019660
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd553
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100eb6ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1009b73d
mov dword [ebp - 4], 0
push 4
call fcn.1009ddc4
mov edi, eax
add esp, 4
test edi, edi
je 0x100196e4
call fcn.1009b538
mov dword [edi], eax
call fcn.1009b2f7
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.1009b6fe
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x100196d6
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1009b726
jmp 0x100196e6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001f0a0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1152
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100eb6ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea eax, [edi + 0x68]
mov dword [edi], 0x100cec98
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], ebx
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov edx, dword [edi]
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov esi, dword [edx + 4]
add esi, edi
mov ecx, esi
call fcn.10002310
lea eax, [edi + 0x10]
push 0x20
mov ecx, esi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ebx
call fcn.1001b690
mov byte [esi + 0x40], al
cmp dword [esi + 0x38], ebx
jne 0x1001f142
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, esi
call fcn.100021a0
mov dword [ebp - 4], 4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea esi, [edi + 0x10]
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.10019560
mov byte [ebp - 4], 5
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov edx, dword [0x100efd8c]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002ea50
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
cmp dword [0x100f0584], 0
push ebx
push esi
mov ebx, 1
jne 0x1002ea8a
add dword [0x100f0580], ebx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x100f0580], ebx
mov dword [0x100f01dc], eax
cmp eax, 0xffffffff
je 0x1002ea9a
mov dword [0x100f0584], ebx
jmp 0x1002ea8f
mov eax, dword [0x100f01dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1002ea9f
mov eax, 0x100d56dc
cmp byte [eax + 4], 0
je 0x1002ead5
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
test esi, esi
je 0x1002ead5
nop
cmp esi, dword [ebp + 0xc]
je 0x1002eace
test edi, edi
je 0x1002eabe
cmp dword [esi + 0x14], edi
jne 0x1002eace
cmp byte [esi + 0x41], bl
jne 0x1002eace
mov eax, esi
call fcn.1002e9c0
test eax, eax
jne 0x1002ead7
mov esi, dword [esi + 4]
test esi, esi
jne 0x1002eab0
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002eb40
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x100f0584], 0
push esi
mov esi, dword [edi + 4]
jne 0x1002eb81
inc dword [0x100f0580]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100f01dc], eax
cmp eax, 0xffffffff
jne 0x1002eb6e
dec dword [0x100f0580]
jmp 0x1002eb91
mov ecx, 1
sub dword [0x100f0580], ecx
mov dword [0x100f0584], ecx
jmp 0x1002eb86
mov eax, dword [0x100f01dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1002eb96
mov eax, 0x100d56dc
cmp byte [eax + 4], 0
je 0x1002ebb8
mov eax, dword [edi]
test eax, eax
je 0x1002ebbd
test dword [eax + 8], 0x4000
je 0x1002ebbd
cmp bl, 2
je 0x1002ebbd
mov ecx, dword [ebp + 8]
cmp ecx, 1
je 0x1002ebc0
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1002ebb8
cmp dword [eax], edi
je 0x1002ebda
cmp dword [eax + 4], ecx
jne 0x1002ebda
cmp byte [eax + 8], bl
jne 0x1002ebe4
cmp bl, 1
jne 0x1002ebe4
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x1002ebc7
pop esi
pop ebp
ret
mov eax, 6
pop esi
pop ebp
ret
Function at 0x1002ebf0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x100f0584], 0
push edi
mov edi, dword [esi + 4]
jne 0x1002ec31
inc dword [0x100f0580]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100f01dc], eax
cmp eax, 0xffffffff
jne 0x1002ec1e
dec dword [0x100f0580]
jmp 0x1002ec41
mov ecx, 1
sub dword [0x100f0580], ecx
mov dword [0x100f0584], ecx
jmp 0x1002ec36
mov eax, dword [0x100f01dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1002ec46
mov eax, 0x100d56dc
cmp byte [eax + 4], 0
je 0x1002ece6
mov eax, dword [esi]
test eax, eax
je 0x1002ec6a
test dword [eax + 8], 0x4000
je 0x1002ec6a
cmp byte [ebp + 8], 1
jne 0x1002ec6a
cmp ebx, 1
jne 0x1002ece6
mov eax, dword [edi + 0x40]
test eax, eax
je 0x1002ec81
cmp dword [eax + 4], ebx
jne 0x1002ec7a
cmp dword [eax], esi
je 0x1002ecdb
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x1002ec71
xor eax, eax
cmp dword [0x100f0574], eax
je 0x1002ec93
cmp dword [0x100f0580], eax
jg 0x1002ecc1
push 0x10
call fcn.1009ce65
add esp, 4
test eax, eax
jne 0x1002ecb4
mov ecx, 1
add dword [0x100f0580], ecx
mov dword [0x100f0574], ecx
jmp 0x1002ecc1
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
test eax, eax
jne 0x1002eccd
mov eax, 7
pop edi
pop ebp
ret
mov dword [eax + 4], ebx
mov dword [eax], esi
mov ecx, dword [edi + 0x40]
mov dword [eax + 0xc], ecx
mov dword [edi + 0x40], eax
mov cl, byte [ebp + 8]
cmp cl, byte [eax + 8]
jbe 0x1002ece6
mov byte [eax + 8], cl
xor eax, eax
pop edi
pop ebp
ret
Function at 0x1002fe30
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 4]
push edi
mov edi, dword [ebx + 4]
test edi, edi
je 0x1002fe5a
mov eax, edi
mov edi, dword [edi + 4]
cmp dword [eax], esi
jne 0x1002fe56
mov esi, eax
call fcn.10031120
mov esi, dword [ebp + 8]
test edi, edi
jne 0x1002fe43
push esi
call fcn.10030db0
add esp, 4
push esi
call fcn.1009cc76
add esp, 4
dec dword [ebx + 0x30]
jne 0x1002ff1a
cmp dword [0x100f0584], 0
jne 0x1002fea7
mov esi, 1
add dword [0x100f0580], esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x100f0580], esi
mov dword [0x100f01dc], eax
cmp eax, 0xffffffff
je 0x1002feb9
mov dword [0x100f0584], esi
jmp 0x1002feac
mov eax, dword [0x100f01dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test eax, eax
jne 0x1002febe
mov ecx, 0x100d56dc
mov eax, dword [ecx + 8]
cmp eax, ebx
jne 0x1002fecd
mov eax, dword [ebx + 0x44]
mov dword [ecx + 8], eax
jmp 0x1002fee6
test eax, eax
je 0x1002fee6
mov ecx, dword [eax + 0x44]
cmp ecx, ebx
je 0x1002fee0
mov eax, ecx
test eax, eax
jne 0x1002fed1
jmp 0x1002fee6
mov ecx, dword [ebx + 0x44]
mov dword [eax + 0x44], ecx
mov esi, dword [ebx]
call fcn.1004f0a0
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x1002ff01
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x1002ff01
push eax
call ecx
add esp, 4
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x1002ff11
push eax
call fcn.1009cc76
add esp, 4
push ebx
call fcn.1009cc76
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x10035440
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x100f0584], 0
push ebx
push esi
mov esi, eax
mov ebx, dword [esi + 4]
jne 0x10035485
inc dword [0x100f0580]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x100f01dc], eax
cmp eax, 0xffffffff
jne 0x10035472
dec dword [0x100f0580]
jmp 0x10035495
mov ecx, 1
sub dword [0x100f0580], ecx
mov dword [0x100f0584], ecx
jmp 0x1003548a
mov eax, dword [0x100f01dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1003549a
mov eax, 0x100d56dc
cmp byte [eax + 4], 0
je 0x100354be
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x100354be
cmp dword [eax], esi
je 0x100354b7
cmp dword [eax + 4], 1
jne 0x100354b7
cmp byte [eax + 8], 1
jne 0x10035517
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x100354a7
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx]
push 1
call fcn.1004f470
add esp, 8
test eax, eax
jne 0x10035511
mov edx, dword [ebp - 4]
movzx ecx, byte [edx + edi*4 + 0x24]
movzx eax, byte [edx + edi*4 + 0x25]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + edi*4 + 0x26]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + edi*4 + 0x27]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
call fcn.1004f930
push 1
mov ebx, 1
call fcn.1002ebf0
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100365d0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
cmp dword [0x100f0584], 0
push ebx
push esi
mov esi, dword [edi + 4]
mov ebx, 1
jne 0x10036607
add dword [0x100f0580], ebx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x100f0580], ebx
mov dword [0x100f01dc], eax
cmp eax, 0xffffffff
je 0x10036617
mov dword [0x100f0584], ebx
jmp 0x1003660c
mov eax, dword [0x100f01dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1003661c
mov eax, 0x100d56dc
cmp byte [eax + 4], 0
je 0x10036645
mov eax, dword [esi + 0x40]
test eax, eax
je 0x10036645
lea esp, [esp]
cmp dword [eax], edi
je 0x1003663e
cmp dword [eax + 4], ebx
jne 0x1003663e
cmp byte [eax + 8], bl
jne 0x10036653
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x10036630
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
pop esi
pop ebx
mov eax, ecx
ret
mov eax, 6
xor ecx, ecx
test eax, eax
setne cl
pop esi
pop ebx
mov eax, ecx
ret
Function at 0x1003c500
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov ecx, ebx
call fcn.1003c340
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x1003c566
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x1003c54f
lea esp, [esp]
mov eax, dword [ebp - 4]
mov ecx, eax
inc eax
mov dword [ebp - 4], eax
cmp ecx, 3
jge 0x1003c54f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
mov esi, eax
test esi, esi
je 0x1003c530
push edi
call fcn.1009cc76
add esp, 4
neg esi
pop edi
sbb eax, eax
pop esi
and eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x1003c594
mov eax, dword [ebp - 4]
mov edx, eax
inc eax
mov dword [ebp - 4], eax
cmp edx, 3
jge 0x1003c594
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call edi
mov esi, eax
test esi, esi
je 0x1003c575
neg esi
pop edi
sbb eax, eax
pop esi
and eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003c5b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
mov edi, eax
mov ecx, edi
call fcn.1003c340
mov esi, eax
test esi, esi
je 0x1003c5e0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push esi
mov edi, ecx
call fcn.1009cc76
add esp, 4
mov eax, edi
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
pop esi
mov eax, edx
ret
Function at 0x1003c850
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [0x100eb6ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100f057c]
push ebx
push esi
test eax, eax
je 0x1003c88c
push 0x118
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.1009eb80
add esp, 0xc
mov byte [ebp - 0x24], 0
jmp 0x1003c919
mov eax, dword [0x100f0578]
test eax, eax
jne 0x1003c8be
lea ecx, [ebp - 0x4bc]
push ecx
mov dword [ebp - 0x4bc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x4ac], 2
sete al
inc eax
mov dword [0x100f0578], eax
cmp eax, 2
jne 0x1003c907
lea edx, [ebp - 0x3a8]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [ebp - 0x3a8]
call fcn.1003c460
mov esi, eax
test esi, esi
je 0x1003c919
push 0x118
lea eax, [ebp - 0x13c]
push esi
push eax
call fcn.1009eb80
push esi
mov byte [ebp - 0x24], 0
call fcn.1009cc76
add esp, 0x10
jmp 0x1003c919
lea ecx, [ebp - 0x13c]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x13c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003c922
sub eax, edx
test eax, eax
jle 0x1003c941
lea ecx, [ebp - 0x13c]
cmp byte [ecx + eax - 1], 0x5c
jne 0x1003c941
dec eax
test eax, eax
jg 0x1003c935
mov byte [ebp + eax - 0x13c], 0
lea esp, [esp]
lea edx, [ebp - 0x13c]
push edx
push str._s_sqlite_
push edi
call fcn.1009c3ed
mov esi, edi
add esp, 0xc
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003c970
sub esi, ecx
lea eax, [edi + esi]
push eax
mov ecx, 0xf
call fcn.10053040
add esp, 4
mov ecx, 3
nop
movzx eax, byte [edi + esi]
xor edx, edx
mov ebx, 0x3e
div ebx
movzx eax, byte [edi + esi + 1]
add esi, 5
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 5], dl
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 4], al
movzx eax, byte [edi + esi - 3]
xor edx, edx
div ebx
movzx eax, byte [edi + esi - 2]
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 3], dl
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 2], al
movzx eax, byte [edi + esi - 1]
xor edx, edx
div ebx
dec ecx
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], dl
jne 0x1003c990
mov byte [edi + esi], cl
mov ecx, edi
call fcn.1003c340
mov esi, eax
test esi, esi
je 0x1003ca28
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call fcn.1009cc76
add esp, 4
jmp 0x1003ca37
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
jne 0x1003c950
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1009c0cb
mov esp, ebp
pop ebp
ret
Function at 0x1003cdc0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100eb6ac]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x1003cde7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009c0cb
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100f0578]
test eax, eax
jne 0x1003ce19
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x108], 2
sete al
inc eax
mov dword [0x100f0578], eax
cmp eax, 2
je 0x1003ce33
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003ce23
sub eax, edx
cmp eax, 0x104
ja 0x1003cdd7
push ebx
push esi
mov ecx, edi
call fcn.1003c340
mov esi, eax
test esi, esi
je 0x1003ce56
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov ebx, eax
call fcn.1009cc76
add esp, 4
jmp 0x1003ce5f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
je 0x1003ce6f
and bl, 0x10
cmp bl, 0x10
sete al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1009c0cb
mov esp, ebp
pop ebp
ret

Function at 0x1003d2d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x100f0584], 0
push esi
push edi
mov edi, eax
jne 0x1003d30b
mov esi, 1
add dword [0x100f0580], esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x100f0580], esi
mov dword [0x100f01dc], eax
cmp eax, 0xffffffff
jne 0x1003d303
pop edi
xor eax, eax
pop esi
ret
mov dword [0x100f0584], esi
jmp 0x1003d310
mov eax, dword [0x100f01dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jle 0x1003d35c
test esi, esi
jne 0x1003d39e
push 0xc
call fcn.1009ce65
mov esi, eax
add esp, 4
test esi, esi
je 0x1003d39e
mov eax, dword [0x100d43a4]
mov dword [esi], eax
mov ecx, dword [0x100d43a8]
mov eax, dword [0x100f01dc]
mov dword [esi + 4], ecx
mov edx, dword [0x100d43ac]
push esi
push eax
mov dword [esi + 8], edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, esi
pop esi
ret
test esi, esi
je 0x1003d39e
test edi, edi
jns 0x1003d39e
mov eax, 0x100d43a4
mov edx, esi
mov ecx, 0xc
sub edx, eax
mov edi, dword [edx + eax]
cmp edi, dword [eax]
jne 0x1003d39e
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x1003d372
push esi
call fcn.1009cc76
mov ecx, dword [0x100f01dc]
add esp, 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
pop edi
mov eax, esi
pop esi
ret
Function at 0x1003d3b0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x100f0584], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, 1
jne 0x1003d3ea
add dword [0x100f0580], edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x100f0580], edi
mov dword [0x100f01dc], eax
cmp eax, 0xffffffff
je 0x1003d3fa
mov dword [0x100f0584], edi
jmp 0x1003d3ef
mov eax, dword [0x100f01dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1003d3ff
mov eax, 0x100d56dc
cmp byte [eax + 4], 0
je 0x1003d4e0
test ebx, ebx
js 0x1003d4e0
mov edx, dword [esi + 0x68]
xor ecx, ecx
test edx, edx
jle 0x1003d438
mov eax, dword [esi + 0x6c]
lea ecx, [ecx]
cmp dword [eax], ebx
jne 0x1003d42f
mov ebx, dword [ebp + 0xc]
cmp dword [eax + 4], ebx
je 0x1003d457
mov ebx, dword [ebp + 8]
add ecx, edi
add eax, 0x10
cmp ecx, edx
jl 0x1003d420
mov ecx, dword [esi + 0x6c]
lea eax, [edx + 1]
shl eax, 4
cmp dword [0x100f0574], 0
je 0x1003d475
cmp dword [0x100f0580], 0
jle 0x1003d475
xor edi, edi
jmp 0x1003d4a5
cmp byte [eax + 8], 0
jne 0x1003d46c
cmp byte [ebp + 0x10], 0
jne 0x1003d46c
xor ecx, ecx
pop edi
mov byte [eax + 8], cl
pop ebx
pop ebp
ret
mov ecx, edi
pop edi
mov byte [eax + 8], cl
pop ebx
pop ebp
ret
test ecx, ecx
jne 0x1003d485
push edi
push eax
call fcn.1002da60
add esp, 8
jmp 0x1003d49f
push eax
push ecx
call fcn.1009dc36
add esp, 8
test eax, eax
jne 0x1003d49f
add dword [0x100f0580], edi
mov dword [0x100f0574], edi
mov edi, eax
test edi, edi
jne 0x1003d4b5
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x1003d4b5
push eax
call fcn.1009cc76
add esp, 4
mov edx, edi
mov dword [esi + 0x6c], edi
test edx, edx
je 0x1003d4e0
mov ecx, dword [esi + 0x68]
mov eax, ecx
shl eax, 4
add eax, edx
mov dl, byte [ebp + 0x10]
inc ecx
mov dword [esi + 0x68], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax], ebx
mov byte [eax + 8], dl
mov dword [eax + 0xc], ecx
pop edi
pop ebx
pop ebp
ret
Function at 0x1003d950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push edi
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [eax], ecx
jle 0x1003da43
push ebx
push esi
lea esp, [esp]
cmp ecx, 2
jge 0x1003d978
xor ecx, 1
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1003d9c5
mov bl, byte [edx]
mov eax, dword [eax + 4]
lea esi, [ecx + ecx*2]
mov esi, dword [eax + esi*8]
test bl, bl
je 0x1003d9ad
mov edi, edi
movzx eax, byte [esi]
movzx ebx, bl
mov bl, byte [ebx + 0x100d59f8]
cmp bl, byte [eax + 0x100d59f8]
jne 0x1003d9ad
mov bl, byte [edx + 1]
inc edx
inc esi
test bl, bl
jne 0x1003d990
movzx edx, byte [edx]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x100d59f8]
movzx edx, byte [edx + 0x100d59f8]
sub edx, eax
jne 0x1003da24
mov edi, dword [ebp + 0xc]
mov eax, edi
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1003d9d0
sub eax, esi
lea ebx, [eax + 1]
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov esi, dword [edx + eax*8 + 0x14]
add esi, 4
je 0x1003da3f
cmp dword [esi + 0x18], 0
je 0x1003da3f
cmp byte [esi], 3
mov eax, 0x10038a90
je 0x1003da03
mov eax, 0x10038b00
push ebx
push edi
call eax
mov edx, dword [esi + 0x14]
dec edx
push ebx
and edx, eax
push edi
mov ecx, esi
call fcn.10038d00
add esp, 0x10
test eax, eax
je 0x1003da3f
mov edi, dword [eax + 8]
test edi, edi
jne 0x1003da36
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [eax]
jl 0x1003d970
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x1003da24
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret