joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4132b4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4a9948]
mov eax, dword [0x41f3b8]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x41347a
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4a9960]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x41347a
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x41331e
xor eax, eax
jmp 0x41348e
test al, 0x20
je 0x41332f
push 2
push edi
push edi
push ecx
call fcn.004183e0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x413404
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x41344b
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x413391
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x413382
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x413364
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4133d1
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4133dd
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x413358
jmp 0x4133df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x413475
cmp dword [ebp + 0x3a4], edi
je 0x41344b
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x41343d
mov dword [0x4a8488], eax
jmp 0x413481
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41342f
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4133df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4133df
push dword [ebp + 0x3a4]
call fcn.00415a0b
pop ecx
jmp 0x41348b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x413463
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x413317
mov dword [0x4a8484], 0x1c
mov dword [0x4a8488], edi
jmp 0x41348b
sub eax, dword [ebp - 0x7c]
jmp 0x41348e
and dword [0x4a8488], 0
mov dword [0x4a8484], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004119a1
add ebp, 0x39c
leave
ret
Function at 0x4137ed
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41f3b8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41f3e0]
je 0x413822
inc eax
cmp eax, 0x13
jb 0x413813
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41f3e0]
jne 0x413948
mov eax, dword [0x4a847c]
cmp eax, 1
je 0x413920
cmp eax, edx
jne 0x413852
cmp dword [0x41f3c4], 1
je 0x413920
cmp ecx, 0xfc
je 0x413948
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413888
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004178c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00415980
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4138bc
mov eax, edi
push eax
call fcn.00415980
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41aa40
push edi
call fcn.004179c0
add esp, 0x10
push edi
call fcn.00415980
push dword [esi + 0x41f3e4]
mov ebx, eax
call fcn.00415980
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00414200
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004178c0
push edi
push ebx
call fcn.004178d0
push 0x41aa3c
push ebx
call fcn.004178d0
push dword [esi + 0x41f3e4]
push ebx
call fcn.004178d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004177bb
add esp, 0x2c
jmp 0x413948
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41f3e4]
push dword [esi]
call fcn.00415980
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004119a1
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4172b9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4a9948]
push edi
jae 0x41748e
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4a9960]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x41748e
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x417364
test dl, 2
jne 0x417364
test dl, 0x48
je 0x41732e
cmp byte [eax + 5], 0xa
je 0x41732e
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417377
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x41735f
mov dword [0x4a8488], ecx
jmp 0x417495
cmp eax, 0x6d
jne 0x41736b
xor eax, eax
jmp 0x4174a2
push eax
call fcn.00415a0b
pop ecx
jmp 0x41749f
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x417489
test eax, eax
je 0x41739e
cmp byte [ebx], 0xa
jne 0x41739e
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4173a7
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x417483
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x417473
cmp al, 0xd
je 0x4173d9
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x417465
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4173f3
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4173ee
add dword [ebp - 8], 2
jmp 0x417447
mov dword [ebp - 8], eax
jmp 0x417461
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41741b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417461
cmp dword [ebp - 0x10], 0
je 0x417461
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41743c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x417447
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x417464
cmp ebx, dword [ebp + 0xc]
jne 0x41744c
cmp byte [ebp - 1], 0xa
jne 0x41744c
mov byte [ebx], 0xa
jmp 0x417464
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041832d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x417465
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4173bd
jmp 0x417483
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x417483
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4174a2
and dword [0x4a8488], 0
mov dword [0x4a8484], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4177bb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4a8630], ebx
push esi
push edi
jne 0x41783b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x417876
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41b134
push edi
call esi
test eax, eax
mov dword [0x4a8630], eax
je 0x417876
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4a8634], eax
call esi
cmp dword [0x4a8490], 2
mov dword [0x4a8638], eax
jne 0x41783b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4a8640], eax
je 0x41783b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4a863c], eax
mov eax, dword [0x4a863c]
test eax, eax
je 0x417880
call eax
test eax, eax
je 0x417867
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4a8640]
test eax, eax
je 0x417867
test byte [ebp - 8], 1
jne 0x417880
cmp dword [0x4a849c], 4
jb 0x41787a
or byte [ebp + 0x12], 0x20
jmp 0x41789f
xor eax, eax
jmp 0x4178af
or byte [ebp + 0x12], 4
jmp 0x41789f
mov eax, dword [0x4a8634]
test eax, eax
je 0x41789f
call eax
mov ebx, eax
test ebx, ebx
je 0x41789f
mov eax, dword [0x4a8638]
test eax, eax
je 0x41789f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4a8630]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417ae4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x417b12
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x417b19
cmp ebx, dword [eax + 4]
jae 0x417b19
xor eax, eax
jmp 0x417d09
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x417b2a
xor eax, eax
inc eax
jmp 0x417d08
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x417b40
cmp ecx, edx
jae 0x417c85
cmp dword [eax + 4], 0
je 0x417b49
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x417b31
cmp dword [ebp + 8], 0
je 0x417b6b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x417c85
cmp eax, esi
jae 0x417c85
mov eax, dword [0x4a8648]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x417b90
cmp dword [esi*4 + 0x4a8650], edi
je 0x417c89
inc esi
cmp esi, eax
jl 0x417b7e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417d05
cmp dword [ebp - 8], 0x1000000
jne 0x417d05
test byte [ebp - 0xc], 0xcc
je 0x417c0e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x417d05
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x417d05
cmp word [eax + 0x18], 0x10b
jne 0x417d05
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x417d05
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417c0e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417c0e
test byte [ecx + 0x27], 0x80
jne 0x417c85
push 1
push 0x4a8690
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x417b22
mov ecx, dword [0x4a8648]
test ecx, ecx
mov edx, ecx
jle 0x417c42
lea eax, [ecx*4 + 0x4a864c]
cmp dword [eax], edi
je 0x417c42
dec edx
sub eax, 4
test edx, edx
jg 0x417c36
test edx, edx
jne 0x417c73
push 0xf
pop ebx
cmp ecx, ebx
jg 0x417c4f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x417c67
lea eax, [edx*4 + 0x4a8650]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x417c55
cmp ecx, 0x10
jge 0x417c73
inc ecx
mov dword [0x4a8648], ecx
push 0
push 0x4a8690
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x417b22
xor eax, eax
jmp 0x417d08
test esi, esi
jle 0x417b22
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4a8690
call ebx
test eax, eax
jne 0x417b22
cmp dword [esi*4 + 0x4a8650], edi
je 0x417cdf
mov eax, dword [0x4a8648]
lea esi, [eax - 1]
test esi, esi
jl 0x417ccd
cmp dword [esi*4 + 0x4a8650], edi
je 0x417cc9
dec esi
jns 0x417cbd
test esi, esi
jge 0x417cdd
cmp eax, 0x10
jge 0x417cd8
inc eax
mov dword [0x4a8648], eax
lea esi, [eax - 1]
jmp 0x417cdf
je 0x417cf7
xor ecx, ecx
test esi, esi
jl 0x417cf7
lea eax, [ecx*4 + 0x4a8650]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x417ce5
push 0
push 0x4a8690
call ebx
jmp 0x417b22
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418790
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00414200
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41882b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4a8490]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41882b
cmp eax, 1
je 0x41884c
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41882b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4187f8
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x418827
xor eax, eax
inc eax
jmp 0x41886b
cmp edi, eax
jae 0x41882f
xor eax, eax
jmp 0x41886b
cmp eax, esi
jae 0x418836
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4a8490]
jmp 0x41884f
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4191b4
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00414200
mov eax, dword [0x41f3b8]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x4a9948]
mov dword [ebp - 4], eax
jae 0x4192f7
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4a9960]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x4192f7
push 1
push esi
push ebx
call fcn.0041832d
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x419301
push 2
push esi
push ebx
call fcn.0041832d
add esp, 0xc
cmp eax, 0xffffffff
je 0x419301
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4192a1
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00418730
push 0x8000
push ebx
call fcn.00419687
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x419260
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.004132b4
add esp, 0xc
cmp eax, 0xffffffff
je 0x41927e
sub edi, eax
test edi, edi
jg 0x419255
jmp 0x419294
cmp dword [0x4a8488], 5
jne 0x419291
mov dword [0x4a8484], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00419687
pop ecx
pop ecx
jmp 0x4192e1
jge 0x4192e1
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0041832d
push ebx
call fcn.0041716c
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x4192e1
mov dword [0x4a8484], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4a8488], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0041832d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x419304
mov dword [0x4a8484], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004119a1
leave
ret
Function at 0x4085fe
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x40862c
push ebx
push eax
call dword [0x41534c]
push dword [esi]
call dword [0x415350]
mov dword [esi], ebx
push ebx
lea eax, [ebp - 0x88]
push eax
call dword [0x415354]
test eax, eax
je 0x4086b4
push edi
mov edi, 0x80
push edi
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.004124d2
add esp, 0xc
call dword [0x41500c]
push eax
mov eax, edi
push str.Agent_d
lea edi, [ebp - 0x84]
call fcn.0040850d
test byte [ebp - 0x88], 4
pop ecx
pop ecx
pop edi
push 0x10000000
push ebx
lea eax, [ebp - 0x84]
push ebx
jne 0x40868b
push 4
jmp 0x40868c
push ebx
push eax
call dword [0x415358]
mov dword [esi], eax
cmp eax, ebx
je 0x4086b4
push 0x408f89
push eax
call dword [0x41534c]
cmp eax, 0xffffffff
jne 0x4086c3
push dword [esi]
call dword [0x415350]
mov dword [esi], ebx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00411a5a
leave
ret
xor eax, eax
inc eax
jmp 0x4086b6
Function at 0x40b060
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x41f018]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0x104
jb 0x40b08f
xor al, al
jmp 0x40b190
xor ebx, ebx
push edi
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x1c], bx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.0040b25c
pop ecx
test al, al
je 0x40b0e4
cmp byte [esp + 0x18], bl
je 0x40b0e4
cmp dword [edi + 0x14], 8
jb 0x40b0d3
mov edi, dword [edi]
push edi
call dword [0x4150b4]
test eax, eax
setne al
jmp 0x40b190
cmp dword [edi + 0x14], 8
jb 0x40b0ee
mov eax, dword [edi]
jmp 0x40b0f0
mov eax, edi
push eax
call dword [0x415018]
test eax, eax
je 0x40b102
mov al, 1
jmp 0x40b190
xor eax, eax
push 0x208
mov word [esp + 0x5c], ax
lea eax, [esp + 0x5e]
push ebx
push eax
call fcn.004124d2
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40b124
mov edi, dword [edi]
lea ecx, [esp + 0x58]
sub ecx, edi
movzx eax, word [edi]
mov word [ecx + edi], ax
add edi, 2
cmp ax, bx
jne 0x40b12a
push 6
xor eax, eax
pop ecx
mov dword [esp + 0x38], ebx
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x58]
mov dword [esp + 0x40], eax
mov eax, 0x1494
mov word [esp + 0x48], ax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x40], 3
call dword [0x41531c]
cmp dword [esp + 0x4a], ebx
jne 0x40b088
cmp eax, ebx
je 0x40b18d
cmp eax, 2
je 0x40b18d
cmp eax, 0x402
je 0x40b18d
xor eax, eax
jmp 0x40b190
xor eax, eax
inc eax
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411a5a
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x40e12e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [esi + 0x4090], eax
je 0x40e190
cmp dword [esi + 0x6c], eax
jbe 0x40e190
push ebx
mov dword [ebp - 4], 0xffffff78
sub dword [ebp - 4], esi
push edi
lea ebx, [esi + 0x88]
lea eax, [esi + 0x4094]
call fcn.0040db83
mov edi, dword [esi + 0x40a0]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
push eax
lea ecx, [esi + 0x4094]
call fcn.0040dba0
mov al, byte [ebp - 0xc]
xor byte [ebx], al
mov eax, dword [ebp - 4]
add esp, 4
inc ebx
add eax, ebx
cmp eax, dword [esi + 0x6c]
jb 0x40e158
pop edi
pop ebx
push dword [esi + 0x6c]
lea eax, [esi + 0x88]
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
call dword [esi + 8]
add esp, 0x10
cmp eax, dword [esi + 0x6c]
je 0x40e1af
or dword [ebp - 8], 0xffffffff
and dword [esi + 0x6c], 0
mov eax, dword [ebp - 8]
leave
ret
Function at 0x40e29e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push edi
xor edi, edi
mov dword [esp + 4], edi
mov dword [esp + 8], edi
cmp ebx, edi
jne 0x40e2b8
push 0xffffffffffffff9a
pop eax
jmp 0x40e469
cmp dword [ebx + 0x2c], edi
je 0x40e2b0
cmp dword [ebx + 0x80], 8
push ebp
push esi
mov dword [ebx + 0x34], edi
jne 0x40e313
cmp dword [ebx + 0x84], edi
jne 0x40e313
cmp dword [ebx + 0x40], 0
jne 0x40e2f0
mov esi, ebx
call fcn.0040e12e
lea eax, [ebx + 0x88]
mov dword [ebx + 0x40], 0x4000
mov dword [ebx + 0x3c], eax
mov esi, dword [ebx + 0x44]
push 4
lea edi, [ebx + 0x30]
call fcn.0040e90a
mov edi, eax
mov eax, dword [ebx + 0x44]
sub eax, esi
add dword [ebx + 0x6c], eax
pop ecx
test edi, edi
je 0x40e2d3
cmp edi, 1
jne 0x40e313
xor edi, edi
cmp dword [ebx + 0x6c], 0
jbe 0x40e32b
test edi, edi
jne 0x40e32b
mov esi, ebx
call fcn.0040e12e
cmp eax, 0xffffffff
jne 0x40e32b
or edi, eax
cmp dword [ebx + 0x80], 8
jne 0x40e34b
cmp dword [ebx + 0x84], 0
jne 0x40e365
lea esi, [ebx + 0x30]
call fcn.0040f043
and dword [ebx + 0x68], 0
mov edi, eax
cmp dword [ebx + 0x84], 0
jne 0x40e365
mov eax, dword [ebx + 0x408c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x10], eax
mov esi, dword [ebx + 0x74]
mov ebp, dword [ebx + 0x40a4]
mov ecx, dword [esp + 0xc]
add ebp, dword [ebx + 0x44]
push 4
add esi, 0x10
pop edx
call fcn.0040dcd9
mov esi, dword [ebx + 0x74]
push 4
add esi, 0x14
pop edx
mov ecx, ebp
call fcn.0040dcd9
xor ecx, ecx
inc ecx
cmp dword [ebx + 0x5c], ecx
jne 0x40e3a6
mov esi, dword [ebx + 0x74]
push 2
add esi, 0x24
pop edx
call fcn.0040dcd9
mov esi, dword [ebx + 0x74]
mov ecx, dword [esp + 0x10]
push 4
add esi, 0x18
pop edx
call fcn.0040dcd9
test edi, edi
jne 0x40e3ce
push dword [ebx + 0x78]
lea edi, [ebx + 0x24]
push dword [ebx + 0x74]
call fcn.0040dc02
pop ecx
pop ecx
mov edi, eax
push dword [ebx + 0x74]
call dword [0x41528c]
pop ecx
test edi, edi
jne 0x40e45b
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x70]
push edi
add eax, 0xe
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0x10]
add esp, 0x18
test eax, eax
je 0x40e406
or edi, 0xffffffff
jmp 0x40e442
push dword [ebx + 0x20]
mov ecx, dword [esp + 0x10]
push 4
pop esi
mov edi, ebx
call fcn.0040dc90
mov edi, eax
pop ecx
test edi, edi
jne 0x40e442
push dword [ebx + 0x20]
mov ecx, ebp
mov edi, ebx
call fcn.0040dc90
mov edi, eax
pop ecx
test edi, edi
jne 0x40e442
push dword [ebx + 0x20]
mov ecx, dword [esp + 0x14]
mov edi, ebx
call fcn.0040dc90
pop ecx
mov edi, eax
push 0
push dword [esp + 0x18]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0x10]
add esp, 0x10
test eax, eax
je 0x40e45b
or edi, 0xffffffff
inc dword [ebx + 0x40b0]
and dword [ebx + 0x2c], 0
pop esi
mov eax, edi
pop ebp
pop edi
add esp, 0xc
ret