joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f9eaf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004ee118
xor ebx, ebx
cmp dword [0x61e314], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4f9f84
push 0x5cdf50
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4f9eef
xor eax, eax
jmp 0x4fa048
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5cdf44
push edi
call esi
cmp eax, ebx
je 0x4f9ee8
push eax
call fcn.004ee0b5
mov dword [esp], 0x5cdf34
push edi
mov dword [0x61e314], eax
call esi
push eax
call fcn.004ee0b5
mov dword [esp], 0x5cdf20
push edi
mov dword [0x61e318], eax
call esi
push eax
call fcn.004ee0b5
mov dword [0x61e31c], eax
lea eax, [ebp - 8]
push eax
call fcn.004e80f6
test eax, eax
pop ecx
pop ecx
je 0x4f9f52
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e4e15
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4f9f84
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004ee0b5
cmp eax, ebx
pop ecx
mov dword [0x61e324], eax
je 0x4f9f84
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ee0b5
pop ecx
mov dword [0x61e320], eax
mov eax, dword [0x61e320]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4f9ffd
cmp dword [0x61e324], esi
je 0x4f9ffd
push eax
call fcn.004ee121
pop ecx
call eax
cmp eax, ebx
je 0x4f9fca
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x61e324]
call fcn.004ee121
pop ecx
call eax
test eax, eax
je 0x4f9fca
test byte [ebp - 0x18], 1
jne 0x4f9ffd
lea eax, [ebp - 0xc]
push eax
call fcn.004e812d
test eax, eax
pop ecx
je 0x4f9fe5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e4e15
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4f9ff4
or dword [ebp + 0x10], 0x200000
jmp 0x4fa02e
or dword [ebp + 0x10], 0x40000
jmp 0x4fa02e
mov eax, dword [0x61e318]
cmp eax, esi
je 0x4fa02e
push eax
call fcn.004ee121
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4fa02e
mov eax, dword [0x61e31c]
cmp eax, esi
je 0x4fa02e
push dword [ebp - 4]
push eax
call fcn.004ee121
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x61e314]
call fcn.004ee121
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x558f22
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x617560]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00558eb7
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.004ea260
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 0x558f71
cmp dword [ebp - 0x1c], 5
jb 0x558f89
jmp 0x558f85
cmp dword [ebp - 0x10], 1
jne 0x558f89
cmp dword [ebp - 0x1c], 4
ja 0x558f85
jne 0x558f89
cmp dword [ebp - 0x18], 0
jbe 0x558f89
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x5d45f0
call fcn.00558da8
test eax, eax
jge 0x558faa
mov byte [0x6201ac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004e3543
add ebp, 0x78
leave
ret

Function at 0x559180
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esi + 0x15c]
push edi
push 0x5d4e58
push eax
call fcn.004e7305
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 8], edi
je 0x559260
mov ecx, dword [esi + 0x18f8]
mov eax, dword [ecx + 0x18]
imul eax, dword [esi + 0xc]
imul eax, dword [esi + 0x10]
lea eax, [eax + eax*2]
cdq
sub eax, edx
sar eax, 1
cdq
push 0
push edx
push eax
push edi
call fcn.005b5ff9
mov edx, dword [esi + 0x18f8]
xor ecx, ecx
add esp, 0x10
cmp dword [edx + 0x2c], ecx
mov dword [esp + 4], ecx
jle 0x559257
mov eax, dword [esi + 0x10]
push ebx
push ebp
mov ebp, 0x60
xor ebx, ebx
xor edi, edi
test ecx, ecx
setne bl
mov edx, eax
mov ecx, ebx
sar edx, cl
test edx, edx
jle 0x559238
jmp 0x559200
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x18f8]
mov edx, dword [esi + 0xc]
push ecx
mov ecx, ebx
sar edx, cl
mov ecx, dword [eax + ebp - 0x30]
imul ecx, edi
add ecx, dword [eax + ebp]
push edx
push 1
push ecx
call fcn.004e7432
mov eax, dword [esi + 0x10]
mov edx, eax
mov ecx, ebx
sar edx, cl
add edi, 1
add esp, 0x10
cmp edi, edx
jl 0x559200
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x18f8]
add ecx, 1
add ebp, 4
cmp ecx, dword [edx + 0x2c]
mov dword [esp + 0xc], ecx
jl 0x5591e8
mov edi, dword [esp + 0x10]
pop ebp
pop ebx
push edi
call fcn.004e7532
add esp, 4
pop edi
add esp, 8
ret
Function at 0x55f7e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0x5d609c
push eax
call fcn.004e7305
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x55f7fb
pop ebx
ret
push esi
push edi
push 2
push 0
push 0
push ebx
call fcn.005b5ff9
xor ecx, ecx
test eax, eax
setl cl
push ebx
mov esi, ecx
call fcn.005b6366
push 0
push 0
push 0
push ebx
mov edi, eax
call fcn.005b5ff9
xor edx, edx
add esp, 0x24
test eax, eax
setl dl
xor eax, eax
test edi, edi
setle al
or edx, eax
or esi, edx
jne 0x55f89c
push ebp
lea ebp, [edi + 2]
lea ecx, [ebp + 0x17]
push ecx
call fcn.004e39c9
lea esi, [eax + 0x17]
push ebx
mov edx, esi
and edx, 0xf
sub esi, edx
push edi
push 1
push esi
mov dword [esi - 4], eax
mov dword [esi - 8], ebp
call fcn.004ebc48
xor ecx, ecx
add esp, 0x14
cmp eax, edi
setne cl
cmp byte [esi + edi - 1], 0xa
mov ebp, ecx
je 0x55f87e
mov byte [esi + edi], 0xa
add edi, 1
push ebx
mov byte [esi + edi], 0
call fcn.004e7532
add esp, 4
test ebp, ebp
pop ebp
je 0x55f8a2
mov edx, dword [esi - 4]
push edx
call fcn.004e378f
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x561510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 8]
mov dword [esi], eax
mov edx, dword [ecx]
mov dword [esi + 4], edx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x78]
mov dword [esi + 8], eax
xor ecx, ecx
mov edx, 1
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov eax, dword [edi + 0x16c]
neg eax
sbb eax, eax
and eax, 2
mov dword [esi + 0x20], eax
cmp dword [edi + 0x1bc], 2
mov eax, 0x1a
je 0x561569
mov eax, dword [edi + 0x1c0]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0x1a
mov eax, dword [edi + 0x174]
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
cmp dword [edi + 0x168], ecx
setne al
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x40], eax
sub eax, ecx
je 0x5616b4
sub eax, edx
je 0x56167d
sub eax, edx
jne 0x5616cb
push ebx
push ebp
lea ebp, [edi + 0x8c]
push 4
push ebp
call fcn.005601d0
lea ebx, [edi + 0x9c]
push 4
push ebx
call fcn.005601d0
lea eax, [edi + 0xac]
push 4
push eax
mov dword [esp + 0x2c], eax
call fcn.005601d0
lea eax, [edi + 0xbc]
push 4
push eax
mov dword [esp + 0x38], eax
call fcn.005601d0
lea eax, [edi + 0xcc]
push 8
push eax
mov dword [esp + 0x48], eax
call fcn.005601d0
add edi, 0x10c
push 8
push edi
call fcn.005601d0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add esp, 0x30
lea eax, [esi + 0x44]
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax], ebp
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ecx
pop ebp
mov dword [esi + 0x50], edx
mov dword [esi + 0x58], edi
xor ecx, ecx
mov esi, eax
pop ebx
nop
xor edx, edx
xor eax, eax
cmp ecx, 4
setge dl
sub edx, 1
and edx, 0xffffffd0
add edx, 0x40
test edx, edx
jle 0x56166f
mov edi, dword [esi]
cmp byte [eax + edi], 0
jne 0x561668
mov edi, dword [ecx*4 + 0x5d6618]
mov dword [esi], edi
add eax, 1
cmp eax, edx
jl 0x561657
add ecx, 1
add esi, 4
cmp ecx, 6
jl 0x561640
pop edi
pop esi
ret
mov edx, dword [0x5d6618]
mov dword [esi + 0x44], edx
mov eax, dword [0x5d661c]
mov dword [esi + 0x48], eax
mov ecx, dword [0x5d6620]
mov dword [esi + 0x4c], ecx
mov edx, dword [0x5d6624]
mov dword [esi + 0x50], edx
mov eax, dword [0x5d6628]
mov dword [esi + 0x54], eax
mov ecx, dword [0x5d662c]
pop edi
mov dword [esi + 0x58], ecx
pop esi
ret
mov eax, 0x5d65d8
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
pop edi
pop esi
ret
Function at 0x56a850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x10]
and ecx, 0xff
cmp ecx, 1
mov dword [esp + 8], ecx
je 0x56a88b
cmp ecx, 4
je 0x56a88b
mov eax, dword [esp + 0x10]
push str.Arg_invalid_CSP_n
push 0
push eax
call fcn.0055f590
add esp, 0xc
or eax, 0xffffffff
pop edi
add esp, 8
ret
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [edi + 4]
mov dword [eax + 8], edx
mov edx, dword [edi + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov dword [eax + 0x10], edx
mov edx, dword [edi + 0xc]
push esi
mov dword [eax + 0x14], edx
xor esi, esi
add eax, 0x60
mov dword [esp + 0x10], eax
jmp 0x56a8c4
mov ecx, dword [esp + 0x14]
cmp ecx, 4
jne 0x56a8d4
test esi, esi
je 0x56a8d4
mov eax, esi
xor eax, 3
jmp 0x56a8d6
mov eax, esi
mov ecx, dword [edi + eax*4 + 0x28]
mov ebx, dword [edi + eax*4 + 0x18]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], ecx
xor ecx, ecx
test esi, esi
setne cl
sar edx, cl
sar eax, cl
test dword [edi + 0x10], 0x1000
je 0x56a90c
mov ebp, dword [esp + 0x1c]
lea ecx, [eax - 1]
imul ecx, ebx
add dword [esp + 0x24], ecx
neg ebx
push eax
push edx
mov edx, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0x30]
mov ecx, dword [ebx]
push edx
mov edx, dword [ebp + 0x4d20]
push eax
push ecx
call edx
add esi, 1
add ebx, 4
add esp, 0x18
cmp esi, 3
mov dword [esp + 0x10], ebx
jl 0x56a8c0
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 8
ret
Function at 0x5a6f80
Capabilities:
Encode data using xor

Disassembly:
push esi
add eax, 0xffffffff
xor esi, esi
test eax, eax
jle 0x5a6fbf
push ebx
push edi
add ecx, 2
mov edi, eax
movsx edx, word [ecx + 2]
movsx eax, word [ecx - 2]
sub eax, edx
cdq
mov ebx, eax
movsx eax, word [ecx]
xor ebx, edx
sub ebx, edx
movsx edx, word [ecx + 4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add eax, esi
add ecx, 4
sub edi, 1
lea esi, [eax + ebx]
jne 0x5a6f91
pop edi
pop ebx
mov eax, esi
pop esi
ret
Function at 0x5b9182
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004ee118
xor ebx, ebx
cmp dword [0x620198], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x5b9257
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
jne 0x5b91c2
xor eax, eax
jmp 0x5b931b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x5b91bb
push eax
call fcn.004ee0b5
mov dword [esp], 0x5cdf34
push edi
mov dword [0x620198], eax
call esi
push eax
call fcn.004ee0b5
mov dword [esp], 0x5cdf20
push edi
mov dword [0x62019c], eax
call esi
push eax
call fcn.004ee0b5
mov dword [0x6201a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004e80f6
test eax, eax
pop ecx
pop ecx
je 0x5b9225
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e4e15
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x5b9257
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.004ee0b5
cmp eax, ebx
pop ecx
mov dword [0x6201a8], eax
je 0x5b9257
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ee0b5
pop ecx
mov dword [0x6201a4], eax
mov eax, dword [0x6201a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x5b92d0
cmp dword [0x6201a8], esi
je 0x5b92d0
push eax
call fcn.004ee121
pop ecx
call eax
cmp eax, ebx
je 0x5b929d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x6201a8]
call fcn.004ee121
pop ecx
call eax
test eax, eax
je 0x5b929d
test byte [ebp - 0x18], 1
jne 0x5b92d0
lea eax, [ebp - 0xc]
push eax
call fcn.004e812d
test eax, eax
pop ecx
je 0x5b92b8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e4e15
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x5b92c7
or dword [ebp + 0x10], 0x200000
jmp 0x5b9301
or dword [ebp + 0x10], 0x40000
jmp 0x5b9301
mov eax, dword [0x62019c]
cmp eax, esi
je 0x5b9301
push eax
call fcn.004ee121
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5b9301
mov eax, dword [0x6201a0]
cmp eax, esi
je 0x5b9301
push dword [ebp - 4]
push eax
call fcn.004ee121
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x620198]
call fcn.004ee121
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401052
mov edi, dword [esp + 0x134]
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.00406560
add esp, 8
test eax, eax
je 0x401064
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401031
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x128
ret
Function at 0x401080
Capabilities:
Delete file

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
push 0x408bf0
push str.index.log
call fcn.0040136b
push 0x408bd8
mov ebx, eax
call section..text
mov esi, dword [esp + 0x424]
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
add esp, 0xc
mov ebp, eax
mov eax, dword [esi + 8]
push str.ipconfig.exe
push eax
call edi
test eax, eax
je 0x401191
push str.Windows_IP_Configuration_n
call fcn.0040131a
push 0x408ba8
call fcn.0040131a
push str._tHost_Name_._._._._._._._._._._._._:_SJH_n
call fcn.0040131a
push str._tPrimary_Dns_Suffix__._._._._._._._:_n
call fcn.0040131a
push str._tNode_Type_._._._._._._._._._._._._:_Unknown_n
call fcn.0040131a
push str._tIP_Routing_Enabled._._._._._._._._:_Yes_n
call fcn.0040131a
push str._tWINS_Proxy_Enabled._._._._._._._._:_No_n
call fcn.0040131a
push 0x408ba8
call fcn.0040131a
push str.Ethernet_adapter_VMware_Network_Adapter_VMnet8:_n
call fcn.0040131a
push 0x408ba8
call fcn.0040131a
push str._tConnection_specific_DNS_Suffix__._:_n
call fcn.0040131a
push str._tDescription_._._._._._._._._._._._:_VMware_Virtual_Ethernet_Adapter_for_n
call fcn.0040131a
push str._tVMnet8_n
call fcn.0040131a
push str._tPhysical_Address._._._._._._._._._:_00_30_67_66_F8_E2_n
call fcn.0040131a
push str._tDhcp_Enabled._._._._._._._._._._._:_No_n
call fcn.0040131a
push str._tIP_Address._._._._._._._._._._._._:_192.168.96.1_n
call fcn.0040131a
add esp, 0x40
push str._tSubnet_Mask_._._._._._._._._._._._:_255.255.255.0_n
call fcn.0040131a
push str._tDefault_Gateway_._._._._._._._._._:_n
call fcn.0040131a
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret
mov ecx, dword [esi + 8]
push 0x408920
push ecx
call edi
test eax, eax
jne 0x40124a
mov edx, dword [esi + 8]
push str.cscript
push edx
call edi
test eax, eax
je 0x4011e0
test ebx, ebx
jne 0x4011e0
push str._t178BFBFF00100F62_n
call fcn.0040131a
push 0x408900
push str.index.log
call fcn.0040136b
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret
mov eax, dword [esi + 8]
push str.cscript
push eax
call edi
test eax, eax
je 0x40121e
test ebx, ebx
je 0x40121e
push str._tNone_n
call fcn.0040131a
push ebx
call fcn.004012c4
add esp, 8
push str.index.log
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret
mov ecx, dword [esi + 8]
push str.tasklist
push ecx
call edi
test eax, eax
je 0x40124a
push ebp
lea edx, [esp + 0x14]
push str._nWOW
push edx
call fcn.00401272
lea eax, [esp + 0x1c]
push eax
call fcn.0040131a
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret
Function at 0x40b950
Capabilities:
Read .ini file

Disassembly:
mov al, byte [esp + 8]
sub esp, 0x608
test al, al
push ebx
mov ebx, dword [esp + 0x610]
push esi
push edi
mov esi, ecx
je 0x40b9f1
xor eax, eax
mov ecx, 0x13
mov edi, 0x445c70
rep stosd dword es:[edi], eax
mov dword [0x445c70], 0x4c
mov dword [0x445c7c], 0x443204
mov dword [0x445c90], 0x104
mov dword [0x445c98], 0x200
mov dword [0x445cac], 0x43b858
mov eax, dword [esi + 0x154]
lea ecx, [esp + 0x10]
push 0x445c70
mov dword [0x445c74], eax
mov dword [0x445c8c], ebx
mov dword [0x445c94], ecx
mov dword [0x445ca4], 4
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
test eax, eax
jne 0x40b9f1
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x608
ret 8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push 0xfa
lea edi, [esi + 0x58]
push edi
push 0x43ab10
push str.host
push str.connection
call ebp
test eax, eax
jne 0x40ba42
mov edx, dword [str.TTVNC]
mov eax, dword [esi + 0x170]
push 0x10
push edx
push str.Error_reading_host_name_from_file
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x608
ret 8
push ebx
push 0
push str.port
push str.connection
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [esi + 0x54], eax
jne 0x40ba87
mov ecx, dword [str.TTVNC]
mov edx, dword [esi + 0x170]
push 0x10
push ecx
push str.Error_reading_port_number_from_file
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x608
ret 8
push edi
lea ecx, [esi + 0x3b38]
push ecx
push eax
call fcn.0041dd90
add esp, 0xc
push ebx
push 0x20
lea edx, [esp + 0x21c]
push edx
push 0x43ab10
push str.password
push str.connection
mov byte [esi + 0x41b8], 0
call ebp
test eax, eax
jbe 0x40baff
xor edi, edi
lea ebp, [esp + 0x214]
jmp 0x40bad0
lea eax, [esp + 0x10]
push eax
push 0x43b9ac
push ebp
mov dword [esp + 0x1c], 0
call fcn.0042da8e
mov cl, byte [esp + 0x1c]
add esp, 0xc
mov byte [esi + edi + 0x41b8], cl
inc edi
add ebp, 2
cmp edi, 8
jl 0x40bad0
mov al, byte [esp + 0x620]
test al, al
je 0x40bb1b
push ebx
lea ecx, [esi + 0x3b2c]
call fcn.00419e50
call fcn.0041a140
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x608
ret 8

Function at 0x40bdb0
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 4]
mov byte [ecx + 0x3d48], al
mov dword [esp + 4], 0
jmp fcn.0040bb40
Function at 0x41e040
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x438bcf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 8], esi
mov dword [esi], 0x43cdb8
call fcn.0041a990
lea ecx, [esi + 0x7a0]
mov dword [esp + 0x1a4], 0
call fcn.00418180
mov ecx, dword [esp + 0x1b0]
mov eax, dword [esp + 0x1ac]
push ecx
mov dword [0x445ee4], esi
mov ecx, edi
mov byte [esp + 0x1a8], 1
mov dword [esi + 0x59c], eax
call fcn.0041ccc0
mov edx, dword [esi + 0x474]
push edx
mov ecx, 0x445ec8
call fcn.00417c90
mov al, byte [esi + 0x479]
test al, al
je 0x41e0e4
mov eax, dword [0x43c4e4]
or eax, dword [0x43c4ec]
push eax
mov ecx, 0x445ec8
call fcn.00417e00
mov al, byte [esi + 0x478]
test al, al
je 0x41e101
push 0
lea ecx, [esi + 0x47a]
push ecx
mov ecx, 0x445ec8
call fcn.00417e60
lea edx, [esp + 0xc]
push edx
xor eax, eax
lea edi, [esi + 0x5a0]
mov ecx, 0x80
push 2
rep stosd dword es:[edi], eax
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x41e13e
mov eax, dword [str.TTVNC]
push 0x10
push eax
push str.Error_initialising_sockets_library
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
movzx ecx, word [esp + 0xc]
push ecx
push str.Started_and_Winsock__v__d__initialised_n
push 3
push 0x445ec8
call fcn.00403360
mov ecx, dword [esp + 0x1ac]
add esp, 0x10
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a0
ret 8
Function at 0x41eac0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x438cf4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.0041e040
lea edi, [esi + 0x7bc]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
mov dword [esi], fcn.0041e730
call fcn.0041e980
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea ecx, [esi + 0x7c8]
mov byte [esp + 0x18], 1
call fcn.00418180
cmp byte [esi + 0x263], bl
mov byte [esp + 0x18], 2
mov dword [esi + 0x7b8], ebx
je 0x41eb60
push 0x19
lea edx, [esi + 0x25a]
push edx
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutA]
test eax, eax
jne 0x41eb60
mov eax, dword [str.TTVNC]
push 0x10
push eax
push str.Error_loading_specified_keyboard_layout
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0042e8b5
cmp byte [esi + 8], bl
je 0x41eb92
push ebx
push str.VNCviewer_Daemon
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x41eb92
push str.In_listening_mode___staring_daemons_n
push 3
push 0x445ec8
call fcn.00403360
add esp, 0xc
mov ecx, esi
call fcn.0041e730
jmp 0x41eb95
mov byte [esi + 8], bl
mov ecx, esi
call fcn.0041e7e0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x41ece5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41ed3d
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x43d00c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41ed30
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41ed3f
xor eax, eax
pop esi
leave
ret 4