joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435ccc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bfd50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042a099
mov dword [ebp - 0x14], eax
cmp dword [0x4c50e8], esi
jne 0x435dbf
push 0x800
push esi
push 0x4a0d98
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x435d4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x435e9f
push esi
push esi
push 0x4a0d98
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x435e9f
push 0x4a0db0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x435e9f
push eax
call ebx
push 0x4a0dbc
push edi
mov dword [0x4c50e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4a0dcc
push edi
mov dword [0x4c50ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4a0de0
push edi
mov dword [0x4c50f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c50f8], eax
test eax, eax
je 0x435dbc
push 0x4a0dfc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c50f4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x435de4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x435dd7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x435df9
push 4
pop eax
jmp 0x435ea1
cmp dword [ebp - 0x14], esi
je 0x435df9
push dword [0x4c50e8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x435dde
mov eax, dword [0x4c50f4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x435e57
cmp dword [0x4c50f8], edi
je 0x435e57
push eax
call ebx
push dword [0x4c50f8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x435e57
test eax, eax
je 0x435e57
call ecx
test eax, eax
je 0x435e4c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x435e4c
test byte [ebp - 8], 1
jne 0x435e57
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x435e87
mov eax, dword [0x4c50ec]
cmp eax, edi
je 0x435e84
push eax
call ebx
test eax, eax
je 0x435e84
call eax
mov esi, eax
test esi, esi
je 0x435e84
mov eax, dword [0x4c50f0]
cmp eax, edi
je 0x435e84
push eax
call ebx
test eax, eax
je 0x435e84
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4c50e8]
call ebx
test eax, eax
je 0x435e9f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x435ea1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c836
mov esp, ebp
pop ebp
ret
Function at 0x457d24
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov edi, edx
mov dword [ebp - 8], ebx
call fcn.004077c7
lea ecx, [ebp - 0x20]
call fcn.004077c7
lea ecx, [ebp - 0x40]
call fcn.004077c7
push 0x4b93a8
lea ecx, [ebp - 0x30]
call fcn.00407d2c
push esi
lea ecx, [ebp - 0x30]
call fcn.00407e0b
push 0x4b93cc
lea ecx, [ebp - 0x30]
call fcn.00407e0b
lea ecx, [ebp - 0x20]
call fcn.00407eec
test edi, edi
je 0x457da7
push 0x5c
pop eax
cmp word [edi], ax
je 0x457da7
cmp word [edi + 2], ax
je 0x457da7
push 0x4b93dc
lea ecx, [ebp - 0x20]
call fcn.00407d2c
push edi
lea ecx, [ebp - 0x20]
call fcn.00407e0b
cmp dword [ebp + 0xc], ebx
je 0x457df8
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00423020
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.004081a7
push 0x4b93e4
lea ecx, [ebp - 0x40]
call fcn.00407e0b
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x457e84
lea eax, [ebp - 0x10]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x457e84
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x457e7f
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1fe
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x457e7a
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push dword [ebp + 8]
shr eax, 1
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2 - 0x26c], cx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.00405a64
lea ecx, [ebp - 0x20]
call fcn.00405a64
lea ecx, [ebp - 0x30]
call fcn.00405a64
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4646d6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x4646fb
xor al, al
jmp 0x4648a3
push esi
call fcn.00420ff6
pop ecx
push eax
mov dword [ebp - 4], eax
xor eax, eax
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [ebp + 8]
push esi
call fcn.00422e3c
xor ecx, ecx
add eax, 0x1a
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420ff6
mov edi, eax
push 0x48fac0
push edi
call fcn.00422ffc
push 0x48fac0
push esi
call fcn.0042378c
add esp, 0x18
test eax, eax
je 0x4647e7
push 0x4ba290
push edi
call fcn.00422fcd
push 0x48fac0
push esi
call fcn.00423bba
add esp, 0x10
test eax, eax
jne 0x4647de
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4ba2b0
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4647ba
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x20]
push 0
mov esi, dword [eax]
push esi
push 4
pop edx
call fcn.0041fd71
push 0
shr esi, 0x10
lea ecx, [edi + 0x28]
push esi
push 4
pop edx
call fcn.0041fd71
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x4647c7
push 0x4ba2e4
push edi
call fcn.00422fcd
pop ecx
pop ecx
push 0x48fac0
push edi
call fcn.00422fcd
push esi
push edi
call fcn.00422fcd
add esp, 0x10
jmp 0x4647e7
push esi
push edi
call fcn.00422fcd
pop ecx
pop ecx
push 0x4ba2f8
push esi
call fcn.0042313d
pop ecx
pop ecx
test eax, eax
jne 0x464822
push 8
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.004242ee
push dword [ebp - 4]
xor eax, eax
mov word [ebx + 0x10], ax
call fcn.0042106c
push edi
call fcn.0042106c
add esp, 0x14
mov al, 1
jmp 0x4648a3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x464890
push 0x48fac0
push esi
call fcn.0042378c
pop ecx
pop ecx
test eax, eax
jne 0x464872
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push 0x4ba320
push ebx
call fcn.004238d8
add esp, 0x18
jmp 0x46488c
push 0x200
push dword [ebp - 8]
push ebx
call fcn.004242ee
add esp, 0xc
xor eax, eax
mov word [ebx + 0x400], ax
mov byte [ebp - 0xc], 1
push dword [ebp - 4]
call fcn.0042106c
push edi
call fcn.0042106c
mov al, byte [ebp - 0xc]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4648f3
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
push esi
push edi
push eax
push 0x101
mov edi, edx
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x4649b6
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x4649b6
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x464953
mov eax, edx
lea eax, [eax + 4]
inc ecx
cmp dword [eax], 0
jne 0x46494a
cmp esi, ecx
jle 0x464966
push 0x4ba344
push edi
call fcn.00422ffc
pop ecx
pop ecx
jmp 0x4649ae
push 4
push dword [edx + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.00421080
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00424570
or edx, 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.0046573e
mov esi, eax
push esi
push edi
call fcn.00422ffc
push esi
call fcn.0042106c
add esp, 0x14
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x4649c3
push 0x48f910
push edi
call fcn.00422ffc
pop ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x464c03
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x464c5c
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
pop ebx
sete al
mov esp, ebp
pop ebp
ret

Function at 0x464cd3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x464ce6
test al, 0x10
je 0x464ce6
mov al, 1
ret
xor al, al
ret
Function at 0x4653c5
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00431b90
mov ecx, dword [ecx]
lea eax, [ebp - 0x10020]
push ebx
mov bl, dl
mov edx, 0x7fff
push eax
call fcn.004648aa
pop ecx
lea ecx, [ebp - 0x10020]
call fcn.00464cd3
test al, al
je 0x46545a
lea eax, [ebp - 0x10020]
push eax
test bl, bl
jne 0x465410
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x46545a
call fcn.00422e3c
pop ecx
xor ecx, ecx
mov dword [ebp - 0x1c], 3
mov word [ebp + eax*2 - 0x1001e], cx
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46545f
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
mov esi, edx
push 0x4ba3fc
lea ecx, [ebp - 0x10]
call fcn.004637e9
push ecx
lea ecx, [ebp - 0x10]
call fcn.00458cc3
test al, al
jne 0x465489
xor esi, esi
jmp 0x4654d6
cmp ebx, 0x20
je 0x4654c8
cmp ebx, 0x40
je 0x4654c4
test bl, 0xb
jne 0x4654a3
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4654d4
xor ecx, ecx
test bl, 0x14
je 0x4654ab
inc ecx
xor eax, eax
test bl, 2
je 0x4654b3
inc eax
push esi
push eax
push ecx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x4654d4
xor eax, eax
jmp 0x4654cb
xor eax, eax
inc eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.00458713
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4654e6
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
test esi, esi
js 0x465564
jne 0x4654f9
push 0
jmp 0x46555e
cmp esi, 0xf
jae 0x46555d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x46555d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild qword [ebp - 0x28]
fstp qword [ebp - 0x20]
fdiv qword [ebp - 0x20]
fmul qword [0x4a4be0]
call fcn.0043b606
cmp eax, esi
jb 0x465516
jmp 0x465564
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46901b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x469040
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00421080
add esp, 0xc
jmp 0x469053
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00425812
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push 0x4ba4ec
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
call fcn.004258c0
neg eax
pop ecx
pop ecx
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x469129
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x460]
test eax, eax
je 0x46913f
cmp eax, ecx
jne 0x46915a
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x458]
call fcn.00425812
add esp, 0x10
and dword [esi + 0x460], 0
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x460], ecx
pop esi
ret

Function at 0x469172
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x45c]
mov esi, dword [edi + 0x454]
mov byte [esi + edx], al
mov eax, 0x10000
inc dword [edi + 0x45c]
cmp dword [edi + 0x45c], eax
jne 0x4691b9
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x454]
call fcn.00424a93
add esp, 0x10
and dword [edi + 0x45c], 0
pop edi
pop esi
pop ebp
ret 4

Function at 0x4691bf
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x45c]
test eax, eax
je 0x4691e7
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x454]
call fcn.00424a93
add esp, 0x10
and dword [esi + 0x45c], 0
pop esi
ret

Function at 0x469393
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
lea ecx, [ebp - 0xdc]
push esi
push edi
call fcn.004691e9
push dword [ebp + 0x10]
lea ecx, [ebp - 0xdc]
call fcn.0046922f
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x4693d7
mov edi, dword [ebp + 8]
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.00469367
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x4693c1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4724ca
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
inc ebx
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x4724e5
movzx eax, word [edi + 0x8c]
jmp 0x4724e9
movzx eax, word [edi + 0x58]
lea edx, [edi + 0xb0]
movsx ecx, ax
cmp dword [ebp + 8], ebx
je 0x4724fa
lea edx, [edi + 0x7c]
mov eax, dword [edi + 0xc0]
xor esi, esi
push esi
cmp ecx, ebx
jne 0x47250c
push esi
push esi
push ebx
jmp 0x47251f
cmp ecx, 2
jne 0x47251c
push 0x4ba8c8
push dword [edx]
push 3
jmp 0x47251f
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
cmp eax, esi
jne 0x472531
xor al, al
jmp 0x472551
cmp byte [edi + 0xdc], 0
je 0x47254f
push 8
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
push ecx
push 0x32
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4725e2
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x30], 0
je 0x4725f1
pop ebp
jmp fcn.004726b2
pop ebp
jmp fcn.004725f7

Function at 0x472882
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.00423020
xor eax, eax
mov dword [ebp - 0x4c], 0x7c
inc eax
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
push esi
push dword [ebp + 8]
call fcn.00422e3c
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4728d9
xor al, al
jmp 0x472989
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push edi
push dword [ebp - 0x44]
push esi
push dword [ebp - 0x48]
call fcn.004078ad
push dword [ebp - 0x38]
lea ecx, [ebx + 0x10]
push esi
push dword [ebp - 0x3c]
call fcn.004078ad
push dword [ebp - 0x2c]
lea ecx, [ebx + 0x20]
push esi
push dword [ebp - 0x30]
call fcn.004078ad
push dword [ebp - 0x24]
lea ecx, [ebx + 0x30]
push esi
push dword [ebp - 0x28]
call fcn.004078ad
push dword [ebp - 0x1c]
lea ecx, [ebx + 0x40]
push esi
push dword [ebp - 0x20]
call fcn.004078ad
push dword [ebp - 0x14]
lea esi, [ebx + 0x50]
push 0
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004078ad
push esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x40]
call fcn.00458123
push eax
lea ecx, [ebx + 0x60]
call fcn.004081a7
lea ecx, [ebp - 0x10]
call fcn.00405a64
mov ax, word [ebp - 0x34]
mov word [ebx + 0x78], ax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x74], eax
dec eax
je 0x47297e
dec eax
je 0x472975
mov dword [ebx + 0x70], 3
jmp 0x472985
mov dword [ebx + 0x70], 2
jmp 0x472985
mov dword [ebx + 0x70], 1
pop edi
mov al, 1
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4780a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 2
pop eax
lea ecx, [ebp - 0x10]
mov word [edi], ax
call fcn.00405c18
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0047830b
push dword [ebp - 0x10]
call dword [sym.imp.WSOCK32.dll_inet_addr]
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00405a64
cmp ebx, 0xffffffff
jne 0x4780f7
mov ecx, dword [ebp + 0xc]
mov edx, 0x4ba980
call fcn.0045a36d
test al, al
je 0x4780f7
push 0
push 1
jmp 0x47811a
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ebx
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja 0x478116
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [edi + 2], ax
mov al, 1
jmp 0x478128
push 0
push 2
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00456aa3
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x478131
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
and dword [ebx], 0
mov edi, ecx
mov dword [ebx + 4], eax
mov ecx, 0x3e8
mov eax, esi
inc dword [ebx]
cdq
idiv ecx
mov dword [ebp - 8], eax
imul eax, eax, 0x3e8
sub esi, eax
imul eax, esi, 0x3e8
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
cmp byte [ebp + 0x14], al
je 0x47817a
push ebx
push eax
jmp 0x47817c
push eax
push ebx
push eax
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
jne 0x478196
cmp byte [ebp + 0x14], al
je 0x4781c2
push eax
push 0x274c
jmp 0x4781b6
jle 0x4781ad
push ebx
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
jne 0x4781c2
push 0xfffffffffffffffe
pop esi
push eax
push esi
jmp 0x4781b6
push 0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00456aa3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401510
Capabilities:
Get graphical window text
Hide graphical window
Write file on windows

Disassembly:
sub esp, 0x130
mov eax, dword [0x41300c]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
mov esi, dword [esp + 0x138]
push 0x64
push 0x414020
push 0x277d
push esi
mov byte [0x414088], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
call fcn.00401480
push 0x40f287
push 0
call fcn.004029b0
push 5
push esi
call fcn.00401000
add esp, 0x14
test eax, eax
jne 0x40157f
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00401a62
add esp, 0x130
ret 0x10
push 0x277d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipeKMWIAUSB3
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x413004], eax
push 0x104
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015c7
sub eax, edx
dec eax
test eax, eax
jle 0x4015e9
mov cl, 0x5c
cmp byte [esp + eax + 0x2c], cl
je 0x4015e4
dec eax
test eax, eax
jg 0x4015d7
jmp 0x4015e9
mov byte [esp + eax + 0x2d], 0
push str.Ns1815TW3
lea ecx, [esp + 0x30]
push 0x104
push ecx
call fcn.00401afa
push str.14QB
lea edx, [esp + 0x3c]
push 0x104
push edx
call fcn.00401afa
push str..dll
lea eax, [esp + 0x48]
push 0x104
push eax
call fcn.00401afa
add esp, 0x24
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4016f7
push str.fnOpenUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4016f7
mov ecx, dword [0x414120]
push 1
push ecx
push ecx
call eax
add esp, 0xc
push 5
push eax
mov dword [0x414124], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x414124]
push 0x64
push 0x414088
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [0x414120]
push 0x414088
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
je 0x4016f7
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x4016e3
lea edx, [esp + 0x1c]
push edx
call ebp
lea eax, [esp + 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call esi
test eax, eax
jne 0x4016c0
pop edi
pop ebp
pop ebx
mov ecx, dword [0x413004]
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], 0x46e
mov dword [esp + 0x20], 4
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [0x413004]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
mov eax, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.00401a62
add esp, 0x130
ret 0x10