joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c520
Capabilities:
Print debug messages
Timestomp file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x5c
mov eax, dword [0x483094]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
mov esi, dword [ecx + 4]
test esi, esi
je 0x40c637
cmp byte [esi + 8], 0
je 0x40c637
mov eax, dword [esi + 0x7c]
cmp eax, 0xffffffff
jne 0x40c5f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x20]
mov eax, dword [esp + 0x44]
sub esp, 0x10
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x28], eax
mov eax, esp
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 0
movups xmm0, xmmword [esp + 0x20]
push str.Flush_File_Error:_
movups xmmword [eax], xmm0
call fcn.004065f0
add esp, 0x14
lea eax, [esp + 0x20]
cmp dword [esp + 0x34], 0x10
cmovae eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x34]
cmp edx, 0x10
jb 0x40c637
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c5db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c647
push edx
push ecx
call fcn.00428ee3
add esp, 8
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00428c08
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xorps xmm0, xmm0
lea eax, [esp + 0x40]
push eax
movlpd qword [esp + 0x3c], xmm0
movaps xmmword [esp + 0x44], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x38]
push eax
push 0
push 0
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [esp + 0x5c]
pop esi
xor ecx, esp
call fcn.00428c08
mov esp, ebp
pop ebp
ret
call fcn.004465a2
int3
Function at 0x40d030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463032
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x483094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x4782d8
mov dword [edi + 0x10], 0x478438
mov dword [edi + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004062a0
push ecx
lea ebx, [edi + 0x18]
mov dword [esi + 0x3c], 0
mov ecx, esi
mov dword [esi + 0x38], ebx
call fcn.00411de0
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], ax
jne 0x40d0e9
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.00406220
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [edi + eax + 0x10], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi + 0xc], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + edi - 4], eax
mov dword [ebp - 4], 5
mov eax, dword [edi]
push 8
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov dword [ebx], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00428c19
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 6
call fcn.00426b68
mov dword [esi + 4], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 4]
mov dword [ebx + 0x34], esi
mov dword [ebx + 0xc], eax
add esp, 8
lea eax, [ebx + 0x14]
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, edi
mov dword [ebx], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
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
Function at 0x40df10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40dff8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x40dfe7
jg 0x40df50
test edx, edx
je 0x40dfe7
nop dword [eax]
call fcn.00410980
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40dfa4
jg 0x40df67
test esi, esi
je 0x40dfa4
cmp ebx, eax
jg 0x40df77
jl 0x40df71
cmp edi, esi
jae 0x40df77
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0043ff60
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40dfcb
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x40dfe1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x40df50
jl 0x40dfe1
test edi, edi
jne 0x40df50
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40e01a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40e01c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x40e09a
jg 0x40e02f
test esi, esi
je 0x40e09a
test eax, eax
jl 0x40e074
jg 0x40e039
test ebx, ebx
je 0x40e074
cmp edi, eax
jg 0x40e049
jl 0x40e043
cmp esi, ebx
jae 0x40e049
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0043ff60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov eax, dword [ecx + 0x30]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
jmp 0x40e077
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40e09a
jg 0x40e081
test esi, esi
je 0x40e09a
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x40e09a
push eax
push esi
push 1
push edx
call fcn.00446294
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e0b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40e19b
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x40e18a
jg 0x40e0f0
test edx, edx
je 0x40e18a
nop dword [eax]
call fcn.004109a0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40e147
jg 0x40e107
test esi, esi
je 0x40e147
cmp ebx, eax
jg 0x40e117
jl 0x40e111
cmp edi, esi
jae 0x40e117
mov esi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push dword [esp + 0x18]
call fcn.0043ff60
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x10]
jmp 0x40e16c
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40e184
mov eax, dword [esp + 0x10]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
add eax, esi
mov dword [esp + 0x10], eax
test ebx, ebx
jg 0x40e0f0
jl 0x40e184
test edi, edi
jne 0x40e0f0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40e1bd
mov eax, dword [ecx + 0x2c]
mov eax, dword [eax]
jmp 0x40e1bf
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x40e275
jg 0x40e1da
test esi, esi
je 0x40e275
test eax, eax
jl 0x40e223
jg 0x40e1e4
test ebx, ebx
je 0x40e223
cmp edi, eax
jg 0x40e1f4
jl 0x40e1ee
cmp esi, ebx
jae 0x40e1f4
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.0043ff60
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, ebx
sub esi, ebx
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x2c]
sbb edi, dword [esp + 0x14]
sub dword [eax], ebx
mov eax, dword [ecx + 0x1c]
add dword [eax], ebx
jmp 0x40e22a
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test edi, edi
jl 0x40e275
jg 0x40e234
test esi, esi
je 0x40e275
mov edx, dword [ecx + 0x4c]
test edx, edx
je 0x40e275
mov ebx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
cmp dword [ebx], eax
jne 0x40e260
mov edx, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edx, dword [ebx + 0x4c]
push edx
push esi
push 1
push dword [esp + 0x1c]
call fcn.00448fb9
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e5f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x483094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40e620
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c08
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40e65c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40e65c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c08
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40e745
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40e684
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40e6b7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00443827
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c08
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x40e745
cmp eax, 1
jle 0x40e718
cmp eax, 3
jne 0x40e745
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00443827
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c08
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40e735
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00446294
add esp, 0x10
cmp edi, eax
jne 0x40e745
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40e647
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428c08
mov esp, ebp
pop ebp
ret 4
Function at 0x4109c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x483094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x410a63
cmp byte [esi + 0x3d], 0
je 0x410a63
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x410a19
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x410a2b
sub eax, 1
je 0x410a2f
sub eax, 2
je 0x410a63
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c08
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x410a4c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00446294
add esp, 0x10
cmp edi, eax
jne 0x410a19
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428c08
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00428c08
mov esp, ebp
pop ebp
ret

Function at 0x411ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4625b0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x483094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00428c19
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00426b68
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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 0x4149e0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov dl, 1
lea eax, [esi + 0xb]
xchg byte [eax], dl
push 0
push 1
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp byte [esi + 0xa], 0
jne 0x40a7c3
push 0x7d0
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a7ba
push 4
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x6c]
call fcn.0040a150
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x40a82c
push dword [esi + 0x60]
push eax
call fcn.0040fca0
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x5c]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40a80d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8d9
mov eax, edx
push ecx
push eax
call fcn.00428ee3
mov dword [esi + 0x5c], 0
add esp, 8
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x40a843
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x38]
cmp ecx, 8
jb 0x40a879
mov eax, dword [esi + 0x24]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40a86f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8d9
mov eax, edx
push ecx
push eax
call fcn.00428ee3
add esp, 8
xor eax, eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 7
mov word [esi + 0x24], ax
mov ecx, dword [esi + 0x20]
cmp ecx, 8
jb 0x40a8c3
mov eax, dword [esi + 0xc]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40a8b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a8d9
mov eax, edx
push ecx
push eax
call fcn.00428ee3
add esp, 8
mov dword [esi + 0x1c], 0
xor eax, eax
mov dword [esi + 0x20], 7
mov word [esi + 0xc], ax
pop esi
ret
call fcn.004465a2
int3
add ecx, 0xc
jmp 0x40a780

Function at 0x417760
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4637e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x483094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push 0x58
call fcn.00428c19
mov esi, eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x10]
mov dword [ebp - 0x14], esi
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [esi], 0x4785c8
mov ecx, dword [edi]
mov dword [esi + 8], ecx
lea ecx, [ebx + 0x18]
mov eax, dword [edi + 8]
mov dword [ebx], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x10], eax
lea eax, [edi + 0x20]
push eax
call fcn.0040ccc0
lea eax, [edi + 0x38]
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x30]
push eax
call fcn.0040ccc0
mov eax, esi
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 0x42b959
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4536b2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00453531

Function at 0x458a54
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00458714
Function at 0x1459330
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
mov ecx, edi
call fcn.01458d70
call fcn.0153ef7a
cdq
xor eax, edx
sub eax, edx
cdq
mov ecx, 3
idiv ecx
add dl, 6
je 0x1459384
push esi
movzx esi, dl
call fcn.0153ef7a
cdq
xor eax, edx
sub eax, edx
cdq
mov ecx, 0xa
idiv ecx
mov ecx, edi
add dl, 0x30
mov byte [esp + 0xc], dl
mov edx, dword [esp + 0xc]
push edx
push 1
call fcn.01458eb0
sub esi, 1
jne 0x1459357
pop esi
pop edi
ret 4

Function at 0x1478660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x156b5a6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x15b0648]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CMultiProcessUserCertifier.0
mov dword [esp + 0x14], 0
lea ecx, [esi + 0x30]
call fcn.014765f0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
call fcn.01478500
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x1485cf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x156c531
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x15b0648]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
mov dword [esi], vtable.CShardWaitUserMgr.0
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 0x10]
lea ecx, [edi + 0x18]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x14]
push ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], eax
call fcn.014840b0
mov dword [esp + 0x18], 0
lea edx, [edi + 0x24]
push edx
lea ecx, [esi + 0x24]
call fcn.01484100
mov byte [esp + 0x18], 1
add edi, 0x30
push edi
lea ecx, [esi + 0x30]
call fcn.014858b0
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x1485e20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x156c5b1
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x15b0648]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CShardWaitUserMgr.0
mov dword [esp + 0x14], 2
call fcn.014850e0
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x30]
call fcn.01485900
mov byte [esp + 0x14], 0
lea ecx, [esi + 0x24]
call fcn.01481a20
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0x18]
call fcn.0145e1f0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret