joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067ed
Capabilities:
Reference sql statements

Disassembly:
push 0x21c
mov eax, 0x439310
call fcn.0041ef30
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.004025b7
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004020ed
push 0x43cebc
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.004022ae
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
push dword [eax - 0xc]
push eax
call fcn.00402376
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401a64
cmp dword [ebp - 0x21c], ebx
je 0x406881
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ebx
push eax
push dword [ebp - 0x224]
push dword [ebp + 8]
call sub.msi.dll_MsiEnumClientsA
mov esi, eax
test esi, esi
jne 0x406946
push ebx
push dword [ebp - 0x21c]
call sub.msi.dll_MsiViewModify
mov esi, eax
test esi, esi
jne 0x406946
cmp dword [ebp - 0x220], eax
je 0x4068cf
push dword [ebp - 0x220]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
push eax
push dword [ebp - 0x21c]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov esi, eax
test esi, esi
jne 0x406946
mov eax, 0x104
push eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00420450
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push dword [ebp - 0x220]
call sub.msi.dll_MsiRecordSetStreamA
mov esi, eax
test esi, esi
jne 0x406946
lea eax, [ebp - 0x218]
push eax
call fcn.0042410e
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004035fe
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00401a64
cmp dword [ebp - 0x220], 0
je 0x406968
push dword [ebp - 0x220]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x21c], 0
je 0x40697c
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, esi
call fcn.0041eeda
ret

Function at 0x406a71
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x406ac1
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x406ac6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
push 0x20019
xor edi, edi
mov dword [ebp - 4], 0x104
push edi
push dword [ebp + 0xc]
mov esi, edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x406b72
push 0x208
call fcn.00426bb9
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, 0xea
jne 0x406b57
push esi
call fcn.004269bd
mov eax, dword [ebp - 4]
add eax, eax
push eax
call fcn.00426bb9
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x406b72
test esi, esi
je 0x406b68
push esi
call fcn.0042410e
pop ecx
mov edi, eax
mov ecx, dword [ebp + 0x14]
push edi
push esi
call fcn.004035fe
push esi
call fcn.004269bd
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x406b89
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x439393
call fcn.0041eefc
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWARERegisteredApplications
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x406be8
push str.Unable_to_open_HKLMSOFTWARERegisteredApplications
lea ecx, [ebp - 0x20]
call fcn.004020ed
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push 1
call fcn.00403241
mov ecx, dword [ebp - 0x20]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov eax, esi
jmp 0x406d69
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
je 0x406c1e
push str.Unable_to_query_HKLMSOFTWARERegisteredApplications
lea ecx, [ebp - 0x20]
call fcn.004020ed
mov dword [ebp - 4], 1
jmp 0x406bc7
call fcn.00410229
push eax
lea ecx, [ebp - 0x10]
call fcn.00401330
mov dword [ebp - 4], 2
call fcn.00410229
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401330
mov ecx, 0x104
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
call fcn.00403325
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00403325
lea ecx, [ebp - 0x18]
push ecx
push esi
lea ecx, [ebp - 0x2c]
push ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x406d51
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x406d51
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004033a7
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.004033a7
mov eax, 0x104
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x406d11
push 0
push dword [ebx]
lea ecx, [ebp - 0x10]
call fcn.004025f8
cmp eax, 0xffffffff
je 0x406d11
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00402209
push str.Found_registered_application_name:
lea ecx, [ebp - 0x28]
call fcn.004020ed
push 0
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
push 1
call fcn.00402aff
mov ecx, dword [ebp - 0x28]
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00401a64
push dword [ebp - 0x18]
inc dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.00403325
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00403325
lea ecx, [ebp - 0x18]
push ecx
push esi
lea ecx, [ebp - 0x2c]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x406c90
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401a64
xor eax, eax
call fcn.0041eec5
ret
Function at 0x408888
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0x28
mov eax, 0x43988c
call fcn.0041eefc
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x408a05
cmp dword [eax - 0xc], 4
jb 0x408a05
add eax, 0xfffffff0
push eax
call fcn.00402458
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x5c
push esi
mov byte [ebp - 4], 1
call fcn.004218a4
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x40890d
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x40890d
mov eax, dword [esi - 0xc]
dec eax
cmp ecx, eax
jne 0x40890d
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402a4e
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402209
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov esi, str..
push esi
call fcn.0042410e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00402376
lea ecx, [ebp - 0x34]
call fcn.00411e0a
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push 0
push esi
mov byte [ebp - 4], 3
call fcn.00412090
test eax, eax
je 0x4089bc
lea ecx, [ebp - 0x34]
call fcn.00412240
lea ecx, [ebp - 0x34]
mov ebx, eax
call fcn.00412640
test eax, eax
jne 0x4089b8
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.00412350
mov eax, dword [ebp - 0x34]
push 0x10
mov byte [ebp - 4], 4
mov edi, dword [eax + 0x38]
mov ecx, edi
call dword [0x43b5a4]
lea ecx, [ebp - 0x34]
call edi
test eax, eax
je 0x40899f
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
mov dword [ebp - 0x18], edi
call fcn.00402458
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.00408888
jmp 0x4089a8
lea eax, [ebp - 0x14]
push eax
call fcn.0040413d
pop ecx
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00401a64
test ebx, ebx
jne 0x408941
lea ecx, [ebp - 0x34]
call fcn.00412030
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4089f2
push 0x186a0
lea eax, [ebp + 8]
push eax
push 2
call fcn.00403241
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00411fb6
lea ecx, [esi - 0x10]
call fcn.00401a64
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x10]
call fcn.00401a64
call fcn.0041eec5
ret
Function at 0x408b69
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x43991a
call fcn.0041eefc
mov eax, dword [ebp + 0x10]
xor esi, esi
push 0x44
pop ebx
push ebx
mov edi, dword [eax]
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x1c], 0x20
call fcn.00420450
push 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x70], ebx
push esi
push eax
mov dword [ebp - 0x68], str.winsta0default
call fcn.00420450
add esp, 0x18
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
push ebx
push edi
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x408bc8
mov dword [ebp - 0x1c], 0x420
jmp 0x408bf8
push str.CreateEnvironmentBlock_failed
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
call fcn.004020ed
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
push eax
push ebx
call fcn.00403241
mov ecx, dword [ebp - 0x18]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a64
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push str._Skip
push eax
call fcn.0040406d
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 4], ebx
mov eax, dword [eax - 0xc]
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040fbc2
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x408c6c
push str.new_wchar_t_failed
lea ecx, [ebp - 0x18]
call fcn.004020ed
mov esi, 0x372
mov byte [ebp - 4], 2
push esi
lea eax, [ebp - 0x18]
push eax
push 1
call fcn.00403241
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408d17
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax - 0xc]
lea eax, [ecx + 1]
push eax
push ebx
call fcn.004269d8
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push esi
push esi
push esi
push ebx
push dword [eax]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x408cbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateProcessAsUser_failed
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004020ed
mov byte [ebp - 4], 3
jmp 0x408ccf
push str.CreateProcessAsUser_succeeded
lea ecx, [ebp - 0x1c]
call fcn.004020ed
mov byte [ebp - 4], 4
push esi
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.00403241
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
cmp dword [ebp - 0x10], 0
je 0x408cf7
push dword [ebp - 0x10]
call sub.USERENV.dll_DestroyEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040fbbd
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401a64
mov eax, esi
call fcn.0041eec5
ret
Function at 0x40aadb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
xor esi, esi
call fcn.004020ed
mov eax, dword [ebp - 8]
mov edi, dword [eax - 0xc]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ab4c
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x40ab27
cmp ecx, 2
je 0x40ab27
push edi
jmp 0x40ab2b
lea eax, [edi + edi]
push eax
push dword [ebp + 0x14]
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401a64
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40ab5d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40abc1
push esi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
test esi, esi
pop esi
cmove edi, eax
mov eax, edi
pop edi
leave
ret
Function at 0x40cf1b
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4504c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
push 0xf0000040
inc ecx
mov dword [ebp - 0x24], eax
push ecx
push eax
push eax
mov bl, al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40cfd9
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40cfd9
cmp dword [ebp - 0x20], 0
je 0x40cfe8
push 0
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40cfd9
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40cfd9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.0040ccec
add esp, 0x10
test al, al
je 0x40cfd9
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0040d089
pop ecx
pop ecx
test al, al
movzx ebx, bl
push 1
pop eax
cmovne ebx, eax
cmp dword [ebp - 0x20], 0
je 0x40cfe8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x24], 0
je 0x40cff9
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041eeb4
leave
ret
Function at 0x40d089
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4504c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20
pop ecx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x88]
xor edx, edx
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 8]
movzx eax, byte [ecx + esi]
inc ecx
mov dword [ebp - 0x8c], eax
cmp ecx, 8
jae 0x40d0d2
movzx edi, byte [ecx + esi]
inc ecx
jmp 0x40d0d4
xor edi, edi
cmp ecx, 8
jae 0x40d0ec
movzx eax, byte [ecx + esi]
inc ecx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x8c]
jmp 0x40d0f3
and dword [ebp - 0x90], 0
shr eax, 2
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2], ax
mov eax, dword [ebp - 0x8c]
and eax, 3
shl eax, 4
mov dword [ebp - 0x8c], eax
mov eax, edi
shr eax, 4
and edi, 0xf
or dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
shl edi, 2
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2 + 2], ax
mov eax, dword [ebp - 0x90]
shr eax, 6
or edi, eax
mov ax, word [ebp + edi*2 - 0x88]
mov word [ebx + edx*2 + 4], ax
mov eax, dword [ebp - 0x90]
and eax, 0x3f
mov ax, word [ebp + eax*2 - 0x88]
mov word [ebx + edx*2 + 6], ax
add edx, 4
cmp ecx, 8
jb 0x40d0bb
mov ecx, dword [ebp - 4]
push 0x3d
pop eax
mov word [ebx + edx*2 - 2], ax
xor ecx, ebp
xor eax, eax
pop edi
mov word [ebx + edx*2], ax
mov al, 1
pop esi
pop ebx
call fcn.0041eeb4
leave
ret
Function at 0x40f4f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push eax
push eax
push eax
push 0x40f5c0
push eax
push eax
mov dword [0x450004], ebx
mov dword [0x45000c], edi
mov dword [0x450008], esi
mov dword [0x45001c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 0x14]
push edi
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push 0x10
mov eax, 0x43a8bd
call fcn.0041ef67
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x41954f
cmp ebx, dword [esi + 0xc]
jge 0x41954f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x41949c
cmp ebx, dword [edi + 8]
jl 0x41953d
cmp dword [ebp + 0xc], 0
je 0x41953d
xor ebx, ebx
jmp 0x4194d6
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.004190d2
mov edi, eax
test edi, edi
je 0x4194b6
mov dword [edi], vtable.CThreadData.0
jmp 0x4194b8
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.004193d8
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x4194f1
push 4
push dword [esi + 0xc]
call fcn.00410183
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x419509
push 2
push 4
push dword [esi + 0xc]
call fcn.00410183
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x419576
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.00420450
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x41954f
cmp ebx, dword [edi + 8]
jge 0x41954f
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041eec5
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040fc5e
int3
Function at 0x41b15b
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4504c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.00420450
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.00427276
push eax
call fcn.0040234c
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x442d4c]
je 0x41b2c5
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x41b2d9
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41b2d9
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x41b1f4
mov eax, edi
jmp 0x41b223
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x41b211
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.0041af40
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x41b21a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0041267c
test eax, eax
je 0x41b248
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411e42
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x41b24c
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041267c
test eax, eax
je 0x41b273
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411e42
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x41b277
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041267c
test eax, eax
je 0x41b29f
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.00411e42
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x41b2a1
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x41b2b3
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x41b2c5
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041eeb4
leave
ret 4
xor eax, eax
jmp 0x41b2c8

Function at 0x42fd8b
Capabilities:
Read file on windows

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

Function at 0x42fd96
Capabilities:
Read file on windows

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