joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x457ccb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x473204]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x24]
push eax
push 0x66
call fcn.004256a2
xor edi, edi
lea ecx, [esi + 0x74]
mov dword [esp + 0x1c], edi
mov dword [esi], vtable.CTestPatchDlg.0
call fcn.00401850
lea ebx, [esi + 0x188]
mov ecx, ebx
mov byte [esp + 0x1c], 1
call fcn.0041ab87
mov dword [ebx], vtable.CStatic.0
lea ebx, [esi + 0x1dc]
mov ecx, ebx
mov byte [esp + 0x1c], 2
call fcn.0041ab87
mov dword [ebx], vtable.CStatic.0
lea ebx, [esi + 0x230]
mov ecx, ebx
mov byte [esp + 0x1c], 3
call fcn.0041ab87
mov dword [ebx], vtable.CStatic.0
lea ebx, [esi + 0x284]
mov ecx, ebx
mov byte [esp + 0x1c], 4
call fcn.0041ab87
mov dword [ebx], vtable.CStatic.0
lea ecx, [esi + 0x2d8]
mov byte [esp + 0x1c], 5
call fcn.00401850
lea ecx, [esi + 0x3ec]
mov byte [esp + 0x1c], 6
call fcn.00401850
mov dword [esi + 0x508], edi
mov dword [esi + 0x504], 0x45baa0
push 0x4017a0
push 0x401790
push 3
push 8
lea ecx, [esi + 0x50c]
push ecx
mov byte [esp + 0x30], 8
call fcn.0043e8b7
mov dword [esi + 0x528], edi
mov dword [esi + 0x524], 0x45c2fc
lea ecx, [esi + 0x530]
mov byte [esp + 0x1c], 0xa
call fcn.00411b20
lea ecx, [esi + 0x540]
mov byte [esp + 0x1c], 0xb
call fcn.00411b20
lea ecx, [esi + 0x558]
mov byte [esp + 0x1c], 0xc
mov dword [esi + 0x550], edi
mov dword [esi + 0x554], edi
call fcn.00402030
lea ecx, [esi + 0x5c8]
mov byte [esp + 0x1c], 0xd
call fcn.00402030
lea ecx, [esi + 0x658]
mov byte [esp + 0x1c], 0xe
call fcn.00407610
mov dword [esi + 0xedc], edi
mov dword [esi + 0xed8], 0x45c30c
mov dword [esi + 0xf04], edi
mov dword [esi + 0xf08], edi
mov dword [esi + 0xf0c], edi
lea ecx, [esi + 0xf10]
mov byte [esp + 0x1c], 0x11
call fcn.00401b50
mov byte [esp + 0x1c], 0x12
call fcn.004184b1
call fcn.004184b1
mov eax, dword [eax + 0xc]
push 0xa4
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x654], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x406a10
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 0x406a3f
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 0x406a48
sub esi, eax
add edi, eax
test esi, esi
jg 0x406a28
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
mov ecx, ebx
call fcn.004069f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x45cc08
call fcn.0043fd35
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8

Function at 0x406f60
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 0x406fa5
mov ecx, esi
call fcn.004069f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x45cc64
call fcn.0043fd35
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 0x407044
lea ebx, [esi + 0x14]
nop
movzx eax, word [ebx]
mov ecx, 0x2000
cmp ax, cx
ja 0x40702d
mov ecx, dword [esi + 0x2014]
movzx edi, ax
cmp ecx, edi
jl 0x407044
mov ecx, esi
jle 0x407019
lea edx, [edi - 2]
push edx
lea eax, [esi + 0x16]
push eax
call fcn.00406a70
test al, al
je 0x40702d
sub dword [esi + 0x2014], edi
mov eax, dword [esi + 0x2014]
push eax
lea ecx, [edi + esi + 0x14]
push ecx
push ebx
call fcn.0043f9d0
add esp, 0xc
cmp dword [esi + 0x2014], 2
jge 0x406fc0
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.00406a70
test al, al
jne 0x40703a
mov ecx, esi
call fcn.004069f0
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 0x407610
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x457e49
mov eax, dword fs:[0]
push eax
sub esp, 0x50c
mov eax, dword [0x473204]
xor eax, esp
mov dword [esp + 0x508], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473204]
xor eax, esp
push eax
lea eax, [esp + 0x520]
mov dword fs:[0], eax
mov ebp, ecx
or esi, 0xffffffff
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], esi
xor ebx, ebx
mov dword [ebp], vtable.CHttpPatcher.0
mov dword [esp + 0x528], ebx
mov dword [ebp + 0x20], esi
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [ebp + 0x28]
mov byte [esp + 0x540], 1
call fcn.00428179
mov dword [ebp + 0x64], esi
push ebx
push ebx
push 1
push ebx
mov byte [ebp + 0x40], bl
mov byte [ebp + 0x41], bl
mov byte [ebp + 0x25], bl
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0x86a], bl
mov dword [ebp + 0xc], ebx
mov byte [ebp + 0x868], bl
mov byte [ebp + 0x869], bl
mov byte [ebp + 0x24], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp + 0x20], eax
mov byte [ebp + 0x87c], bl
mov ecx, 7
mov esi, str.fusionshaiya.com
mov edi, 0x474ed0
rep movsd dword es:[edi], dword [esi]
push 0x104
movsw word es:[edi], word [esi]
lea eax, [esp + 0x1c]
push ebx
push eax
movsb byte es:[edi], byte [esi]
call fcn.0043edd0
add esp, 0xc
push str..CONFIG.ini
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0x45bd84
push str.TEST_IP
push str.LOGIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40781b
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407730
sub eax, edx
jne 0x407771
mov esi, str.FRANCE
lea ecx, [esp + 0x18]
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x407764
cmp al, bl
je 0x407760
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x407764
add ecx, 2
add esi, 2
cmp al, bl
jne 0x407744
xor eax, eax
jmp 0x407769
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40781b
push 0x45cc78
push str.UpdaterURL.txt
call fcn.004400cd
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4077a1
push ebx
push str.Error
push str.Cant_Find_UpdaterURL.txt
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.0043f904
push 0x400
lea edx, [esp + 0x120]
push ebx
push edx
call fcn.0043edd0
lea eax, [esp + 0x128]
push eax
push 0x45c528
push esi
call fcn.004401ee
lea eax, [esp + 0x134]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4077d4
sub eax, edx
cmp eax, 1
jae 0x4077fa
push ebx
push str.Error
push str.Cant_Read_UpdaterURL.txt
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.0043f904
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x11c]
mov byte [eax + 0x474ed0], cl
inc eax
cmp cl, bl
jne 0x407800
push esi
call fcn.0043ff8d
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x520]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.0043e7e7
add esp, 0x518
ret
Function at 0x409d60
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x409d6d
xor al, al
pop esi
ret
push esi
push 0
push 0x409ce0
call fcn.004415b7
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x409d69
mov byte [esi + 8], 0
mov al, 1
pop esi
ret

Function at 0x409d90
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.004409c7
add esp, 0xc
ret 4

Function at 0x409e10
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x409e23
push eax
call fcn.00440338
add esp, 4
mov eax, dword [esi + 0x3c]
push 0
push 0x8002
push eax
mov dword [esi], 0xffffffff
call fcn.00441489
add esp, 0xc
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x409e49
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.00441370
mov eax, dword [esi + 8]
add esp, 0x10
cmp eax, 0xffffffff
je 0x409e6f
push eax
call fcn.00440338
add esp, 4
mov eax, dword [esi + 0x44]
push 0
push 0x8000
push eax
mov dword [esi + 8], 0xffffffff
call fcn.00441489
add esp, 0xc
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x409e43
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.00441370
mov ebp, dword [ebx + 0x108]
add esp, 0x10
jmp 0x409ec0
mov edi, 0x7a120
cmp ebp, 0x7a120
ja 0x409ecf
mov edi, ebp
mov eax, dword [0x477f84]
mov ecx, dword [esi + 8]
push edi
push eax
push ecx
call fcn.004409c7
mov edx, dword [0x477f84]
mov eax, dword [esi]
push edi
push edx
push eax
call fcn.004411f7
add esp, 0x18
sub ebp, edi
jne 0x409ec0
mov ecx, dword [esi]
push 1
push 0x45cfcc
push ecx
call fcn.004411f7
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 [0x475f44]
add esp, 0xc
push ebp
push esi
add ecx, 0x5c8
call fcn.00401f90
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
ret 0xc
Function at 0x409f50
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x409f66
push eax
call fcn.00440338
add esp, 4
mov eax, dword [esi + 0x3c]
push 0
push 0x800a
push eax
mov dword [esi], 0xffffffff
call fcn.00441489
add esp, 0xc
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x409f8f
xor al, al
pop esi
add esp, 8
ret 4
push 2
push 0
push 0
push eax
call fcn.00441370
mov eax, dword [esi + 8]
add esp, 0x10
cmp eax, 0xffffffff
je 0x409faf
push eax
call fcn.00440338
add esp, 4
mov eax, dword [esi + 0x44]
push 0
push 0x8000
push eax
mov dword [esi + 8], 0xffffffff
call fcn.00441489
add esp, 0xc
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x409f86
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.00441370
mov eax, dword [esi]
mov ebp, dword [edi + 0x108]
push eax
call fcn.004412d3
add esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jmp 0x40a010
mov ebx, 0x7a120
cmp ebp, 0x7a120
ja 0x40a01f
mov ebx, ebp
mov ecx, dword [0x477f84]
mov edx, dword [esi + 8]
push ebx
push ecx
push edx
call fcn.004409c7
mov eax, dword [0x477f84]
mov ecx, dword [esi]
push ebx
push eax
push ecx
call fcn.004411f7
add esp, 0x18
sub ebp, ebx
jne 0x40a010
mov edx, dword [esi]
push 1
push 0x45cfcc
push edx
call fcn.004411f7
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 [0x475f44]
add esp, 0xc
push ebp
push esi
add ecx, 0x5c8
call fcn.00401f90
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 8
ret 4
Function at 0x40ace0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45826b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473204]
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.004409c7
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x44]
mov eax, dword [esi]
push edx
push ebp
push eax
call fcn.004409c7
mov edx, dword [esi]
push 4
lea ecx, [esp + 0x50]
push ecx
push edx
call fcn.004409c7
xor edi, edi
add esp, 0x24
cmp dword [esp + 0x34], edi
mov dword [esp + 0x18], edi
jle 0x40adfb
add ebp, 0x100
push 0x110
call fcn.0041721c
mov ecx, dword [esi]
mov edi, eax
push 4
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x2c], edi
call fcn.004409c7
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
push edx
push edi
push eax
call fcn.004409c7
mov edx, dword [esi]
push 8
lea ecx, [edi + 0x100]
push ecx
push edx
call fcn.004409c7
mov ecx, dword [esi]
push 4
lea eax, [edi + 0x108]
push eax
push ecx
call fcn.004409c7
mov edx, dword [esi]
push 4
add edi, 0x10c
push edi
push edx
call fcn.004409c7
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.0040a1a0
push 1
mov ecx, ebp
mov ebx, eax
call fcn.0040a8c0
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 0x40ad58
mov ebp, dword [esp + 0x38]
xor edi, edi
mov eax, dword [esi]
push 4
lea edx, [esp + 0x38]
push edx
push eax
call fcn.004409c7
add esp, 0xc
cmp dword [esp + 0x34], edi
mov dword [esp + 0x18], edi
jle 0x40aea8
add ebp, 0x10c
jmp 0x40ae25
xor edi, edi
push 0x118
call fcn.0041721c
add esp, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], edi
cmp eax, edi
je 0x40ae4b
mov ecx, eax
call fcn.0040a4b0
mov dword [esp + 0x38], eax
jmp 0x40ae4f
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.0040a1a0
push 1
mov ecx, ebp
mov ebx, eax
call fcn.0040a8c0
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.0040ace0
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
jl 0x40ae23
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 0x40b1e0
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.004409c7
add esp, 0xc
cmp dword [esp + 0xc], 0
mov dword [esp + 8], 0
jbe 0x40b2e3
push ebx
add ebp, 0x74
push esi
lea esp, [esp]
push 0x110
call fcn.0041721c
mov esi, eax
mov eax, dword [edi]
push 4
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x34], esi
call fcn.004409c7
mov ecx, dword [esp + 0x28]
mov edx, dword [edi]
push ecx
push esi
push edx
call fcn.004409c7
mov ecx, dword [edi]
push 8
lea eax, [esi + 0x100]
push eax
push ecx
call fcn.004409c7
mov edx, dword [edi]
push 4
lea ebx, [esi + 0x108]
push ebx
push edx
call fcn.004409c7
mov eax, dword [edi]
push 4
add esi, 0x10c
push esi
push eax
call fcn.004409c7
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 0x78]
mov esi, dword [eax]
add esp, 0x40
cmp esi, eax
je 0x40b2a7
mov ebx, dword [ebx]
mov edx, dword [esi + 8]
cmp ebx, dword [edx + 0x108]
jbe 0x40b2a3
mov esi, dword [esi]
cmp esi, eax
jne 0x40b292
cmp esi, eax
jne 0x40b2aa
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.0040a1a0
push 1
mov ecx, ebp
mov ebx, eax
call fcn.0040a8c0
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 0x40b220
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x10
ret 4
Function at 0x40b6e0
Capabilities:
Delete file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4582fe
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x473204]
xor eax, esp
mov dword [esp + 0x808], eax
push esi
push edi
mov eax, dword [0x473204]
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.0040a960
mov ecx, esi
mov dword [esi + 0x60], 0
call fcn.0040a1e0
push 0x118
call fcn.0041721c
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x820], 0
test eax, eax
je 0x40b75b
mov ecx, eax
call fcn.0040a4b0
jmp 0x40b75d
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 0x40b77e
push eax
call fcn.00440338
add esp, 4
push 0
push 0x8000
push str.data.sah
mov dword [edi], 0xffffffff
call fcn.00441489
add esp, 0xc
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x40b7a6
xor al, al
jmp 0x40b8be
push 3
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.004409c7
mov eax, dword [edi]
push 4
lea edx, [esi + 0x88]
push edx
push eax
call fcn.004409c7
mov edx, dword [edi]
push 4
lea ecx, [esi + 0x80]
push ecx
push edx
call fcn.004409c7
mov ecx, dword [edi]
push 0x28
lea eax, [esi + 0x14]
push eax
push ecx
call fcn.004409c7
mov edx, dword [esi + 0x60]
add esp, 0x30
push edx
push edi
mov ecx, esi
call fcn.0040ace0
push edi
mov ecx, esi
call fcn.0040b1e0
push edi
mov ecx, esi
call fcn.00409d90
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x40b812
push eax
call fcn.00440338
add esp, 4
push 0x45d008
push str.delete.lst
mov dword [edi], 0xffffffff
call fcn.004400cd
mov edi, eax
add esp, 8
test edi, edi
je 0x40b8bc
push 0x800
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0043edd0
push edi
lea ecx, [esp + 0x24]
push 0x800
push ecx
call fcn.00441743
add esp, 0x18
test eax, eax
je 0x40b8a1
lea esp, [esp]
lea edx, [esp + 0x14]
push edx
call fcn.00409de0
add esp, 4
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0040aec0
push 0x800
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0043edd0
push edi
lea edx, [esp + 0x24]
push 0x800
push edx
call fcn.00441743
add esp, 0x18
test eax, eax
jne 0x40b860
push edi
call fcn.0043ff8d
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.0043e7e7
add esp, 0x818
ret
Function at 0x40ca80
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.0040c650
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.0040c650
mov dword [esi + 0x1c], eax
pop esi
ret 4

Function at 0x40ca84
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.0040c650
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.0040c650
mov dword [esi + 0x1c], eax
pop esi
ret 4

Function at 0x40d3b5
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.0040e870
test al, al
jne 0x40d3d3
pop edi
pop esi
xor al, al
pop ebp
ret 4
lea ecx, [esi + 0x78]
call fcn.004107c0
cmp eax, 1
je 0x40d3cb
cmp byte [esi + 0xe4], 0
jne 0x40d3cb
lea ecx, [esi + 0x20]
call fcn.004106c0
push ebp
mov ecx, edi
call fcn.0040f130
mov ecx, esi
call fcn.0040c540
mov ecx, eax
call fcn.004100f0
test al, al
je 0x40d42c
cmp dword [esi + 0x10], 0
je 0x40d3cb
mov ecx, esi
call fcn.0040cdc0
mov ecx, esi
call fcn.0040ce00
test al, al
jne 0x40d42c
push 0xffffffffffffff94
mov ecx, esi
call fcn.0040cef0
mov ecx, esi
call fcn.0040c540
movzx edi, word [eax + 0xe]
test di, di
je 0x40d449
cmp di, 8
je 0x40d44f
push 0xffffffffffffff9b
call fcn.0040cef0
cmp di, 8
jne 0x40d47c
cmp byte [esi + 4], 0
je 0x40d45d
lea eax, [esi + 0xc8]
jmp 0x40d45f
xor eax, eax
push 0x38
push 0x45d0b8
mov dword [esi + 0x50], eax
push 0xfffffffffffffff1
lea eax, [esi + 0x28]
push eax
call fcn.00411db0
push eax
mov ecx, esi
call fcn.0040cfa0
mov ecx, esi
call fcn.0040c540
mov ecx, dword [eax + 0x18]
mov dword [esi + 0x64], ecx
mov ecx, esi
call fcn.0040c540
mov ecx, eax
call fcn.004100f0
test al, al
je 0x40d49f
add dword [esi + 0x64], 0xfffffff4
mov ecx, esi
call fcn.0040c540
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 0x40e4d0
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0040e490
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 0x40e513
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 0x4109b0
Capabilities:
Access peb ldr_data
Get disk size
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x458ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
mov eax, dword [0x473204]
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.0040e490
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 0x410a3d
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 0x410a65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x410a7c
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