joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4526a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x138
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x138], eax
push 0xc
mov eax, 0x4a9541
call fcn.004646e0
mov esi, dword [ebp + 0x144]
xor ebx, ebx
push 0x103
lea eax, [ebp + 0x35]
push ebx
mov dword [ebp - 0x18], ebx
push eax
mov byte [ebp + 0x34], bl
call fcn.00465a70
add esp, 0xc
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x452771
cmp dword [ebp + 0x148], 1
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x45271e
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 0x34]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp]
mov dword [ebp], 0x4b11ac
mov dword [ebp + 0x2c], 0x4b11a4
call fcn.0041c8cd
push 0x4ae53c
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004480f2
lea ecx, [ebp]
call fcn.004525ba
push 1
lea eax, [ebp]
jmp 0x4527a3
push ebx
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp]
mov dword [ebp], 0x4b11ac
mov dword [ebp + 0x2c], 0x4b11a4
call fcn.0041c8cd
push 1
push 0x4ae53c
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004480f2
push eax
mov ecx, esi
call fcn.00437208
lea ecx, [ebp]
call fcn.004016f0
lea ecx, [ebp - 0x14]
call fcn.00445d45
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 + 0x138]
xor ecx, ebp
call fcn.004646d1
add ebp, 0x13c
leave
ret
Function at 0x458ddf
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 8
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x458e5c
call esi
cmp eax, 0x3f0
jne 0x458e42
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x458e55
push 1
push dword [ebp - 0x10]
call fcn.00458dbe
pop ecx
pop ecx
jmp 0x458e87
cmp eax, ebx
jne 0x458e5c
push ebx
jmp 0x458e49
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x458e7b
call esi
cmp eax, 0x7a
je 0x458e95
push ebx
push dword [ebp - 0x10]
call fcn.00458dbe
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004646d1
leave
ret
push dword [ebp - 0x18]
call fcn.00465987
pop ecx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x458ecb
push ebx
push dword [ebp - 0x10]
call fcn.00458dbe
pop ecx
pop ecx
push esi
mov bl, al
call fcn.00463f3b
pop ecx
mov al, bl
jmp 0x458e86
lea eax, [ebp - 0x20]
push eax
xor eax, eax
cmp byte [ebp + 8], bl
push ebx
push ebx
sete al
push ebx
push ebx
push ebx
push ebx
dec eax
and eax, 0xfffffffd
add eax, 0x223
push eax
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x458eb3
xor edi, edi
mov byte [ebp - 0x1c], bl
cmp dword [esi], ebx
jbe 0x458f38
lea eax, [esi + 4]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x458f25
add dword [ebp - 0x14], 8
inc edi
cmp edi, dword [esi]
jb 0x458f08
jmp 0x458f38
cmp byte [ebp + 0xc], bl
je 0x458f34
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x1c], bl
jne 0x458f38
mov byte [ebp - 0x1c], 1
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x1c]
jmp 0x458eb4
Function at 0x459033
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x45906b
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
xor eax, eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov ecx, dword [esi + 0x64]
test ecx, ecx
jne 0x459077
mov eax, dword [esi + 0x5c]
jmp 0x4590be
push ebx
push ebp
push 0xa
xor eax, eax
pop edi
xor ebp, ebp
test eax, eax
jne 0x4590bc
or eax, 0xffffffff
xor edx, edx
div edi
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x45909c
shr ebx, 1
shr ecx, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ecx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
imul eax, edi
xor edx, edx
div ecx
xor edx, edx
imul eax, eax, 0x3e8
div edi
imul edi, edi, 0xa
inc ebp
cmp ebp, 3
jb 0x459080
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x45a0f7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x7b4], eax
mov eax, dword [ebp + 0x7cc]
push ebx
mov ebx, dword [ebp + 0x7c8]
push esi
push edi
mov edi, dword [ebp + 0x7c0]
mov esi, ecx
mov dword [ebp - 0x80], eax
call fcn.004140e4
cmp eax, 1
jne 0x45a1ac
and dword [ebp - 0x74], 0
lea eax, [ebp - 0x74]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45a1a4
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45a17b
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push str.AutoConfigURL
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x824
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45a1a4
mov byte [ebp - 0x70], 0
lea ecx, [ebp - 0x74]
call fcn.00445d45
push dword [ebp + 0x7d0]
push dword [ebp - 0x80]
push ebx
push dword [ebp + 0x7c4]
push edi
call fcn.004591aa
add esp, 0x14
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 4], eax
mov al, cl
mov ecx, dword [ebp + 0x7b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004646d1
add ebp, 0x7b8
leave
ret 0x14

Function at 0x45be35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x45be56
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi], eax
lea edi, [esi + 0x70]
push edi
push ebx
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.0045b03b
add esp, 0x18
test eax, eax
jne 0x45be7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x78], eax
xor al, al
jmp 0x45bf0f
push dword [edi]
call fcn.00465987
pop ecx
lea ecx, [esi + 0x6c]
push eax
call fcn.00445bed
push ebx
call fcn.00463f3b
mov eax, dword [esi + 0x6c]
push edi
push eax
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.0045b03b
add esp, 0x1c
test eax, eax
je 0x45be6e
push ebx
lea eax, [ebp - 4]
push eax
push 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
push dword [edi]
push dword [esi + 0x6c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
jne 0x45bef5
mov eax, dword [esi + 0xc]
push ebx
push dword [ebp + 8]
push 1
push 1
push 0x10001
push eax
call fcn.0045b28b
add esp, 0x18
test eax, eax
je 0x45be6e
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x45bf0d
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi]
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45d1f7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov ebx, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
test eax, eax
jne 0x45d21a
xor al, al
jmp 0x45d2b6
push eax
call fcn.004447d5
pop ecx
push eax
push dword [ebp - 4]
mov dword [ebx + 0x40], eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45d213
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4ae53c
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45d213
push esi
mov esi, dword [ebp - 0xc]
push edi
push 0xd
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 4]
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45d2b2
mov esi, dword [ebp - 4]
shr esi, 2
xor ecx, ecx
push 4
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebx + 0x3c], esi
neg ecx
or ecx, eax
push ecx
call fcn.004447d5
mov dword [ebx + 0x38], eax
xor eax, eax
pop ecx
cmp dword [ebx + 0x3c], eax
jbe 0x45d2b2
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx + 0x38]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x45d2a0
pop edi
mov al, 1
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x460918
xor eax, eax
jmp 0x4609b2
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.004447d5
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 4]
jne 0x4609a3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x3c]
call fcn.0045fe44
lea ecx, [esi + 0x24]
call fcn.0045f2f3
push 0x4bdf42
mov ecx, esi
call fcn.0040870d
mov byte [ebx + edi], 0
mov ecx, esi
mov dword [esi + 0x54], ebx
call fcn.0045e107
push eax
push 0
mov ecx, esi
call fcn.0045e27b
test eax, eax
je 0x4609a3
call fcn.0045e107
push eax
push 9
mov ecx, esi
call fcn.0045e27b
test eax, eax
je 0x4609a3
push esi
call fcn.0046086d
test eax, eax
jne 0x4609a7
xor eax, eax
jmp 0x4609b1
push ebx
call fcn.00464116
xor eax, eax
pop ecx
inc eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x462370
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4aafe8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d6080]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x2c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [esp + 0x40], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x462458
push 0
push 0
push 0
push 2
push 0
push esi
mov dword [esp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x46244c
push 0
push 0
push 0
push 4
push ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x46245c
mov ecx, dword [esp + 0x30]
push ecx
push 0
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push edi
mov ecx, ebp
call fcn.00462100
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x462424
push edi
call eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x462434
push ebx
call edi
push esi
call edi
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x462458
push esi
call eax
xor al, al
jmp 0x462436
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x46246c
push ebx
call edi
push esi
call edi
xor al, al
jmp 0x462436

Function at 0x4646d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d6080]
jne 0x4646db
repz ret
jmp fcn.0046e9cc
Function at 0x4834d6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046d01b
and dword [ebp - 4], 0
cmp dword [0x4dc4bc], 0
mov ebx, eax
jne 0x483587
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x483638
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x483638
push eax
call fcn.0046cfa9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4dc4bc], eax
call esi
push eax
call fcn.0046cfa9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4dc4c0], eax
call esi
push eax
call fcn.0046cfa9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4dc4c4], eax
call esi
push eax
call fcn.0046cfa9
pop ecx
mov dword [0x4dc4cc], eax
test eax, eax
je 0x483587
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046cfa9
pop ecx
mov dword [0x4dc4c8], eax
mov eax, dword [0x4dc4c8]
cmp eax, ebx
je 0x4835df
cmp dword [0x4dc4cc], ebx
je 0x4835df
push eax
call fcn.0046d024
push dword [0x4dc4cc]
mov esi, eax
call fcn.0046d024
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4835df
test edi, edi
je 0x4835df
call esi
test eax, eax
je 0x4835d6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4835d6
test byte [ebp - 0xc], 1
jne 0x4835df
or dword [ebp + 0x10], 0x200000
jmp 0x483618
mov eax, dword [0x4dc4c0]
cmp eax, ebx
je 0x483618
push eax
call fcn.0046d024
pop ecx
test eax, eax
je 0x483618
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x483618
mov eax, dword [0x4dc4c4]
cmp eax, ebx
je 0x483618
push eax
call fcn.0046d024
pop ecx
test eax, eax
je 0x483618
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4dc4bc]
call fcn.0046d024
pop ecx
test eax, eax
je 0x483638
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48363a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49b320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab31e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov byte [ebp - 0x51], al
push 1
lea ecx, [ebp - 0x51]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x48]
call fcn.004018b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x88]
push eax
call fcn.0049b050
mov dword [ebp - 0x8c], eax
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp - 0x8c]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402010
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00401670
push 2
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.00402050
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x44]
call fcn.004017d0
push eax
lea ecx, [ebp - 0x48]
call fcn.00401930
push eax
lea ecx, [ebp - 0x50]
call fcn.00402050
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00402030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401670
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004646d1
mov esp, ebp
pop ebp
ret 4
Function at 0x401000
Capabilities:
Set console window title

Disassembly:
push 0x20
push 0
push 0x404470
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x404474], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x404470], eax
call fcn.00402750
mov edx, str.Feel_the_Power_of_PureBasic_
lea ecx, [0x40447c]
call fcn.00402008
mov dword [0x404480], 0xfa0
call fcn.0040204d
push str.PureBasic___Console_Example:
call sub.KERNEL32.dll_SetConsoleTitleA
push 1
call fcn.004020bb
push 0xc
push 0x12
call fcn.00402126
push str.Please_enter_your_name:
call dword [0x404078]
mov eax, dword [0x40449c]
push eax
push eax
call dword [0x40407c]
lea ecx, [0x404484]
pop edx
call fcn.00402010
call fcn.00402326
push 0xa
push 0x18
call fcn.00402126
mov eax, dword [0x40449c]
push eax
push eax
mov edx, str.Welcome
call fcn.004027a0
mov edx, dword [0x404484]
call fcn.004027a0
inc dword [0x40449c]
mov edx, dword [0x404074]
add dword [esp], edx
call dword [0x404080]
pop dword [0x40449c]
push 0xc
push 0x18
call fcn.00402126
push dword [0x40447c]
call dword [0x404080]
push dword [0x404480]
call sub.KERNEL32.dll_Sleep
call fcn.00402326
mov dword [0x404488], 0
mov eax, 0xf
cmp eax, dword [0x404488]
jl 0x40116f
push dword [0x404488]
push 0
call fcn.0040240c
mov ebx, dword [0x404488]
add ebx, 4
push ebx
push 0x18
call fcn.00402126
push dword [0x40447c]
call dword [0x404078]
inc dword [0x404488]
jmp 0x40112a
push dword [0x404480]
call sub.KERNEL32.dll_Sleep
push 0
push 0
call fcn.0040240c
call fcn.00402326
mov dword [0x404488], 0
mov eax, 0xf
cmp eax, dword [0x404488]
jl 0x4011dd
push 0
push dword [0x404488]
call fcn.0040240c
mov ebx, dword [0x404488]
add ebx, 4
push ebx
push 0x18
call fcn.00402126
push dword [0x40447c]
call dword [0x404078]
inc dword [0x404488]
jmp 0x401198
push dword [0x404480]
call sub.KERNEL32.dll_Sleep
mov dword [0x40448c], 1
mov eax, 0xf
cmp eax, dword [0x40448c]
jl 0x40128c
push dword [0x40448c]
push dword [0x40448c]
call fcn.0040240c
call fcn.00402326
mov dword [0x404488], 0
mov eax, 0xf
cmp eax, dword [0x404488]
jl 0x401269
push dword [0x40448c]
push dword [0x404488]
call fcn.0040240c
mov ebx, dword [0x404488]
add ebx, 4
push ebx
push 0x18
call fcn.00402126
push dword [0x40447c]
call dword [0x404078]
inc dword [0x404488]
jmp 0x401223
mov ebx, dword [0x404480]
mov eax, ebx
mov ebx, 0xa
cdq
idiv ebx
mov ebx, eax
push ebx
call sub.KERNEL32.dll_Sleep
inc dword [0x40448c]
jmp 0x4011f2
call fcn.00402439
push 0
call fcn.004012ab
push dword [0x404470]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
Function at 0x40a665
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x40a6dd
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x40a6be
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x40a6bb
cmp ecx, 0x5c
je 0x40a6bb
cmp ecx, 0x2f
jne 0x40a6c8
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x40a6a8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40a6df
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40a9e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40aa1c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x40b2b1
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x5c], eax
ret

Function at 0x40c810
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

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

Disassembly:
push edi
push dword [0x417610]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x40d2e9
push esi
push dword [0x41760c]
push 8
push dword [0x417008]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x417610]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x417608]
jmp 0x40d2d9
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40d2d7
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x40d2c7
push edi
push 0x40d226
call fcn.00411d62
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x40e200
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x416170]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40e224
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x40e272
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x417720]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x40e350
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x416170]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40e6a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x416170]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4