joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52c6f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcf000]
mov dword [edi + 0xcf740], 0x58035550
push edi
jmp 0x52c71a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52c721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52c710
mov eax, 1
add ebx, ebx
jne 0x52c733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52c744
jne 0x52c763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52c763
dec eax
add ebx, ebx
jne 0x52c750
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52c728
add ebx, ebx
jne 0x52c75f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52c7b5
xor ecx, ecx
sub eax, 3
jb 0x52c77b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52c7ea
sar eax, 1
mov ebp, eax
jmp 0x52c786
add ebx, ebx
jne 0x52c786
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52c754
inc ecx
add ebx, ebx
jne 0x52c794
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52c754
add ebx, ebx
jne 0x52c7a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52c796
jne 0x52c7b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52c796
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52c7d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52c7c6
jmp 0x52c716
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52c7d4
add edi, ecx
jmp 0x52c716
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52c7f2
cmp byte [edi], 0x11
jne 0x52c7f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x52c7f7
lea edi, [esi + 0x125000]
mov eax, dword [edi]
or eax, eax
je 0x52c86f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x173c80]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x173dfc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52c824
mov ecx, edi
jns 0x52c853
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x173e00]
or eax, eax
je 0x52c869
mov dword [ebx], eax
add ebx, 4
jmp 0x52c841
call dword [esi + 0x173e10]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x52c8a0
cmp al, 0xef
ja 0x52c893
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x52c875
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x52c882
mov ebp, dword [esi + 0x173e04]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52c8d4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x401061
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x43cf50]
and dword [ebp - 8], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [0x43cf54]
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [ebx + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
call fcn.0040105a
mov eax, dword [0x43cf58]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x18], eax
mov eax, dword [0x43cf5c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, dword [0x245a95c]
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp - 0x18]
cmp eax, 0xfa9
jne 0x4010d7
mov dword [0x245a958], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010e5
and dword [0x245a3e4], 0
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
add edx, esi
xor eax, edx
xor eax, ecx
sub edi, eax
cmp dword [0x245a95c], 0xc
mov dword [0x245a954], 0xf4ea3dee
mov dword [ebp - 4], eax
jne 0x401135
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
lea eax, [ebp - 0x828]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov eax, edi
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 0x61c88647
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x1c]
add ecx, edi
xor eax, ecx
xor eax, dword [ebp - 4]
sub esi, eax
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jne 0x4010ae
mov dword [ebx + 4], edi
pop edi
mov dword [ebx], esi
pop esi
leave
ret

Function at 0x401173
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004070e0
mov eax, dword [0x245a95c]
mov ecx, dword [0x245a3e8]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x401232
push ebx
push edi
mov ebx, ecx
mov edi, eax
cmp dword [0x245a95c], 0x959
jne 0x401221
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.Mokigehate_xolega_viricuh_mazu_fiboy
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push str.Yimu_givexohipalipen
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitA]
push str.Hipejes_joh_jagibavicedok_lozofowegad_dinomebaxedidox
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push str.pajebipew
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call fcn.00401061
add ebx, 8
dec edi
jne 0x40119f
pop edi
pop ebx
pop esi
leave
ret
Function at 0x401517
Capabilities:
Clear file content
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
xor esi, esi
cmp dword [0x245a95c], 0x400
push edi
jne 0x401575
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateA]
push esi
push esi
call fcn.00402a66
push esi
push esi
call fcn.0040235d
push esi
call fcn.00402a01
push esi
push esi
call fcn.0040284c
push esi
call fcn.00402b64
push esi
push esi
call fcn.00402261
add esp, 0x28
xor edi, edi
cmp edi, 0x16cda
jge 0x40158d
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsI]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5bee
jg 0x4015b2
inc edi
cmp edi, 0x30053
jl 0x401577
mov eax, dword [0x43d39c]
mov dword [0x245a95c], eax
call fcn.00401235
mov edi, 0x3078f
cmp dword [0x245a95c], 0x51f
jne 0x4015e0
push esi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec edi
jne 0x4015c6
pop edi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x406e1e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c6d8]
jne 0x406e28
repz ret
jmp fcn.0040877a
Function at 0x40802d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c6d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405a6d
and dword [ebp - 0x14], 0
cmp dword [0x447f20], 0
mov dword [ebp - 0x18], eax
jne 0x4080e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408188
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408188
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x447f20], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x447f24], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x447f28], eax
call edi
push eax
call esi
mov dword [0x447f30], eax
test eax, eax
je 0x4080e0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x447f2c], eax
mov eax, dword [0x447f2c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408139
cmp dword [0x447f30], ecx
je 0x408139
push eax
call esi
push dword [0x447f30]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408139
test ebx, ebx
je 0x408139
call edi
test eax, eax
je 0x408130
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408130
test byte [ebp - 8], 1
jne 0x408139
or dword [ebp + 0x10], 0x200000
jmp 0x40816c
mov eax, dword [0x447f24]
cmp eax, dword [ebp - 0x18]
je 0x40816c
push eax
call esi
test eax, eax
je 0x40816c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40816c
mov eax, dword [0x447f28]
cmp eax, dword [ebp - 0x18]
je 0x40816c
push eax
call esi
test eax, eax
je 0x40816c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x447f20]
call esi
test eax, eax
je 0x408188
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40818a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e1e
leave
ret
Function at 0x410f14
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
cmp byte [edx + 0x17d], 0
call fcn.00410f2f
Function at 0x425592
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
mov esi, edx
mov ecx, dword [edx + 0x4c]
mov edx, dword [edx + 0x54]
push ebx
push edi
call fcn.00418bd2
pop ecx
pop edx
test eax, eax
je 0x4256ae
mov edx, dword [eax + 0x44]
mov ebp, eax
lea ecx, [esp + 0x20]
push dword [eax + 0x4c]
call fcn.00419646
pop eax
mov edx, dword [esi + 0x78]
mov edi, dword [esi + 0x70]
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x40]
lea esi, [esp + 4]
mov dword [esp], ebp
mov dword [esp + 0x18], edx
imul edx, edx, 0x30
mov dword [esp + 0x1c], edi
mov dword [esi], edi
add edx, edi
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
lea ecx, [esp + 4]
call fcn.00421961
test eax, eax
je 0x425682
mov esi, edx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push esi
push eax
call fcn.004209f0
pop ecx
pop edx
mov ecx, eax
mov edx, 0x58e7c0
mov esi, eax
call fcn.004197b9
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x20]
lea eax, [edx + eax*8]
push eax
call fcn.00425702
pop eax
cmp byte [esi + 0x2d], 0
jne 0x4255fb
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 8]
shl edi, 3
test edi, edi
je 0x4255fb
mov esi, dword [ebx]
mov ebp, dword [ebx + 4]
mov eax, dword [esp]
mov ecx, esi
mov edx, ebp
push dword [eax + 0x40]
push dword [eax + 0x3c]
call fcn.00418c20
pop ecx
pop edx
test al, al
jne 0x42567a
lea ecx, [esp + 0x20]
mov edx, esi
push ebp
call fcn.0041d0c4
pop eax
add ebx, 8
add edi, 0xfffffff8
jmp 0x42564c
mov eax, dword [esp]
lea esi, [esp + 0x20]
mov ecx, esi
mov edx, dword [eax + 0x50]
mov eax, dword [eax + 0x58]
lea eax, [edx + eax*8]
push eax
call fcn.00425702
pop eax
mov eax, dword [esi + 8]
movsd xmm0, qword [esi]
mov dword [esp + 0xc], eax
movsd qword [esp + 4], xmm0
jmp 0x4256e5
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x78]
push ebx
push edi
call fcn.004209f0
pop ecx
pop edx
test eax, eax
je 0x4256d3
mov edx, dword [eax + 0x20]
lea ecx, [esp + 4]
push dword [eax + 0x28]
call fcn.00419646
pop eax
jmp 0x4256e5
mov dword [esp + 4], 4
and dword [esp + 8], 0
and dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
movsd xmm0, qword [esp + 4]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x440460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x4404b0
cmp esi, edi
ja 0x440518
cmp edi, dword [esp + 0x1c]
ja 0x44052b
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x4404b2
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x4404a0
jmp 0x44050f
ja 0x4404b8
cmp eax, edx
mov esi, edi
jne 0x440473
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x4404f0
mov ebp, esi
sub ecx, edx
jns 0x440507
jmp 0x440511
cmp esi, edi
je 0x440540
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x440511
xor al, 1
cmp ebp, edi
jne 0x4404d0
jmp 0x440511
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x590744
call fcn.005811c0
add esp, 4
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x590744
call fcn.00580f70
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x590734
call fcn.00580fe0
add esp, 4
ud2
Function at 0x4434ac
Capabilities:
Hash data with crc32

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, edx
mov edx, dword [esp + 0x18]
mov ebx, ecx
not ebx
cmp edx, 0x40
jb 0x4435d3
push 4
pop edi
sub edi, 1
jb 0x4434bb
cmp edx, 0xf
jbe 0x4435e3
movzx ebp, byte [eax + 0xe]
movzx esi, byte [eax + 0xf]
mov ecx, ebx
mov dword [esp], edx
mov edx, 0xff
shr ecx, 0x18
mov ebp, dword [ebp*4 + 0x59835c]
xor ebp, dword [esi*4 + 0x597f5c]
movzx esi, byte [eax + 0xd]
xor ebp, dword [esi*4 + 0x59875c]
movzx esi, byte [eax + 0xc]
xor ebp, dword [esi*4 + 0x598b5c]
movzx esi, byte [eax + 0xb]
xor ebp, dword [esi*4 + 0x598f5c]
movzx esi, byte [eax + 0xa]
xor ebp, dword [esi*4 + 0x59935c]
movzx esi, byte [eax + 9]
xor ebp, dword [esi*4 + 0x59975c]
movzx esi, byte [eax + 8]
xor ebp, dword [esi*4 + 0x599b5c]
movzx esi, byte [eax + 7]
xor ebp, dword [esi*4 + 0x599f5c]
movzx esi, byte [eax + 6]
xor ebp, dword [esi*4 + 0x59a35c]
movzx esi, byte [eax + 5]
xor ebp, dword [esi*4 + 0x59a75c]
movzx esi, byte [eax + 4]
xor ebp, dword [esi*4 + 0x59ab5c]
movzx esi, byte [eax + 3]
xor ecx, esi
mov esi, ebx
xor ebp, dword [ecx*4 + 0x59af5c]
movzx ecx, byte [eax + 2]
shr esi, 0x10
and esi, edx
xor esi, ecx
movzx ecx, byte [eax + 1]
xor ebp, dword [esi*4 + 0x59b35c]
mov esi, ebx
and ebx, edx
shr esi, 8
and esi, edx
mov edx, dword [esp]
xor esi, ecx
movzx ecx, byte [eax]
xor ebp, dword [esi*4 + 0x59b75c]
xor ebx, ecx
mov ecx, eax
xor ebp, dword [ebx*4 + 0x59bb5c]
push 0x597f4c
call fcn.00443a3a
pop ecx
mov ebx, ebp
jmp 0x4434c7
mov cl, byte [eax]
inc eax
dec edx
xor cl, bl
shr ebx, 8
movzx esi, cl
xor ebx, dword [esi*4 + 0x597f5c]
test edx, edx
jne 0x4435c0
not ebx
mov eax, ebx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xf
pop ecx
push 0x597f3c
call fcn.00580f00
pop eax
ud2
Function at 0x44c41c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x130
mov edi, dword [esp + 0x148]
mov ebx, dword [esp + 0x144]
call fcn.0044c439
Function at 0x45ecaf
Capabilities:
Get system information on windows

Disassembly:
push esi
sub esp, 0x24
mov esi, esp
xorps xmm0, xmm0
and dword [esi + 0x20], 0
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi], xmm0
push esi
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [esi + 0x1c]
add esp, 0x24
pop esi
ret
Function at 0x46be57
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov dword [esp], ecx
push 0x20
pop ebp
xor ebx, ebx
mov edi, dword [esp]
test bl, 1
jne 0x46bec0
mov esi, ebp
lea eax, [edi + ebp]
mov dword [esp], eax
push 2
push ebp
push edi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor ebp, ebp
mov bl, 1
cmp eax, 0xc0000000
mov dword [esp + 4], eax
jb 0x46be66
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x46be66
mov esi, dword [esp + 4]
xor esi, 0x80000000
je 0x46bec0
mov al, byte [0x64fd9c]
push 4
pop ecx
mov edx, ecx
call fcn.00404090
test eax, eax
je 0x46beca
mov dword [eax], esi
jmp 0x46bec2
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
pop ecx
mov edx, ecx
call fcn.00580bb0
ud2

Function at 0x46bed8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x5e8
mov dword [esp + 0x194], ecx
mov ecx, dword [edx + 0x5c]
call fcn.0046bef6
Function at 0x4dc700
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x56d020
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x64fc40]
test al, al
je 0x4dc8d1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4dc74c
cmp eax, 3
jne 0x4dc8ca
mov ebx, dword [0x64fc44]
test ebx, ebx
je 0x4dc8ca
mov dword [ebp - 0x20], 0
jmp 0x4dc777
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4dc7a8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4dc91b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dc770
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4dc770
test byte [ebp - 0x20], 1
je 0x4dc8ca
mov ebx, dword [0x64fc44]
test ebx, ebx
je 0x4dc8ca
mov dword [ebp - 0x20], 0
jmp 0x4dc7d7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4dc808
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4dc91b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dc7d0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4dc7d0
test byte [ebp - 0x20], 1
je 0x4dc8ca
mov ebx, dword [0x64fc44]
test ebx, ebx
je 0x4dc8ca
mov dword [ebp - 0x20], 0
jmp 0x4dc837
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4dc868
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4dc91b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dc830
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4dc830
test byte [ebp - 0x20], 1
je 0x4dc8ca
mov ebx, dword [0x64fc44]
test ebx, ebx
je 0x4dc8ca
mov dword [ebp - 0x20], 0
jmp 0x4dc897
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4dc8c4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4dc91b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dc890
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4dc890
test byte [ebp - 0x20], 1
jne 0x4dc8e4
movzx eax, byte [0x649780]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x64fc44]
jmp 0x4dc8ef
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4dc8ca
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x4dc91b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dc8ec
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x4dc8ec
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x60b6ec
call fcn.00580fe0
add esp, 4
ud2
Function at 0x4dd680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x64f070]
test eax, eax
je 0x4dd738
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4dd6ac
cmp dword [eax + 4], 0
mov edi, eax
je 0x4dd6ac
add edi, 8
jmp 0x4dd733
mov eax, dword [0x64f070]
test eax, eax
je 0x4dd747
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4dd731
mov esi, eax
test eax, eax
jne 0x4dd707
movzx eax, byte [0x64fd9c]
mov ecx, 0xc
mov edx, 4
call fcn.00404090
test eax, eax
je 0x4dd762
mov dword [eax], 0x64f070
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x64f070]
test eax, eax
je 0x4dd756
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x4dd733
test ecx, ecx
je 0x4dd733
lock dec dword [ecx]
jne 0x4dd733
call fcn.004dd200
jmp 0x4dd733
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x64f070
call fcn.00583bc0
jmp 0x4dd690
mov ecx, 0x64f070
call fcn.00583bc0
jmp 0x4dd6ba
mov ecx, 0x64f070
call fcn.00583bc0
jmp 0x4dd6ff
mov ecx, 4
mov edx, 0xc
call fcn.00580bb0
ud2

Function at 0x4ddca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x64f080]
test eax, eax
je 0x4ddd24
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4ddcbf
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4ddd19
mov eax, dword [0x64f080]
test eax, eax
je 0x4ddd33
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4ddd1e
mov esi, eax
test eax, eax
jne 0x4ddd13
movzx eax, byte [0x64fd9c]
mov ecx, 8
mov edx, 4
call fcn.00404090
test eax, eax
je 0x4ddd4b
mov dword [eax], 0x64f080
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x64f080]
test eax, eax
je 0x4ddd3f
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
jmp 0x4ddd20
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0x64f080
call fcn.00583bc0
jmp 0x4ddcab
mov ecx, 0x64f080
call fcn.00583bc0
jmp 0x4ddcc9
mov ecx, 0x64f080
call fcn.00583bc0
jmp 0x4ddd0b
mov ecx, 4
mov edx, 8
call fcn.00580bb0
ud2
Function at 0x4de410
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x4de464
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0x103
je 0x4de487
test eax, eax
js 0x4de473
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov al, 4
jmp 0x4de47f
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
add esp, 0x34
pop esi
pop edi
ret
mov eax, esp
mov dword [esp + 0x1c], 0x60af74
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.004dcd10
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.004dce40
mov ecx, 7
int 0x29
ud2