joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b484
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x418374]
call fcn.004051f4
xor eax, eax
push ebp
push 0x46b5c8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x496ffc], 0
jne 0x46b4d7
mov ecx, dword [0x497cb0]
mov dl, 1
mov eax, dword [0x407c98]
call fcn.0040c818
call fcn.004041a0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403258
mov eax, ebx
call fcn.004050a4
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46b5d8
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040628c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004050b4
test eax, eax
jle 0x46b56f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46b568
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404a9c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404a84
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408b14
test eax, eax
jne 0x46b568
mov ebx, 0x15
jmp 0x46b574
mov ebx, 0x10
jmp 0x46b574
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x496ffc]
call fcn.0046b3dc
mov eax, dword [ebp - 8]
call fcn.0046b3dc
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004062a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b5cf
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404828
lea eax, [ebp - 0x10]
mov edx, dword [0x418374]
call fcn.004052c4
ret
Function at 0x48e748
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffa8
mov ebx, eax
mov dword [esp], 0x58
mov eax, ebx
call fcn.004508f0
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 7
mov dword [esp + 0x10], 0x401
mov eax, dword [0x49815c]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
call fcn.0042bb1c
mov dword [esp + 0x14], eax
mov esi, 0x48e7f0
lea edi, [esp + 0x18]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
push esp
push 0
call sub.shell32.dll_Shell_NotifyIconA
push 0x80
push 0xffffffffffffffec
mov eax, dword [0x49815c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetWindowLongA
xor edx, edx
mov eax, dword [0x49a8e0]
call fcn.00449790
xor edx, edx
mov eax, dword [0x49a8e0]
call fcn.004497b4
push 0
mov eax, dword [0x49815c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
add esp, 0x58
pop edi
pop esi
pop ebx
ret

Function at 0x494674
Capabilities:
Terminate process

Disassembly:
push ecx
push 0x4946a0
push 0
call sub.user32.dll_FindWindowA
push esp
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [esp]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push 4
push eax
call sub.kernel32.dll_TerminateProcess
pop edx
ret
Function at 0x401621
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov word [ebp - 0x36], 0
mov word [ebp - 0x34], 0
mov dword [ebp - 0x18], 2
cmp dword [ebp + 8], 0
jne 0x401650
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x40169d
mov dword [ebp - 0xc], 1
jmp 0x40167a
mov eax, dword [ebp - 0xc]
dec eax
mov eax, dword [eax*4 + 0x40801c]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x18]
add eax, edx
add eax, 4
mov dword [ebp - 0x18], eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jl 0x401659
mov eax, dword [ebp + 8]
dec eax
mov eax, dword [eax*4 + 0x40801c]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [0x40b070]
lea edx, [ebp - 0x2e]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleScreenBufferInfo_8
sub esp, 8
mov ax, word [ebp - 0x2e]
mov word [ebp - 0x32], ax
mov word [ebp - 0x30], 1
mov dword [ebp - 0xc], 0
jmp 0x401731
mov eax, dword [0x40b014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov word [eax + 2], 0x70
mov eax, dword [0x40b014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov al, byte [eax]
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0x40
jle 0x4016fc
cmp byte [ebp - 0xd], 0x5a
jle 0x401708
cmp byte [ebp - 0xd], 0x60
jle 0x40172e
cmp byte [ebp - 0xd], 0x7a
jg 0x40172e
mov eax, dword [0x40b014]
mov edx, dword [ebp - 0xc]
shl edx, 2
lea edx, [eax + edx]
mov eax, dword [0x40b014]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
add eax, ecx
mov ax, word [eax + 2]
or eax, 4
mov word [edx + 2], ax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jl 0x4016cb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x401757
mov eax, dword [0x40b014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov word [eax + 2], 7
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jl 0x401741
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4017cd
mov eax, dword [0x40b014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov word [eax + 2], 0x70
mov eax, dword [0x40b014]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov al, byte [eax]
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0x40
jle 0x401798
cmp byte [ebp - 0xd], 0x5a
jle 0x4017a4
cmp byte [ebp - 0xd], 0x60
jle 0x4017ca
cmp byte [ebp - 0xd], 0x7a
jg 0x4017ca
mov eax, dword [0x40b014]
mov edx, dword [ebp - 0xc]
shl edx, 2
lea edx, [eax + edx]
mov eax, dword [0x40b014]
mov ecx, dword [ebp - 0xc]
shl ecx, 2
add eax, ecx
mov ax, word [eax + 2]
or eax, 4
mov word [edx + 2], ax
inc dword [ebp - 0xc]
mov ax, word [ebp - 0x2e]
cwde
cmp eax, dword [ebp - 0xc]
jg 0x401767
mov ax, word [ebp - 0x32]
dec eax
mov word [ebp - 0x3e], 0
mov word [ebp - 0x3c], 0
mov word [ebp - 0x3a], ax
mov word [ebp - 0x38], 0
mov edx, dword [0x40b014]
mov eax, dword [0x40b070]
lea ecx, [ebp - 0x3e]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x36]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x32]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
leave
ret
Function at 0x4022ab
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov word [ebp - 0x20], 0
mov word [ebp - 0x1e], 0
mov eax, dword [0x40b008]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40240c
mov eax, dword [0x40b008]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40240f
mov eax, dword [0x40b008]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [0x40b008]
mov ax, word [eax + 6]
mov edx, eax
mov eax, dword [0x40b008]
mov ax, word [eax + 2]
mov ecx, edx
sub cx, ax
mov eax, ecx
inc eax
mov word [ebp - 0x1c], ax
mov eax, dword [0x40b008]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [0x40b008]
mov eax, dword [eax + 4]
mov ecx, edx
sub cx, ax
mov eax, ecx
inc eax
mov word [ebp - 0x1a], ax
mov eax, dword [0x40b008]
lea ecx, [eax + 2]
mov eax, dword [0x40b008]
mov edx, dword [eax + 0xc]
mov eax, dword [0x40b070]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
mov eax, dword [0x40b008]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [0x40b008]
mov eax, dword [eax + 4]
cwde
mov dword [ebp - 0x10], eax
jmp 0x4023bc
mov eax, dword [0x40b008]
mov ax, word [eax + 2]
cwde
mov dword [ebp - 0xc], eax
jmp 0x4023aa
mov ecx, dword [0x40b01c]
mov edx, dword [ebp - 0x10]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 4
add eax, dword [ebp - 0xc]
lea edx, [ecx + eax]
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
inc dword [ebp - 0xc]
mov eax, dword [0x40b008]
mov ax, word [eax + 6]
cwde
cmp eax, dword [ebp - 0xc]
jge 0x402384
inc dword [ebp - 0x10]
mov eax, dword [0x40b008]
mov eax, dword [eax + 8]
cwde
cmp eax, dword [ebp - 0x10]
jge 0x402375
mov eax, dword [0x40b008]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._free
mov eax, dword [0x40b008]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sym._free
mov eax, dword [0x40b008]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x18]
mov dword [0x40b008], eax
mov dword [0x40b010], 0
nop
jmp 0x402410
nop
jmp 0x402410
nop
leave
ret
Function at 0x402e9f
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov word [ebp - 0x2a], 0
mov word [ebp - 0x28], 0
mov eax, dword [0x40b070]
lea edx, [ebp - 0x22]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleScreenBufferInfo_8
sub esp, 8
mov ax, word [ebp - 0x22]
mov word [ebp - 0x26], ax
mov word [ebp - 0x24], 1
mov eax, dword [ebp - 0x20]
dec eax
mov ecx, eax
mov ax, word [ebp - 0x26]
dec eax
mov edx, eax
mov eax, dword [ebp - 0x20]
dec eax
mov word [ebp - 0x32], 0
mov word [ebp - 0x30], cx
mov word [ebp - 0x2e], dx
mov word [ebp - 0x2c], ax
mov eax, dword [0x40b018]
test eax, eax
jne 0x402f4f
mov ax, word [ebp - 0x26]
movsx edx, ax
mov eax, dword [ebp - 0x24]
cwde
imul eax, edx
shl eax, 2
mov dword [esp], eax
call sym._malloc
mov dword [0x40b018], eax
mov edx, dword [0x40b018]
mov eax, dword [0x40b070]
lea ecx, [ebp - 0x32]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x26]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ReadConsoleOutputA_20
sub esp, 0x14
mov dword [ebp - 0xc], 0
jmp 0x402f6e
mov eax, dword [0x40b018]
mov edx, dword [ebp - 0xc]
shl edx, 2
add eax, edx
mov word [eax + 2], 0x70
inc dword [ebp - 0xc]
mov ax, word [ebp - 0x26]
cwde
cmp eax, dword [ebp - 0xc]
jg 0x402f58
mov edx, dword [0x40b018]
mov eax, dword [0x40b070]
lea ecx, [ebp - 0x32]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x26]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
leave
ret

Function at 0x402fa9
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
jmp 0x40302d
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xcc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xd0]
mov dword [ebp - 0x18], eax
jmp 0x403016
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x402fff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402fe5
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402fd1
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x402fb7
call dbg.ClearScreen
mov eax, dword [0x40b014]
mov dword [esp], eax
call sym._free
mov eax, dword [0x40b018]
mov dword [esp], eax
call sym._free
mov eax, dword [0x40b070]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [0x40b0b0]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [esp], 0x4092d4
call sym._SetConsoleTitleA_4
sub esp, 4
leave
ret
Function at 0x403a48
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov word [ebp - 0x20], 0
mov word [ebp - 0x1e], 0
mov word [ebp - 0x14], 7
mov word [ebp - 0x12], 0x70
mov dword [ebp - 0x10], 0
jmp 0x403b0e
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
shl edx, 3
add eax, edx
mov ax, word [eax]
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
shl edx, 3
add eax, edx
mov ax, word [eax + 2]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
shl edx, 3
add eax, edx
mov ax, word [eax + 4]
movsx edx, ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
shl ecx, 3
add eax, ecx
mov ax, word [eax]
cwde
mov ecx, edx
sub ecx, eax
mov eax, ecx
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x10]
lea eax, [edx + eax]
mov al, byte [eax]
test al, al
jne 0x403b0b
mov ecx, dword [ebp - 0xc]
movzx edx, word [ebp - 0x12]
mov eax, dword [0x40b070]
mov dword [esp + 0x10], 0x40b060
mov ebx, dword [ebp - 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
inc dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x10]
jg 0x403a73
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
dec edx
shl edx, 3
add eax, edx
mov ax, word [eax]
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
dec edx
shl edx, 3
add eax, edx
mov ax, word [eax + 2]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
dec edx
shl edx, 3
add eax, edx
mov ax, word [eax + 4]
movsx edx, ax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
dec ecx
shl ecx, 3
add eax, ecx
mov ax, word [eax]
cwde
mov ecx, edx
sub ecx, eax
mov eax, ecx
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0xc]
dec edx
add eax, edx
mov al, byte [eax]
test al, al
jne 0x403bbb
mov ecx, dword [ebp - 0xc]
movzx edx, word [ebp - 0x14]
mov eax, dword [0x40b070]
mov dword [esp + 0x10], 0x40b060
mov ebx, dword [ebp - 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
jmp 0x403c19
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0xc]
dec edx
add eax, edx
mov al, byte [eax]
cmp al, 1
jne 0x403c19
mov eax, dword [0x40b070]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov eax, dword [0x40b070]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleCursorInfo_8
sub esp, 8
mov dword [ebp - 0x18], 1
mov eax, dword [0x40b070]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorInfo_8
sub esp, 8
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4070cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
lea edx, [ebp - 0x38]
mov ebx, 0x409e90
mov eax, 3
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 4], 3
lea eax, [ebp - 0x38]
mov dword [esp], eax
call dbg.ShowModule
call dbg.InitInterface
mov eax, dword [str.estate.dat]
mov dword [esp + 4], 0x409bcd
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x20], eax
mov eax, dword [0x40b00c]
mov dword [ebp - 0x2c], eax
jmp 0x407153
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0xd4
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xcc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x407125
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fclose
mov eax, dword [str.buildin.dat]
mov dword [esp + 4], 0x409bcd
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x20], eax
mov eax, dword [0x40b00c]
mov dword [ebp - 0x2c], eax
jmp 0x4071d1
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xd0]
mov dword [ebp - 0x28], eax
jmp 0x4071bf
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0xd4
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x407194
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xcc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x407186
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fclose
mov eax, dword [str.house.dat]
mov dword [esp + 4], 0x409bcd
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x20], eax
mov eax, dword [0x40b00c]
mov dword [ebp - 0x2c], eax
jmp 0x407269
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xd0]
mov dword [ebp - 0x28], eax
jmp 0x407257
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x24], eax
jmp 0x407248
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x2c
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40721d
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x407212
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xcc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x407204
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fclose
mov eax, 1
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x407770
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x407796
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40782a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4077e5
cmp eax, 0x40
je 0x4077e5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x407789
cmp eax, 0x40
je 0x407789
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x407789
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x40f1a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47011b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00464af1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f222
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00462870
mov eax, dword [eax]
push 0x57d1f0
push eax
call fcn.004554a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00464d7c
test bl, bl
je 0x40f222
push 0x57d1f0
lea ecx, [esp + 0xc]
call fcn.0046510c
push 0x580d78
lea ecx, [esp + 0xc]
call fcn.0046510c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40f25e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00464d7c
jmp 0x40f329
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40f2e2
lea edx, [esp + 0x7c]
push 0x580d74
push edx
call fcn.004554a4
add esp, 8
test eax, eax
je 0x40f2e2
lea eax, [esp + 0x7c]
push 0x580d70
push eax
call fcn.004554a4
add esp, 8
test eax, eax
je 0x40f2e2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f272
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00464d7c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40fb20
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40fb82
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40fb90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47019b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5872f0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40fcc8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40fbf6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00464d7c
xor eax, eax
jmp 0x40fd3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00464eb9
push esi
lea ecx, [esp + 0xc]
call fcn.00465148
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x580db0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40fd1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040fb20
test eax, eax
jne 0x40fd1d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040fb20
test eax, eax
jne 0x40fd1d
lea eax, [esp + 0x14]
push 0x580d8c
push eax
call fcn.004564e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fcfc
lea ecx, [esp + 0x14]
push 0x580d88
push ecx
call fcn.00456460
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fcfc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40fcff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00464e69
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40fc0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00464d7c
xor eax, eax
jmp 0x40fd3f
mov byte [esi], 0
push 0x580d84
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00464d7c
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4