joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d766
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xdc
push ebx
mov ebx, dword [esp + 0xe4]
push esi
push edi
mov edi, dword [esp + 0xf0]
lea eax, [esp + 0x10]
push eax
call fcn.004459c6
mov ecx, dword [esp + 0xf4]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00445920
xor esi, esi
test edi, edi
jbe 0x44d7b8
lea esp, [esp]
lea eax, [esp + 0x10]
push eax
call fcn.00445998
xor byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x44d7a6
pop edi
pop esi
pop ebx
add esp, 0xdc
ret 0xc

Function at 0x44da73
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
sub dword [0x49121c], 1
jne 0x44da82
call fcn.00445b76
mov ecx, dword [0x4a2bec]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4a2bec], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp], edx
fild dword [esp]
test edx, edx
jge 0x44dacb
fadd qword [0x48b510]
fmul qword [0x48b518]
pop ecx
ret

Function at 0x44e4cc
Capabilities:
Delete directory
Delete file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x22c
lea eax, [esp + 0x20]
call fcn.00411c20
lea eax, [esp + 0x20]
push eax
call fcn.00439628
add esp, 4
test al, al
jne 0x44e4f7
add esp, 0x22c
ret
push ebx
xor ebx, ebx
cmp byte [esp + 0x238], bl
jne 0x44e51b
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop ebx
add esp, 0x22c
ret
lea edx, [esp + 0x24]
push edx
call fcn.0041503a
xor ecx, ecx
mov word [esp + eax*2 + 0x2a], cx
add esp, 4
lea ecx, [esp + 4]
lea edx, [esp + 0x24]
mov eax, 0x614
push ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
add esp, 0x22c
ret
Function at 0x44e575
Capabilities:
Copy file
Move file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x438
push ebx
mov bl, byte [esp + 0x448]
lea eax, [esp + 0x230]
call fcn.00411c20
mov ecx, dword [esp + 0x444]
lea eax, [esp + 0x24]
call fcn.00411c20
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x44e5f4
test bl, bl
je 0x44e61d
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x234]
push eax
call fcn.004151ce
add esp, 8
test eax, eax
je 0x44e5ea
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
pop ebx
add esp, 0x438
ret
lea eax, [esp + 0x230]
push eax
call fcn.00439628
add esp, 4
test al, al
je 0x44e61d
lea ecx, [esp + 0x24]
push ecx
call fcn.00439628
add esp, 4
test al, al
je 0x44e627
test bl, bl
jne 0x44e649
xor al, al
pop ebx
add esp, 0x438
ret
lea edx, [esp + 0x24]
push edx
call fcn.00439222
add esp, 4
test al, al
je 0x44e61d
lea eax, [esp + 0x24]
push eax
call fcn.00439628
add esp, 4
test al, al
je 0x44e61d
lea ecx, [esp + 0x230]
push 0x485f28
push ecx
call fcn.00413197
lea edx, [esp + 0x238]
push edx
call fcn.0041503a
lea edx, [esp + 0x30]
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x242], cx
call fcn.0041503a
xor ecx, ecx
mov word [esp + eax*2 + 0x36], cx
lea edx, [esp + 0x240]
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], edx
add esp, 0x10
mov dword [esp + 0x10], eax
xor eax, eax
lea edx, [esp + 4]
mov ecx, 0x614
push edx
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
add esp, 0x438
ret
Function at 0x44e6d5
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10b4
call fcn.004203f0
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [esp + 0x438]
xor bl, bl
call fcn.00411c20
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x648]
call fcn.00411c20
lea eax, [esp + 0x648]
push eax
lea ecx, [esp + 0x43c]
push ecx
call fcn.00439581
lea edx, [esp + 0x440]
push edx
mov byte [esp + 0x1b], al
call fcn.00439628
add esp, 0xc
test al, al
je 0x44e74a
lea eax, [esp + 0x438]
push 0x485f28
push eax
call fcn.00413197
add esp, 8
lea ecx, [esp + 0x648]
push ecx
call fcn.00439628
add esp, 4
test al, al
je 0x44e773
lea edx, [esp + 0x648]
push 0x485f28
push edx
call fcn.00413197
add esp, 8
lea eax, [esp + 0xcb0]
push eax
lea ecx, [esp + 0xebc]
push ecx
lea edx, [esp + 0xab0]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x448]
push ecx
call fcn.00415b80
add esp, 0x14
lea edx, [esp + 0x858]
push edx
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov byte [esp + 0xe], 1
cmp esi, 0xffffffff
je 0x44e929
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0xe], 1
jne 0x44e929
test byte [esp + 0x858], 0x10
jne 0x44e909
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x64c]
push edx
lea eax, [esp + 0xcb8]
push eax
lea ecx, [esp + 0xec4]
push ecx
lea edx, [esp + 0x894]
push edx
call fcn.004393dd
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004131c5
lea edx, [esp + 0xab0]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00413197
lea ecx, [esp + 0x894]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00413197
lea eax, [esp + 0x240]
push eax
call fcn.00439686
add esp, 0x1c
test al, al
je 0x44e887
cmp byte [ebp + 0x10], 0
je 0x44e8e0
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x44e8f0
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
jne 0x44e8cb
cmp byte [esp + 0xf], 0
jne 0x44e8a9
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x44e8dc
push 0
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
je 0x44e8e0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x44e8dc
push 0
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
jne 0x44e907
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x228]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x44e8e0
mov bl, 1
lea ecx, [esp + 0x858]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44e7cc
mov byte [esp + 0xe], al
jmp 0x44e7cc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e939
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa88
mov ecx, dword [ebp + 8]
push ebx
push esi
lea eax, [esp + 0x18]
mov byte [esp + 0xf], 0
call fcn.00411c20
lea eax, [esp + 0x18]
push eax
call fcn.00439628
add esp, 4
test al, al
je 0x44e97b
lea ecx, [esp + 0x18]
push 0x485f28
push ecx
call fcn.00413197
add esp, 8
lea edx, [esp + 0x680]
push edx
lea eax, [esp + 0x88c]
push eax
lea ecx, [esp + 0x480]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00415b80
add esp, 0x14
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov bl, 1
cmp esi, 0xffffffff
je 0x44ea40
cmp bl, 1
jne 0x44ea40
test byte [esp + 0x228], 0x10
jne 0x44ea1a
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x17], bl
call fcn.004131c5
lea edx, [esp + 0x480]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00413197
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00413197
add esp, 0x18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x44ea31
lea ecx, [esp + 0x228]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44e9c1
xor bl, bl
jmp 0x44e9c1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0xf]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fe21
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
push ebp
push esi
push edi
push 0
push 0
push 0xe
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jne 0x44fe43
mov edi, 0x7fff
xor ecx, ecx
lea ebp, [edi + 1]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412dbe
add esp, 4
mov esi, eax
mov eax, dword [ebx]
push esi
push ebp
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x18]
mov word [esi + edi*2], cx
jne 0x44fe9a
push 0x4838c0
call fcn.00406410
push esi
call fcn.00412f61
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
push esi
call fcn.00406410
push esi
call fcn.00412f61
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
Function at 0x4508ba
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
mov ebp, dword [esp + 0x10]
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0xb0
push edx
call ebx
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x10]
jne 0x4508ee
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
mov ecx, dword [ebp]
push esi
push 0
push 0
push 0xe
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x45090a
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
xor ecx, ecx
lea eax, [esi + 0x101]
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.00412dbe
mov ecx, dword [ebp]
add esp, 4
mov edi, eax
push edi
lea eax, [esi + 1]
push eax
push 0xd
push ecx
call ebx
test eax, eax
je 0x45096f
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x45094b
xor edx, edx
mov word [edi + eax*2], dx
mov eax, dword [esp + 0x10]
lea ecx, [edi + eax*2]
mov eax, dword [esp + 0x1c]
push ecx
call fcn.00406410
push edi
call fcn.00412f61
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
push edi
call fcn.00412f61
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
Function at 0x453127
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
sub esp, 0x264
push ebp
mov ebp, dword [esp + 0x278]
push esi
mov esi, dword [esp + 0x274]
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
call fcn.004061f0
lea ecx, [esp + 0x18]
call fcn.004061f0
lea ecx, [esp + 0x38]
call fcn.004061f0
push str.SOFTWAREClasses_
lea eax, [esp + 0x2c]
call fcn.00406410
mov edi, dword [esp + 0x274]
lea eax, [esp + 0x28]
call fcn.0040dec0
mov edi, str.CLSID
lea eax, [esp + 0x28]
call fcn.0040dec0
push 0x4838c0
lea eax, [esp + 0x1c]
call fcn.00406410
test esi, esi
je 0x4531cd
cmp word [esi], 0x5c
je 0x4531cd
cmp word [esi + 2], 0x5c
je 0x4531cd
push 0x489794
lea eax, [esp + 0x1c]
call fcn.00406410
mov edi, esi
lea eax, [esp + 0x18]
call fcn.0040dec0
test ebp, ebp
je 0x45322b
push 0x20
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00414fc0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x3c]
mov dword [esp + 0x50], 0
call fcn.0040f2c0
mov edi, str.IPC_
mov eax, esi
call fcn.0040dec0
mov eax, dword [esp + 0x284]
mov edx, dword [esp + 0x38]
push 0
push ebp
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x6c], edx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
test esi, esi
jne 0x4532de
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push reloc.WSOCK32.dll_bind
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x4532de
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x4532d7
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x6c]
push edx
push 0
push 0
push 0
push eax
mov dword [esp + 0x28], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4532d0
mov eax, dword [esp + 0x10]
shr eax, 1
xor ecx, ecx
lea edi, [esp + 0x68]
mov dword [esp + 0x10], eax
mov word [esp + eax*2 + 0x68], cx
call fcn.00411c60
mov edx, dword [esp + 0x27c]
mov edi, eax
push edx
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.00412f61
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebp
lea ecx, [esp + 0x38]
call fcn.004066f0
lea ecx, [esp + 0x18]
call fcn.004066f0
lea ecx, [esp + 0x28]
call fcn.004066f0
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x264
ret
Function at 0x453305
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24c
push ebx
push ebp
mov ebp, dword [esp + 0x258]
push esi
push edi
lea ecx, [esp + 0x30]
call fcn.004061f0
fld1
lea eax, [esp + 0x24]
fstp qword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
test esi, esi
jl 0x453506
mov edi, dword [esp + 0x24]
call fcn.00411c60
mov esi, eax
push str.interface_
lea eax, [esp + 0x34]
call fcn.00406410
mov edi, esi
lea eax, [esp + 0x30]
call fcn.0040dec0
mov edi, str.TypeLib
lea eax, [esp + 0x30]
call fcn.0040dec0
push esi
call fcn.00412f61
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x453506
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x54]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x2c], 0x1fe
call ebx
mov esi, eax
test esi, esi
jne 0x4534fb
mov eax, dword [esp + 0x14]
shr eax, 1
xor ecx, ecx
lea edi, [esp + 0x50]
mov dword [esp + 0x14], eax
mov word [esp + eax*2 + 0x50], cx
call fcn.00411c60
lea edx, [esp + 0x40]
mov edi, eax
push edx
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.00412f61
add esp, 4
test esi, esi
jl 0x4534fb
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push str.Version
push edx
mov dword [esp + 0x2c], 0x1fe
call ebx
test eax, eax
jne 0x453456
mov eax, dword [esp + 0x14]
shr eax, 1
lea edx, [esp + 0x50]
xor ecx, ecx
push edx
mov dword [esp + 0x18], eax
mov word [esp + eax*2 + 0x54], cx
call fcn.00415d67
fstp qword [esp + 0x2c]
add esp, 4
fld1
lea eax, [esp + 0x20]
push eax
push 0
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x40]
fstp qword [esp]
call fcn.004181a0
fnstcw word [esp + 0x2a]
add esp, 0x10
movzx eax, word [esp + 0x1a]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [esp + 0x20]
mov cx, word [esp + 0x20]
movzx edx, cx
push edx
fldcw word [esp + 0x1e]
lea edx, [esp + 0x4c]
fld qword [esp + 0x34]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
or eax, 0xc00
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp dword [esp + 0x24]
mov ax, word [esp + 0x24]
movzx ecx, ax
push ecx
fldcw word [esp + 0x22]
push edx
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
test esi, esi
jl 0x4534fb
mov edx, dword [esp + 0x264]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
call fcn.004066f0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
Function at 0x45351c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x284
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov esi, 0x80004002
xor ebx, ebx
mov dword [esp + 0x14], 0x28
call fcn.004061f0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push str.interface
push accept
call ebp
test eax, eax
jne 0x453661
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x453656
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [esp + eax*2 + 0x38], dx
push str.interface_
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0x1fe
call fcn.00406410
lea edi, [esp + 0x38]
lea eax, [esp + 0x20]
call fcn.0040dec0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push accept
call ebp
test eax, eax
jne 0x453644
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x8c]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x453639
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x29c]
shr eax, 1
xor ecx, ecx
mov dword [esp + 0x14], eax
mov word [esp + eax*2 + 0x88], cx
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00413104
add esp, 8
test eax, eax
jne 0x453639
mov ecx, dword [esp + 0x298]
push ecx
push edi
call dword [sym.imp.ole32.dll_IIDFromString]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x453656
inc ebx
mov dword [esp + 0x14], 0x28
jmp 0x453563
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.004066f0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x284
ret
Function at 0x4538a0
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x410
push ebx
push esi
mov esi, dword [esp + 0x41c]
push edi
xor edi, edi
cmp byte [esi + 0x30], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], fcn.0041641b
jne 0x453907
mov eax, dword [esi + 0x34]
push 0x486404
push eax
call fcn.0041602c
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
jne 0x453907
push eax
push 0xdeadbeef
push 0x1f
push esi
call fcn.0044520e
mov bl, al
lea eax, [esp + 0x10]
push eax
call fcn.004370e1
mov al, bl
pop edi
pop esi
pop ebx
add esp, 0x410
ret 8
lea ecx, [esi + 0xc8]
push ecx
call fcn.0043720e
lea edx, [esi + 0xc4]
push edx
call fcn.0043722d
mov dword [esp + 0xc], 1
jmp 0x453930
mov edx, dword [esp + 0x424]
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4539a9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x45398c
test edi, edi
je 0x453970
push edi
push 1
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00416322
add esp, 0x10
jmp 0x45397d
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x34]
call fcn.0040dee0
mov eax, dword [esp + 0xc]
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x453930
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x4539b4
push eax
push 0xdeadbeef
push 0x21
push esi
call fcn.0044520e
lea ecx, [esp + 0x10]
push ecx
jmp 0x4539c5
push 0
push 0xdeadbeef
push 0x20
jmp 0x4539ba
push 1
push 0
push 0
push esi
call fcn.0044520e
lea edx, [esp + 0x10]
push edx
mov bl, al
call fcn.004370e1
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x410
ret 8
Function at 0x4539da
Capabilities:
Connect to http server

Disassembly:
sub esp, 0xc
cmp byte [esp + 0x18], 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push 0
je 0x453a09
push 0xdeadbeef
push 0x1d
push esi
call fcn.0044520e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
mov ebp, dword [edi + 0x70]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x10]
mov ebx, dword [esi + 0x44]
push 0
push ebp
push eax
movzx eax, word [edi + 0x78]
push ecx
mov ecx, dword [esi + 4]
push eax
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi], eax
push 0
test eax, eax
jne 0x453a4c
push 0xdeadbeef
push 0x15
push esi
call fcn.0044520e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
mov edi, dword [edi + 0x60]
push ebx
push accept
push edi
push eax
call dword [sym.imp.WININET.dll_FtpOpenFileW]
mov edx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
test edi, edi
jne 0x453a7b
push eax
push 0xdeadbeef
push 0x16
jmp 0x453ac4
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [sym.imp.WININET.dll_FtpGetFileSize]
mov ecx, dword [esp + 0x28]
xor edx, edx
xor ebx, ebx
or edx, eax
or ecx, ebx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ecx
cmp byte [esp + 0x2c], bl
je 0x453abe
push edi
push esi
call fcn.004538a0
lea edx, [esp + 0x14]
push edx
mov bl, al
call fcn.004370f5
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
push 1
push 0
push 0
push esi
call fcn.0044520e
mov bl, al
lea eax, [esp + 0x14]
push eax
call fcn.004370f5
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xc
ret 0x10
Function at 0x453ae2
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
cmp dword [esi + 0x74], 4
push edi
mov edi, dword [esp + 0x40]
mov ebp, dword [edi + 0x44]
jne 0x453b00
or ebp, 0x800000
mov ebx, dword [esi + 0x70]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x10]
push 0
push 0
push ebx
push eax
movzx eax, word [esi + 0x78]
push ecx
mov ecx, dword [edi + 4]
push eax
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi], eax
push 0
test eax, eax
jne 0x453b42
push 0xdeadbeef
push 0xb
push edi
call fcn.0044520e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
mov ecx, dword [esi + 0x60]
push ebp
push 0
push 0
push 0
push ecx
push 0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
test ebx, ebx
jne 0x453b90
push eax
push 0xdeadbeef
push 0xc
push edi
call fcn.0044520e
mov bl, al
lea eax, [esp + 0x10]
push eax
call fcn.004370f5
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
cmp byte [esp + 0x48], 0
je 0x453b9f
push esi
push ebx
push edi
call fcn.0044524d
test ebp, 0x1000
je 0x453bda
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x4c]
push edx
push 0x1f
push ebx
mov dword [esp + 0x54], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [esp + 0x48], 0x100
push 4
lea eax, [esp + 0x4c]
push eax
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x453c87
push ebx
call fcn.00437184
cmp eax, 0xc8
jne 0x453c87
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x20]
push eax
push 5
push ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea ecx, [esp + 0x18]
push ecx
call fcn.00415226
add esp, 4
cmp byte [esp + 0x4c], 0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
je 0x453c63
push ebx
push edi
call fcn.004538a0
lea edx, [esp + 0x10]
push edx
mov bl, al
call fcn.004370f5
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
push 1
push 0
push 0
push edi
call fcn.0044520e
mov bl, al
lea eax, [esp + 0x10]
push eax
call fcn.004370f5
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
push 0
push 0xdeadbeef
push 0xd
push edi
call fcn.0044520e
lea ecx, [esp + 0x10]
push ecx
mov bl, al
call fcn.004370f5
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x2c
ret 0x10