joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413f80
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
test esi, esi
je 0x413ff1
lea eax, [esp + 0xc]
push eax
push 0x28
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x413ff1
lea ecx, [esp + 0x14]
push ecx
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x413ff1
mov eax, dword [esp + 0xc]
push ebx
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push ebx
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x413ff1
mov ebx, 1
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x41400a
push eax
call edi
mov dword [esp + 0xc], 0
test esi, esi
je 0x414011
push esi
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x18
ret
Function at 0x414280
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x4b4f4b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
mov eax, dword [esp + 0x454]
push eax
push 8
mov esi, ecx
mov dword [esp + 0x1c], 0x428
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4142f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KHelper::GetProcessModules_CreateToolhelp32Snapshot_failed__error:_d
mov ecx, 0x4e49b4
call fcn.00419ab0
add esp, 8
jmp 0x414383
lea ecx, [esp + 0x14]
push ecx
push edi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x41437c
jmp 0x414310
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x238]
call fcn.00401400
lea ecx, [esp + 0x10]
mov dword [esp + 0x44c], 0
call fcn.004143b0
test eax, eax
je 0x414342
lea ebx, [esp + 0x10]
call fcn.00415010
mov dword [esp + 0x44c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41436d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x414310
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.004935b6
add esp, 0x440
ret
Function at 0x414650
Capabilities:
Access peb ldr_data
Get process heap force flags
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b86e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x30], ebp
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
lea esi, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.0042e6a0
test eax, eax
mov esi, dword [esp + 0x10]
je 0x41472e
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x24]
movzx edx, word [esp + 0x22]
movzx eax, word [esp + 0x20]
push ecx
movzx ecx, word [esp + 0x22]
push edx
movzx edx, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x24]
push ecx
push edx
push eax
push str._04d:_02d:_02d__02d:_02d:_02d
lea edi, [esp + 0x30]
call fcn.00401250
mov edi, dword [esp + 0x30]
add esp, 0x1c
test esi, esi
je 0x41472e
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414700
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push str.cmliveUpdateTime
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41472e
mov ebp, 1
push ebp
push edi
push str.KHelper::SetUpdateTime:_s__return:_d
mov ecx, 0x4e49b4
call fcn.00419ab0
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [esp + 0x30], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414763
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x41476e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret

Function at 0x414810
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b8678
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
lea esi, [esp + 8]
mov dword [esp + 0x14], 0
call fcn.0042e6a0
test eax, eax
mov esi, dword [esp + 8]
je 0x414876
test esi, esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
je 0x414881
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push str.cs3failtimes
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x414881
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4148a0
Capabilities:
Access peb ldr_data
Get process heap force flags
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b86e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x30], ebp
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
lea esi, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.0042e6a0
test eax, eax
mov esi, dword [esp + 0x10]
je 0x41497e
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x24]
movzx edx, word [esp + 0x22]
movzx eax, word [esp + 0x20]
push ecx
movzx ecx, word [esp + 0x22]
push edx
movzx edx, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x24]
push ecx
push edx
push eax
push str._04d_02d_02d_02d_02d_02d
lea edi, [esp + 0x30]
call fcn.00401250
mov edi, dword [esp + 0x30]
add esp, 0x1c
test esi, esi
je 0x41497e
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414950
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push str.cs3oddtime
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41497e
mov ebp, 1
push edi
push ebp
push str.KHelper::SetLastRebootTipTime_return:_d__Time:_ws
mov ecx, 0x4e49b4
call fcn.00419ab0
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [esp + 0x30], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4149b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4149be
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
Function at 0x414b20
Capabilities:
Access peb ldr_data
Get process heap force flags
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b8610
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
xor ebx, ebx
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x1e]
movzx edx, word [esp + 0x1a]
movzx eax, word [esp + 0x18]
push ecx
push edx
push eax
push str._04d__02d__02d
lea edi, [esp + 0x20]
call fcn.00401250
add esp, 0x10
lea esi, [esp + 0x14]
call fcn.0042e6a0
test eax, eax
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
je 0x414be3
test esi, esi
je 0x414bee
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414bb7
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push str.update_time
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x414be3
lea ebx, [eax + 1]
test esi, esi
je 0x414bee
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414c12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x415770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b77b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
xor edi, edi
xor esi, esi
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], edi
push eax
mov dword [esp + 0x18], 0xffffffff
call fcn.00410d60
mov byte [esp + 0x38], 1
cmp dword [ebx + 0xc8], esi
jle 0x41581d
cmp dword [esp + 0x20], 0
jne 0x4157fb
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.00415df0
jmp 0x41580c
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x20]
call fcn.00415f50
mov esi, eax
test esi, esi
jne 0x41581d
add edi, 1
cmp edi, dword [ebx + 0xc8]
jl 0x4157de
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x1c], vtable.KAppendFile.0
je 0x415843
push eax
call fcn.0049566b
add esp, 4
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41586b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x1c], vtable.IHttpWrite.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41589b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b76e2
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [0x4e3844]
mov esi, ecx
mov edi, edx
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
mov dword [esp + 0x18], 0xffffffff
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x94], 0
call fcn.0046f460
push str.HEAD
mov ebx, 4
lea eax, [esp + 0x30]
mov byte [esp + 0x94], 1
call fcn.00401750
mov ecx, dword [esi + 0xbc]
mov edx, dword [esi + 0xcc]
push edi
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], edx
call fcn.0046f700
mov edi, dword [esp + 0x7c]
test edi, edi
mov ebp, eax
lea eax, [esi + 0xd0]
jne 0x4161ca
xor ecx, ecx
jmp 0x4161df
mov ecx, edi
lea ebx, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4161d0
sub ecx, ebx
sar ecx, 1
push edi
mov ebx, ecx
call fcn.00401750
test ebp, ebp
jne 0x4161fb
mov ecx, dword [esp + 0x38]
mov dword [esi + 0xc0], ecx
mov esi, dword [esp + 0x18]
jmp 0x416222
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, str.Content_Length
call fcn.0046f320
mov ecx, dword [esp + 0x14]
push 0xa
push 0
push ecx
call fcn.004940dc
add esp, 0xc
mov esi, eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x94], 0
call fcn.0046f520
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41625f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004935b6
add esp, 0x80
ret

Function at 0x416700
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x416795
push edi
lea ecx, [esp + 0x10]
push ecx
push ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x10], ebx
mov edi, eax
jne 0x41678d
cmp edi, 0x200000
ja 0x41678d
lea edx, [edi + 2]
push esi
push edx
call fcn.004929e2
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x14]
push eax
push edi
push esi
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41678c
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x41678c
mov edx, dword [esp + 0x1c]
mov byte [eax + esi], bl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov byte [ecx + esi + 1], bl
mov dword [edx], esi
mov dword [eax], edi
mov ebx, 1
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 8
Function at 0x4173c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b85d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
call fcn.00401400
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00401400
mov byte [esp + 0x1c], 1
mov edx, dword [0x4e3844]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3844
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x2c]
push ecx
push 0x4c7c5c
lea edi, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.00401250
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 8
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00416e90
mov edi, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417478
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41749d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4174c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc
Function at 0x4198c0
Capabilities:
Create thread

Disassembly:
sub esp, 0xec
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0xe8], eax
xor eax, eax
push ebx
push esi
xor ebx, ebx
push 0xc6
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov word [esp + 0x1d], ax
mov byte [esp + 0x1f], al
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2e]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x14], bl
mov dword [esp + 0x28], ebx
mov word [esp + 0x34], bx
call fcn.0049a440
push str.Chinese_simplified
push ebx
call fcn.00497b91
add esp, 0x14
cmp esi, ebx
jne 0x419930
xor eax, eax
jmp 0x419944
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x419935
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
mov eax, 0x4e49c8
call fcn.00401750
call fcn.00419fb0
push 1
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [esp + 8]
push 0x4e49cc
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
lea edx, [esp + 0x30]
call fcn.0041a490
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 8
lea ecx, [esp + 0x28]
push ecx
push 0
push 1
lea edx, [esp + 0x28]
push edx
call esi
push 0
push 0
push 1
push 0
mov dword [0x4e49bc], eax
call esi
cmp dword [0x4e49bc], 0
pop esi
mov dword [0x4e49c0], eax
pop ebx
je 0x419a1b
test eax, eax
je 0x419a1b
push 0
push 0
push 0x4e49b4
push 0x419cc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x4e49c4], eax
mov eax, ecx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.004935b6
add esp, 0xec
ret
mov ecx, dword [esp + 0xe8]
xor ecx, esp
xor eax, eax
call fcn.004935b6
add esp, 0xec
ret

Function at 0x419f60
Capabilities:
Get file size

Disassembly:
push esi
push 0
push 0x80
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x419f85
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x419f98
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x419fb0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b4d78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x4e49c8]
push 0
push eax
call fcn.004965a0
add esp, 8
test eax, eax
je 0x419ff2
call fcn.0041a0a0
jmp 0x41a07a
mov eax, dword [0x4e49c8]
call fcn.00419f60
cmp eax, 0x100000
jb 0x41a07a
mov eax, dword [0x4e49c8]
add eax, 0xfffffff0
call fcn.00401270
add eax, 0x10
mov dword [esp + 0x10], eax
lea esi, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0041a0e0
mov esi, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [0x4e49c8]
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
call fcn.0041a0a0
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a07a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x41a0a0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x4e49c8]
push esi
push 0x4c8d7c
push eax
call fcn.004968f8
mov esi, eax
add esp, 8
test esi, esi
je 0x41a0dd
push esi
push 2
lea ecx, [esp + 0xc]
push 1
push ecx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], 0xfe
call fcn.00494ab5
push esi
call fcn.0049566b
add esp, 0x14
pop esi
pop ecx
ret
Function at 0x41bca0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x14]
xor esi, esi
push eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
xor ebp, ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41be4f
mov eax, dword [edi + 0x14]
push ebx
push esi
push 0x80
push 3
push esi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41be5a
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x14], ebp
mov esi, eax
jne 0x41be2d
cmp esi, 0x200000
ja 0x41be2d
test esi, esi
je 0x41be2d
cmp esi, 0xffffffff
je 0x41be2d
cmp dword [edi + 0x18], ebp
je 0x41bd8d
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004929e2
mov edi, dword [esp + 0x24]
add esp, 4
test eax, eax
mov dword [edi], eax
je 0x41be2d
lea ecx, [esi + esi + 2]
push ecx
push ebp
push eax
call fcn.0049a440
add esp, 0xc
push ebp
push ebp
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41be2d
mov eax, dword [edi]
push ebp
lea edx, [esp + 0x1c]
push edx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x41be21
lea edi, [esi + 1]
push edi
call fcn.004929e2
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x41be2d
push edi
push 0
push ebp
call fcn.0049a440
add esp, 0xc
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41be2d
push 0
push 0
push 0xffffffffffffffff
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x41be2d
xor ecx, ecx
lea eax, [esi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004929e2
mov edi, eax
mov eax, dword [esp + 0x24]
add esp, 4
test edi, edi
mov dword [eax], edi
je 0x41be2d
lea ecx, [esi + esi + 2]
push ecx
push 0
push edi
call fcn.0049a440
add esp, 0xc
push esi
push edi
push 0xffffffffffffffff
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x41be2d
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x41be41
push ebp
call fcn.004935c5
add esp, 4
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret 4
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret 4