joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a539
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jne 0x42a569
push dword [ebp + 8]
call edi
push eax
call fcn.0043f82c
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x42a594
test byte [ebp - 4], 1
je 0x42a594
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
jne 0x42a594
push dword [ebp + 8]
call edi
push eax
call fcn.0043f82c
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x42a64e
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0042a49e
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x42a5ca
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0042a49e
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x42a5e0
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0042a49e
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42a60d
push dword [ebp + 8]
call edi
push eax
call fcn.0043f82c
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
jne 0x42a639
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0043f82c
push ebx
call esi
test eax, eax
jne 0x42a64b
push dword [ebp + 8]
call edi
push eax
call fcn.0043f82c
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x42a676
test byte [ebp - 4], 1
jne 0x42a676
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
jne 0x42a676
push dword [ebp + 8]
call edi
push eax
call fcn.0043f82c
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x42f47f
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x42f4a8
call fcn.0043187c
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x42f4cb
push eax
push dword [esi + 4]
call fcn.0042f40a
push esi
push eax
mov ecx, 0x4a2d5c
call fcn.0042f06c
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x430130
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x47c97a
call fcn.00448edb
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call fcn.004300f2
and dword [ebp - 4], 0
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [esi], vtable.CFtpConnection.0
call fcn.004023e0
push dword [ebp + 0xc]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004035a0
push dword [esi + 8]
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x4301b3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push dword [esi + 8]
call fcn.0042f40a
push dword [esi + 0xc]
mov ecx, 0x4a2d5c
push eax
call fcn.0042f06c
mov eax, esi
call fcn.00448fb3
ret 0x1c

Function at 0x4301cb
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x47c97a
call fcn.00448edb
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.004300f2
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004023e0
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x430232
push eax
push dword [esi + 8]
call fcn.0042f40a
push dword [esi + 0xc]
mov ecx, 0x4a2d5c
push eax
call fcn.0042f06c
mov eax, esi
call fcn.00448fb3
ret 0x1c

Function at 0x4414dc
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4414e5
xor eax, eax
jmp 0x44154e
cmp dword [esp + 8], 0
jne 0x4414f1
call fcn.00428e24
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00445262
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x44152c
push dword [esi + 0x10]
call fcn.00448913
test eax, eax
pop ecx
jne 0x44152c
mov esi, dword [esi + 0xc]
call fcn.004490b5
push esi
push dword [eax]
push 1
call fcn.0043f7e6
push dword [esi + 0x10]
call fcn.00448942
test eax, eax
pop ecx
je 0x44154b
push dword [esi + 0x10]
call fcn.0044c3e4
push eax
call fcn.00402e10
pop ecx
pop ecx
jmp 0x44151a
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x441557
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x441561
call fcn.00428e24
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00447ebf
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x44158e
mov esi, dword [esi + 0xc]
call fcn.004490b5
push esi
push dword [eax]
push 1
call fcn.0043f7e6
pop esi
ret 8

Function at 0x443fd7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49c550]
jne 0x443fe1
repz ret
jmp fcn.0044e73c
Function at 0x444fc6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x445003
cmp dword [ebp + 0x14], edi
je 0x445003
cmp ecx, edi
jne 0x44500a
call fcn.004490a2
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00445c14
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44501e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44503f
cmp ebx, 0xffffffff
je 0x44502e
push ebx
push edi
push ecx
call fcn.004447d0
add esp, 0xc
cmp esi, edi
je 0x444feb
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x444feb
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44505b
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x445062
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x445153
test word [esi + 0xc], 0x10c
je 0x4450b6
mov eax, dword [esi + 4]
test eax, eax
je 0x4450b6
jl 0x4451b4
cmp ebx, eax
mov edi, ebx
jb 0x445087
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44515b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044432d
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x44514b
cmp ebx, dword [ebp - 0xc]
jb 0x445123
cmp dword [ebp - 0xc], 0
je 0x4450e0
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4450d5
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4450dc
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4450eb
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4450eb
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x445187
push eax
push dword [ebp - 8]
push esi
call fcn.0044c231
pop ecx
push eax
call fcn.00452c88
add esp, 0xc
test eax, eax
je 0x4451c6
cmp eax, 0xffffffff
je 0x4451b4
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44514b
push esi
call fcn.004525a7
cmp eax, 0xffffffff
pop ecx
je 0x4451b8
cmp dword [ebp - 4], 0
je 0x445187
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44506a
mov eax, dword [ebp + 0x14]
jmp 0x445005
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x445172
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004447d0
add esp, 0xc
call fcn.004490a2
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x444ffb
cmp dword [ebp + 0xc], 0xffffffff
je 0x44519d
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004447d0
add esp, 0xc
call fcn.004490a2
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x444ffb
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x445005
or dword [esi + 0xc], 0x10
jmp 0x4451b8
Function at 0x44c642
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x49c740]
je 0x44c65d
inc edi
cmp edi, 0x17
jb 0x44c64e
cmp edi, 0x17
jae 0x44c7dd
push ebp
push 3
call fcn.0045a66d
cmp eax, 1
pop ecx
je 0x44c7a9
push 3
call fcn.0045a66d
test eax, eax
pop ecx
jne 0x44c691
cmp dword [0x49c530], 1
je 0x44c7a9
cmp ebx, 0xfc
je 0x44c7dc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4a30e8
push ebp
call fcn.0044e963
add esp, 0xc
test eax, eax
je 0x44c6c7
push esi
push esi
push esi
push esi
push esi
call fcn.00445b18
add esp, 0x14
push 0x104
mov esi, 0x4a3101
push esi
push 0
mov byte [0x4a3205], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x44c70b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044e963
add esp, 0xc
test eax, eax
je 0x44c70b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00445b18
add esp, 0x14
push esi
call fcn.0044b080
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44c750
push esi
call fcn.0044b080
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4a33fc
push 0x48930c
sub ecx, eax
push ecx
push eax
call fcn.0045a5ba
add esp, 0x14
test eax, eax
je 0x44c750
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00445b18
add esp, 0x14
jmp 0x44c752
xor esi, esi
push 0x489308
push ebx
push ebp
call fcn.0045a549
add esp, 0xc
test eax, eax
je 0x44c772
push esi
push esi
push esi
push esi
push esi
call fcn.00445b18
add esp, 0x14
push dword [edi*8 + 0x49c744]
push ebx
push ebp
call fcn.0045a549
add esp, 0xc
test eax, eax
je 0x44c794
push esi
push esi
push esi
push esi
push esi
call fcn.00445b18
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045a38c
add esp, 0xc
jmp 0x44c7dc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44c7dc
cmp ebp, 0xffffffff
je 0x44c7dc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x49c744]
push dword [esi]
call fcn.0044b080
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45a38c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044d206
xor ebx, ebx
cmp dword [0x4a3bf4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45a462
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45a542
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x489718
push edi
call esi
cmp eax, ebx
je 0x45a542
push eax
call fcn.0044d198
mov dword [esp], 0x489708
push edi
mov dword [0x4a3bf4], eax
call esi
push eax
call fcn.0044d198
mov dword [esp], 0x4896f4
push edi
mov dword [0x4a3bf8], eax
call esi
push eax
call fcn.0044d198
mov dword [0x4a3bfc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00445e6d
test eax, eax
pop ecx
pop ecx
je 0x45a430
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00445b18
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45a462
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044d198
cmp eax, ebx
pop ecx
mov dword [0x4a3c04], eax
je 0x45a462
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044d198
pop ecx
mov dword [0x4a3c00], eax
mov eax, dword [0x4a3c00]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45a4e7
cmp dword [0x4a3c04], ecx
je 0x45a4e7
push eax
call fcn.0044d20f
push dword [0x4a3c04]
mov esi, eax
call fcn.0044d20f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45a4e7
cmp edi, ebx
je 0x45a4e7
call esi
cmp eax, ebx
je 0x45a4b4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45a4b4
test byte [ebp - 0x18], 1
jne 0x45a4e7
lea eax, [ebp - 0x10]
push eax
call fcn.00445ea4
test eax, eax
pop ecx
je 0x45a4cf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00445b18
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45a4de
or dword [ebp + 0x10], 0x200000
jmp 0x45a522
or dword [ebp + 0x10], 0x40000
jmp 0x45a522
mov eax, dword [0x4a3bf8]
cmp eax, dword [ebp - 8]
je 0x45a522
push eax
call fcn.0044d20f
cmp eax, ebx
pop ecx
je 0x45a522
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45a522
mov eax, dword [0x4a3bfc]
cmp eax, dword [ebp - 8]
je 0x45a522
push eax
call fcn.0044d20f
cmp eax, ebx
pop ecx
je 0x45a522
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a3bf4]
call fcn.0044d20f
cmp eax, ebx
pop ecx
je 0x45a542
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45a544
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45e266
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x45e293
call fcn.004490b5
mov dword [eax], esi
call fcn.004490a2
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00445c14
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x45e26f
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45e2c2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004490c8
pop ecx
call fcn.004490a2
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x45e2e9
test al, 1
je 0x45e2e9
test byte [esp + 0xc], 2
je 0x45e2e9
call fcn.004490b5
mov dword [eax], 5
call fcn.004490a2
mov dword [eax], 0xd
jmp 0x45e2b9
xor eax, eax
pop esi
ret

Function at 0x462890
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 0x4628b1
ret
mov eax, dword [esp + 0xc]
ret

Function at 0x4628c0
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 0x4628e1
ret
mov eax, dword [esp + 0xc]
ret
Function at 0x4629e0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x254
push ebx
mov ebx, dword [esp + 0x260]
push ebp
mov ebp, dword [esp + 0x260]
push esi
push edi
test ebx, ebx
je 0x462a54
mov al, byte [ebx]
test al, al
je 0x462a54
cmp al, 0x20
jne 0x462a0e
mov al, byte [ebx + 1]
inc ebx
cmp al, 0x20
je 0x462a06
cmp byte [ebx], 0x20
je 0x462add
mov edi, 0x49da40
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x68]
push ecx
call fcn.00458410
add esp, 8
lea ebx, [esp + 0x64]
jmp 0x462add
mov edi, 0x49da40
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x20
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea ebx, [esp + 0x6c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004485e2
mov esi, eax
add esp, 8
test esi, esi
je 0x462add
mov edi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push ebp
mov byte [esi], 0
call edi
cmp eax, 0xffffffff
jne 0x462ab7
mov byte [esi], 0x20
inc esi
push 0x20
push esi
call fcn.004485e2
mov esi, eax
add esp, 8
test esi, esi
jne 0x462a95
jmp 0x462add
mov byte [esi], 0
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jne 0x462aca
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x462ac2
cmp byte [esi], 0
je 0x462add
lea ecx, [esp + 0x64]
push esi
push ecx
call fcn.00458410
add esp, 8
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edx
push eax
push ecx
push edx
push edx
push 0x4000220
push edx
push edx
push edx
mov edi, 1
push ebx
push ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], edi
mov word [esp + 0x78], di
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x462b53
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x254
ret
Function at 0x465390
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4653c0
push esi
call fcn.004658a0
mov al, byte [esi + 0x48]
add esp, 4
test al, al
je 0x4653b9
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 0x465446
mov eax, dword [esi + 0x198]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x46542f
mov eax, dword [esi + 8]
test eax, eax
je 0x4653e4
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 0x46542b
cmp eax, 2
je 0x46542f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4653d7
cmp eax, 3
je 0x46540a
cmp eax, 1
jne 0x4653d7
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 0x4653d7
mov edx, dword [esi + 0x124]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4653d7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x84]
push esi
mov dword [esi + 0x8c], eax
call fcn.00465480
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x465466
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.00465480
add esp, 4
pop esi
ret

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

Disassembly:
mov ecx, dword [0x4a6910]
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 + 0x49da68]
xor eax, ecx
mov ecx, dword [0x4a6914]
mov dword [0x4a6910], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [0x4a6918]
imul eax, eax, 0x8088405
inc eax
mov edx, ecx
mov dword [0x4a6914], eax
and edx, 0xff
shr eax, 0x18
xor eax, edx
shr ecx, 8
mov eax, dword [eax*4 + 0x49da68]
xor eax, ecx
mov dword [0x4a6918], eax
ret

Function at 0x46efb0
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.00462890
add esp, 0xc
cmp eax, 0xc
jne 0x46f003
push ebx
push esi
xor esi, esi
call fcn.0046ef40
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.0046eed0
add esp, 4
mov byte [esp + esi + 8], bl
inc esi
cmp esi, 0xc
jl 0x46efd0
pop esi
mov eax, 0xc
pop ebx
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret

Function at 0x46f010
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
dec eax
test ecx, ecx
jle 0x46f04a
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [eax + 1]
call fcn.0046ef40
mov cl, byte [esi]
mov bl, al
xor bl, cl
mov byte [esp + 0x14], bl
mov edx, dword [esp + 0x14]
push edx
call fcn.0046eed0
add esp, 4
mov byte [esi], bl
inc esi
dec edi
jne 0x46f025
pop edi
pop esi
pop ebx
ret
Function at 0x46fc90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x20]
push esi
xor esi, esi
cmp eax, esi
mov word [esp + 0xc], si
mov word [esp + 0xe], si
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov word [esp + 0x18], si
jne 0x46fcc9
mov dword [esp + 4], 0x6054b50
mov word [esp + 8], si
mov word [esp + 0xa], si
jmp 0x46fcf6
mov dword [esp + 4], 0x605444f
mov dword [esp + 8], 1
mov ecx, 4
mov al, cl
mov dl, 3
imul dl
mov dl, byte [esp + ecx + 4]
sub al, 0x5b
xor dl, al
mov byte [esp + ecx + 4], dl
inc ecx
cmp ecx, 0x16
jb 0x46fcde
mov ecx, dword [esp + 0x20]
lea eax, [esp + 4]
push 0x16
push eax
push ecx
call fcn.004628c0
add esp, 0xc
cmp eax, 0x16
mov eax, 1
je 0x46fd16
mov eax, esi
pop esi
add esp, 0x18
ret

Function at 0x470450
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push ebx
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not eax
jl 0x47055d
push esi
mov esi, edi
shr esi, 3
mov ecx, esi
neg ecx
lea edi, [edi + ecx*8]
mov ecx, dword [esp + 0x14]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x49da68]
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x49da68]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x49da68]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x49da68]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x49da68]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x49da68]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x49da68]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x49da68]
xor eax, edx
inc ecx
dec esi
jne 0x470476
pop esi
jmp 0x470561
mov ecx, dword [esp + 0x10]
test edi, edi
je 0x470583
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x49da68]
xor eax, edx
inc ecx
dec edi
jne 0x470565
pop edi
pop ebx
not eax
ret

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

Disassembly:
mov ecx, dword [0x4a6a70]
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 + 0x49da68]
xor eax, ecx
mov ecx, dword [0x4a6a74]
mov dword [0x4a6a70], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [0x4a6a78]
imul eax, eax, 0x8088405
inc eax
mov edx, ecx
mov dword [0x4a6a74], eax
and edx, 0xff
shr eax, 0x18
xor eax, edx
shr ecx, 8
mov eax, dword [eax*4 + 0x49da68]
xor eax, ecx
mov dword [0x4a6a78], eax
ret
Function at 0x4706c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
dec eax
test ecx, ecx
jle 0x4706fe
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [eax + 1]
mov dl, byte [esi]
mov byte [esp + 0x14], dl
call fcn.00470650
mov bl, al
mov eax, dword [esp + 0x14]
push eax
call fcn.004705e0
mov dl, byte [esp + 0x18]
add esp, 4
xor bl, dl
mov byte [esi], bl
inc esi
dec edi
jne 0x4706d5
pop edi
pop esi
pop ebx
ret