joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b230
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471f36
mov eax, dword fs:[0]
push eax
mov eax, 0x1a94
call fcn.0046b450
mov eax, dword [0x490004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 3
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.0042d7a0
sub esp, 0x18
mov esi, eax
lea eax, [ebp + 0x38]
mov dword [ebp - 0x1a98], esp
mov ecx, esp
push eax
call fcn.004101b0
mov byte [ebp - 4], 4
push esi
mov byte [ebp - 4], 3
call fcn.0042d590
sub esp, 0x18
mov dword [ebp - 0x1aa0], eax
lea eax, [ebp + 0x50]
mov dword [ebp - 0x1a9c], esp
mov ecx, esp
push eax
call fcn.004101b0
mov byte [ebp - 4], 5
push esi
mov byte [ebp - 4], 3
call fcn.0042d590
mov esi, eax
lea eax, [ebp - 0x54]
push 0x42
push 0
push eax
mov dword [ebp - 0x1a9c], esi
call fcn.00447e00
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
lea eax, [ebp - 0x1a74]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x42b40c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1a94]
push eax
call fcn.0042a7b0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x1a94]
cmp dword [ebp - 0x1a80], 8
push 0
cmovae eax, dword [ebp - 0x1a94]
push 0
push 0
push 0
mov dword [ebp - 0x1a98], eax
lea eax, [ebp - 0x1a98]
push eax
push 1
push dword [ebp - 0x1a74]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x42b3f1
lea eax, [ebp - 0x1a78]
mov dword [ebp - 0x1a70], 0xa
push eax
lea eax, [ebp - 0x1a6c]
push eax
lea eax, [ebp - 0x1a70]
push eax
lea eax, [ebp - 0x1a7c]
push eax
push dword [ebp - 0x1a74]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
jne 0x42b3f1
xor edi, edi
cmp dword [ebp - 0x1a70], edi
jbe 0x42b3f1
lea ebx, [ebp - 0x1a6c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebx]
cmp ecx, eax
je 0x42b3e2
push ecx
push 0
push 1
mov ecx, esi
call dword [0x4751bc]
call esi
mov esi, eax
test esi, esi
je 0x42b3dc
mov ecx, dword [ebp - 0x1aa0]
push 0
push esi
call dword [0x4751bc]
call dword [ebp - 0x1aa0]
test eax, eax
je 0x42b3d5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x1a9c]
inc edi
add ebx, 0x29c
cmp edi, dword [ebp - 0x1a70]
jb 0x42b392
push dword [ebp - 0x1a74]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1a94]
call fcn.004107a0
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00410830
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x20]
call fcn.00410830
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x38]
call fcn.00410830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x50]
call fcn.00410830
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e653
mov esp, ebp
pop ebp
ret 0x60
Function at 0x42ba10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47204d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x490004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edi
push 1
mov dword [edi], vtable.std::wstring_convert_class_std::codecvt_utf8_utf16_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
call fcn.004333e4
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0xf
mov byte [edi + 0x10], 0
mov byte [ebp - 4], 1
xor eax, eax
movups xmmword [edi + 0x28], xmm0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 7
mov word [edi + 0x28], ax
mov byte [ebp - 4], 2
push 0x34
mov word [edi + 0x48], ax
mov byte [edi + 0x4a], al
call fcn.0042e85e
mov esi, eax
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 3
mov dword [esi], vtable.std::_Facet_base.0
mov byte [ebp - 4], 4
mov dword [esi], vtable.std::locale::facet.0
mov dword [esi + 4], 0
mov byte [ebp - 4], 5
mov dword [esi], vtable.std::codecvt_base.0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x44]
push 0x34
push 0
push eax
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.00447e00
add esp, 0x14
lea ecx, [ebp - 0x44]
push 0x482de8
call fcn.004298c0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x7c]
push eax
call fcn.00433840
add esp, 4
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x44]
call fcn.00429980
mov byte [ebp - 4], 8
mov dword [esi], vtable.std::codecvt_utf8_utf16_wchar_t__1114111__0_.0
mov byte [ebp - 4], 2
mov ecx, edi
push esi
call fcn.0042c3a0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e653
mov esp, ebp
pop ebp
ret
Function at 0x42d590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472545
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x490004]
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 edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
test edx, edx
jne 0x42d5e5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00410830
xor eax, eax
jmp 0x42d73d
mov dword [ebp - 0x30], edx
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + edx + 0x78]
add ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx + 0x24]
add eax, edx
mov dword [ebp - 0x44], eax
mov eax, dword [ecx + 0x20]
add eax, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], 0xffffffff
xor edi, edi
mov dword [ebp - 0x28], edi
mov eax, dword [ecx + 0x18]
dec eax
cmp edi, eax
jae 0x42d71f
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + edi*4]
add eax, edx
mov dword [ebp - 0x24], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov byte [ebp - 4], 1
call fcn.0044c783
mov dword [ebp - 0x2c], eax
lea esi, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
cmovae esi, dword [ebp + 0xc]
mov dword [eax], 0
push 0xa
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00451707
add esp, 0xc
mov ecx, eax
cmp esi, dword [ebp - 0x18]
je 0x42d780
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x22
je 0x42d78a
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0
jmp 0x42d6aa
mov edx, dword [ebp - 0x24]
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d6c7
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x5c]
call fcn.00412090
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0x10
cmovae ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x4c]
call fcn.0041e6a0
mov esi, eax
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00410830
cmp esi, dword [ebp - 0x3c]
jne 0x42d774
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x38]
jne 0x42d774
mov eax, dword [ebp - 0x44]
movzx eax, word [eax + edi*2]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x1c]
add ecx, edx
mov eax, dword [ebp - 0x34]
mov esi, dword [ecx + eax*4]
add esi, edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00410830
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.0042e653
mov esp, ebp
pop ebp
ret 0x1c
inc edi
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
jmp 0x42d60d
push str.invalid_stoull_argument
call fcn.0042f67a
push str.stoull_argument_out_of_range
call fcn.0042f6ba
int3
Function at 0x42d7a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47258b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x490004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
add eax, 0x14
mov dword [ebp - 0x228], eax
mov esi, dword [eax]
mov dword [ebp - 0x21c], esi
cmp esi, eax
je 0x42d9d1
nop dword [eax + eax]
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00447e00
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00447e00
mov eax, dword [esi + 0x20]
add esp, 0x18
mov dword [ebp - 0x220], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d835
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
push esi
call fcn.0042eb18
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x220]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0044c366
push dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0044c366
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00453fda
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00453fda
xorps xmm0, xmm0
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x244], 0
add esp, 0x28
lea edx, [ecx + 1]
movups xmmword [ebp - 0x258], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d8e2
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.00412090
mov dword [ebp - 4], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x230], 0
movups xmmword [ebp - 0x240], xmm0
mov dword [ebp - 0x22c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d930
sub ecx, edx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.00412090
mov byte [ebp - 4], 1
lea eax, [ebp - 0x240]
cmp dword [ebp - 0x22c], 0x10
lea ecx, [ebp - 0x258]
push dword [ebp - 0x230]
cmovae eax, dword [ebp - 0x240]
cmp dword [ebp - 0x244], 0x10
mov edx, dword [ebp - 0x248]
cmovae ecx, dword [ebp - 0x258]
push eax
push 0
call fcn.00411e80
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00410830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00410830
cmp esi, 0xffffffff
jne 0x42d9f0
mov esi, dword [ebp - 0x21c]
mov esi, dword [esi]
mov dword [ebp - 0x21c], esi
cmp esi, dword [ebp - 0x228]
jne 0x42d800
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e653
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 0x10]
jmp 0x42d9d3
Function at 0x42f0d3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42f112
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f112
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f112
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42f112
cmp dword [ecx + 0x74], 0xe
jbe 0x42f112
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4346b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4346d1
jl 0x4346c8
test edi, edi
jne 0x4346d1
xor eax, eax
xor edx, edx
jmp 0x434792
cmp dword [ebx + 0x38], 0
je 0x4346e6
push eax
push edi
push dword [ebp + 8]
call fcn.004347a0
jmp 0x434792
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x43472d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x43472d
cmp eax, edi
jb 0x434707
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00447fa0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x434733
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x434787
mov ecx, ebx
call fcn.00433f40
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x434772
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0044d02a
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x434787
jmp 0x434745
test edx, edx
je 0x434787
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0044d02a
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x44b281
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0044b0e1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44b3f0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44b3f0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44b3a5
jg 0x44b2dd
test eax, eax
je 0x44b39b
push 1
push 0x1000
call fcn.0045a9e1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44b300
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44b392
push 0x8000
push ebx
call fcn.00455321
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44b329
jg 0x44b324
cmp ecx, 0x1000
jb 0x44b329
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0045b32b
add esp, 0x10
cmp eax, 0xffffffff
je 0x44b36e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x44b324
jl 0x44b355
test ecx, ecx
jne 0x44b316
push dword [ebp - 0xc]
push ebx
call fcn.00455321
push esi
call fcn.0045aa3e
add esp, 0xc
xor ebx, ebx
jmp 0x44b3fe
cmp byte [edi + 0x24], 0
je 0x44b385
cmp dword [edi + 0x20], 5
jne 0x44b385
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44b390
mov ebx, dword [edi + 0x18]
jmp 0x44b392
xor ebx, ebx
push esi
call fcn.0045aa3e
pop ecx
jmp 0x44b3fe
test ecx, ecx
jg 0x44b367
jl 0x44b3a5
test eax, eax
jae 0x44b367
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045b74d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44b3c5
cmp byte [edi + 0x1c], 0
je 0x44b367
jmp 0x44b3f6
push ebx
call fcn.0045a977
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44b367
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44b3fe
cmp byte [edi + 0x1c], 0
je 0x44b3fb
mov ebx, dword [edi + 0x18]
jmp 0x44b3fe
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0045b74d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44cc14
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0046b450
mov eax, dword [0x490004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0044c3c0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44cc56
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44cdb2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0046b2e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x492690]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0045b72f
mov ecx, dword [esi*4 + 0x492690]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x44cdab
cmp eax, dword [ecx + edi + 0x24]
jne 0x44cdab
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44cdab
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045b72f
add esp, 0x14
test edx, edx
jl 0x44cdab
jg 0x44cd21
test eax, eax
jb 0x44cdab
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44cdab
jl 0x44cd3b
cmp dword [ebp - 0x1008], eax
ja 0x44cdab
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44cd59
test ebx, ebx
je 0x44cd92
cmp ecx, edi
jae 0x44cd92
mov al, byte [ecx]
cmp al, 0xd
jne 0x44cd73
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44cd7f
cmp byte [ecx + 1], 0xa
jne 0x44cd7f
inc ecx
jmp 0x44cd7f
movzx eax, al
movsx eax, byte [eax + 0x490420]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44cd59
cmp edx, ebx
jne 0x44cd59
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44cdb0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042e653
leave
ret
Function at 0x45c6ea
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47ab20
push 0x47ab18
push str.FlsAlloc
push 0x1f
call fcn.0045c555
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45c71e
push dword [ebp + 8]
mov ecx, esi
call dword [0x4751bc]
call esi
jmp 0x45c724
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45c768
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47ab30
push 0x47ab28
push str.FlsGetValue
push 0x21
call fcn.0045c555
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45c79f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4751bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x45c7a7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47ab38
push 0x47ab30
push str.FlsSetValue
push 0x22
call fcn.0045c555
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45c7e1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4751bc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x45df9b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x492690]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45dfdb
cmp byte [ebx], 0xa
jne 0x45dfdb
or byte [edi + eax + 0x28], 4
jmp 0x45dfe0
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x45e0df
mov dl, byte [eax]
cmp dl, 0x1a
je 0x45e0c2
inc eax
cmp dl, 0xd
je 0x45e00c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x45e032
cmp eax, ecx
jae 0x45e040
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x45dff4
jmp 0x45e0df
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45e0bd
cmp dword [ebp - 0x10], 0
je 0x45e0bd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x492690]
test byte [eax + edi + 0x28], 0x48
je 0x45e097
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45e082
mov byte [esi], dl
jmp 0x45e093
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x492690]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45e0df
cmp byte [ebp - 1], 0xa
jne 0x45e0a6
cmp esi, ebx
jne 0x45e0a6
mov byte [esi], 0xa
jmp 0x45e0de
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045b74d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45e0df
mov byte [esi], 0xd
jmp 0x45e0de
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x492690]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45e0dc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45e0df
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45e0e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x492690]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45e12e
cmp word [ebx], dx
jne 0x45e12e
or byte [eax + edi + 0x28], 4
jmp 0x45e133
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x45e296
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x45e276
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x45e174
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45e1aa
cmp eax, edx
jae 0x45e1b8
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x45e14f
jmp 0x45e296
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45e271
cmp dword [ebp - 0x18], 0
je 0x45e271
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x492690]
test byte [eax + edi + 0x28], 0x48
je 0x45e247
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x45e20b
mov word [esi], cx
jmp 0x45e242
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x492690]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x492690]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x492690]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x45e296
pop eax
cmp word [ebp - 4], ax
jne 0x45e257
cmp esi, ebx
jne 0x45e257
mov word [esi], ax
jmp 0x45e293
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0045b74d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x45e296
push 0xd
pop eax
jmp 0x45e252
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x492690]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x45e290
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x45e296
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret