joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c030
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x70], esi
push edi
mov edi, edx
test esi, esi
je 0x41c1f1
test edi, edi
je 0x41c1f1
test ebx, ebx
je 0x41c1f1
mov eax, dword [edi]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x41c081
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004488a4
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x68]
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x60]
mov dword [ebp - 0x64], 0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x34], 0x455ca0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], eax
call fcn.00411b06
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41c0d6
mov edx, dword [ecx]
lea eax, [ebp - 0x34]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
push 0xf0000040
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x41c124
call fcn.0041390d
mov esi, eax
cmp esi, 0x80090019
jne 0x41c1d4
push 0xf0000040
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
push 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41c183
mov esi, dword [ebp - 0x70]
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push dword [ebx + 4]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x41c183
movzx eax, word [ebx + 0xc]
push 0
push eax
push dword [ebx + 8]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41c183
lea eax, [ebp - 0x68]
push eax
push 1
push dword [ebp - 0x64]
push dword [ebx]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x41c183
lea eax, [ebp - 0x6c]
push eax
push esi
push 0
push 1
push 0
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x41c1a7
call fcn.0041390d
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.00411ad6
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004488a4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x6c]
cmp dword [edi], eax
jae 0x41c1d0
lea ecx, [ebp - 0x5c]
mov esi, 0x8007000b
call fcn.00411ad6
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004488a4
mov esp, ebp
pop ebp
ret 4
mov dword [edi], eax
xor esi, esi
lea ecx, [ebp - 0x5c]
call fcn.00411ad6
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004488a4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov eax, 0x80070057
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
mov esp, ebp
pop ebp
ret 4
Function at 0x41cd60
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x64]
push esi
mov dword [ebp - 0x2c], eax
mov esi, ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x5c], 0
push edi
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xc], eax
mov edi, edx
mov dword [ebp - 0x28], ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x60], 0
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x30], 0x455d90
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x34], 0
call fcn.00426d80
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x41cdd5
mov edx, dword [ecx]
lea eax, [ebp - 0x30]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41ce27
lea eax, [ebp - 0x60]
push eax
push 0x41
push 0
push 0x94
push 0x44e6a0
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x41ce27
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x41ce4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x41ce43
test edi, 0xffff0000
jne 0x41ce8b
or edi, 0x80070000
jmp 0x41ce8b
mov edi, 0x80004005
jmp 0x41ce8b
push 0
push dword [edi]
push esi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x41ce65
call fcn.0041390d
mov edi, eax
jmp 0x41ce8b
push 0
push 0
push dword [ebp - 0x60]
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
mov edi, 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x41cec4
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x41ceaf
mov esi, dword [ecx]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
mov esp, ebp
pop ebp
ret 8
call fcn.00430d50
int3
Function at 0x420340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov ecx, 1
mov edi, 0x47eb78
xor eax, eax
lock cmpxchg dword [edi], ecx
cmp eax, 2
je 0x420488
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 1
jne 0x420392
push 0
call esi
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
cmp eax, 2
jne 0x420374
jmp 0x420487
test eax, eax
jne 0x420487
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360Safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420480
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x214], 0x204
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x44c510
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420474
lea eax, [ebp - 0x20c]
push eax
push 0x47e778
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x42046c
push 0x200
push 0x47e778
call fcn.00444ff0
add esp, 8
test eax, eax
je 0x420474
lea ecx, [eax + eax]
jmp 0x420440
movzx edx, word [ecx + 0x47e776]
sub ecx, 2
dec eax
cmp edx, 0x5c
je 0x420455
cmp edx, 0x2f
jne 0x420474
cmp ecx, 0x400
jae 0x42049c
xor edx, edx
mov word [ecx + 0x47e778], dx
test eax, eax
jne 0x420440
jmp 0x420474
xor eax, eax
mov word [0x47e778], ax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
xchg dword [edi], eax
pop esi
mov ecx, dword [ebp - 4]
mov eax, 0x47e778
xor ecx, ebp
pop edi
call fcn.004488a4
mov esp, ebp
pop ebp
ret
call fcn.00437290
int3
Function at 0x42de39
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
test edi, edi
je 0x42dfbe
test ecx, ecx
je 0x42dfbe
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42de7d
push 2
pop eax
jmp 0x42dfc3
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocStringLen
push edi
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42dea4
call fcn.00410a87
jmp 0x42dea8
mov esi, eax
mov eax, ebx
mov dword [ebp - 0x38], esi
test eax, eax
js 0x42dfaa
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], edi
cmp edi, 0xffffffff
jne 0x42deda
call fcn.00410a87
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x30], edi
test eax, eax
js 0x42dedc
mov eax, ebx
mov ecx, dword [ebp - 0x3c]
test eax, eax
js 0x42dfaa
mov eax, dword [ebp - 0x34]
mov edx, edi
add edx, 0x20
adc ecx, ebx
cmp dword [eax + 4], ecx
ja 0x42df03
jb 0x42defc
cmp dword [eax], edx
jae 0x42df03
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x42df21
cmp dword [ebp - 0x2c], ebx
jne 0x42df12
mov ebx, 0x80070057
jmp 0x42dfaf
push edi
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov dword [ebp - 0x3c], eax
pop ecx
test eax, eax
jne 0x42df29
push 8
pop ebx
jmp 0x42dfaf
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42df43
call fcn.00410a87
test esi, esi
je 0x42df4e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg esi
lea ebx, [edi + 0x20]
push ebx
sbb esi, esi
not esi
and esi, dword [ebp - 0x38]
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x38], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea edi, [ebp - 0x28]
mov esi, str._6___q8____0Jo9O_DaL__Ge
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x28]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x3c]
push edi
push dword [ebp - 0x30]
push esi
call fcn.0042dd90
test eax, eax
jne 0x42df98
mov ebx, 0x1771
jmp 0x42df9d
xor ebx, ebx
mov byte [edi + eax], bl
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov esi, dword [ebp - 0x38]
pop ecx
jmp 0x42dfaf
mov ebx, 0x3ee
test esi, esi
je 0x42dfba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x42dfc3
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
leave
ret
Function at 0x42dfd2
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x42e0e4
test edi, edi
je 0x42e0e4
test ecx, ecx
je 0x42e0e4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e014
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x48], esi
cmp esi, 0xffffffff
jne 0x42e041
mov ebx, 0x3ee
jmp 0x42e0d9
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x54], ebx
call fcn.00401a87
mov edi, dword [ebp - 0x10]
add edi, 0x20
push edi
mov dword [ebp - 0x4c], edi
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov dword [ebp - 0x50], eax
pop ecx
test eax, eax
jne 0x42e06a
push 8
pop ebx
jmp 0x42e0cd
push edi
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea edi, [ebp - 0x44]
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
mov esi, str._6___q8____0Jo9O_DaL__Ge
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jb 0x42e08f
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
lea ecx, [ebp - 0x44]
push edi
push dword [ebp - 0x10]
push eax
call fcn.0042dce7
mov esi, dword [ebp - 0x48]
test eax, eax
jne 0x42e0b0
mov ebx, 0x1770
jmp 0x42e0c5
push ebx
lea ecx, [ebp - 0x54]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42e0c5
push 0x1d
pop ebx
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
lea ecx, [ebp - 0x20]
call fcn.00401ae8
test esi, esi
je 0x42e0e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x42e0e9
mov eax, 0x80070057
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
leave
ret
Function at 0x4306cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp byte [0x45ba4c], 0
push esi
mov esi, ecx
je 0x4306f4
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4307b6
push ebx
push edi
test esi, esi
je 0x4307b2
xor ebx, ebx
cmp word [esi], bx
je 0x4307b2
mov edi, 0x200
lea eax, [ebp - 0x404]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x4307b2
cmp ecx, edi
jae 0x4307b2
push 0x5c
pop eax
mov word [ebp + ecx*2 - 0x404], ax
inc ecx
cmp ecx, edi
jae 0x4307b2
movzx eax, word [esi]
test ax, ax
je 0x430762
mov edx, eax
mov word [ebp + ecx*2 - 0x404], dx
inc ecx
cmp ecx, edi
jae 0x4307b2
add esi, 2
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x430748
xor eax, eax
mov word [ebp + ecx*2 - 0x404], ax
mov eax, dword [0x45ba44]
test eax, eax
je 0x430780
lea ecx, [ebp - 4]
push ecx
push ebx
call eax
mov esi, eax
jmp 0x430785
mov esi, 0xc000000d
push 8
push ebx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test esi, esi
js 0x4307ae
mov ecx, dword [0x45ba44]
test ecx, ecx
je 0x4307ae
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
call ecx
mov eax, edi
jmp 0x4307b4
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4309c0
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x4309c5
mov eax, dword [0x45ba94]
push ebx
xor ebx, ebx
push esi
test eax, eax
jne 0x4309e0
call fcn.00430acb
test eax, eax
je 0x430a33
mov eax, dword [0x45ba94]
cmp eax, 1
jne 0x4309ff
push 0xd
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x430a33
jmp 0x430a88
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x430a1d
push 0xd
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x430a88
push 0x40
mov eax, 0x1000
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x430a45
push ebx
push ebx
push ebx
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esi]
push edi
push dword [0x45ba94]
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x430a6b
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x430a87
lea edi, [esi + 0xff0]
push esi
push dword [0x45ba94]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x430a71
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x432a01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x432a2d
mov eax, 0x44ac68
push eax
push eax
push edi
push edi
call fcn.0043210d
jmp 0x432a59
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 0x10]
push edi
push eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432a1d
cmp esi, dword [ebp + 0x10]
je 0x432a60
push 0x44ac68
push 1
push edi
push edi
call fcn.004320c0
add esp, 0x10
xor eax, eax
jmp 0x432a63
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x433c4f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x433c79
mov eax, 0x44ac68
push eax
push eax
push 0
push 0
call fcn.0043210d
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x4349c8
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
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
pop ebp
ret

Function at 0x434f0b
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x435324
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x44998a
call fcn.00437770
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.0043519b
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x43536c
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, esi
call fcn.00437730
ret 4
push 0x4584ac
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x435469
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.004355ed
mov edi, eax
test edi, edi
je 0x4354f4
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x4354a4
mov esi, edi
jmp 0x4354e0
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x4354d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4354cc
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.00435588
jmp 0x4354e0
push 0x44af58
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4354e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.004355ed
mov edi, eax
test edi, edi
jne 0x435499
test esi, esi
jne 0x435509
mov ecx, dword [ebx]
add ecx, 8
call fcn.00435766
mov esi, eax
test esi, esi
je 0x435509
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4369c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
movzx ecx, word [ecx + 6]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*8]
cmp eax, edi
je 0x4369fe
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x4369f7
mov ecx, dword [eax + 8]
add ecx, edx
cmp esi, ecx
jb 0x436a00
add eax, 0x28
cmp eax, edi
jne 0x4369e7
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4373e0
Capabilities:
Get process heap force flags

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx + 0xa4]
shl eax, 0x10
or eax, dword [ecx + 0xa8]
ret

Function at 0x438363
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
cmp byte [0x45c69c], 0
push ebx
push esi
mov esi, ecx
je 0x43838c
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x43845d
push edi
test esi, esi
je 0x438452
xor edi, edi
cmp word [esi], di
je 0x438452
cmp dword [0x45c694], edi
jne 0x4383b6
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x43845c
mov ebx, 0x200
lea eax, [ebp - 0x410]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x43844b
cmp eax, ebx
jae 0x43844b
mov eax, dword [0x45c690]
test eax, eax
je 0x4383e1
lea ecx, [ebp - 4]
push ecx
push edi
call eax
mov eax, esi
mov dword [ebp - 0xc], eax
jmp 0x4383eb
add esi, 2
cmp word [esi], di
jne 0x4383e8
sub esi, eax
mov dword [ebp - 8], edi
and esi, 0xfffffffe
mov word [ebp - 0x10], si
lea eax, [esi + 2]
mov word [ebp - 0xe], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x410]
push eax
call dword [0x45c694]
mov esi, eax
mov eax, dword [0x45c690]
test eax, eax
je 0x43842d
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
call eax
test esi, esi
jns 0x438446
mov eax, dword [0x45c698]
test eax, eax
je 0x43843f
push esi
call eax
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
jmp 0x43845c
push 0x65b
jmp 0x438454
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4385f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x438617
mov ecx, 5
int 0x29
push 2
call fcn.00437ad0
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x438722
test esi, esi
jne 0x438722
push 2
call fcn.00437ad0
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004488a4
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call sub.WS2_32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WS2_32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x401036
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x40105d
push esi
call sub.WS2_32.dll_htonl
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call sub.WS2_32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret