joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42043f
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x432f3c]
push esi
test eax, eax
jne 0x420450
push fcn.00420558
push 0x10
push 0x258
call fcn.004280dc
mov dword [0x432f3c], eax
push dword [esp + 0xc]
push eax
call fcn.00428048
mov esi, eax
test esi, esi
je 0x420551
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x420472
mov edi, 0x42b054
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x420482
xor eax, eax
cmp word [ebx], ax
jne 0x420487
mov ebx, 0x42b4c4
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x43245c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x420538
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4204e8
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4204ec
push 0x42b4c0
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4204ec
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x420510
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x420526
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x420524
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x43245c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x42054f
cmp dword [esp + 0x14], 0xffffffff
je 0x420543
mov esi, dword [esp + 0x14]
push esi
push dword [0x432f3c]
call fcn.00427fba
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x420a3e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x420ab6
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 0x420a97
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x420a94
cmp ecx, 0x5c
je 0x420a94
cmp ecx, 0x2f
jne 0x420aa1
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x420a81
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x420ab8
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x420abe
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x420ade
cmp dword [esp + 8], 0
je 0x420ade
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x420ae0
xor eax, eax
ret 8

Function at 0x420c20
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 0x420c5c
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 0x420fb0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x420fa8
cmp word [edx], 0
je 0x420fa8
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x420ece
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x420f2d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x420f00
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420ee0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00420fe0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420f00
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.004210f0
mov edi, eax
test edi, edi
je 0x420f23
cmp dword [esi + 4], 0
je 0x420f7b
push dword [esp + 0x14]
push edi
push esi
call fcn.00420fe0
push edi
push 0
push dword [0x43245c]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x43245c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
push dword [esp + 4]
push dword [0x4330f0]
call fcn.00428009
test eax, eax
je 0x420fcc
mov dword [esp + 4], eax
jmp 0x420ea0
xor eax, eax
ret 0xc
Function at 0x420fe0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x4210e7
cmp dword [esi + 0x14], 1
jne 0x42102b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x4210a8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x421093
dec eax
je 0x42107c
sub eax, 2
je 0x421067
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00420c20
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x4210d5
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x421051
xor eax, eax
pop esi
add esp, 0xc
ret 0xc

Function at 0x42204d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4220c2
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x42206b
mov esi, 0x42b054
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
lea ebp, [eax*2 + 2]
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4220b9
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4220b9
push ebp
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
ret 4
Function at 0x423e90
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x423ec2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423ebd
cmp dword [esp + 0xc], esi
je 0x423ed9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

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

Disassembly:
push edi
push dword [0x432fa4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x427ef9
push esi
push dword [0x432fa0]
push 8
push dword [0x43245c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x432fa4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x432f9c]
jmp 0x427ee9
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x427ee7
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x427ed7
push edi
push 0x427e36
call fcn.00429a67
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x427f03
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x427f19
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x432fa0]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x427f50
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x43245c]
mov dword [0x432fa4], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x432fa4]
call ebx
mov eax, dword [0x432fa0]
mov edi, eax
add eax, esi
push eax
push dword [0x432fa4]
mov dword [0x432fa0], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x43245c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x432fa4]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x427f90
test ebx, ebx
je 0x427fb1
push 0x14
push 0x432f9c
call fcn.0042880b
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x427fb1
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x428900
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x428946
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x433230]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x428967
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x433230]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00429020
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x4289f0
Capabilities:
Get thread local storage value

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

Function at 0x428b00
Capabilities:
Get thread local storage value

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

Function at 0x428b60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret
Function at 0x428d10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x428d34
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 0x428d84
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 [0x433230]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x428dcc
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x428dcc
cmp dword [ebp - 8], 0x100000
jge 0x428da0
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
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 [0x433230]
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 0x428df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4303e4]
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 0x428e20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x428e5e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x428e5e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x428e60
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x429070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x429450
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4303e4]
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

Function at 0x429a67
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x432fe4], 0
push ebx
push esi
mov esi, 0x432fec
jne 0x429a93
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x433004], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x432fe4], 1
push dword [0x433004]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x429b30
push 0x14
push 8
push dword [0x43245c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x429b5a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x432fe8]
test eax, eax
je 0x429ad5
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x432fe8], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x429b5f
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x433004]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x43245c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x429b5a
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x402f60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x42067c]
mov ecx, dword [eax + 0x228]
test ecx, ecx
je 0x402f7a
mov ecx, dword [esp + 4]
mov dword [eax + 0x22c], ecx
ret
push str._nMIRACL_error_from_routine
call fcn.00403170
add esp, 4
mov ecx, dword [0x42067c]
mov eax, dword [ecx + 0x1c]
cmp eax, 0x18
jge 0x402fa3
mov edx, dword [ecx + eax*4 + 0x20]
mov eax, dword [edx*4 + 0x41ca54]
push eax
jmp 0x402fa8
push 0x41d5e0
call fcn.00403170
add esp, 4
push esi
push 0x41d678
push 0xa
call fcn.004097b5
mov ecx, dword [0x42067c]
add esp, 8
mov esi, dword [ecx + 0x1c]
dec esi
js 0x40301e
push edi
lea edi, [esi*4 + 0x20]
push str.______________called_from
call fcn.00403170
add esp, 4
cmp esi, 0x18
jge 0x402ff9
mov edx, dword [0x42067c]
mov eax, dword [edi + edx]
mov ecx, dword [eax*4 + 0x41ca54]
push ecx
jmp 0x402ffe
push 0x41d5e0
call fcn.00403170
add esp, 4
push 0x41d678
push 0xa
call fcn.004097b5
add esp, 8
dec esi
sub edi, 4
test esi, esi
jge 0x402fd4
pop edi
mov edx, dword [esp + 8]
pop esi
lea eax, [edx - 1]
cmp eax, 0x18
ja case.default.0x40302f
jmp dword [eax*4 + 0x403104]
push str.Number_base_too_big_for_representation_n
jmp 0x4030f5
push str.Division_by_zero_attempted_n
jmp 0x4030f5
push str.Overflow___Number_too_big_n
jmp 0x4030f5
push str.Internal_result_is_negative_n
jmp 0x4030f5
push str.Input_format_error_n
jmp 0x4030f5
push str.Illegal_number_base_n
jmp 0x4030f5
push str.Illegal_parameter_usage_n
jmp 0x4030f5
push str.Out_of_space_n
jmp 0x4030f5
push str.Even_root_of_a_negative_number_n
jmp 0x4030f5
push str.Raising_integer_to_negative_power_n
jmp 0x4030f5
push str.Attempt_to_take_illegal_root_n
jmp 0x4030f5
push str.Integer_operation_attempted_on_Flash_number_n
jmp 0x4030f5
push str.Flash_overflow_n
jmp 0x4030f5
push str.Numbers_too_big_n
jmp 0x4030f5
push str.Log_of_a_non_positive_number_n
jmp 0x4030f5
push str.Flash_to_double_conversion_failure_n
jmp 0x4030f5
push str.I_O_buffer_overflow_n
jmp 0x4030f5
push str.MIRACL_not_initialised___no_call_to_mirsys___n
jmp 0x4030f5
push str.Illegal_modulus__n
jmp 0x4030f5
push str.No_modulus_defined_n
jmp 0x4030f5
push str.Exponent_too_big_n
jmp 0x4030f5
push str.Number_Base_must_be_power_of_2_n
jmp 0x4030f5
push str.Specified_double_length_type_isnt_double_length_n
jmp 0x4030f5
push str.Specified_basis_is_NOT_irreducible_n
jmp 0x4030f5
push str.Unable_to_control_Floating_point_rounding_n
call fcn.00403170
add esp, 4
push 0
call fcn.004096e0
xor byte ss:[eax], al
inc eax
xor byte [eax], al
dec edx
xor byte [eax], al
push esp
xor byte [eax], al
pop esi
xor byte [eax], al
push 0x72004030
xor byte [eax], al
jns 0x403152
inc eax
add byte [eax - 0x78ffbfd0], al
xor byte [eax], al
invalid
inc eax
add ah, dl
xor byte [eax], al
invalid
Function at 0x44cae9
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, dword [0x400820]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
push esi
xor ecx, ecx
xor edx, edx
mov esi, 0xff
cmp byte [eax], 0xcc
jne 0x44cb17
cmp byte [eax + 1], cl
jne 0x44cb17
cmp byte [eax + 2], cl
jne 0x44cb17
cmp byte [eax + 3], cl
jne 0x44cb17
cmp byte [eax - 6], 0xe4
je 0x44cb21
inc eax
inc edx
cmp edx, esi
jl 0x44cafd
xor eax, eax
pop esi
ret
xor edx, edx
cmp byte [eax], 0xff
jne 0x44cb34
cmp byte [eax + 1], 0x75
jne 0x44cb34
cmp byte [eax + 2], 0xf4
je 0x44cb3d
inc eax
inc edx
cmp edx, 0x30
jl 0x44cb23
jmp 0x44cb1d
add eax, 5
mov edx, dword [eax]
lea edx, [edx + eax + 4]
mov dword [0x400908], edx
cmp byte [eax], 0xff
jne 0x44cb5d
cmp byte [eax + 1], 0x75
jne 0x44cb5d
cmp byte [eax + 2], 0xfc
je 0x44cb65
inc eax
inc ecx
cmp ecx, esi
jl 0x44cb4c
jmp 0x44cb1d
add eax, 4
mov ecx, dword [eax]
lea eax, [ecx + eax + 4]
mov dword [0x400914], eax
xor eax, eax
inc eax
pop esi
ret

Function at 0x401380
Capabilities:
Get file size

Disassembly:
call fcn.0040103c
mov edi, dword [ebp + 0xc]
add edi, 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
sub edi, 4
stosd dword es:[edi], eax
call fcn.0040104a
ret 8
Function at 0x7decbe10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x18
mov eax, edx
push ebx
mov ebx, dword [ebp + 0xc]
shr eax, 4
push esi
mov ecx, ebx
test eax, eax
je 0x7decbe82
add ebx, 8
mov dword [ebp - 4], eax
nop
mov eax, dword [ecx]
xor dword [edi], eax
mov edx, dword [ebx - 4]
xor dword [edi + 4], edx
mov edx, dword [ebx]
xor dword [edi + 8], edx
mov edx, dword [ebx + 4]
xor dword [edi + 0xc], edx
add ecx, 0x10
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
push edi
lea esi, [ebp - 0x18]
add ebx, 0x10
call fcn.7decbd80
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 8]
add esp, 4
dec dword [ebp - 4]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
jne 0x7decbe30
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
lea eax, [ebx + edx]
cmp eax, ecx
jbe 0x7decbef5
sub ebx, ecx
add ebx, edx
test ebx, ebx
jle 0x7decbe9f
push ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
call fcn.7dee76b0
add esp, 0xc
mov eax, 0x10
sub eax, ebx
lea ecx, [ebp + ebx - 0x18]
je 0x7decbeb8
push eax
push 0
push ecx
call fcn.7dee76e0
add esp, 0xc
mov edx, dword [ebp - 0x18]
xor dword [edi], edx
mov ecx, dword [ebp - 0x14]
xor dword [edi + 4], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor dword [edi + 8], edx
xor dword [edi + 0xc], ecx
mov ecx, dword [ebp + 8]
push edi
lea esi, [ebp - 0x18]
call fcn.7decbd80
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [edi], edx
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
add esp, 4
mov dword [edi + 0xc], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret