joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402440
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esi + 4]
inc eax
push eax
mov eax, dword [esp + 0x14]
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x4026b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4026c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402704
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402700
lea ebx, [ebx]
cmp esi, eax
jae 0x402704
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4026f0
cmp esi, eax
jb 0x40270a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402790
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x47613c]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4027cd
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00441051
add esp, 0x108
ret
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4027d1
mov ecx, dword [str.d3d9.dll]
mov edx, dword [0x45efe0]
mov dword [eax], ecx
mov cx, word [0x45efe4]
mov dword [eax + 4], edx
lea edx, [esp]
push 0
push edx
mov word [eax + 8], cx
call fcn.00441344
mov ecx, dword [esp + 0x10c]
add esp, 8
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.00441051
add esp, 0x108
ret
Function at 0x403120
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004415f0
mov eax, dword [esp + 0x64]
add esp, 0xc
lea ecx, [esp]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x54
ret 4

Function at 0x4035d0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [esp + 4]
cmp edx, dword [esp + 0x18]
ja 0x403604
jb 0x4035fc
mov eax, dword [esp]
cmp eax, dword [esp + 0x14]
ja 0x403604
xor al, al
add esp, 0x10
ret 8
mov al, 1
add esp, 0x10
ret 8
Function at 0x408e80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
mov ebx, ecx
test esi, esi
jle 0x408eaf
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebx + 0xc]
push 0
push esi
push edi
push eax
call ebp
cmp eax, 0xffffffff
je 0x408eb8
sub esi, eax
add edi, eax
test esi, esi
jg 0x408e98
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
mov ecx, ebx
call fcn.00408e60
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x45f930
call fcn.00442bc5
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8

Function at 0x4093c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2014]
push 0
mov ecx, 0x2000
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x14]
mov eax, dword [esi + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jge 0x409405
mov ecx, esi
call fcn.00408e60
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x45f98c
call fcn.00442bc5
add esp, 8
xor al, al
pop esi
ret
add dword [esi + 0x2014], eax
mov eax, dword [esi + 0x2014]
cmp eax, 2
push ebx
push edi
jl 0x4094a4
lea ebx, [esi + 0x14]
nop
movzx eax, word [ebx]
mov ecx, 0x2000
cmp ax, cx
ja 0x40948d
mov ecx, dword [esi + 0x2014]
movzx edi, ax
cmp ecx, edi
jl 0x4094a4
mov ecx, esi
jle 0x409479
lea edx, [edi - 2]
push edx
lea eax, [esi + 0x16]
push eax
call fcn.00408ee0
test al, al
je 0x40948d
sub dword [esi + 0x2014], edi
mov eax, dword [esi + 0x2014]
push eax
lea ecx, [edi + esi + 0x14]
push ecx
push ebx
call fcn.00442860
add esp, 0xc
cmp dword [esi + 0x2014], 2
jge 0x409420
pop edi
pop ebx
mov al, 1
pop esi
ret
movzx edx, ax
sub edx, 2
push edx
lea eax, [esi + 0x16]
push eax
call fcn.00408ee0
test al, al
jne 0x40949a
mov ecx, esi
call fcn.00408e60
pop edi
pop ebx
xor al, al
pop esi
ret
mov dword [esi + 0x2014], 0
pop edi
pop ebx
mov al, 1
pop esi
ret
Function at 0x4099a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45a983
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x47613c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi + 4], 0xffffffff
xor ebx, ebx
mov dword [esi], vtable.CHttpPatcher.0
mov dword [esp + 0x18], ebx
mov dword [esi + 0x20], 0xffffffff
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [esi + 0x28]
mov byte [esp + 0x30], 1
call fcn.0042aa1a
mov dword [esi + 0x60], 0xffffffff
push ebx
push ebx
push 1
push ebx
mov byte [esi + 0x40], bl
mov byte [esi + 0x41], bl
mov byte [esi + 0x25], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x866], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x864], bl
mov byte [esi + 0x865], bl
mov byte [esi + 0x24], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x20], eax
mov byte [esi + 0x874], bl
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x40bf30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x110]
lea edx, [esp]
push edx
push 0
mov dword [esp + 0x14], ecx
push 0
mov eax, 1
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_select]
add esp, 0x10c
ret 4

Function at 0x40c0a0
Capabilities:
Send data
Send data on socket

Disassembly:
xor eax, eax
mov word [0x47a6b2], ax
mov eax, dword [0x47335c]
mov word [0x47a6b4], ax
inc eax
mov dword [0x47335c], eax
mov eax, dword [0x473358]
mov word [0x47a6b6], ax
inc eax
push esi
push edi
mov dword [0x473358], eax
mov edi, ecx
mov byte [0x47a6b0], 8
mov byte [0x47a6b1], 0
xor eax, eax
mov edi, edi
mov cl, al
add cl, 0x20
mov byte [eax + 0x47a6bd], cl
inc eax
cmp eax, 0x20
jl 0x40c0e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2d
push 0x47a6b0
mov ecx, edi
mov dword [0x47a6b9], eax
call fcn.0040bf80
mov edx, dword [esp + 0x10]
push 0x10
push edx
push 0
push 0x2d
mov word [0x47a6b2], ax
mov eax, dword [esp + 0x1c]
push 0x47a6b0
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c140
push str.sendto__
mov ecx, edi
call fcn.0040bff0
mov eax, esi
pop edi
pop esi
ret 8

Function at 0x40c150
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14c
mov eax, dword [0x47613c]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x154]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ecx
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [esp + 0x160]
push 0
push 0x141
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x40c1b7
push str.recvfrom__
mov ecx, edi
call fcn.0040bff0
mov cl, byte [esp + 0x14]
mov byte [esi], cl
jmp 0x40c1bd
mov dl, byte [esp + 0x14]
mov byte [esi], dl
mov ecx, dword [esp + 0x150]
mov eax, dword [esp + 0x29]
pop edi
pop esi
xor ecx, esp
call fcn.00441051
add esp, 0x14c
ret 0xc

Function at 0x40c520
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x40c52d
xor al, al
pop esi
ret
push esi
push 0
push 0x40c4a0
call fcn.004441eb
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40c529
mov byte [esi + 8], 0
mov al, 1
pop esi
ret

Function at 0x40c550
Capabilities:
Read file on windows

Disassembly:
lea eax, [ecx + 0x9c]
push 4
mov dword [eax], 0
push eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.004435fb
add esp, 0xc
ret 4
Function at 0x40c5d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40c5e3
push eax
call fcn.00442f6c
add esp, 4
mov eax, dword [esi + 0x3c]
push 0
push 0x8002
push eax
mov dword [esi], 0xffffffff
call fcn.004440bd
add esp, 0xc
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40c609
xor al, al
pop esi
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push ecx
push edx
push eax
call fcn.00443fa4
mov eax, dword [esi + 8]
add esp, 0x10
cmp eax, 0xffffffff
je 0x40c62f
push eax
call fcn.00442f6c
add esp, 4
mov eax, dword [esi + 0x44]
push 0
push 0x8000
push eax
mov dword [esi + 8], 0xffffffff
call fcn.004440bd
add esp, 0xc
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x40c603
push ebx
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebx + 0x104]
mov edx, dword [ebx + 0x100]
push ebp
push edi
push 0
push ecx
push edx
push eax
call fcn.00443fa4
mov ebp, dword [ebx + 0x108]
add esp, 0x10
jmp 0x40c680
mov edi, 0x7a120
cmp ebp, 0x7a120
ja 0x40c68f
mov edi, ebp
mov eax, dword [0x47a6e0]
mov ecx, dword [esi + 8]
push edi
push eax
push ecx
call fcn.004435fb
mov edx, dword [0x47a6e0]
mov eax, dword [esi]
push edi
push edx
push eax
call fcn.00443e2b
add esp, 0x18
sub ebp, edi
jne 0x40c680
mov ecx, dword [esi]
push 1
push 0x45fd28
push ecx
call fcn.00443e2b
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x100], edx
mov dword [ebx + 0x104], eax
inc dword [esi + 0x94]
mov esi, dword [esi + 0x94]
mov ecx, dword [0x478674]
add esp, 0xc
push ebp
push esi
add ecx, 0xfc0
call fcn.00401fc0
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
ret 0xc
Function at 0x40c710
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40c726
push eax
call fcn.00442f6c
add esp, 4
mov eax, dword [esi + 0x3c]
push 0
push 0x800a
push eax
mov dword [esi], 0xffffffff
call fcn.004440bd
add esp, 0xc
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40c74f
xor al, al
pop esi
add esp, 8
ret 4
push 2
push 0
push 0
push eax
call fcn.00443fa4
mov eax, dword [esi + 8]
add esp, 0x10
cmp eax, 0xffffffff
je 0x40c76f
push eax
call fcn.00442f6c
add esp, 4
mov eax, dword [esi + 0x44]
push 0
push 0x8000
push eax
mov dword [esi + 8], 0xffffffff
call fcn.004440bd
add esp, 0xc
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x40c746
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x104]
mov edx, dword [edi + 0x100]
push 0
push ecx
push edx
push eax
call fcn.00443fa4
mov eax, dword [esi]
mov ebp, dword [edi + 0x108]
push eax
call fcn.00443f07
add esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jmp 0x40c7d0
mov ebx, 0x7a120
cmp ebp, 0x7a120
ja 0x40c7df
mov ebx, ebp
mov ecx, dword [0x47a6e0]
mov edx, dword [esi + 8]
push ebx
push ecx
push edx
call fcn.004435fb
mov eax, dword [0x47a6e0]
mov ecx, dword [esi]
push ebx
push eax
push ecx
call fcn.00443e2b
add esp, 0x18
sub ebp, ebx
jne 0x40c7d0
mov edx, dword [esi]
push 1
push 0x45fd28
push edx
call fcn.00443e2b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x104], ecx
mov dword [edi + 0x100], eax
inc dword [esi + 0x94]
mov esi, dword [esi + 0x94]
mov ecx, dword [0x478674]
add esp, 0xc
push ebp
push esi
add ecx, 0xfc0
call fcn.00401fc0
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 8
ret 4
Function at 0x40d4a0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45ae1b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47613c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov esi, dword [esp + 0x34]
mov ecx, dword [esi]
push 4
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.004435fb
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x44]
mov eax, dword [esi]
push edx
push ebp
push eax
call fcn.004435fb
mov edx, dword [esi]
push 4
lea ecx, [esp + 0x50]
push ecx
push edx
call fcn.004435fb
xor edi, edi
add esp, 0x24
cmp dword [esp + 0x34], edi
mov dword [esp + 0x18], edi
jle 0x40d5bb
add ebp, 0x100
push 0x110
call fcn.0041991c
mov ecx, dword [esi]
mov edi, eax
push 4
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x2c], edi
call fcn.004435fb
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
push edx
push edi
push eax
call fcn.004435fb
mov edx, dword [esi]
push 8
lea ecx, [edi + 0x100]
push ecx
push edx
call fcn.004435fb
mov ecx, dword [esi]
push 4
lea eax, [edi + 0x108]
push eax
push ecx
call fcn.004435fb
mov edx, dword [esi]
push 4
add edi, 0x10c
push edi
push edx
call fcn.004435fb
mov edi, dword [ebp + 4]
mov ecx, dword [edi + 4]
add esp, 0x40
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
mov ecx, ebp
call fcn.0040c960
push 1
mov ecx, ebp
mov ebx, eax
call fcn.0040d180
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
jl 0x40d518
mov ebp, dword [esp + 0x38]
xor edi, edi
mov eax, dword [esi]
push 4
lea edx, [esp + 0x38]
push edx
push eax
call fcn.004435fb
add esp, 0xc
cmp dword [esp + 0x34], edi
mov dword [esp + 0x18], edi
jle 0x40d668
add ebp, 0x10c
jmp 0x40d5e5
xor edi, edi
push 0x118
call fcn.0041991c
add esp, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], edi
cmp eax, edi
je 0x40d60b
mov ecx, eax
call fcn.0040cc70
mov dword [esp + 0x38], eax
jmp 0x40d60f
mov dword [esp + 0x38], edi
mov edi, dword [ebp + 4]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], ecx
push edi
mov ecx, ebp
mov dword [esp + 0x38], 0xffffffff
call fcn.0040c960
push 1
mov ecx, ebp
mov ebx, eax
call fcn.0040d180
mov edx, dword [esp + 0x38]
mov dword [edi + 4], ebx
mov ecx, dword [ebx + 4]
push edx
mov dword [ecx], ebx
mov ecx, dword [esp + 0x24]
push esi
call fcn.0040d4a0
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
jl 0x40d5e3
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x40d9a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
push edi
mov edi, dword [esp + 0x1c]
mov ebp, ecx
mov ecx, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x20], ebp
call fcn.004435fb
add esp, 0xc
cmp dword [esp + 0xc], 0
mov dword [esp + 8], 0
jbe 0x40daa3
push ebx
add ebp, 0x74
push esi
lea esp, [esp]
push 0x110
call fcn.0041991c
mov esi, eax
mov eax, dword [edi]
push 4
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x34], esi
call fcn.004435fb
mov ecx, dword [esp + 0x28]
mov edx, dword [edi]
push ecx
push esi
push edx
call fcn.004435fb
mov ecx, dword [edi]
push 8
lea eax, [esi + 0x100]
push eax
push ecx
call fcn.004435fb
mov edx, dword [edi]
push 4
lea ebx, [esi + 0x108]
push ebx
push edx
call fcn.004435fb
mov eax, dword [edi]
push 4
add esi, 0x10c
push esi
push eax
call fcn.004435fb
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x78]
mov esi, dword [eax]
add esp, 0x40
cmp esi, eax
je 0x40da67
mov ebx, dword [ebx]
mov edx, dword [esi + 8]
cmp ebx, dword [edx + 0x108]
jbe 0x40da63
mov esi, dword [esi]
cmp esi, eax
jne 0x40da52
cmp esi, eax
jne 0x40da6a
mov esi, dword [ebp + 4]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x24]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.0040c960
push 1
mov ecx, ebp
mov ebx, eax
call fcn.0040d180
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
mov edx, dword [ebx + 4]
inc eax
mov dword [edx], ebx
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jb 0x40d9e0
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x10
ret 4
Function at 0x40dea0
Capabilities:
Delete file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45aeae
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x47613c]
xor eax, esp
mov dword [esp + 0x808], eax
push esi
push edi
mov eax, dword [0x47613c]
xor eax, esp
push eax
lea eax, [esp + 0x818]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x60]
push eax
call fcn.0040d080
mov ecx, esi
mov dword [esi + 0x60], 0
call fcn.0040c9a0
push 0x118
call fcn.0041991c
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x820], 0
test eax, eax
je 0x40df1b
mov ecx, eax
call fcn.0040cc70
jmp 0x40df1d
xor eax, eax
lea edi, [esi + 4]
mov dword [esi + 0x60], eax
mov eax, dword [edi]
mov dword [esp + 0x820], 0xffffffff
cmp eax, 0xffffffff
je 0x40df3e
push eax
call fcn.00442f6c
add esp, 4
push 0
push 0x8000
push str.data.sah
mov dword [edi], 0xffffffff
call fcn.004440bd
add esp, 0xc
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x40df66
xor al, al
jmp 0x40e07e
push 3
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.004435fb
mov eax, dword [edi]
push 4
lea edx, [esi + 0x88]
push edx
push eax
call fcn.004435fb
mov edx, dword [edi]
push 4
lea ecx, [esi + 0x80]
push ecx
push edx
call fcn.004435fb
mov ecx, dword [edi]
push 0x28
lea eax, [esi + 0x14]
push eax
push ecx
call fcn.004435fb
mov edx, dword [esi + 0x60]
add esp, 0x30
push edx
push edi
mov ecx, esi
call fcn.0040d4a0
push edi
mov ecx, esi
call fcn.0040d9a0
push edi
mov ecx, esi
call fcn.0040c550
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x40dfd2
push eax
call fcn.00442f6c
add esp, 4
push 0x45fd64
push str.delete.lst
mov dword [edi], 0xffffffff
call fcn.00442660
mov edi, eax
add esp, 8
test edi, edi
je 0x40e07c
push 0x800
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004415f0
push edi
lea ecx, [esp + 0x24]
push 0x800
push ecx
call fcn.004443fe
add esp, 0x18
test eax, eax
je 0x40e061
lea esp, [esp]
lea edx, [esp + 0x14]
push edx
call fcn.0040c5a0
add esp, 4
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0040d680
push 0x800
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.004415f0
push edi
lea edx, [esp + 0x24]
push 0x800
push edx
call fcn.004443fe
add esp, 0x18
test eax, eax
jne 0x40e020
push edi
call fcn.00442094
add esp, 4
push str.delete.lst
mov byte [esi + 0xa0], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
mov ecx, dword [esp + 0x818]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00441051
add esp, 0x818
ret
Function at 0x40f1d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0040eda0
mov dword [esi + 0x14], eax
movzx eax, al
add eax, dword [esi + 0x18]
mov ecx, esi
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 8], al
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x1c]
push edx
push eax
call fcn.0040eda0
mov dword [esi + 0x1c], eax
pop esi
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0040eda0
mov dword [esi + 0x14], eax
movzx eax, al
add eax, dword [esi + 0x18]
mov ecx, esi
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 8], al
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x1c]
push edx
push eax
call fcn.0040eda0
mov dword [esi + 0x1c], eax
pop esi
ret 4

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

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xe8]
push ebp
mov ecx, edi
call fcn.00411020
test al, al
jne 0x40fb83
pop edi
pop esi
xor al, al
pop ebp
ret 4
lea ecx, [esi + 0x78]
call fcn.00412f70
cmp eax, 1
je 0x40fb7b
cmp byte [esi + 0xe4], 0
jne 0x40fb7b
lea ecx, [esi + 0x20]
call fcn.00412e70
push ebp
mov ecx, edi
call fcn.004118e0
mov ecx, esi
call fcn.0040ec90
mov ecx, eax
call fcn.004128a0
test al, al
je 0x40fbdc
cmp dword [esi + 0x10], 0
je 0x40fb7b
mov ecx, esi
call fcn.0040f540
mov ecx, esi
call fcn.0040f580
test al, al
jne 0x40fbdc
push 0xffffffffffffff94
mov ecx, esi
call fcn.0040f6a0
mov ecx, esi
call fcn.0040ec90
movzx edi, word [eax + 0xe]
test di, di
je 0x40fbf9
cmp di, 8
je 0x40fbff
push 0xffffffffffffff9b
call fcn.0040f6a0
cmp di, 8
jne 0x40fc2c
cmp byte [esi + 4], 0
je 0x40fc0d
lea eax, [esi + 0xc8]
jmp 0x40fc0f
xor eax, eax
push 0x38
push 0x45fe14
mov dword [esi + 0x50], eax
push 0xfffffffffffffff1
lea eax, [esi + 0x28]
push eax
call fcn.004144b0
push eax
mov ecx, esi
call fcn.0040f750
mov ecx, esi
call fcn.0040ec90
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x64], ecx
mov ecx, esi
call fcn.0040ec90
mov ecx, eax
call fcn.004128a0
test al, al
je 0x40fc4f
add dword [esi + 0x64], 0xfffffff4
mov ecx, esi
call fcn.0040ec90
mov edx, dword [eax + 0x1c]
pop edi
mov dword [esi + 0x60], edx
mov dword [esi + 0x68], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0xe4], 0xff
pop esi
mov al, 1
pop ebp
ret 4

Function at 0x410c80
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push eax
lea ecx, [esp + 8]
push ecx
call fcn.00410c40
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
mov eax, dword [esp + 4]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410cc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
pop ebx
pop ecx
ret
Function at 0x413160
Capabilities:
Access peb ldr_data
Get disk size
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x45b6a8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
mov eax, dword [0x47613c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0xc]
push edx
call eax
mov eax, dword [eax]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x30], 0
call fcn.00410c40
mov eax, dword [eax]
add esp, 8
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
mov eax, dword [esp + 8]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4131ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413215
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41322c
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x24
ret