joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415377
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x477320]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4153ba
cmp word [esi], dx
jne 0x4153ba
or byte [edi + eax + 0x28], 4
jmp 0x4153bf
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x415512
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4154f2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x415401
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415437
cmp eax, edx
jae 0x415443
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4153d9
jmp 0x415512
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4154ee
cmp dword [ebp - 0x14], 0
je 0x4154ee
mov eax, dword [ebx*4 + 0x477320]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4154c6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41548f
mov word [esi], cx
jmp 0x4154c2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x477320]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x477320]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x477320]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415512
pop ebx
cmp word [ebp - 4], bx
jne 0x4154d7
cmp esi, dword [ebp + 0xc]
jne 0x4154d7
mov word [esi], bx
jmp 0x41550f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415dab
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415512
push 0xd
jmp 0x41550b
mov ecx, dword [ebx*4 + 0x477320]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415509
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415512
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x78aa1e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x78aa1e8f
pop dword [ebp - 4]
mov eax, 0xcd44c0bf
sub eax, 0x549aa230
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x5480e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0xaafca868
add ecx, 0x5503a3eb
mov edi, eax
mov ebx, 0x182b34a2
add ebx, 0x608aa95e
add ebx, dword [ebp - 4]
mov edx, 0x75bf30be
sub edx, 0xf9ec1c7d
mov esi, dword [ebx]
xor esi, edx
mov dword [edi], esi
add edi, 0x5229101f
add edi, 0xadd6efe5
add ebx, 0x6d917d85
sub ebx, 0x6d917d81
loop 0x78aa1ee9
add eax, 0x1241f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa4427066
add ecx, 0xd4678f9a
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x78ab07a7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x78b53610]
jne sym.MSVCR100.dll___report_gsfailure
repz ret

Function at 0x78ab203f
Capabilities:
Accept command line arguments
Get thread local storage value

Disassembly:
push 8
push 0x78ab20e0
call fcn.78ab0c80
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x78abb235
xor edi, edi
cmp eax, edi
je 0x78ac8065
cmp eax, 2
jne 0x78ab25a7
call sym.MSVCR100.dll___set_flsgetvalue
push dword [0x78b538b4]
push dword [0x78b538b8]
call dword [sym.imp.kernel32.dll_TlsGetValue]
call eax
test eax, eax
jne 0x78ab20d1
push 0x214
push 1
call sym.MSVCR100.dll_memcpy
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x78ac80ab
push esi
push dword [0x78b538b4]
push dword [0x78b53e58]
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.78ab2038
xor eax, eax
inc eax
call fcn.78ab0cc5
ret
cmp eax, 3
jne 0x78ab20d1
push edi
call sym.MSVCR100.dll_memcpy
pop ecx
jmp 0x78ab20d1
call fcn.78abad05
test eax, eax
je 0x78ac80ab
call fcn.78abb398
test eax, eax
je 0x78ad7437
call sym.MSVCR100.dll_memcpy
test eax, eax
js 0x78ad7441
call sym.MSVCR100.dll_memcpy
mov dword [0x78b54470], 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.78abb22a
call fcn.78abb2a9
test eax, eax
js 0x78ac80b2
push 0
call sym.MSVCR100.dll_memcpy
pop ecx
test eax, eax
jne 0x78ac80b2
inc dword [0x78b5446c]
jmp 0x78ab20d1
cmp dword [0x78b5446c], edi
jle 0x78ac80ab
dec dword [0x78b5446c]
mov dword [ebp - 4], edi
cmp dword [0x78b54eb4], edi
je 0x78ad7448
call fcn.78ac7ffb
cmp dword [ebp + 0xc], edi
je 0x78ad7452
mov dword [ebp - 4], 0xfffffffe
call fcn.78ac80a1
jmp 0x78ab20d1
xor eax, eax
jmp 0x78ab20d9
call fcn.78b26ca8
jmp 0x78ad7441
call fcn.78b265ea
jmp 0x78ac80ab
call fcn.78afc86f
jmp 0x78ad7437
call sym.MSVCR100.dll__cexit
jmp 0x78ac8082
call fcn.78b26ca8
call fcn.78afc86f
call fcn.78b265ea
jmp 0x78ac8090
push esi
call sym.MSVCR100.dll_memcpy
pop ecx
jmp 0x78ac80ab
Function at 0x78ab27b6
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 0x78abfa08
test al, 0x10
jne 0x78ab27f8
test al, 1
je 0x78ab27f8
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 sym.MSVCR100.dll_memcpy
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78ab27fa
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 0x78ab27fa
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78abfa15

Function at 0x78ac1201
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 0x78ae06ff
cmp word [esi], cx
je 0x78ac122b
add eax, 2
cmp word [eax], cx
jne 0x78ac121b
add eax, 2
cmp word [eax], cx
jne 0x78ac121b
push ebx
sub eax, esi
lea ebx, [eax + 2]
push edi
push ebx
call sym.MSVCR100.dll_memcpy
mov edi, eax
pop ecx
test edi, edi
je 0x78ac124a
push ebx
push esi
push edi
call sym.MSVCR100.dll_memcpy
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 0x78ac7e18
Capabilities:
Parse pe header

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

Disassembly:
push 0x28
mov eax, 0x78b4ee00
call fcn.78b2499c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
test eax, eax
jne 0x78ae8926
cmp dword [ebx + 0x1c], eax
setne byte [ebp - 0x29]
cmp dword [ebx + 0x18], eax
jne 0x78ae88fb
cmp byte [ebp - 0x29], al
mov edi, dword [ebx + 0x14]
sete al
movzx eax, al
push eax
push dword [ebx + 0x28]
mov eax, dword [ebx + 0x24]
call sym.MSVCR100.dll_memcpy
cmp byte [ebp - 0x29], 0
jne 0x78ae890b
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
lea esi, [ebp - 0x28]
mov dword [ebp - 0x30], eax
call sym.MSVCR100.dll_memcpy
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 sym.MSVCR100.dll_memcpy
mov edi, dword [ebx + 0x14]
mov esi, ebx
call fcn.78af314f
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.78af3395
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x78ae890b
mov ecx, dword [ebx + 0x14]
lea ecx, [ecx + 0xc4]
mov eax, ebx
call fcn.78af3395
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.78b24a0b
ret 4
Function at 0x78aebae2
Capabilities:
Allocate thread local storage

Disassembly:
push 0x20
mov eax, 0x78b4ea57
call fcn.78abb046
mov edi, dword [ebp + 8]
push dword [0x78b5636c]
xor esi, esi
mov dword [edi], 0x78ae3cd8
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 [0x78b5636c]
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 0x78aebb9b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, esi
jle 0x78aebb84
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x2c]
call sym.MSVCR100.dll_memcpy
push 0x78b4feb4
lea eax, [ebp - 0x2c]
push eax
call sym.MSVCR100.dll_memcpy
push 0x78aebc60
push 0x78ae3cb8
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 0x78aebbd0
mov ecx, dword [0x78b54630]
xor ecx, eax
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x90], esi
jmp 0x78aebc1f
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 0x78aebc1c
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x78abb0d8
call sym.MSVCR100.dll_memcpy
mov dword [ebp - 0x1c], 0x78abbd3c
push 0x78abbdd8
lea eax, [ebp - 0x1c]
jmp 0x78aebb95
mov byte [eax], 1
push 1
call sym.MSVCR100.dll_memcpy
pop ecx
call sym.MSVCR100.dll_memcpy
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 sym.MSVCR100.dll_memcpy
mov dword [edi + 0x4c], eax
pop ecx
mov eax, edi
call fcn.78abb658
ret 4
Function at 0x78aef174
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xc
mov eax, 0x78b4f1e0
call fcn.78abb046
mov edi, ecx
mov ebx, dword [sym.imp.kernel32.dll_GetTickCount]
push 0x64
pop esi
call ebx
sub eax, 0x1f4
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x20]
cmp eax, 2
je 0x78aef263
lea eax, [edi + 0x24]
mov dword [ebp - 0x14], eax
push esi
push dword [edi + 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 [edi + 0x20]
sub eax, 0
je 0x78aef237
dec eax
jne 0x78aef24a
cmp dword [ebp - 0x18], 0x102
jne 0x78aef1f2
call sym.MSVCR100.dll_memcpy
cmp dword [edi + 0x10], 0
jbe 0x78aef1e8
push 0
push edi
call sym.MSVCR100.dll_memcpy
call ebx
push 0x64
mov dword [ebp - 0x10], eax
pop esi
jmp 0x78aef24a
call ebx
sub eax, dword [ebp - 0x10]
push 0x64
pop esi
mov dword [ebp - 0x18], eax
cmp eax, esi
jbe 0x78aef224
cmp eax, 0x82
jbe 0x78aef20f
call sym.MSVCR100.dll_memcpy
jmp 0x78aef21d
cmp dword [edi + 0x10], 0
jbe 0x78aef21d
push 0
push edi
call sym.MSVCR100.dll_memcpy
call ebx
mov dword [ebp - 0x10], eax
jmp 0x78aef24a
cmp dword [edi + 0x10], 0
jbe 0x78aef232
push 0
push edi
call sym.MSVCR100.dll_memcpy
sub esi, dword [ebp - 0x18]
jmp 0x78aef24a
push edi
call sym.MSVCR100.dll_memcpy
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xffffff9b
add esi, 0x64
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x20]
cmp eax, 2
jne 0x78aef1a7
call fcn.78abb658
ret
Function at 0x78aefc51
Capabilities:
Allocate thread local storage

Disassembly:
push 0x14
mov eax, 0x78b4edae
call fcn.78abb046
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [edi + 4]
mov dword [edi], 0x78ae3d34
call sym.MSVCR100.dll_memcpy
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.78af1d1a
push dword [0x78b5636c]
mov esi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
lea eax, [edi + 0x90]
push eax
call esi
push dword [0x78b5636c]
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 sym.MSVCR100.dll_memcpy
mov ecx, dword [ebp + 0xc]
push 4
mov dword [edi + 8], eax
call sym.MSVCR100.dll_memcpy
mov ecx, dword [ebp + 0xc]
push 7
mov word [edi + 0x10], ax
call sym.MSVCR100.dll_memcpy
mov dword [edi + 0xc], eax
call fcn.78aeb834
mov ecx, dword [ebp + 0xc]
mov esi, eax
push 2
call sym.MSVCR100.dll_memcpy
mov ecx, esi
shl ecx, 2
cmp ecx, eax
jbe 0x78aefdc7
call fcn.78aeb834
shl eax, 2
jmp 0x78aefdd1
mov ecx, dword [ebp + 0xc]
push 2
call sym.MSVCR100.dll_memcpy
mov dword [edi + 0x110], eax
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x78aefe10
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, ebx
jle 0x78aefdf9
and eax, 0xffff
or eax, 0x80070000
push eax
lea ecx, [ebp - 0x20]
call sym.MSVCR100.dll_memcpy
push 0x78b4feb4
lea eax, [ebp - 0x20]
push eax
call sym.MSVCR100.dll_memcpy
mov eax, edi
call fcn.78abb658
ret 8
Function at 0x78af276d
Capabilities:
Get thread local storage value

Disassembly:
push 0
mov eax, 0x78b4f9fc
call fcn.78abb046
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
push dword [eax + 0x70]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x78af2828
mov ecx, eax
and ecx, 3
jne 0x78af279c
mov esi, eax
push eax
jmp 0x78af27b8
cmp ecx, 1
jne 0x78af27bf
and eax, 0xfffffffe
mov esi, dword [eax + 0x10]
mov eax, dword [esi + 0x20]
add esi, 4
test eax, eax
je 0x78af27b7
cmp byte [eax + 0x40], 0
jne 0x78af2828
push esi
call fcn.78ae880c
jmp 0x78af27f2
and eax, 0xfffffffd
mov esi, eax
lea edi, [esi + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov esi, dword [esi + 0x20]
mov eax, dword [esi + 0x28]
add esi, 0xc
test eax, eax
je 0x78af27e5
cmp byte [eax + 0x40], 0
je 0x78af27e5
xor esi, esi
jmp 0x78af27eb
push esi
call fcn.78ae880c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
test esi, esi
je 0x78af2828
cmp dword [esi + 0x14], ebx
je 0x78af2824
push 0x3c
call sym.MSVCR100.dll_memcpy
mov edi, eax
pop ecx
mov dword [ebp + 8], edi
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x78af2818
push esi
push ebx
call sym.MSVCR100.dll_memcpy
or dword [ebp - 4], 0xffffffff
push eax
mov esi, eax
call fcn.78ae880c
mov eax, esi
jmp 0x78af282a
xor eax, eax
call fcn.78abb658
ret 4

Function at 0x78af7403
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push 0x78af7494
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x78af7490
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x78af74b0
push ebx
call esi
mov ecx, dword [0x78b54630]
push 0x78af74c4
xor ecx, eax
push ebx
mov dword [edi], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af74dc
xor ecx, eax
push ebx
mov dword [edi + 4], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af74e8
xor ecx, eax
push ebx
mov dword [edi + 8], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af7500
xor ecx, eax
push ebx
mov dword [edi + 0xc], ecx
call esi
mov ecx, dword [0x78b54630]
push 0x78af7514
xor ecx, eax
push ebx
mov dword [edi + 0x10], ecx
call esi
mov ecx, dword [0x78b54630]
xor ecx, eax
mov dword [edi + 0x14], ecx
pop esi
mov eax, edi
pop ebx
ret
Function at 0x78afa890
Capabilities:
Get thread local storage value
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x78b53610]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x80c], edi
call fcn.78af035a
push dword [0x78b579bc]
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x78afa8e0
call dword [sym.imp.kernel32.dll_DebugBreak]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.78ab07a7
leave
ret
test esi, esi
je 0x78afa93d
cmp dword [esi + 0x1c], 0
je 0x78afa93d
mov eax, dword [esi + 0x18]
test eax, eax
je 0x78afa8f6
mov edi, dword [eax + 0x6c]
jmp 0x78afa8f9
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp - 0x80c]
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 8]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push eax
push 0x78afa9a8
lea eax, [ebp - 0x808]
push 0x400
push eax
call sym.MSVCR100.dll_memcpy
add esp, 0x2c
jmp 0x78afa962
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push 0x78afaa10
lea eax, [ebp - 0x808]
push 0x400
push eax
call sym.MSVCR100.dll_memcpy
add esp, 0x1c
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x808]
push eax
push dword [0x78b54634]
call sym.MSVCR100.dll_fwprintf
push dword [0x78b54634]
call sym.MSVCR100.dll_fflush
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
call dword [sym.imp.kernel32.dll_DebugBreak]
push 0xfffffffffffffff8
call sym.MSVCR100.dll_memcpy
int3

Function at 0x78afaac5
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x78b53610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x78b57a50]
test dword [ebp + 8], eax
je 0x78afab5a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call sym.MSVCR100.dll_memcpy
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [0x78b54634]
add esp, 0xc
test eax, eax
je 0x78afab4d
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR100.dll_fwprintf
pop ecx
pop ecx
push 0
push 0x32
push dword [0x78b57a5c]
push dword [0x78b57a58]
call fcn.78ac8690
add dword [0x78b57a58], 1
adc dword [0x78b57a5c], 0
or eax, edx
jne 0x78afab5a
push dword [0x78b54634]
call sym.MSVCR100.dll_fflush
pop ecx
jmp 0x78afab5a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.78ab07a7
leave
ret
Function at 0x78afea37
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
jne 0x78afea5e
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 0x78afeab3
test dword [ebp + 0xc], 0xfffffff9
jne 0x78afea44
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afea8b
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll_memcpy
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78afeab3
test al, 0x10
jne 0x78afeab1
test al, 1
je 0x78afeab1
test byte [ebp + 0xc], 2
je 0x78afeab1
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78afea82
xor eax, eax
pop esi
pop ebp
ret

Function at 0x78afeace
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78afeaf6
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78afeb13
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll_memcpy
pop ecx
jmp 0x78afeaf1
test byte [ebp + 0xc], 0x80
je 0x78afeb1e
and eax, 0xfffffffe
jmp 0x78afeb21
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78afeb04
xor eax, eax
pop ebp
ret

Function at 0x78b0048f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x78b004b7
call sym.MSVCR100.dll___doserrno
and dword [eax], 0
call sym.MSVCR100.dll__errno
mov dword [eax], 0x16
call sym.MSVCR100.dll__invalid_parameter_noinfo
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78b004d4
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll_memcpy
pop ecx
jmp 0x78b004b2
test byte [ebp + 0xc], 0x80
je 0x78b004df
and eax, 0xfffffffe
jmp 0x78b004e2
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78b004c5
xor eax, eax
pop ebp
ret