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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0
push esi
dec eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0x14], eax
test eax, eax
je 0x10020ae
cmp dword [esi], 0
jbe 0x10020ae
push 0x1001384
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_strstr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10020ae
sub eax, dword [esi]
push 1
sub eax, dword [ebp + 0xc]
push 0
inc eax
inc eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10020ab
xor eax, eax
jmp 0x10020b1
mov byte [edi], 0
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x1002c01
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1004f48
call fcn.01002dc4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1006d30
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002a16
cmp eax, esi
jne 0x1002a09
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002a19
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10029f0
xor esi, esi
inc esi
mov eax, dword [0x1006d2c]
cmp eax, esi
jne 0x1002a2c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002a67
mov eax, dword [0x1006d2c]
test eax, eax
jne 0x1002a61
mov dword [0x1006d2c], esi
push 0x1001194
push 0x1001188
call fcn.0100296d
pop ecx
pop ecx
test eax, eax
je 0x1002a67
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002b31
mov dword [0x10062ec], esi
mov eax, dword [0x1006d2c]
cmp eax, esi
jne 0x1002a8b
push 0x1001184
push 0x100117c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1006d2c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002a98
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1006d34], ebx
je 0x1002ab9
push 0x1006d34
call fcn.01002d39
pop ecx
test eax, eax
je 0x1002ab9
push ebx
push 2
push ebx
call dword [0x1006d34]
push dword [0x10062d4]
push dword [0x10062d8]
push dword [0x10062d0]
call fcn.0100246b
add esp, 0xc
mov dword [0x10062e8], eax
cmp dword [0x10062dc], ebx
jne 0x1002b17
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10062ec], ebx
jne 0x1002b25
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10062e8]
call fcn.01002e09
ret
call fcn.01002f11
jmp 0x10029ce
Function at 0x1004774
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006098]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x1004809
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1004792
sub eax, edx
sar eax, 1
mov ecx, 0x104
cmp eax, ecx
ja 0x1004809
push esi
push ecx
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcscpy_s
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10047c3
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x20c]
dec eax
dec eax
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x10047e9
cmp cx, 0x2f
jne 0x10047f0
xor ecx, ecx
mov word [eax], cx
jmp 0x10047d8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x100480b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01002c10
leave
ret
Function at 0x100481c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x768
mov eax, dword [0x1006098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [edi + 4]
mov dword [ebp - 0x768], eax
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
mov ecx, dword [edi + 4]
mov eax, ecx
add esp, 0xc
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x100485c
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1004871
sub eax, ecx
sar eax, 1
push 0x1001cf0
lea eax, [ebp + eax*2 - 0x20c]
push ebx
push eax
mov dword [ebp - 0x764], eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x760], eax
cmp eax, 0xffffffff
jne 0x10048cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x1004a57
mov ecx, 0x1001cec
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10048fd
test dx, dx
je 0x10048f9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10048fd
add eax, 4
add ecx, 4
test dx, dx
jne 0x10048d7
xor eax, eax
jmp 0x1004902
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004a1d
mov ecx, 0x1001ce4
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100493b
test dx, dx
je 0x1004937
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100493b
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004915
xor eax, eax
jmp 0x1004940
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004a1d
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
push eax
push ebx
push dword [ebp - 0x764]
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [edi + 0xc]
add esp, 0x10
test eax, eax
je 0x1004981
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
push 0x104
lea eax, [ebp - 0x730]
push eax
push dword [edi + 8]
call fcn.01004cdb
test eax, eax
je 0x1004a1d
cmp dword [edi + 0xc], 0
je 0x10049fa
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x30c]
push eax
lea edx, [ebp - 0x20c]
call fcn.010046a1
test eax, eax
je 0x10049fa
test byte [ebp - 0x75c], 0x10
je 0x1004a1d
lea esi, [ebp - 0x30c]
call fcn.01004774
test eax, eax
je 0x1004a1d
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
mov eax, esi
push eax
mov eax, dword [ebp + 8]
call fcn.010044e6
jmp 0x1004a1d
lea esi, [ebp - 0x20c]
call fcn.01004774
test eax, eax
je 0x1004a1d
mov eax, esi
push eax
mov eax, dword [ebp - 0x768]
call fcn.010045bf
mov esi, eax
test esi, esi
jne 0x1004a3a
lea eax, [ebp - 0x75c]
push eax
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x10048cc
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x1004a55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1004a55
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01002c10
leave
ret 8
Function at 0x404aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417ec6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x421080]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x404b4c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x404b4c
call fcn.004028c0
mov esi, eax
jmp 0x404c3c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x404b6f
call fcn.004028c0
jmp 0x404c2f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x404b8d
call fcn.004028c0
jmp 0x404c2f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x404bae
mov esi, 0x8007000e
jmp 0x404c31
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00402360
jmp 0x404bd8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x404bef
mov esi, 0x8007000e
jmp 0x404c31
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x404c0f
call fcn.004028c0
jmp 0x404c2f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004048d0
mov esi, eax
test edi, edi
je 0x404c3c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x404c60
lea ecx, [ebp - 0x418]
call fcn.004038a0
jmp 0x404c60
mov eax, esi
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.00416efc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4056a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4056b9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4056c5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4056c0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x405715
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x405720
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405720
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x405810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x405831
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x403b10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x40585a
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], edi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407885
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4078c4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4078c0
lea ebx, [ebx]
cmp esi, edx
jae 0x4078c4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4078b0
cmp esi, edx
jb 0x4078c9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x407ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41822b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x421080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
lea ecx, [edi + 0xc]
mov dword [edi], vtable.ATL::CComAggObject_class_COpcGroupClass_.0
call fcn.0040d5d0
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], vtable.ATL::CComContainedObject_class_COpcGroupClass_.0
mov dword [edi + 0x10], vtable.ATL::CComContainedObject_class_COpcGroupClass_.1.0
mov dword [edi + 0x1c], vtable.ATL::CComContainedObject_class_COpcGroupClass_.2.0
mov dword [edi + 0x20], vtable.ATL::CComContainedObject_class_COpcGroupClass_.3.0
mov dword [edi + 0x24], vtable.ATL::CComContainedObject_class_COpcGroupClass_.4.0
mov dword [edi + 0x28], vtable.ATL::CComContainedObject_class_COpcGroupClass_.5.0
mov dword [edi + 0x2c], vtable.ATL::CComContainedObject_class_COpcGroupClass_.6.0
mov dword [edi + 0x30], vtable.ATL::CComContainedObject_class_COpcGroupClass_.7.0
mov dword [edi + 0x34], vtable.ATL::CComContainedObject_class_COpcGroupClass_.8.0
mov dword [edi + 0x38], eax
mov ecx, dword [0x422a30]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4085f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4181fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x421080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [esi + 0x4c]
mov dword [esi + 0x44], 0
mov ecx, dword [0x422be8]
mov dword [ebp - 4], 0
call fcn.00415470
push 0x4e20
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408657
push 0
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
lea ecx, [esi + 0x64]
call fcn.0040bcc0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x408682
push eax
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x5c], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x408699
push eax
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x1c], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.004127d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b250
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
mov esi, ecx
push esi
push 0x40b8a0
push 0
push 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x60], eax
test eax, eax
jne 0x40b29f
push 4
push eax
push 3
push 0x421030
push str._beginthreadex_failed._Unalbe_to_create_polling_thread
call fcn.00415b10
add esp, 0x14
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x422be8]
lea eax, [esi + 0x4c]
push esi
push eax
call fcn.004157e0
test eax, eax
jne 0x40b2ca
push 4
push eax
push 3
push 0x421030
push str.Unable_to_initialize_server_object
call fcn.00415b10
add esp, 0x14
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b6b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x94]
cmp eax, 0xf4240
jae 0x40b6c7
inc eax
mov dword [esi + 0x94], eax
cmp dword [esi + 0x94], 0x1f4
jbe 0x40b6d7
mov al, 1
pop esi
ret
cmp byte [esi + 0x9c], 0
je 0x40b6f8
mov esi, dword [esi + 0x98]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x1388
pop esi
seta al
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x98], eax
xor al, al
mov byte [esi + 0x9c], 1
pop esi
ret

Function at 0x40d2b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea eax, [ebx + 4]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [ebx + 0x64], edi
jle 0x40d347
sub dword [ebp + 8], esi
jmp 0x40d2e0
mov eax, dword [ebx + 0x6c]
mov esi, dword [eax + edi*4]
mov esi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp + 8]
sub dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
jg 0x40d327
cmp dword [esi], 0
je 0x40d321
mov ecx, esi
call fcn.0040d170
cmp dword [esi + 0x48], 0
je 0x40d31b
mov ecx, esi
call fcn.004093c0
mov ecx, esi
call fcn.00409310
mov eax, dword [esi + 0x44]
inc dword [eax + 0x3c]
mov eax, dword [esi + 0x18]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x44]
inc dword [eax + 0x40]
cmp dword [esi + 0x48], 0
je 0x40d341
mov ecx, esi
call fcn.00409080
mov ecx, esi
call fcn.004091d0
inc edi
cmp edi, dword [ebx + 0x64]
jl 0x40d2e0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412b60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov edi, ecx
lea eax, [ebp - 4]
push 4
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412b8e
call fcn.004028c0
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR120.dll_void____cdecl_operator_new___unsigned_int_
mov ecx, dword [ebp - 4]
add esp, 4
mov esi, eax
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
add ecx, ecx
push 0
push eax
push ecx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412bd1
call fcn.004028c0
test esi, esi
jne 0x412bd9
xor eax, eax
jmp 0x412bef
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412be0
sub eax, edx
sar eax, 1
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00407780
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x412c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp + 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x412c41
call fcn.004028c0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
add eax, eax
push eax
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
test eax, eax
jne 0x412c62
call fcn.004028c0
mov esp, ebp
pop ebp
ret 4
Function at 0x413bb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418916
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x421080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x34], 0x1e
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x28], 0
lea ecx, [edi + 0x38]
mov dword [ebp - 4], 0
call fcn.00413860
lea ecx, [edi + 0x94]
mov byte [ebp - 4], 1
call fcn.00413350
push 0x422ba0
mov dword [edi + 0x38], edi
call dword [sym.imp.ole32.dll_CoFileTimeNow]
lea eax, [edi + 0x10]
mov dword [edi], 1
push eax
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, edi
call fcn.00415190
cmp dword [0x422fd8], 0
jne 0x413c69
push 0x41b2b4
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [0x422fd8], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415470
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
lea ecx, [ebx + 0x28]
call fcn.004164c0
mov esi, dword [ebx + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x4154ca
push 0x4e20
push dword [ebx + 0xc]
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4154bc
push esi
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4157e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 8]
lea ecx, [edi + 0x28]
mov eax, dword [edi + 8]
push 1
push dword [ebp + 0xc]
mov dword [edx], eax
inc dword [edi + 8]
push dword [edx]
call fcn.00414ed0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0xc], 0
jne 0x415842
lea eax, [ebp + 8]
mov dword [edi + 4], 0
push eax
push 0
push edi
push 0x415260
push 0
push 0
mov dword [ebp + 8], 0
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov dword [edi + 0xc], eax
pop edi
mov eax, 1
pop esi
pop ebp
ret 8