joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410930
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
test eax, eax
push ebp
push esi
push edi
je 0x410a8a
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x410a8a
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41097b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x54
ret
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x42288c]
mov edx, dword [0x422890]
stosb byte es:[edi], al
mov eax, dword [str.zbshareware]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x64]
push eax
push ecx
lea edi, [esp + 0x20]
or ecx, 0xffffffff
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x34]
not ecx
dec ecx
mov dword [esp + 0x6c], 1
push ecx
push edx
push ebp
call edi
test eax, eax
je 0x410a83
lea esi, [esp + 0x18]
lea eax, [esp + 0x2c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x410a12
test cl, cl
je 0x410a0e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x410a12
add eax, 2
add esi, 2
test cl, cl
jne 0x4109ee
xor eax, eax
jmp 0x410a17
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x410a83
xor ecx, ecx
xor al, al
mov dword [esp + 0xd], ecx
mov dword [esp + 0x64], 1
mov dword [esp + 0x11], ecx
mov byte [esp + 0xc], al
mov byte [esp + 0x15], cl
xor esi, esi
cmp al, 0xd
je 0x410a6b
lea edx, [esp + 0x64]
push 0
push edx
lea eax, [esp + 0x14]
push 1
push eax
push ebp
call edi
mov al, byte [esp + 0xc]
mov ecx, dword [esp + 0x64]
cmp al, 0xd
je 0x410a67
test ecx, ecx
jbe 0x410a6b
mov edx, dword [esp + 0x68]
inc esi
mov byte [esi + edx - 1], al
test ecx, ecx
ja 0x410a39
mov eax, dword [esp + 0x68]
push ebp
mov byte [esi + eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x54
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x54
ret
Function at 0x410aa0
Capabilities:
Get common file path

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x404
push ebx
xor ebx, ebx
push ebp
push esi
cmp edx, ebx
push edi
jne 0x410ac1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x214]
push ecx
push edx
call fcn.00410930
add esp, 8
test al, al
jne 0x410b44
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
lea eax, [esp + 0x114]
push ebx
lea ecx, [esp + 0x218]
push eax
push ecx
call fcn.0040ffb0
add esp, 0xc
cmp eax, 1
jne 0x410b6d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x315]
mov byte [esp + 0x314], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x314]
lea eax, [esp + 0x214]
push edx
push eax
call fcn.00410550
add esp, 8
test al, al
jne 0x410bb0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea ecx, [esp + 0x14]
push 0x10
push ecx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x422814
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x318]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call fcn.0040ffb0
add esp, 0xc
dec eax
neg eax
sbb eax, eax
pop edi
and al, 0xfe
pop esi
pop ebp
add eax, 2
pop ebx
add esp, 0x404
ret
Function at 0x416ca0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xe8
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
mov dword [esp + 0xc], 0x64
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x1e]
lea ecx, [esp + 0x28]
and eax, 0xffff
push eax
push 0x423084
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esp + 0x100]
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x8c]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.lastcheck
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x8c]
mov edi, eax
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x10], eax
test edi, edi
jne 0x416d8b
test eax, eax
je 0x416d8b
fild dword [esp + 8]
fisub dword [esp + 0x10]
fabs
fcomp qword [0x41df90]
fnstsw ax
test ah, 0x41
jne 0x416d7e
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x28]
push ecx
push eax
jmp 0x416d9e
pop edi
xor al, al
pop esi
add esp, 0xe8
ret 4
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 1
push 0
push str.lastcheck
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
mov al, 1
pop esi
add esp, 0xe8
ret 4

Function at 0x416dc0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41b3d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0x64
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_3
push 0xdf
lea ecx, [esp + 0xc]
mov dword [esp + 0x84], 0
call sub.MFC42.DLL_CString::LoadStringA
mov esi, dword [esp + 0x88]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.autorun
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x416e7c
mov eax, dword [esp + 8]
push 0
push 1
push eax
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 1
jne 0x416e59
call fcn.0040e8c0
mov edi, 0x4231d4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x4231d4
push 1
push eax
push str.autorun
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 8]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x401bd7
pop dword [ebp - 0x14]
mov eax, 0x493d8c3
add eax, 0xfbac4314
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xa85c4d4d
sub dword [ebp - 0x24], 0x5a0a0802
mov dword [ebp - 0x20], 0x344ab066
sub dword [ebp - 0x20], 0x2176421
mov dword [ebp - 0x1c], 0xb1ef23d7
add dword [ebp - 0x1c], 0x9a5d2057
mov dword [ebp - 0x18], 0xf2e3e7d7
sub dword [ebp - 0x18], 0xf2e3e7d7
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x704b10c0
sub dword [ebp - 0x24], 0xfbd8a76a
mov dword [ebp - 0x20], 0xb4065f05
sub dword [ebp - 0x20], 0x7299fd90
mov dword [ebp - 0x1c], 0x16fa65c0
add dword [ebp - 0x1c], 0x4c7506ac
mov dword [ebp - 0x18], 0xf28ffe9f
sub dword [ebp - 0x18], 0xf28ffe9f
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x50276163
sub eax, 0x4fe6f063
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x35453
push 0
call eax
mov ecx, 0xec012d0e
add ecx, 0x13ff15ba
mov edi, eax
mov ebx, 0x1ec34693
sub ebx, 0x1e824693
add ebx, dword [ebp - 0x14]
mov edx, 0x3bbb473d
xor dword [ebp - 0xc], ecx
mov esi, dword [ebx]
xor dword [ebp - 4], 0xdfc47389
xor esi, edx
sub dword [ebp - 4], 0xa833318f
mov dword [edi], esi
mov dword [ebp - 0xc], 0xe0128d7d
add edi, 0x8aa28d91
add edi, 0x755d7273
add ebx, 0x9b0ee3e0
add ebx, 0x64f11c24
loop 0x401cee
add eax, 0x9078c625
sub eax, 0x9077c832
mov ebx, eax
add eax, 0xecf0cfa
sub eax, 0xecf0cf5
mov ecx, 0x5dddba8c
sub ecx, 0x5d9dba8c
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x10146b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10146b8f
pop dword [ebp - 0xc]
mov eax, 0x352dea5d
add eax, 0xdae68132
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x88976dcc
add dword [ebp - 0x1c], 0xc5bad77f
mov dword [ebp - 0x18], 0xbef17efb
sub dword [ebp - 0x18], 0x8cbe32b6
mov dword [ebp - 0x14], 0x2959edbe
sub dword [ebp - 0x14], 0xdd0da990
mov dword [ebp - 0x10], 0x9201b715
sub dword [ebp - 0x10], 0x9201b715
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xe8790900
sub dword [ebp - 0x1c], 0x74069faa
mov dword [ebp - 0x18], 0x4ddb331d
add dword [ebp - 0x18], 0xf3912e58
mov dword [ebp - 0x14], 0x7ba22e5d
add dword [ebp - 0x14], 0xe7cd3e0f
mov dword [ebp - 0x10], 0x6cd9c869
add dword [ebp - 0x10], 0x93263797
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x5d0ebd8
add eax, 0xa45c528
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3b8f0
push 0
call eax
mov ecx, 0x577d5f42
sub ecx, 0x577d0b8b
xor esi, esi
add esi, eax
mov edx, 0xb19a296f
add edx, 0x5e857291
add edx, dword [ebp - 0xc]
mov edi, 0x751f5794
sub edi, 0x1dd08fda
sub dword [ebp - 4], 0x185d4924
mov ebx, dword [edx]
mov dword [ebp - 4], 0x85ed1fb7
xor ebx, edi
sub dword [ebp - 4], esi
mov dword [esi], ebx
xor dword [ebp - 8], 0x185a23ef
add esi, 0xaa158896
sub esi, 0xaa158892
add edx, 0x8aa87a60
sub edx, 0x8aa87a5c
loop 0x10146cae
add eax, 0x4ff74d9f
add eax, 0xb009f410
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x103c8f10
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103c8f1a
pushal
call 0x103c8f20
pop ebp
sub ebp, 0x10
sub ebp, 0x3c8f10
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103c8f44
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103c8f4d
mov eax, 0x3c8f10
add eax, ebp
add eax, 0x63
mov ecx, 0x5ec
mov edx, 0x8d2dee8f
xor byte [eax], dl
inc eax
dec ecx
jne 0x103c8f64
jmp 0x103c8f77
add al, 0x42
add al, 6
mov bl, 0x8f
invalid

Function at 0x85a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0085a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x85a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85a06a
add dl, dl
jne 0x85a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85a0dc
xor eax, eax
add dl, dl
jne 0x85a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x85a17d
add dl, dl
jne 0x85a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x85a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x85a075
mov eax, 1
add dl, dl
jne 0x85a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x85a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85a0e1
sub eax, ebx
mov ebx, 1
jne 0x85a128
mov ecx, 1
add dl, dl
jne 0x85a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x85a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x85a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x85a136
cmp eax, 0x7d00
jae 0x85a16d
cmp eax, 0x500
jb 0x85a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85a075
cmp eax, 0x7f
ja 0x85a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x85a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x85a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x85a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x409be9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x409bf8
pop dword [ebp - 8]
mov eax, 0xd7c1bb17
add eax, 0x287ee0e1
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xe54d3fce
add dword [ebp - 0x18], 0x6905057d
mov dword [ebp - 0x14], 0x8b708f99
add dword [ebp - 0x14], 0xa6c2bcac
mov dword [ebp - 0x10], 0x9ba5a9f5
add dword [ebp - 0x10], 0xb0a69a39
mov dword [ebp - 0xc], 0xf6779173
add dword [ebp - 0xc], 0x9886e8d
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x76f35b0c
add dword [ebp - 0x18], 0xfd7f0e4a
mov dword [ebp - 0x14], 0x984b3536
sub dword [ebp - 0x14], 0x56ded3c1
mov dword [ebp - 0x10], 0x80e1d4eb
add dword [ebp - 0x10], 0xe28d9781
mov dword [ebp - 0xc], 0xfaffdc7e
add dword [ebp - 0xc], 0x5002382
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xdc49279d
sub eax, 0xdc06f679
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3c27b
push 0
call eax
mov ecx, 0xc78f22c6
add ecx, 0x38711e8f
mov edi, eax
mov edx, 0x434400
add edx, dword [ebp - 8]
mov esi, 0x77cf872a
mov dword [ebp - 4], 0x13f401dd
mov ebx, dword [edx]
sub dword [ebp - 4], eax
xor ebx, esi
sub dword [ebp - 4], edi
mov dword [edi], ebx
add dword [ebp - 4], 0x322b60e9
add edi, 0x7b9ea948
sub edi, 0x7b9ea944
add edx, 0x8908f243
add edx, 0x76f70dc1
loop 0x409d09
add eax, 0x42fd31ce
sub eax, 0x42fc39a7
mov ebx, eax
add eax, 5
mov ecx, 0xeb07c776
add ecx, 0x1538388a
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x1002408
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003040]
jne 0x1002419
test ecx, 0xffff0000
jne 0x1002419
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x1003150], eax
mov dword [0x100314c], ecx
mov dword [0x1003148], edx
mov dword [0x1003144], ebx
mov dword [0x1003140], esi
mov dword [0x100313c], edi
mov word [0x1003168], ss
mov word [0x100315c], cs
mov word [0x1003138], ds
mov word [0x1003134], es
mov word [0x1003130], fs
mov word [0x100312c], gs
pushfd
pop dword [0x1003160]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x1003164], ecx
mov dword [0x1003158], eax
mov dword [0x10030a0], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x100305c], eax
mov eax, dword [0x1003040]
xor edi, edi
mov dword [0x1003154], ecx
mov dword [0x1003050], 0xc0000409
inc edi
mov dword [0x1003054], edi
mov dword [ebp - 4], eax
mov eax, dword [0x1003044]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x10024fc
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
leave
ret

Function at 0x4032d4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x49b008], 0x8088405
inc edx
mov dword [ebx + 0x49b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4240f4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4240fa
ret

Function at 0x4622b8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4622e6
mov eax, ebx
call fcn.00462d6c
cmp dword [ebx + 0x40], 0
je 0x4622df
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x462357
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x462349
cmp dword [ebx + 8], 0
je 0x462308
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46231a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x462349
cmp dword [ebx + 8], 0
je 0x4622fb
cmp eax, 3
je 0x46232d
dec eax
jne 0x4622fb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4622fb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4622fb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x462375
cmp dword [ebx + 0x14], 0xcc
je 0x462375
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00462380
pop ebx
ret
Function at 0x416b74
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004169e5

Function at 0x416f6e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408500
mov eax, dword [0x497280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00415bda
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x416fb0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41710c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422e00
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x498e00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00417f65
mov ecx, dword [esi*4 + 0x498e00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x417105
cmp eax, dword [edi + ecx + 0x24]
jne 0x417105
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417105
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417f65
add esp, 0x14
test edx, edx
jl 0x417105
jg 0x41707b
test eax, eax
jb 0x417105
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417105
jl 0x417095
cmp dword [ebp - 0x1008], eax
ja 0x417105
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4170b3
test ebx, ebx
je 0x4170ec
cmp ecx, edi
jae 0x4170ec
mov al, byte [ecx]
cmp al, 0xd
jne 0x4170cd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4170d9
cmp byte [ecx + 1], 0xa
jne 0x4170d9
inc ecx
jmp 0x4170d9
movzx eax, al
movsx eax, byte [eax + 0x497540]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4170b3
cmp edx, ebx
jne 0x4170b3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41710a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407a29
leave
ret
Function at 0x417403
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x498e00]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417443
cmp byte [ebx], 0xa
jne 0x417443
or byte [eax + edi + 0x28], 4
jmp 0x417448
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417546
mov al, byte [edx]
cmp al, 0x1a
je 0x417528
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417477
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41749c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4174a6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417459
jmp 0x417546
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417523
cmp dword [ebp - 0xc], 0
je 0x417523
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x498e00]
test byte [eax + edi + 0x28], 0x48
je 0x4174fd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4174e8
mov byte [esi], dl
jmp 0x4174f9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x498e00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417546
cmp byte [ebp - 1], 0xa
jne 0x41750c
cmp esi, ebx
jne 0x41750c
mov byte [esi], 0xa
jmp 0x417545
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417f83
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417546
mov byte [esi], 0xd
jmp 0x417545
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x498e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417542
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417546
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret