joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5211f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0feb
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x5c53dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push str.hTemp_Mail_Backup
lea eax, [ebp - 0x90]
push str._s_.
push eax
call fcn.00552e78
add esp, 0xc
lea ecx, [ebp - 0x1ec]
push ecx
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1f0], eax
cmp eax, 0xffffffff
je 0x521361
call fcn.004fa6d0
push eax
call fcn.0051f340
push eax
lea eax, [ebp - 0x90]
push str._s__u_
push eax
call fcn.00552e78
add esp, 0x10
xor ebx, ebx
nop
test byte [ebp - 0x1ec], 0x10
jne 0x52133e
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0x1c0]
push edx
call fcn.00554460
add esp, 8
cmp eax, ebx
je 0x52133e
lea ecx, [ebp - 0x1c0]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x5212b4
sub ecx, esi
lea eax, [ecx + eax - 4]
push str..hdb
push eax
call fcn.005556d0
add esp, 8
test eax, eax
jne 0x52133e
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x98], 0xf
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5212f2
sub eax, edx
push eax
lea ecx, [ebp - 0x1c0]
push ecx
lea ecx, [ebp - 0xac]
call fcn.0040dcc0
lea edx, [ebp - 0xac]
push edx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0051ae40
cmp dword [ebp - 0x98], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x52133e
mov eax, dword [ebp - 0xac]
push eax
call fcn.00551eca
add esp, 4
mov esi, dword [ebp - 0x1f0]
lea ecx, [ebp - 0x1ec]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x521280
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551e40
mov esp, ebp
pop ebp
ret
Function at 0x524ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x5c53dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x804]
push edx
call fcn.00553570
lea eax, [ebp - 0x804]
add esp, 0xc
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x524ef1
mov cx, word [0x5a6124]
mov dl, byte [0x5a6126]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x804]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x524f15
mov ecx, dword [0x67d67c]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x804]
push 1
push edx
call fcn.00555434
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00551e40
mov esp, ebp
pop ebp
ret

Function at 0x531ef0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jb 0x531faa
mov eax, dword [esp + 8]
cmp byte [eax], 0x41
jne 0x531faa
cmp byte [eax + 1], 0x64
jne 0x531faa
cmp byte [eax + 2], 0x6f
jne 0x531faa
cmp byte [eax + 3], 0x62
jne 0x531faa
cmp byte [eax + 4], 0x65
jne 0x531faa
push ebx
xor ecx, ecx
mov cl, byte [eax + 7]
push ebp
push esi
push edi
mov edi, ecx
xor edx, edx
mov dl, byte [eax + 8]
xor ecx, ecx
mov cl, byte [eax + 9]
mov esi, dword [esp + 0x14]
shl edi, 8
add edi, edx
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 0xa]
mov cl, byte [eax + 0xb]
shl ebp, 8
add ebp, edx
xor edx, edx
mov dl, byte [eax + 5]
xor ebx, ebx
mov bl, byte [eax + 6]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], edi
shl edx, 8
add ecx, 0x18
add edx, ebx
mov ebx, dword [esp + 0x1c]
push 1
mov dword [ecx], edx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x4c
mov ecx, dword [esi]
call dword [ecx + 4]
add esp, 8
mov byte [esi + 0x110], 1
mov byte [esi + 0x111], bl
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 4]
push 1
push eax
mov edx, dword [eax]
mov dword [edx + 0x14], 0x4e
mov edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [eax]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
ret
Function at 0x533940
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x533970
push esi
call fcn.00533e50
mov al, byte [esi + 0x48]
add esp, 4
test al, al
je 0x533969
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5339f6
mov eax, dword [esi + 0x198]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x5339df
mov eax, dword [esi + 8]
test eax, eax
je 0x533994
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x198]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5339db
cmp eax, 2
je 0x5339df
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x533987
cmp eax, 3
je 0x5339ba
cmp eax, 1
jne 0x533987
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x533987
mov edx, dword [esi + 0x124]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x533987
xor al, al
pop esi
ret
mov eax, dword [esi + 0x84]
push esi
mov dword [esi + 0x8c], eax
call fcn.00533a30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x533a16
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00533a30
add esp, 4
pop esi
ret
Function at 0x53aff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x42c
push ebx
push ebp
mov eax, dword [esp + 0x438]
push esi
push edi
mov edi, dword [esp + 0x448]
mov ecx, dword [eax + 0x78]
mov dword [esp + 0x18], closesocket
lea ebp, [edi + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x444]
mov ebx, dword [esp + 0x1c]
lea edx, [edi + ebp]
mov dword [esp + 0x10], 0
sar edx, 1
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x44c]
lea esi, [ecx + ecx + 0x18]
lea edx, [edx + edx + 0x18]
sar esi, 1
sar edx, 1
test ebx, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], edx
jle 0x53b1ab
mov eax, dword [eax + 0x7c]
lea edx, [esp + 0x3c]
mov dword [esp + 0x14], edx
mov edx, dword [eax]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], eax
jmp 0x53b085
mov ecx, dword [esp + 0x444]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
xor eax, eax
mov al, byte [edx + ebx]
cmp eax, ecx
jge 0x53b0cc
mov edx, eax
sub edx, ecx
shl edx, 1
imul edx, edx
add ecx, 0x18
sub eax, ecx
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [esi + ebx]
shl eax, 1
imul eax, eax
cmp ecx, edi
jge 0x53b0e8
mov esi, ecx
sub esi, edi
lea esi, [esi + esi*2]
mov ebx, esi
imul ebx, esi
add edx, ebx
sub ecx, ebp
jmp 0x53b0fc
lea ebx, [ecx + 0x18]
cmp eax, ebx
jle 0x53b0de
mov edx, eax
sub edx, ebx
shl edx, 1
imul edx, edx
jmp 0x53b0a2
xor edx, edx
cmp eax, esi
jg 0x53b0a2
sub eax, ebx
jmp 0x53b0a4
cmp ecx, ebp
jle 0x53b137
mov esi, ecx
sub esi, ebp
lea esi, [esi + esi*2]
mov ebx, esi
imul ebx, esi
add edx, ebx
sub ecx, edi
lea ecx, [ecx + ecx*2]
mov ebx, dword [esp + 0x10]
mov esi, ecx
imul esi, ecx
add eax, esi
mov esi, dword [esp + 0x24]
xor ecx, ecx
mov cl, byte [esi + ebx]
mov ebx, dword [esp + 0x44c]
cmp ecx, ebx
jge 0x53b141
mov esi, ecx
sub esi, ebx
mov ebx, esi
imul ebx, esi
mov esi, dword [esp + 0x44c]
add edx, ebx
add esi, 0x18
sub ecx, esi
jmp 0x53b172
cmp ecx, dword [esp + 0x30]
jg 0x53b0fa
sub ecx, ebp
jmp 0x53b0fc
lea esi, [ebx + 0x18]
cmp ecx, esi
mov dword [esp + 0x2c], esi
jle 0x53b166
mov ebx, dword [esp + 0x2c]
mov esi, ecx
sub esi, ebx
mov ebx, esi
imul ebx, esi
mov esi, dword [esp + 0x44c]
add edx, ebx
sub ecx, esi
jmp 0x53b172
cmp ecx, dword [esp + 0x34]
jg 0x53b170
sub ecx, esi
jmp 0x53b172
sub ecx, ebx
mov esi, ecx
imul esi, ecx
mov ecx, dword [esp + 0x14]
add eax, esi
mov dword [ecx], edx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jge 0x53b18b
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
inc eax
add edx, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jl 0x53b07a
xor eax, eax
xor ecx, ecx
test ebx, ebx
jle 0x53b1d4
mov esi, dword [esp + 0x450]
lea edx, [esp + 0x3c]
mov edi, dword [esp + 0x18]
mov ebp, dword [edx]
cmp ebp, edi
jg 0x53b1cc
mov byte [eax + esi], cl
inc eax
inc ecx
add edx, 4
cmp ecx, ebx
jl 0x53b1be
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42c
ret
Function at 0x54def0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5c53dc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00551e40
mov esp, ebp
pop ebp
ret
Function at 0x54e370
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x15fcd]
push edi
xor edi, edi
test eax, eax
jle 0x54e43f
push edi
push eax
mov eax, dword [esi]
lea ebx, [esi + 0x755b]
push ebx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x54e407
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x54e3f6
test byte [esi + 0xe], 4
je 0x54e3cb
mov eax, dword [esi + 0x15fd1]
test eax, eax
jne 0x54e3d2
mov ecx, dword [ebp + 0xc]
add ecx, 0xa
mov dword [esi + 0x15fd1], ecx
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
cmp dword [ebp + 0xc], eax
jle 0x54e3cb
push 0xff10000b
call fcn.0054df80
add esp, 4
pop edi
pop esi
mov dword [0x69dd80], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
push eax
call fcn.0054df80
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
test byte [esi + 0xe], 4
je 0x54e417
mov dword [esi + 0x15fd1], 0
test edi, edi
je 0x54e3cb
mov eax, dword [esi + 0x15fcd]
sub eax, edi
test eax, eax
jle 0x54e439
push eax
lea edx, [edi + esi + 0x755b]
push edx
push ebx
call fcn.00552080
add esp, 0xc
sub dword [esi + 0x15fcd], edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x551e40
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c53dc]
jne 0x551e4a
repz ret
jmp fcn.00556bbe

Function at 0x561a6d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c53dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00558835
and dword [ebp - 0x14], 0
cmp dword [0x69ebd4], 0
mov dword [ebp - 0x18], eax
jne 0x561b20
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x561bc8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x561bc8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x69ebd4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x69ebd8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x69ebdc], eax
call edi
push eax
call esi
mov dword [0x69ebe4], eax
test eax, eax
je 0x561b20
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x69ebe0], eax
mov eax, dword [0x69ebe0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x561b79
cmp dword [0x69ebe4], ecx
je 0x561b79
push eax
call esi
push dword [0x69ebe4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x561b79
test ebx, ebx
je 0x561b79
call edi
test eax, eax
je 0x561b70
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x561b70
test byte [ebp - 8], 1
jne 0x561b79
or dword [ebp + 0x10], 0x200000
jmp 0x561bac
mov eax, dword [0x69ebd8]
cmp eax, dword [ebp - 0x18]
je 0x561bac
push eax
call esi
test eax, eax
je 0x561bac
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x561bac
mov eax, dword [0x69ebdc]
cmp eax, dword [ebp - 0x18]
je 0x561bac
push eax
call esi
test eax, eax
je 0x561bac
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x69ebd4]
call esi
test eax, eax
je 0x561bc8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x561bca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00551e40
leave
ret

Function at 0x566530
Capabilities:
Get common file path

Disassembly:
mov edx, dword [0x69f93c]
push 0x69f83c
or edx, 0x80000000
mov dword [0x69f93c], edx
call fcn.005664b0
push 0x69f83c
call fcn.00568fc0
add esp, 8
push 0x69f73c
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x69f73c
call fcn.00568fc0
pop ecx
ret
Function at 0x566820
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x44
mov byte [eax], 0
mov eax, dword [esp + 0x50]
push ebx
push ebp
push esi
cmp eax, 0x14
push edi
jle 0x56698a
lea ecx, [esp + 0x30]
mov edi, 0x4e20
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [esp + 0x58]
xor edx, edx
mov eax, esi
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualQuery]
div dword [esp + 0x34]
sub esi, edx
lea edx, [esp + 0x14]
push 0x1c
push edx
push esi
call ebp
cmp eax, 0x1c
je 0x566894
dec edi
test edi, edi
jle 0x56698a
mov eax, dword [esp + 0x34]
sub esi, eax
cmp esi, eax
jbe 0x56698a
lea eax, [esp + 0x14]
push 0x1c
push eax
push esi
call ebp
cmp eax, 0x1c
jne 0x56686e
mov eax, dword [esp + 0x24]
cmp eax, 0x1000
je 0x5668b3
cmp eax, 0x2000
je 0x5668b3
cmp eax, 0x10000
jne 0x5668bb
mov ebx, dword [esp + 0x14]
jmp 0x5668b7
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x5668d4
mov eax, dword [esp + 0x34]
sub esi, eax
cmp esi, eax
jbe 0x56698a
dec edi
test edi, edi
jle 0x56698a
jmp 0x56685f
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x56698a
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 3
push ecx
push ebx
call ebp
test eax, eax
je 0x56698a
mov eax, dword [esp + 0x64]
mov edi, 0x5c6a7c
test eax, eax
je 0x56690f
mov edi, str.Error_module:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x5c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x5c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x60]
mov edi, edx
not ecx
dec ecx
sub eax, ecx
or ecx, 0xffffffff
dec eax
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
push ecx
push ebx
call ebp
mov edi, 0x5c6a68
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x5c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret

Function at 0x567220
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x567241
ret
mov eax, dword [esp + 0xc]
ret

Function at 0x567250
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x567271
ret
mov eax, dword [esp + 0xc]
ret
Function at 0x5672d0
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.005672b0
add esp, 4
pop esi
ret

Function at 0x5673a0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
push esi
xor esi, esi
test eax, eax
je 0x567411
push edi
push 0x103
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00554330
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov dl, byte [esp + ecx + 3]
lea eax, [esp + ecx + 4]
cmp dl, 0x3a
je 0x567411
cmp ecx, 2
jle 0x5673f5
cmp dl, 0x5c
jne 0x5673f5
cmp byte [eax - 2], 0x3a
je 0x5673f5
mov byte [eax - 1], 0
lea ecx, [esp + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x567411
or eax, 0xffffffff
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x567570
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x56758a
test al, 0x10
jne 0x56758a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x567870
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
mov dword [esp], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x28]
mov dword [ecx], edx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x2c]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [edx], eax
mov edx, dword [esp + 0x1c]
mov dword [ecx], edx
add esp, 0x20
ret

Function at 0x567fb0
Capabilities:
Get disk information

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
or ecx, 0xffffffff
xor eax, eax
push esi
push edi
mov edi, edx
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jl 0x567ff6
cmp byte [edx + 1], 0x3a
jne 0x567ff6
mov cl, byte [edx]
mov eax, dword [0x5c6ff4]
lea edx, [esp + 8]
mov dword [esp + 8], eax
push edx
mov byte [esp + 0xc], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
mov eax, 1
je 0x567ff8
mov eax, esi
pop edi
pop esi
add esp, 8
ret

Function at 0x568b70
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [0x69edfc]
test al, al
je 0x568bb8
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov eax, dword [0x69f958]
test eax, eax
jne 0x568b98
mov eax, dword [0x69f968]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00568280
push 0x30
push str.Message
push 0x69edfc
call fcn.005666c0
add esp, 0xc
mov byte [0x69edfc], 0
ret

Function at 0x569130
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [0x69fa14]
push esi
lea esi, [eax + 1]
mov eax, dword [0x69fa10]
and esi, 0xff
cmp esi, eax
je 0x569177
xor ecx, ecx
push 1
mov cl, byte [esp + 0xe]
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
and eax, 0xffff
xor edx, edx
mov dl, byte [esp + 0xc]
mov dh, al
mov eax, dword [0x69fa14]
mov dword [0x69fa14], esi
mov word [eax*2 + 0x6a4460], dx
pop esi
ret
Function at 0x569d3a
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor byte [esi], al
inc esi
dec ecx
jne 0x569d48
pop esi
leave
ret

Function at 0x569e4b
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov ecx, 8
xor esi, esi
mov eax, dword [esi + 0x69f9d0]
mov edx, eax
xor eax, dword [esi + 0x69f9b0]
and eax, dword [esi + 0x69f9d0]
mov dword [esi + 0x69f9b0], edx
mov dword [esi + 0x69f9f0], eax
add esi, 4
dec ecx
jne 0x569e54
pop edi
pop esi
ret

Function at 0x56c100
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
call fcn.00566590
mov edi, eax
mov eax, dword [0x69fa64]
push eax
call fcn.0056c0f0
add esp, 4
test eax, eax
je 0x56c146
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00566590
sub eax, edi
cmp eax, 0x2710
jg 0x56c146
push 0xa
call esi
mov ecx, dword [0x69fa64]
push ecx
call fcn.0056c0f0
add esp, 4
test eax, eax
jne 0x56c121
pop edi
pop esi
ret
Function at 0x571850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
je 0x5718e6
push ebx
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
push edi
cmp esi, edx
jle 0x57189e
mov edi, dword [ecx]
movzx edi, byte [edi + edx]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [edi*4 + 0x5c7090]
inc edx
cmp edx, esi
jl 0x571880
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x5718c2
mov edi, dword [ecx + 8]
movzx edi, byte [edi + edx]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
shl eax, 8
xor eax, dword [edi*4 + 0x5c7090]
inc edx
cmp edx, esi
jl 0x5718a5
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop edi
shr eax, 0x18
pop esi
mov byte [ecx + 0x19], al
pop ebx
pop ebp
ret
Function at 0x583d50
Capabilities:
Encode data using xor

Disassembly:
call fcn.00566590
mov edx, dword [0x69fae0]
mov ecx, eax
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [0x69fae4]
add eax, edx
mov edx, dword [0x69fadc]
cmp eax, edx
jl fcn.00583d50
mov dword [0x5d69ec], eax
sub eax, edx
mov dword [0x69fae0], ecx
mov dword [0x69fae4], eax
ret

Function at 0x583d90
Capabilities:
Check for time delay via gettickcount

Disassembly:
call fcn.00566590
mov ecx, dword [0x69fae0]
mov edx, eax
mov eax, dword [0x69fae4]
sub eax, ecx
mov ecx, dword [0x69fadc]
add eax, edx
cmp eax, ecx
mov dword [0x5d69ec], eax
jge 0x583dca
call fcn.00583d50
mov dword [0x69fae8], 0
mov eax, 1
ret
sub eax, ecx
mov dword [0x69fae0], edx
cmp eax, ecx
jge 0x583deb
mov dword [0x69fae4], eax
mov dword [0x69fae8], 0
mov eax, 1
ret
mov edx, dword [0x69fae8]
push esi
mov esi, dword [esp + 8]
inc edx
cmp edx, esi
mov dword [0x69fae8], edx
pop esi
jle 0x583e1b
cdq
idiv ecx
mov dword [0x69fae8], 0
mov eax, 1
mov dword [0x69fae4], edx
ret
mov dword [0x69fae4], eax
xor eax, eax
ret

Function at 0x5995c0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [0x6b65b0]
mov edx, dword [esp + 4]
mov eax, ecx
and edx, 0xff
and eax, 0xff
xor eax, edx
shr ecx, 8
mov eax, dword [eax*4 + 0x62c244]
xor eax, ecx
mov ecx, dword [0x6b65b4]
mov dword [0x6b65b0], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [0x6b65b8]
imul eax, eax, 0x8088405
inc eax
mov edx, ecx
mov dword [0x6b65b4], eax
and edx, 0xff
shr eax, 0x18
xor eax, edx
shr ecx, 8
mov eax, dword [eax*4 + 0x62c244]
xor eax, ecx
mov dword [0x6b65b8], eax
ret

Function at 0x5996a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xc
lea eax, [esp]
push 0xc
push eax
push ecx
call fcn.00567220
add esp, 0xc
cmp eax, 0xc
jne 0x5996f3
push ebx
push esi
xor esi, esi
call fcn.00599630
mov cl, byte [esp + esi + 8]
mov bl, al
xor bl, cl
mov byte [esp + 0x18], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.005995c0
add esp, 4
mov byte [esp + esi + 8], bl
inc esi
cmp esi, 0xc
jl 0x5996c0
pop esi
mov eax, 0xc
pop ebx
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret

Function at 0x599700
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
dec eax
test ecx, ecx
jle 0x59973a
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [eax + 1]
call fcn.00599630
mov cl, byte [esi]
mov bl, al
xor bl, cl
mov byte [esp + 0x14], bl
mov edx, dword [esp + 0x14]
push edx
call fcn.005995c0
add esp, 4
mov byte [esi], bl
inc esi
dec edi
jne 0x599715
pop edi
pop esi
pop ebx
ret