joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031188
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
mov dword [ebp - 0x24], 0x51475e25
mov dword [ebp - 0x20], 0x44424a4d
mov dword [ebp - 0x1c], 0x58644277
mov dword [ebp - 0x18], 0x5746414c
mov dword [ebp - 0x14], 0x46212875
mov dword [ebp - 0x10], 0x24326761
mov dword [ebp - 0xc], 0x474634
mov dword [ebp - 8], ecx
call eax
push 0x5f5e100
mov ebx, eax
push 0
push ebx
call esi
mov edi, eax
xor ecx, ecx
mov byte [ecx + edi], cl
inc ecx
cmp ecx, 0x5f5e100
jb 0x100311d5
movzx eax, byte [edi + 0x64]
imul esi, eax, 0x28
add esi, 0x1002f780
xor ecx, ecx
xor edx, edx
mov dword [ebp - 4], 0x1c
mov eax, ecx
div dword [ebp - 4]
mov al, byte [ebp + edx - 0x24]
xor byte [ecx + 0x10030720], al
inc ecx
cmp ecx, 0x7d0
jb 0x100311f0
push edi
push 0
push ebx
call dword [ebp - 8]
push resource.9
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100311f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
mov dword [ebp - 0x24], 0x51475e25
mov dword [ebp - 0x20], 0x44424a4d
mov dword [ebp - 0x1c], 0x58644277
mov dword [ebp - 0x18], 0x5746414c
mov dword [ebp - 0x14], 0x46212875
mov dword [ebp - 0x10], 0x24326761
mov dword [ebp - 0xc], 0x474634
mov dword [ebp - 8], ecx
call eax
push 0x5f5e100
mov ebx, eax
push 0
push ebx
call esi
mov edi, eax
xor ecx, ecx
mov byte [ecx + edi], cl
inc ecx
cmp ecx, 0x5f5e100
jb 0x100311d5
movzx eax, byte [edi + 0x64]
imul esi, eax, 0x28
add esi, 0x1002f780
xor ecx, ecx
xor edx, edx
mov dword [ebp - 4], 0x1c
mov eax, ecx
div dword [ebp - 4]
mov al, byte [ebp + edx - 0x24]
xor byte [ecx + 0x10030720], al
inc ecx
cmp ecx, 0x7d0
jb 0x100311f0
push edi
push 0
push ebx
call dword [ebp - 8]
push resource.9
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4013a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4013f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013f9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4013e8
cmp esi, edx
jae 0x4013f9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4013d6
cmp esi, edx
jae 0x4013f9
cmp word [esi], 0
je 0x4013f9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x406b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ba11
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 0xc]
lea esi, [edi + 0x38]
mov eax, dword [ecx + esi*4]
lea esi, [ecx + esi*4]
cmp dword [eax - 0xc], 0
je 0x406bcf
mov ecx, dword [ebp + 8]
push esi
call fcn.00407b70
jmp 0x406d14
cmp edi, 0xc
je 0x406c5d
mov eax, dword [ecx + 0x1ec]
xor ebx, ebx
sub eax, 1
je 0x406bef
sub eax, 1
jne 0x406bf6
or ebx, 0xffffffff
jmp 0x406bf6
call fcn.00406da0
mov ebx, eax
mov eax, dword [esi]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x406c1b
push 0x104
mov ecx, esi
call fcn.004044f0
mov eax, dword [esi]
push eax
push 0
push ebx
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x406d39
push ecx
mov ecx, esi
call fcn.00403fd0
push dword [esi]
push edi
push str.ShellFolder__d___S
push 0x7b
push str.Environment::GetShellFolder
call fcn.00408e10
mov ecx, dword [ebp + 8]
add esp, 0x14
push esi
call fcn.00407b70
jmp 0x406d14
push 0x1c
lea eax, [ebp + 0xc]
push eax
call fcn.00406b80
mov dword [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [eax]
mov edi, dword [esi]
sub edi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x406cbf
cmp dword [edi + 0xc], 0
jl 0x406cb4
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x406cb4
call fcn.00404490
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406cad
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
jmp 0x406cbf
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.00404550
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x406ceb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
call fcn.00407270
add esp, 4
test al, al
jne 0x406cff
mov ecx, esi
call fcn.004078f0
push str.Temp
mov ecx, esi
call fcn.00403a20
mov ecx, dword [ebp + 8]
push esi
call fcn.00407b70
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
push 0x78
mov edx, str.Environment::GetShellFolder
mov ecx, str.c:_buildagentwork73b466a3166516aprojectscommonenvironment.cpp
call fcn.00405890
int3
Function at 0x419504
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebx
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
jne 0x4194cc
test ecx, edi
cli
invalid
jmp dword [esi - 0x3a]
test edx, edi
cli
invalid
invalid
jns 0x4194da
test ebx, edi
cli
invalid
call [ecx*4 - 0x5137b]
call dword [eax - 0x18]
jge 0x419517
invalid
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00418858
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.00418893
insb byte es:[edi], dx
pop esi
sub ebp, edi
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
invalid
test dword [eax - 4], ebp
jne 0x4194cc
test ecx, edi
cli
invalid
Function at 0x1016427
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
pushal
mov ebx, 0x7fffffff
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, esi
imul eax, edx, 0x10dcd
add eax, 0x116c5
xor edx, edx
div ebx
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
loop 0x101643c
popal
leave
ret 0xc

Function at 0x41d8b4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x41d8c3
pop dword [ebp - 0x10]
mov eax, 0x41d8c3
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3dee3
push 0
mov eax, 0x490be759
sub eax, 0x48c99639
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xb8753777
sub ecx, 0xb874e945
xor edx, edx
add edx, eax
mov edi, 0x432e00
add edi, dword [ebp - 0x10]
mov esi, 0x534f16f0
xor dword [ebp - 8], edi
mov ebx, dword [edi]
sub dword [ebp - 0xc], 0xb7c32b5
add ebx, esi
sub dword [ebp - 4], 0x46b19cd1
mov dword [edx], ebx
add dword [ebp - 0xc], ecx
add edx, 4
add edi, 4
loop 0x41d913
add eax, 0xdc28ad0e
add eax, 0x23d87e8d
mov ebx, eax
add eax, 0xb90aaeb
sub eax, 0xb90aae6
mov ecx, 0x734b204c
add ecx, 0x8cf4dfb4
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x47ad80
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0xf046c230
jmp 0x47ad66
mov byte [esp], ch
call 0x47ad3d
mov dword [esp + 0x18], edi
lea esp, [esp + 0x18]
pushfd
jmp 0x47ad18
bswap edi
setge dh
jmp 0x47ade1
jmp 0x47ad53
bsf ax, di
jmp 0x47adb3
mov esi, dword [esp]
jmp 0x47ad82
lea edi, [esp]
mov ax, 0xfba8
call fcn.0047ad9d
mov ebp, dword [esp + 0x2c]
neg dl
jge 0x47ad98
mov esi, dword [esp]
bsf ax, di
jmp 0x47adb3

Function at 0x47ad9d
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea eax, [edx*4]
jmp 0x47adbf
sub esp, 0xbc
mov esi, esp
bt ebx, edi
jbe 0x47ae0a
lea ebx, [ebp*4]
xchg bl, cl
jmp 0x47adfb
lea ebx, [ebp*4]
xchg bl, cl
mov ebx, ebp
rdtsc
jmp 0x47ae37
jmp 0x47adf2
mov cx, sp
jmp 0x47ae15
lea ecx, [eax*4]
lea ecx, [esp + 0xb0]
jmp 0x47ae56
push esp
xchg dx, ax
neg ah
jo 0x47ae0c
mov cx, sp
lea ecx, [eax*4]
lea ecx, [esp + 0xb0]
jmp 0x47ae56
sub ebp, 0x58e6c956
mov ax, word [esp]
inc ah
ja 0x47ae9b
jbe 0x47ae85
stc
mov cl, 0x63
neg edx
call fcn.0047aea8
imul byte [edi - 1]
lcall 0x1f8c, 0xbd02c469
xchg cx, ax
stc
mov cl, 0x63
neg edx
rdtsc
jmp 0x47b02a
ror ebp, 0
lea edx, reloc.KERNEL32.dll_GetProcAddress
call fcn.0047aec5
not ebp
btr cx, bp
jnp 0x47b072
mov edx, 0xd5ae35b5
setae ch
mov ch, dh
jmp 0x47b0ca
mov edx, 0xd5ae35b5
setae ch
mov ch, dh
jmp 0x47b0ca
jmp 0x47b05c
add ebp, dword [edi]
mov al, 0x22
lea eax, [ebp + 0x6f]
mov cx, word [esp]
bswap eax
jmp 0x47b08a

Function at 0x4bca01
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
call fcn.004bdb9c
push esi
bsf esi, ecx
lea esi, [ecx + ebp]
sub si, sp
jmp 0x4bdb15
call fcn.004bdfbd
lea esp, [esp + 4]
pop esi
jmp 0x4bb81f
xor eax, eax
jmp 0x4bb855
mov eax, dword [ecx + 0x3c]
pushal
lea edx, [ebx - 0xb8]
pop dword [esp + 0x10]
jmp 0x4bca40
lea esp, [esp + 0x20]
and dword [ebp - 0xc], 0
not dh
lea edx, [esp + 0x2b]
jmp 0x4bcaa4
lea esp, [esp + 0x1c]
cmp word [eax + 0x18], dx
jmp 0x4bcab3
mov edx, 0x10b
pushfd
sub esp, 0xd
pop dword [esp]
lea esp, [esp + 1]
jmp 0x4bca71
add eax, ecx
sub esp, 0x13
mov edx, dword [esp + 0x11]
lea esp, [esp + 3]
jmp 0x4bca87
je 0x4ba803
mov eax, dword [esp]
mov ax, 0x13d
bswap eax
mov ax, 0xfa17
jmp 0x4be626
je 0x4bb8e4
mov ax, cx
mov ah, byte [esp]
mov eax, ebp
jmp 0x4bdafc
add esi, ecx
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x18], eax
jmp 0x4bdadc
ror eax, 0x1b
mov eax, dword [esi + 0x20]
call fcn.004bdb50
mov word [eax], es
xchg esi, eax
int1
add ch, al
xor bh, byte [ebp + 0x75c7342d]
or al, 0x9f
lea esi, [ebp*4]
mov esi, dword [eax + 0x78]
clc
push bp
lea esp, [esp + 2]
jmp 0x4bdaf2
xor eax, eax
jmp 0x4bb81f

Function at 0x4e6b75
Capabilities:
Execute anti-debugging instructions

Disassembly:
add dword [ebp - 4], 0x14
not dx
rdtsc
jmp 0x4e710e
test edx, edx
jmp 0x4e7154
add esp, 5
lea esp, [esp + 3]
jmp 0x4e6bab
lea esp, [esp + 4]
test eax, eax
je 0x4e670d
jne 0x4e67a4
xchg ebx, eax
sbb cl, byte [eax - 0x450e511]
ror byte [ebp - 0x24], cl
lea eax, [ecx + edi]
jmp 0x4e7250
jne 0x4e67d0
je 0x4e664e
mov edx, dword [ebp - 4]
mov ah, al
mov eax, 0x286e8f95
mov eax, dword [ebp - 0x14]
jmp 0x4e680b
Function at 0x78ab1d3f
Capabilities:
Accept command line arguments
Get thread local storage value

Disassembly:
push 8
push 0x78ab1de0
call fcn.78ab0950
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x78abb8b1
xor edi, edi
cmp eax, edi
je 0x78ac7b31
cmp eax, 2
jne 0x78ab2967
call sym.MSVCR100.dll___set_flsgetvalue
push dword [0x78b548b4]
push dword [0x78b548b8]
call dword [sym.imp.kernel32.dll_TlsGetValue]
call eax
test eax, eax
jne 0x78ab1dd1
push 0x214
push 1
call fcn.78af2983
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x78ac7b77
push esi
push dword [0x78b548b4]
push dword [0x78b54e50]
call dword [sym.imp.kernel32.dll_DecodePointer]
call eax
test eax, eax
je 0x78ad7484
push edi
push esi
call sym.MSVCR100.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
call fcn.78ab1d38
xor eax, eax
inc eax
call fcn.78ab0995
ret
cmp eax, 3
jne 0x78ab1dd1
push edi
call fcn.78af2983
pop ecx
jmp 0x78ab1dd1
call fcn.78abb359
test eax, eax
je 0x78ac7b77
call fcn.78abba14
test eax, eax
je 0x78ad7437
call fcn.78af2983
test eax, eax
js 0x78ad7441
call fcn.78af2983
mov dword [0x78b55428], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [sym.MSVCR100.dll__acmdln], eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [sym.MSVCR100.dll__wcmdln], eax
call fcn.78abb8a6
call fcn.78abb925
test eax, eax
js 0x78ac7b7e
push 0
call fcn.78af2983
pop ecx
test eax, eax
jne 0x78ac7b7e
inc dword [0x78b55424]
jmp 0x78ab1dd1
cmp dword [0x78b55424], edi
jle 0x78ac7b77
dec dword [0x78b55424]
mov dword [ebp - 4], edi
cmp dword [0x78b55eac], edi
je 0x78ad7448
call fcn.78ac7ac7
cmp dword [ebp + 0xc], edi
je 0x78ad7452
mov dword [ebp - 4], 0xfffffffe
call fcn.78ac7b6d
jmp 0x78ab1dd1
xor eax, eax
jmp 0x78ab1dd9
call fcn.78b26d78
jmp 0x78ad7441
call fcn.78b266ba
jmp 0x78ac7b77
call fcn.78afc6e7
jmp 0x78ad7437
call sym.MSVCR100.dll__cexit
jmp 0x78ac7b4e
call fcn.78b26d78
call fcn.78afc6e7
call fcn.78b266ba
jmp 0x78ac7b5c
push esi
call fcn.78af2983
pop ecx
jmp 0x78ac7b77

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x78ad7b05
test dword [ebp + 0xc], 0xfffffff9
jne 0x78ad7b05
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x78ac09bb
test al, 0x10
jne 0x78ab241d
test al, 1
je 0x78ab241d
test byte [ebp + 0xc], 2
jne 0x78ad7b22
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.78af2983
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78ab241f
call sym.MSVCR100.dll___doserrno
mov dword [eax], esi
call sym.MSVCR100.dll__errno
push 0x16
pop esi
mov dword [eax], esi
call sym.MSVCR100.dll__invalid_parameter_noinfo
mov eax, esi
jmp 0x78ab241f
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78ac09c8
Function at 0x78ac235f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
cmp esi, ecx
je 0x78ae06f7
cmp word [esi], cx
je 0x78ac2389
add eax, 2
cmp word [eax], cx
jne 0x78ac2379
add eax, 2
cmp word [eax], cx
jne 0x78ac2379
push ebx
sub eax, esi
lea ebx, [eax + 2]
push edi
push ebx
call fcn.78af2983
mov edi, eax
pop ecx
test edi, edi
je 0x78ac23a8
push ebx
push esi
push edi
call fcn.78af2983
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x78ac78ec
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x78ac7928
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x78ac7928
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x78ac7928
xor eax, eax
cmp dword [ecx + 0x74], 0xe
jbe 0x78ac7927
cmp dword [ecx + 0xe8], eax
setne al
ret
xor eax, eax
ret
Function at 0x78ae87e8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x24
mov eax, 0x78b4fc38
call fcn.78b24a94
mov eax, dword [ebx + 0x30]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
test eax, eax
jne 0x78ae8936
cmp dword [ebx + 0x1c], eax
setne byte [ebp - 0x29]
cmp dword [ebx + 0x18], eax
jne 0x78ae890b
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x24]
mov edx, dword [ebx + 0x14]
imul edi, edi, 0x2c
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], esi
imul esi, esi, 0x2c
add esi, dword [eax + edi + 0x28]
mov ecx, dword [esi + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
test ecx, ecx
jne 0x78ae885b
mov ecx, dword [edx + 0x10]
add ecx, edi
inc dword [ecx + 0x1c]
inc dword [edx + 0xac]
cmp byte [esi + 0x29], 0
je 0x78ae885b
mov eax, dword [ebp - 0x30]
mov byte [esi + 0x2a], 1
call fcn.78af2d19
cmp byte [ebp - 0x29], 0
jne 0x78ae891b
inc dword [edx + 0xb4]
inc dword [esi + 0x24]
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
lea esi, [ebp - 0x28]
mov dword [ebp - 0x30], eax
call fcn.78af2983
mov cx, word [eax + 4]
mov word [ebx + 0xc], cx
mov eax, dword [eax]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x14]
imul eax, eax, 0x2c
mov ecx, dword [ecx + 0x10]
mov esi, dword [eax + ecx]
movzx edi, word [eax + ecx + 0x10]
push 0xc
lea eax, [ebp - 0x1c]
push 0
push eax
call sym.MSVCR100.dll_memset
add esp, 0xc
push dword [ebp - 0x30]
mov dword [ebp - 0x1c], esi
lea esi, [ebp - 0x1c]
mov word [ebp - 0x18], di
call fcn.78af2983
mov edi, dword [ebx + 0x14]
mov esi, ebx
call fcn.78af304f
mov esi, dword [ebx + 0x14]
lea edi, [esi + 0x20]
push edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
imul eax, eax, 0x2c
mov ecx, dword [ebx + 0x28]
mov edx, dword [esi + 0x10]
imul ecx, ecx, 0x2c
mov eax, dword [eax + edx + 0x28]
lea ecx, [eax + ecx + 8]
mov eax, ebx
call fcn.78af3295
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x78ae891b
mov ecx, dword [ebx + 0x14]
lea ecx, [ecx + 0xc4]
mov eax, ebx
call fcn.78af3295
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x70]
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
push ebx
push esi
mov dword [ebx + 0x20], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
call fcn.78b24b03
ret
Function at 0x78aeb96a
Capabilities:
Allocate thread local storage

Disassembly:
push 0x20
mov eax, 0x78b4f893
call fcn.78abb69a
mov edi, dword [ebp + 8]
push dword [0x78b5736c]
xor esi, esi
mov dword [edi], 0x78ae3cd0
lea eax, [edi + 0x24]
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], 0x10
mov dword [edi + 0x10], esi
mov dword [edi + 0x1c], esi
push eax
mov dword [edi + 0x20], esi
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [ebp - 4], esi
push dword [0x78b5736c]
lea ebx, [edi + 0x68]
mov dword [edi + 0x3c], esi
mov dword [edi + 0x40], esi
mov dword [edi + 0x44], esi
mov dword [edi + 0x48], esi
mov dword [edi + 0x4c], esi
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
mov dword [edi + 0x5c], esi
lea eax, [ebx + 0xc]
mov dword [edi + 0x60], esi
mov dword [edi + 0x64], esi
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebx], esi
mov dword [ebx + 4], esi
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [ebx + 8], eax
cmp eax, 0xffffffff
jne 0x78aeba23
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, esi
jle 0x78aeba0c
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x2c]
call fcn.78af2983
push 0x78b50c48
lea eax, [ebp - 0x2c]
push eax
call fcn.78af2983
push 0x78aebae8
push 0x78ae3cb0
mov byte [ebp - 4], 2
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, esi
je 0x78aeba58
mov ecx, dword [0x78b555e8]
xor ecx, eax
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x90], esi
jmp 0x78aebaa7
push 4
push 0x3000
push 0x1000
push esi
mov dword [edi + 0x8c], esi
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [edi + 0x90], eax
cmp eax, esi
jne 0x78aebaa4
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x78abb754
call fcn.78af2983
mov dword [ebp - 0x1c], 0x78abc7ec
push 0x78abc888
lea eax, [ebp - 0x1c]
jmp 0x78aeba1d
mov byte [eax], 1
push 1
call fcn.78af2983
pop ecx
call fcn.78af2983
push esi
push esi
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0xc]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.78af2983
mov dword [edi + 0x4c], eax
pop ecx
mov eax, edi
call fcn.78abbf60
ret 4
Function at 0x78aeefb6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xc
mov eax, 0x78b4ffc4
call fcn.78abb69a
mov ebx, ecx
mov esi, dword [sym.imp.kernel32.dll_GetTickCount]
push 0x64
pop edi
call esi
sub eax, 0x1f4
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x20]
cmp eax, 2
je 0x78aef093
lea eax, [ebx + 0x24]
mov dword [ebp - 0x14], eax
push edi
push dword [ebx + 0x48]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov eax, dword [ebx + 0x20]
sub eax, 0
je 0x78aef066
dec eax
jne 0x78aef07a
cmp dword [ebp - 0x18], 0x102
jne 0x78aef035
mov eax, ebx
call fcn.78af2983
cmp dword [ebx + 0x10], 0
jbe 0x78aef02b
push 0
call fcn.78af2983
call esi
push 0x64
mov dword [ebp - 0x10], eax
pop edi
jmp 0x78aef07a
call esi
sub eax, dword [ebp - 0x10]
push 0x64
pop edi
mov dword [ebp - 0x18], eax
cmp eax, edi
jbe 0x78aef054
cmp eax, 0x82
jbe 0x78aef01e
mov edi, ebx
call fcn.78af2983
jmp 0x78aef02b
cmp dword [ebx + 0x10], 0
jbe 0x78aef061
push 0
call fcn.78af2983
sub edi, dword [ebp - 0x18]
jmp 0x78aef07a
mov edi, ebx
call fcn.78af2983
movzx edi, al
neg edi
sbb edi, edi
and edi, 0xffffff9b
add edi, 0x64
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x20]
cmp eax, 2
jne 0x78aeefe9
call fcn.78abbf60
ret
Function at 0x78aefc47
Capabilities:
Allocate thread local storage

Disassembly:
push 0x14
mov eax, 0x78b4fbe6
call fcn.78abb69a
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [edi + 4]
mov dword [edi], 0x78ae3d2c
call fcn.78af2983
mov byte [ebp - 4], 1
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
lea esi, [edi + 0x40]
call fcn.78af1d01
push dword [0x78b5736c]
mov esi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
lea eax, [edi + 0x90]
push eax
call esi
push dword [0x78b5736c]
lea eax, [edi + 0xa8]
mov dword [eax], ebx
mov dword [eax + 4], eax
mov dword [eax + 8], ebx
or dword [edi + 0xc8], 0xffffffff
mov dword [edi + 0xb4], 0xffffffff
mov dword [edi + 0xb8], 0xffffffff
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xcc], ebx
mov dword [edi + 0xd4], ebx
mov dword [edi + 0xd8], ebx
mov dword [edi + 0xdc], 1
mov dword [edi + 0xe0], ebx
mov dword [edi + 0xe4], ebx
mov dword [edi + 0xe8], ebx
mov dword [edi + 0xec], ebx
mov dword [edi + 0xf0], ebx
mov dword [edi + 0xf8], ebx
lea eax, [edi + 0x114]
mov dword [edi + 0x100], ebx
push eax
mov dword [edi + 0x104], ebx
mov dword [edi + 0x108], ebx
mov dword [edi + 0x10c], ebx
call esi
mov byte [ebp - 4], 4
mov esi, dword [sym.imp.kernel32.dll_InitializeSListHead]
lea eax, [edi + 0x140]
mov dword [edi + 0x12c], ebx
push eax
mov dword [edi + 0x130], ebx
mov dword [edi + 0x134], ebx
call esi
lea eax, [edi + 0x148]
push eax
call esi
lea eax, [edi + 0x150]
push eax
call esi
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.78af2983
mov ecx, dword [ebp + 0xc]
push 4
mov dword [edi + 8], eax
call fcn.78af2983
mov ecx, dword [ebp + 0xc]
push 7
mov word [edi + 0x10], ax
call fcn.78af2983
mov dword [edi + 0xc], eax
call fcn.78aeb72f
mov ecx, dword [ebp + 0xc]
mov esi, eax
push 2
call fcn.78af2983
mov ecx, esi
shl ecx, 2
cmp ecx, eax
jbe 0x78aefdbd
call fcn.78aeb72f
shl eax, 2
jmp 0x78aefdc7
mov ecx, dword [ebp + 0xc]
push 2
call fcn.78af2983
mov dword [edi + 0x110], eax
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x78aefe06
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, ebx
jle 0x78aefdef
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x20]
call fcn.78af2983
push 0x78b50c48
lea eax, [ebp - 0x20]
push eax
call fcn.78af2983
mov eax, edi
call fcn.78abbf60
ret 8