joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435cf7
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 0x435d34
cmp dword [ebp + 0x14], edi
je 0x435d34
cmp ecx, edi
jne 0x435d3b
call fcn.00432ad3
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00431f35
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x435d4f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x435d70
cmp ebx, 0xffffffff
je 0x435d5f
push ebx
push edi
push ecx
call fcn.00432680
add esp, 0xc
cmp esi, edi
je 0x435d1c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x435d1c
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x435d8c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x435d93
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x435e84
test word [esi + 0xc], 0x10c
je 0x435de7
mov eax, dword [esi + 4]
test eax, eax
je 0x435de7
jl 0x435ee5
cmp ebx, eax
mov edi, ebx
jb 0x435db8
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x435e8c
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042fff8
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 0x435e7c
cmp ebx, dword [ebp - 0xc]
jb 0x435e54
cmp dword [ebp - 0xc], 0
je 0x435e11
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x435e06
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x435e0d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x435e1c
mov eax, SysReAllocString
cmp ebx, eax
ja 0x435e1c
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x435eb8
push eax
push dword [ebp - 8]
push esi
call fcn.00435a3a
pop ecx
push eax
call fcn.0044128a
add esp, 0xc
test eax, eax
je 0x435ef7
cmp eax, 0xffffffff
je 0x435ee5
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x435e7c
push esi
call fcn.0043d511
cmp eax, 0xffffffff
pop ecx
je 0x435ee9
cmp dword [ebp - 4], 0
je 0x435eb8
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 0x435d9b
mov eax, dword [ebp + 0x14]
jmp 0x435d36
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x435ea3
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00432680
add esp, 0xc
call fcn.00432ad3
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x435d2c
cmp dword [ebp + 0xc], 0xffffffff
je 0x435ece
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00432680
add esp, 0xc
call fcn.00432ad3
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x435d2c
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x435d36
or dword [esi + 0xc], 0x10
jmp 0x435ee9
Function at 0x436517
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 + 0x461990]
je 0x436532
inc edi
cmp edi, 0x17
jb 0x436523
cmp edi, 0x17
jae 0x4366b2
push ebp
push 3
call fcn.004419ed
cmp eax, 1
pop ecx
je 0x43667e
push 3
call fcn.004419ed
test eax, eax
pop ecx
jne 0x436566
cmp dword [0x4617d4], 1
je 0x43667e
cmp ebx, 0xfc
je 0x4366b1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4652a0
push ebp
call fcn.0043c512
add esp, 0xc
test eax, eax
je 0x43659c
push esi
push esi
push esi
push esi
push esi
call fcn.00431e39
add esp, 0x14
push 0x104
mov esi, 0x4652b9
push esi
push 0
mov byte [0x4653bd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4365e0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043c512
add esp, 0xc
test eax, eax
je 0x4365e0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00431e39
add esp, 0x14
push esi
call fcn.0043c580
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x436625
push esi
call fcn.0043c580
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4655b4
push 0x451774
sub ecx, eax
push ecx
push eax
call fcn.0044193a
add esp, 0x14
test eax, eax
je 0x436625
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00431e39
add esp, 0x14
jmp 0x436627
xor esi, esi
push 0x451770
push ebx
push ebp
call fcn.004418c9
add esp, 0xc
test eax, eax
je 0x436647
push esi
push esi
push esi
push esi
push esi
call fcn.00431e39
add esp, 0x14
push dword [edi*8 + 0x461994]
push ebx
push ebp
call fcn.004418c9
add esp, 0xc
test eax, eax
je 0x436669
push esi
push esi
push esi
push esi
push esi
call fcn.00431e39
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044170c
add esp, 0xc
jmp 0x4366b1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4366b1
cmp ebp, 0xffffffff
je 0x4366b1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x461994]
push dword [esi]
call fcn.0043c580
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 0x44170c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004370db
xor ebx, ebx
cmp dword [0x465d9c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4417e2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4418c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4418c2
push eax
call fcn.0043706d
mov dword [esp], 0x451a48
push edi
mov dword [0x465d9c], eax
call esi
push eax
call fcn.0043706d
mov dword [esp], 0x451a34
push edi
mov dword [0x465da0], eax
call esi
push eax
call fcn.0043706d
mov dword [0x465da4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004327a3
test eax, eax
pop ecx
pop ecx
je 0x4417b0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431e39
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4417e2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043706d
cmp eax, ebx
pop ecx
mov dword [0x465dac], eax
je 0x4417e2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043706d
pop ecx
mov dword [0x465da8], eax
mov eax, dword [0x465da8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x441867
cmp dword [0x465dac], ecx
je 0x441867
push eax
call fcn.004370e4
push dword [0x465dac]
mov esi, eax
call fcn.004370e4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x441867
cmp edi, ebx
je 0x441867
call esi
cmp eax, ebx
je 0x441834
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x441834
test byte [ebp - 0x18], 1
jne 0x441867
lea eax, [ebp - 0x10]
push eax
call fcn.004327da
test eax, eax
pop ecx
je 0x44184f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431e39
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x44185e
or dword [ebp + 0x10], 0x200000
jmp 0x4418a2
or dword [ebp + 0x10], 0x40000
jmp 0x4418a2
mov eax, dword [0x465da0]
cmp eax, dword [ebp - 8]
je 0x4418a2
push eax
call fcn.004370e4
cmp eax, ebx
pop ecx
je 0x4418a2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4418a2
mov eax, dword [0x465da4]
cmp eax, dword [ebp - 8]
je 0x4418a2
push eax
call fcn.004370e4
cmp eax, ebx
pop ecx
je 0x4418a2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x465d9c]
call fcn.004370e4
cmp eax, ebx
pop ecx
je 0x4418c2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4418c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44952a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x461978]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004494bf
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00432680
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x449579
cmp dword [ebp - 0x1c], 5
jb 0x449591
jmp 0x44958d
cmp dword [ebp - 0x10], 1
jne 0x449591
cmp dword [ebp - 0x1c], 4
ja 0x44958d
jne 0x449591
cmp dword [ebp - 0x18], 0
jbe 0x449591
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x453c24
call fcn.00449393
test eax, eax
jge 0x4495b2
mov byte [0x465fb8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004306d1
add ebp, 0x78
leave
ret
Function at 0x1068ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x48]
lea esi, [ebx + 0x28]
mov edx, dword [ebx + 4]
add eax, 0x28
mov ecx, dword [ebx]
add eax, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
test edx, edx
jne 0x1068f2b
cmp ecx, 0x20
jae 0x1068f2b
mov edi, dword [ebp + 8]
mov ebx, dword [ebx + 0x18]
add ebx, 0x165667c5
mov edi, dword [edi + 0x1c]
adc edi, 0x27d4eb2f
jmp 0x1068fc2
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x12
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.01079924
push 0xc
push dword [ebx + 0x1c]
mov edi, eax
mov esi, edx
push dword [ebx + 0x18]
call fcn.01079924
push 7
push dword [ebx + 0x14]
add edi, eax
push dword [ebx + 0x10]
adc esi, edx
call fcn.01079924
push 1
push dword [ebx + 0xc]
add edi, eax
push dword [ebx + 8]
adc esi, edx
call fcn.01079924
add esp, 0x30
add edi, eax
adc esi, edx
push esi
push edi
call fcn.0106ca54
add esp, 0x10
push edx
push eax
call fcn.0106ca54
add esp, 0x10
push edx
push eax
call fcn.0106ca54
add esp, 0x10
push edx
push eax
call fcn.0106ca54
mov esi, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 4]
mov edi, edx
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov edx, dword [ebp - 0x10]
add ebx, ecx
lea ecx, [esi + 8]
adc edi, edx
jmp 0x106901c
push 0x1b
push esi
call fcn.0106d5bc
push edx
push eax
push 0
push 0
call fcn.0106b964
add esp, 0x14
xor edx, edi
xor eax, ebx
push edx
push eax
call fcn.01079924
add esp, 0xc
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.010691a0
mov ecx, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
mov edi, edx
adc edi, 0x85ebca77
add esi, 8
add ecx, 8
mov dword [ebp - 8], ecx
cmp ecx, eax
jbe 0x1068fcb
lea ecx, [esi + 4]
mov dword [ebp - 0x10], ecx
cmp ecx, eax
ja 0x106907f
push 0x17
push esi
call fcn.00bfb048
pop ecx
mov ecx, eax
mov eax, 0x9e3779b1
mul ecx
mov esi, eax
mov eax, 0x85ebca87
mul ecx
add esi, edx
xor eax, ebx
xor esi, edi
push esi
push eax
call fcn.01079924
add esp, 0xc
push 0xc2b2ae3d
push 0x27d4eb4f
push edx
push eax
call fcn.010691a0
mov esi, dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [ebp - 4]
add ebx, 0x9e3779f9
mov edi, edx
adc edi, 0x165667b1
cmp esi, eax
jae 0x10690c3
movzx eax, byte [esi]
push 0xb
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.010691a0
xor edx, edi
xor eax, ebx
push edx
push eax
call fcn.01079924
add esp, 0xc
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.010691a0
inc esi
mov ebx, eax
mov edi, edx
cmp esi, dword [ebp - 4]
jb 0x1069083
push 0xc2b2ae3d
xor eax, eax
mov ecx, edi
push 0x27d4eb4f
shr ecx, 1
xor eax, edi
xor ecx, ebx
push eax
push ecx
call fcn.010691a0
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.010691a0
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebx
leave
ret
Function at 0x1074524
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push edi
mov ebx, 0x107b038
mov eax, dword [eax + 0xc]
push ebx
mov edi, dword [eax + 0x18]
push dword [edi + 0x28]
call fcn.00bfb0e4
pop ecx
pop ecx
test eax, eax
jne 0x107454b
mov eax, dword [edi + 0x10]
jmp 0x107456a
push esi
mov esi, dword [edi + 4]
jmp 0x1074563
push ebx
push dword [esi + 0x28]
call fcn.00bfb0e4
pop ecx
pop ecx
test eax, eax
je 0x107456d
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x1074551
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov eax, dword [esi + 0x10]
jmp 0x1074569
Function at 0x107a910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
test esi, esi
jle 0x107a973
mov ecx, dword [ebp + 0x10]
sub dword [ebp + 0xc], ecx
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
push edi
inc bl
movzx ebx, bl
mov cl, byte [edx + ebx + 8]
add al, cl
movzx eax, al
mov dword [ebp + 8], eax
mov edi, dword [ebp + 8]
mov al, byte [edx + eax + 8]
mov byte [edx + ebx + 8], al
add al, cl
movzx eax, al
mov byte [edx + edi + 8], cl
mov cl, byte [eax + edx + 8]
mov eax, dword [ebp + 0x10]
xor cl, byte [esi + eax]
mov byte [eax], cl
inc eax
sub dword [ebp - 4], 1
mov dword [ebp + 0x10], eax
mov eax, edi
jne 0x107a932
mov esi, dword [ebp + 0x14]
pop edi
mov dword [edx + 4], eax
mov eax, esi
pop esi
mov dword [edx], ebx
pop ebx
leave
ret

Function at 0x107b4d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
test ebx, ebx
je 0x107b533
mov edi, dword [ebp + 0xc]
test edi, 0xffff0000
jne 0x107b4fd
sub edi, dword [ebx + esi + 0x10]
jmp 0x107b54e
mov ecx, dword [ebx + esi + 0x20]
xor eax, eax
add ecx, esi
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
cmp dword [ebx + esi + 0x18], eax
jbe 0x107b533
mov eax, dword [ecx + eax*4]
add eax, esi
push edi
push eax
call fcn.00c06548
pop ecx
pop ecx
test eax, eax
je 0x107b53c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebx + esi + 0x18]
jb 0x107b511
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp + 8]
test ecx, ecx
js 0x107b533
mov eax, dword [ebx + esi + 0x24]
lea eax, [eax + ecx*2]
movzx edi, word [eax + esi]
cmp edi, 0xffffffff
je 0x107b533
cmp edi, dword [ebx + esi + 0x14]
jae 0x107b533
mov eax, dword [ebx + esi + 0x1c]
lea eax, [eax + edi*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x107b535
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x403203
pop dword [ebp - 4]
mov eax, 0x403203
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xd6d2416d
sub dword [ebp - 0x14], 0x887ffc22
mov dword [ebp - 0x10], 0x3c86c6e3
add dword [ebp - 0x10], 0xf5ac8562
mov dword [ebp - 0xc], 0x9d921d1f
sub dword [ebp - 0xc], 0x5145d8f1
mov dword [ebp - 8], 0xf49041a6
add dword [ebp - 8], 0xb6fbe5a
lea eax, [ebp - 0x14]
push eax
mov eax, 0x9056fcc5
add eax, 0x6fe983c7
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x375034f1
add dword [ebp - 0x14], 0x3d223465
mov dword [ebp - 0x10], 0x6748122b
add dword [ebp - 0x10], 0xda244f4a
mov dword [ebp - 0xc], 0x16b438e0
add dword [ebp - 0xc], 0x4cbb338c
mov dword [ebp - 8], 0x1647fd54
add dword [ebp - 8], 0xe9b802ac
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0xbc1a44cf
sub eax, 0xbbd9c3fb
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x32819
push 0
call eax
mov ecx, 0x37a6
xor ebx, ebx
add ebx, eax
mov edi, 0x411000
add edi, dword [ebp - 4]
mov edx, 0xe04bd4c0
sub edx, 0x5e3cafef
mov esi, dword [edi]
xor esi, edx
mov dword [ebx], esi
add ebx, 4
add edi, 0x14bc9e4c
sub edi, 0x14bc9e48
loop 0x403316
add eax, 0x92e146df
add eax, 0x6d1f8a8c
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x450004]
jne 0x40100a
repz ret
jmp fcn.00401858

Function at 0x408aa5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406172
and dword [ebp - 4], 0
cmp dword [0x4560bc], 0
mov ebx, eax
jne 0x408b56
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c07
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c07
push eax
call fcn.00406100
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4560bc], eax
call esi
push eax
call fcn.00406100
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4560c0], eax
call esi
push eax
call fcn.00406100
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4560c4], eax
call esi
push eax
call fcn.00406100
pop ecx
mov dword [0x4560cc], eax
test eax, eax
je 0x408b56
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406100
pop ecx
mov dword [0x4560c8], eax
mov eax, dword [0x4560c8]
cmp eax, ebx
je 0x408bae
cmp dword [0x4560cc], ebx
je 0x408bae
push eax
call fcn.0040617b
push dword [0x4560cc]
mov esi, eax
call fcn.0040617b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bae
test edi, edi
je 0x408bae
call esi
test eax, eax
je 0x408ba5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408ba5
test byte [ebp - 0xc], 1
jne 0x408bae
or dword [ebp + 0x10], 0x200000
jmp 0x408be7
mov eax, dword [0x4560c0]
cmp eax, ebx
je 0x408be7
push eax
call fcn.0040617b
pop ecx
test eax, eax
je 0x408be7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408be7
mov eax, dword [0x4560c4]
cmp eax, ebx
je 0x408be7
push eax
call fcn.0040617b
pop ecx
test eax, eax
je 0x408be7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4560bc]
call fcn.0040617b
pop ecx
test eax, eax
je 0x408c07
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c09
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b8fb
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [0x236d8f4], 0x930
jne 0x40b923
push str.hidipezilac
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x236d8f4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x236d610], eax
jne 0x40b955
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
lea eax, [ebp - 0x1c]
push eax
push str.receyodat
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
leave
ret
Function at 0x402950
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40298d
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029ad
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404540
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b74
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004042d0
test esi, esi
jne 0x402baa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004043c0
jmp 0x402bc8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a28
mov edi, eax
test esi, esi
je 0x402bc8
cmp dword [ebx], 0
je 0x402bc8
dec esi
jmp 0x402bb1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40330c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4e5024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403384
xor eax, eax
push ebp
push 0x40337d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4033c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403384
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4e5024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4e5024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e8048], 0
je 0x404111
cmp word [0x4e821c], 0xd7b2
jne 0x4040d9
cmp dword [0x4e8224], 0
jbe 0x4040d9
mov eax, 0x4e8218
call dword [0x4e8234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4e5070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404138
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e5034], 0
jne 0x40412d
push 0
push 0x4e5068
push 0x4e5070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404284
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040273c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e8049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40424c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc