joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9774
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor al, al
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x4c98d0
mov edx, 0x10000000
cmp ecx, 0x7c
je 0x4c98d0
cmp ecx, 0x29
jne 0x4c97db
cmp dword [esi + 0x10], 0
jne 0x4c98d0
lea edi, [esi + 0x50]
test dword [edi], edx
je 0x4c98d8
cmp ecx, 0x5d
jne 0x4c97bc
test dword [edi], edx
je 0x4c98c8
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004c8a39
mov ecx, esi
call fcn.004cd96f
mov ecx, esi
call fcn.004cda0f
mov al, 1
jmp 0x4c977b
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0x4c97ef
push 5
lea ecx, [esi + 0x24]
call fcn.004cd8f3
jmp 0x4c97c9
cmp ecx, 0x5c
jne 0x4c983a
mov ecx, esi
call fcn.004cd96f
test byte [edi], 0x80
je 0x4c9831
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x4c981a
push 4
lea ecx, [esi + 0x24]
call fcn.004cd8f3
mov ecx, esi
call fcn.004cd96f
jmp 0x4c97d7
cmp al, 0x42
jne 0x4c9831
push 4
lea ecx, [esi + 0x24]
call fcn.004cd8f3
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4c9811
mov ecx, esi
call fcn.004c9a6b
jmp 0x4c97d0
cmp ecx, 0x5b
jne 0x4c985d
mov ecx, esi
call fcn.004cd96f
mov ecx, esi
call fcn.004ca657
push 4
push 0x5d
mov ecx, esi
call fcn.004cc566
jmp 0x4c97d0
cmp ecx, 0x28
jne 0x4c988a
mov ecx, esi
call fcn.004cd96f
mov ecx, esi
call fcn.004ce88e
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.004cc566
test bl, bl
je 0x4c97d7
jmp 0x4c97d0
cmp ecx, 0x5e
jne 0x4c9896
push 2
jmp 0x4c9809
cmp ecx, 0x24
jne 0x4c98a2
push 3
jmp 0x4c9809
cmp ecx, 0x2a
je 0x4c98cc
cmp ecx, 0x2b
je 0x4c98cc
cmp ecx, 0x3f
je 0x4c98cc
cmp ecx, 0x7b
je 0x4c98cc
cmp ecx, 0x7d
jne 0x4c97af
test dword [edi], edx
je 0x4c98d4
jmp 0x4c97bc
push 4
jmp 0x4c98da
push 0xa
jmp 0x4c98da
pop edi
pop esi
pop ebx
ret
push 6
jmp 0x4c98da
push 5
mov ecx, esi
call fcn.004cc4f4
int3
Function at 0x4c98e2
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor al, al
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x4c9a43
mov edx, 0x10000000
cmp ecx, 0x7c
je 0x4c9a43
cmp ecx, 0x29
jne 0x4c9949
cmp dword [esi + 0x10], 0
jne 0x4c9a43
lea edi, [esi + 0x50]
test dword [edi], edx
je 0x4c9a4b
cmp ecx, 0x5d
jne 0x4c992a
test dword [edi], edx
je 0x4c9a3b
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004c8a98
mov ecx, esi
call fcn.004cd99d
mov ecx, esi
call fcn.004cdad4
mov al, 1
jmp 0x4c98e9
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0x4c995d
push 5
lea ecx, [esi + 0x24]
call fcn.004cd931
jmp 0x4c9937
cmp ecx, 0x5c
jne 0x4c99ad
mov ecx, esi
call fcn.004cd99d
test byte [edi], 0x80
je 0x4c99a4
movzx eax, word [esi + 0x48]
mov ecx, eax
cmp eax, 0x62
jne 0x4c998c
push 4
lea ecx, [esi + 0x24]
call fcn.004cd931
mov ecx, esi
call fcn.004cd99d
jmp 0x4c9945
cmp ecx, 0x42
jne 0x4c99a4
push 4
lea ecx, [esi + 0x24]
call fcn.004cd931
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x4c9983
mov ecx, esi
call fcn.004c9b13
jmp 0x4c993e
cmp ecx, 0x5b
jne 0x4c99d0
mov ecx, esi
call fcn.004cd99d
mov ecx, esi
call fcn.004ca6a0
push 4
push 0x5d
mov ecx, esi
call fcn.004cc581
jmp 0x4c993e
cmp ecx, 0x28
jne 0x4c99fd
mov ecx, esi
call fcn.004cd99d
mov ecx, esi
call fcn.004ce911
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.004cc581
test bl, bl
je 0x4c9945
jmp 0x4c993e
cmp ecx, 0x5e
jne 0x4c9a09
push 2
jmp 0x4c997b
cmp ecx, 0x24
jne 0x4c9a15
push 3
jmp 0x4c997b
cmp ecx, 0x2a
je 0x4c9a3f
cmp ecx, 0x2b
je 0x4c9a3f
cmp ecx, 0x3f
je 0x4c9a3f
cmp ecx, 0x7b
je 0x4c9a3f
cmp ecx, 0x7d
jne 0x4c991d
test dword [edi], edx
je 0x4c9a47
jmp 0x4c992a
push 4
jmp 0x4c9a4d
push 0xa
jmp 0x4c9a4d
pop edi
pop esi
pop ebx
ret
push 6
jmp 0x4c9a4d
push 5
mov ecx, esi
call fcn.004cc4fe
int3

Function at 0x4d51a7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4d522a
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
lea ebp, [eax + 1]
mov dword [esp + 0x10], 0xff
lea ecx, [esi + 1]
sub esi, eax
mov dword [esp + 0x20], ecx
mov bl, byte [ecx + 2]
xor edx, edx
movzx eax, byte [esi + ebp - 1]
movzx ecx, bl
imul eax, ecx
div dword [esp + 0x10]
xor edx, edx
mov byte [ebp + 1], al
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
imul eax, ecx
div dword [esp + 0x10]
xor edx, edx
mov byte [ebp], al
lea ebp, [ebp + 4]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + 1]
imul eax, ecx
mov ecx, 0xff
mov byte [ebp - 2], bl
div ecx
mov ecx, dword [esp + 0x20]
add ecx, 4
mov byte [ebp - 5], al
mov dword [esp + 0x20], ecx
sub edi, 1
jne 0x4d51d0
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
Function at 0x4d9d29
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x544de9
call fcn.004f12f4
push ecx
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.Scintilla::Internal::LineLayout.0
mov dword [esi + 8], ecx
mov eax, dword [ebp + 8]
or dword [esi + 0x14], 0xffffffff
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov word [esi + 0x28], cx
mov dword [esi + 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
xor eax, eax
mov word [esi + 0x3c], ax
mov dword [esi + 0x40], ecx
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [esi + 0x44], 0x7ffffff
mov dword [esi + 0x48], 1
movsd qword [esi + 0x50], xmm0
call fcn.004db07e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4f0841
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x59c3a8], 0
push ebx
push esi
mov esi, 0x59c3b0
jne 0x4f086d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x59c3c8], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x59c3a8], 1
push dword [0x59c3c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4f090a
push 0x14
push 8
push dword [0x599ff8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4f0934
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x59c3ac]
test eax, eax
je 0x4f08af
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x59c3ac], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4f0939
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x59c3c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x599ff8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4f0934
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x4f0f00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f0f2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f0f2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x50fd7e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0043d058
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x50fdbd
sub eax, 1
je 0x50fdb8
sub eax, 1
je 0x50fdb4
xor eax, eax
leave
ret
push 3
jmp 0x50fdbf
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x53187e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004f0dc0
mov eax, dword [0x5938a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0044677f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5318c0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x531a1c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004f1620
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x59b048]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00449419
mov ecx, dword [esi*4 + 0x59b048]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x531a15
cmp eax, dword [ecx + edi + 0x24]
jne 0x531a15
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x531a15
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00449419
add esp, 0x14
test edx, edx
jl 0x531a15
jg 0x53198b
test eax, eax
jb 0x531a15
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x531a15
jl 0x5319a5
cmp dword [ebp - 0x1008], eax
ja 0x531a15
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5319c3
test ebx, ebx
je 0x5319fc
cmp ecx, edi
jae 0x5319fc
mov al, byte [ecx]
cmp al, 0xd
jne 0x5319dd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5319e9
cmp byte [ecx + 1], 0xa
jne 0x5319e9
inc ecx
jmp 0x5319e9
movzx eax, al
movsx eax, byte [eax + 0x593ff8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5319c3
cmp edx, ebx
jne 0x5319c3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x531a1a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004342ff
leave
ret
Function at 0x10014630
Capabilities:
Enumerate process modules
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10018b90
call fcn.1000d420
call fcn.100190f0
call fcn.100092f0
call fcn.10026e20
mov ecx, eax
call fcn.10037430
call fcn.10026e20
mov ecx, eax
call fcn.10026e20
mov esi, dword [esi]
test esi, esi
je 0x10014675
mov ecx, esi
call fcn.10026e20
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
call fcn.10013770
call fcn.1002d0f0
pop esi
jmp fcn.1001f4d0

Function at 0x10016a60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ef28
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1006b894]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x40], eax
cmp dword [esi + 0x30], ebx
jne 0x10016ad9
movzx ecx, word [esi + 0x28]
mov eax, dword [esi + 4]
push ecx
lea edx, [esi + 0xc]
push edx
push eax
call fcn.1000d760
mov ecx, eax
call fcn.10026e20
mov dword [esi + 0x30], eax
cmp eax, ebx
jne 0x10016ad9
push str.Hyphenation_service_not_supported
push 0xffffff36
lea ecx, [ebp - 0x3c]
call fcn.10026e20
push 0x1005d268
lea ecx, [ebp - 0x3c]
push ecx
call sub.MSVCR100.dll__CxxThrowException
call fcn.10026e20
mov ecx, eax
call fcn.10037410
test al, al
je 0x10016b61
cmp byte [esi + 0x3d], bl
jne 0x10016b61
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 6
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push 0x10046540
mov byte [ecx], bl
call fcn.10026e20
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0xffffffffffffffff
push ebx
lea edx, [esi + 0xc]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov dword [ebp - 4], ebx
mov byte [ecx], bl
call fcn.10026e20
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push ecx
mov edx, esp
mov dword [ebp - 0x48], esp
mov bl, 1
push edx
mov byte [ebp - 4], bl
call eax
mov byte [ebp - 4], 2
call fcn.10026e20
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.10026e20
mov byte [esi + 0x3d], bl
mov ecx, dword [esi + 0x30]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x40]
mov edx, dword [edx + 0xc]
push eax
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c1ea
mov esp, ebp
pop ebp
ret 4
Function at 0x10022c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004081c
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x1006b894]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [sym.imp.kernel32.dll_ReadFile]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x484], ebx
cmp byte [esi + 0x28], bl
je 0x10022de1
mov edx, dword [esi + 4]
push ebx
lea eax, [ebp - 0x480]
push eax
push 0x400
lea ecx, [ebp - 0x414]
push ecx
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x480], ebx
call edi
cmp eax, ebx
jne 0x10022d19
call dword [sym.imp.kernel32.dll_GetLastError]
push str.MailSlotRead
push eax
lea ecx, [ebp - 0x47c]
call fcn.10026e20
push 0x1005d268
lea eax, [ebp - 0x47c]
push eax
call sub.MSVCR100.dll__CxxThrowException
cmp dword [ebp - 0x480], ebx
jne 0x10022d2a
mov dword [ebp - 4], 0xffffffff
jmp 0x10022cc1
mov dword [ebp - 0x420], 0xf
mov dword [ebp - 0x424], ebx
mov byte [ebp - 0x434], bl
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 1
call fcn.10026e20
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 2
call fcn.10036db0
mov edx, dword [esi]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x434]
push ecx
lea eax, [ebp - 0x414]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call edx
cmp al, bl
je 0x10022d99
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x434]
push ecx
mov ecx, esi
call fcn.10026e20
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 2
call fcn.10035170
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 4
call sym.AdobeLinguistic.dll_public:_void___thiscall_devtech::RCPtr_struct_devtech::LM_UniString::StringValue_::destructor_void_
cmp dword [ebp - 0x420], 0x10
jb 0x10022dcf
mov edx, dword [ebp - 0x434]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x10022cc1
mov eax, dword [ebp - 0x484]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003c1ea
mov esp, ebp
pop ebp
ret
Function at 0x10026e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10026e2f
pop dword [ebp - 0x28]
mov eax, 0x10026e2f
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x104f54f0
add dword [ebp - 0x38], 0x3e02f05b
mov dword [ebp - 0x34], 0xcd7d0499
add dword [ebp - 0x34], 0x64b647ac
mov dword [ebp - 0x30], 0x9039bc61
sub dword [ebp - 0x30], 0x43ed7833
mov dword [ebp - 0x2c], 0x1457f185
sub dword [ebp - 0x2c], 0x1457f185
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x5f0609cc
sub dword [ebp - 0x38], 0xea93a076
mov dword [ebp - 0x34], 0xcec306a5
add dword [ebp - 0x34], 0x72a95ad0
mov dword [ebp - 0x30], 0xa419120b
sub dword [ebp - 0x30], 0x40a9a59f
mov dword [ebp - 0x2c], 0x669a86c2
sub dword [ebp - 0x2c], 0x669a86c2
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x27ec81ec
add eax, 0xe817ce54
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x41962
push 0
call eax
mov ecx, 0x3f43
mov edi, eax
mov esi, 0xccc832cb
sub esi, 0xbcc096cb
add esi, dword [ebp - 0x28]
mov ebx, 0xd1b17720
xor dword [ebp - 8], eax
mov edx, dword [esi]
mov dword [ebp - 8], 0xa3d6efb4
add edx, ebx
xor dword [ebp - 8], 0x2409a8cd
mov dword [edi], edx
add dword [ebp - 0x14], ebx
add edi, 0xb3dba422
add edi, 0x4c245be2
add esi, 0xda07f06c
add esi, 0x25f80f98
loop 0x10026f3b
add eax, 0xffa56f3a
sub eax, 0xffa47f5b
mov ebx, eax
add eax, 0xf9caf714
sub eax, 0xf9caf70f
mov ecx, 0xadd986e
add ecx, 0x5226792
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x1003ba10
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x1006bd68]
test eax, eax
je 0x1003ba3b
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1003ba3b
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1003ba3b
mov ecx, dword [esp + 4]
nop
cmp dword [eax], ecx
je 0x1003ba3e
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x1003ba30
xor eax, eax
ret
mov eax, dword [eax + 0xc]
ret

Function at 0x1003bc40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1006bd68]
push edi
mov edi, dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1003bc57
push eax
call edi
test eax, eax
jne 0x1003bc8d
push esi
call fcn.10026e20
push 0x1003b950
push 0x1006bd64
mov esi, eax
call fcn.10026e20
mov eax, dword [0x1006bd68]
add esp, 8
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, dword [0x1006bd68]
pop esi
test eax, eax
jne 0x1003bc8a
pop edi
ret
push eax
call edi
pop edi
ret
Function at 0x1003bd80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10043248
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006b894]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x1006bd68]
test eax, eax
jne 0x1003bdb2
xor esi, esi
jmp 0x1003bdbb
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x1003bdfd
cmp dword [esi + 0x14], 0
jne 0x1003be3f
cmp dword [esi + 0x10], 0
jne 0x1003be45
push 0x1003b950
push 0x1006bd64
call fcn.10026e20
mov eax, dword [0x1006bd68]
add esp, 8
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x1003be2b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003be2b
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x1003be85
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1003be73
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x1003be45
cmp dword [esi + 0x14], 0
je 0x1003bdd7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1003beaa
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x1003bedb
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1003bedb
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003bedb
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x1003be8f
jmp 0x1003bdd1
jmp 0x1003bd80
Function at 0x1003bf00
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10043278
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1006b894]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [0x1006bd68]
mov dword [esp + 0x10], 0
test eax, eax
je 0x1003bf53
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1003bf53
mov esi, dword [eax + 0x14]
test esi, esi
je 0x1003bf53
mov eax, dword [esp + 0x18]
cmp dword [esi], eax
je 0x1003bfc0
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x1003bf48
call fcn.1003bc40
lea esi, [eax + 0x14]
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.10026e20
add esp, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
test esi, esi
je 0x1003bfaf
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1003bfaf
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003bfaf
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
cmp byte [esp + 0x28], 0
je 0x1003bfd9
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1003bfd9
mov eax, dword [ecx]
mov edx, dword [esi + 0xc]
mov eax, dword [eax + 4]
push edx
call eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 4]
call fcn.1003bb20
mov edx, dword [esp + 0x24]
mov dword [esi + 0xc], edx
jmp 0x1003bf75