joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416960
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x41699b
mov ecx, dword [ebp - 8]
call fcn.00416a30
mov ecx, dword [ebp - 8]
call fcn.00416a70
or eax, 0xffffffff
jmp 0x41699e
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x416c40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4315d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43c400]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403b00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
call fcn.00416db0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040d820
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x416d7c
mov edx, dword [ebp - 0x14]
push edx
call fcn.0041eeac
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040d820
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x416d7c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0x433538
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x416d1e
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0x43351c
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x416d4f
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x1c]
shr eax, 2
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0
je 0x416d7c
mov eax, dword [ebp - 0x30]
cmp dword [eax + 8], 0
je 0x416d7c
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401900
mov eax, dword [ebp - 0x28]
jmp 0x416d95
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401900
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x417200
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
lea ecx, [ebp - 8]
push ecx
push 0x433574
push 1
push 0
push 0x433564
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x417249
jmp 0x41727d
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 0x1c]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x417268
jmp 0x41727d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 0x1c]
call edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x417291
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 8]
call eax
cmp dword [ebp - 8], 0
je 0x4172a5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [edx + 8]
call ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x417660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov dword [esi], 0
jmp 0x417670
mov eax, dword [esi]
mov edx, dword [ebx + 4]
mov ecx, edi
sub ecx, eax
push ecx
add eax, ebp
push eax
push edx
call fcn.0042fb0d
add esp, 0xc
test eax, eax
jle 0x417690
add dword [esi], eax
cmp dword [esi], edi
jb 0x417670
pop ebp
test eax, eax
jge 0x4176b2
call fcn.004226d7
mov eax, dword [eax]
push eax
call fcn.00422f3c
push eax
push 0xffffffffffffffff
push ebx
call fcn.00418030
add esp, 0x10
or eax, 0xffffffff
ret
jne 0x4176bb
mov dword [ebx + 0x28], 1
xor eax, eax
ret
Function at 0x41a720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x41a79e
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0041ff60
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x41a771
sub eax, ebx
jmp 0x41a773
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x41a762
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x41a792
sub eax, ebx
jmp 0x41a794
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x41a783
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x41a872
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.0041a620
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x41a7e9
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x41a7fd
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x41a726
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x41a872
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x41a841
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x41a824
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.0041f300
add esp, 0xc
add ebx, esi
pop esi
pop ebp
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x41a872
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x41a85b
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.0041f300
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebp
pop ebx
ret

Function at 0x41f2bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c400]
jne 0x41f2c6
repz ret
jmp fcn.00423f5f
Function at 0x42c8e4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00424f6c
and dword [ebp - 4], 0
cmp dword [0x43e4e4], 0
mov ebx, eax
jne 0x42c995
push 0x438be0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42ca46
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x438bd4
push edi
call esi
test eax, eax
je 0x42ca46
push eax
call fcn.00424efa
mov dword [esp], 0x438bc4
push edi
mov dword [0x43e4e4], eax
call esi
push eax
call fcn.00424efa
mov dword [esp], 0x438bb0
push edi
mov dword [0x43e4e8], eax
call esi
push eax
call fcn.00424efa
mov dword [esp], 0x438b94
push edi
mov dword [0x43e4ec], eax
call esi
push eax
call fcn.00424efa
pop ecx
mov dword [0x43e4f4], eax
test eax, eax
je 0x42c995
push 0x438b7c
push edi
call esi
push eax
call fcn.00424efa
pop ecx
mov dword [0x43e4f0], eax
mov eax, dword [0x43e4f0]
cmp eax, ebx
je 0x42c9ed
cmp dword [0x43e4f4], ebx
je 0x42c9ed
push eax
call fcn.00424f75
push dword [0x43e4f4]
mov esi, eax
call fcn.00424f75
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42c9ed
test edi, edi
je 0x42c9ed
call esi
test eax, eax
je 0x42c9e4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42c9e4
test byte [ebp - 0xc], 1
jne 0x42c9ed
or dword [ebp + 0x10], 0x200000
jmp 0x42ca26
mov eax, dword [0x43e4e8]
cmp eax, ebx
je 0x42ca26
push eax
call fcn.00424f75
pop ecx
test eax, eax
je 0x42ca26
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42ca26
mov eax, dword [0x43e4ec]
cmp eax, ebx
je 0x42ca26
push eax
call fcn.00424f75
pop ecx
test eax, eax
je 0x42ca26
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43e4e4]
call fcn.00424f75
pop ecx
test eax, eax
je 0x42ca46
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42ca48
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401071
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x403090
push 0x8000
push dword [0x403aac]
call dword [sym.imp.SETUPAPI.dll_SetupSetDirectoryIdW]
call dword [sym.imp.SETUPAPI.dll_SetupOpenFileQueue]
push 4
push 0x403718
mov edi, str.MiniInstall
push edi
mov ebx, eax
push ebx
xor esi, esi
push esi
push dword [0x403aac]
call dword [sym.imp.SETUPAPI.dll_SetupInstallFilesFromInfSectionW]
push esi
push esi
push esi
push esi
push dword [0x403008]
call dword [sym.imp.SETUPAPI.dll_SetupInitDefaultQueueCallbackEx]
push eax
push 0x40105a
push ebx
push dword [0x403008]
mov dword [ebp - 4], eax
call dword [sym.imp.SETUPAPI.dll_SetupCommitFileQueueW]
push dword [ebp - 4]
call dword [sym.imp.SETUPAPI.dll_SetupTermDefaultQueueCallback]
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseFileQueue]
cmp dword [0x403aa8], esi
jne 0x40111a
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xe
push edi
push dword [0x403aac]
push dword [0x403008]
call dword [sym.imp.SETUPAPI.dll_SetupInstallFromInfSectionW]
push 1
push str.grpconv__o
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401db1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401dbb
repz ret
jmp fcn.00401ed3

Function at 0x406a40
Capabilities:
Encode data using xor

Disassembly:
push ebp
std
push ds
sub esp, 8
lea ecx, [eax + 0x2f]
push esi
push eax
call dword [fcn.00408178]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [0x86c933f6], eax
salc
push esi
or eax, esi
push 0xa
push edx
push ecx
call fcn.0040b590
sub eax, 0x48864000
pop esi
inc esp
ficom dword [esi + 0x4f4a295e]
in eax, 0x10
dec esp
nop
push esp
nop
nop
xor dl, byte [eax - 0x1374aa70]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
xor esi, esi
push es
mov ebx, esp
push cs
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
sbb eax, 0x4d8b8914
or byte [edx + 0x118903e2], bh
xor edx, edx
and byte [edi + 0x51890c50], bl
add al, 0x33
shl byte [esi - 0x75], cl
push eax
sbb dword [ecx - 0x2ddef7af], ecx
xor eax, 0x8908508b
push ecx
or al, 0x33
shl byte [esi - 0x75], cl
push eax
cld
mov dword [ecx + 0x10], edx
xor edx, dword [esi - 0x75]
push eax
cmp eax, 0x145189d1
xor edx, edx
mov dx, word [eax]
sub edx, 0x76c
mov dword [ecx + 0x18], edx
xor edx, edx
je 0x406a79
add al, 0x89
push ecx
sbb al, 0x40
push ecx
adc al, 0x84
mov esi, dword [eax + 6]
mov edx, esp
xchg ebp, eax
inc eax
ret 0x40

Function at 0x40b900
Capabilities:
Encode data using xor

Disassembly:
push esp
mov cl, 0x10
mov eax, dword [esp + 0xc]
sar dword [eax - 0x152e242f], 1
xor ebx, eax
or ebx, dword [esi]
jne 0x40b8c0
div ebx
mov esi, eax
mul edx
jl 0x40b94c
mov ecx, eax
mov bl, 0x24
adc al, 0xf7
pushal
add edx, ecx
jb 0x40b8f4
cmp edx, dword [edx]
and al, 0x39
ja 0x40b8ee
or byte [edx + 7], dh
jb 0x40b8ef
cmp eax, dword [esp + 0xc]
enter 0xffffffffffffae01, 0xffffffffffffffc2
ror byte [ebx + 0x1c5b5ec6], cl
adc byte [eax], al
int3
scasb al, byte es:[edi]
ret 0x8bd2
pop ebx
sbb al, 0x10
add ah, cl
xchg esp, eax
int3
cmp cl, 0x40
jae 0x40b8e5
cmp cl, 0x20
jae 0x40b910
jne 0x40b8b9
rcl bl, 1
arpl bx, ax
mov eax, edx
sub eax, 0x8de180d2
shl dword [edx], cl
ret
inc eax
mov ch, 0x8b
and eax, sym.imp.MSVCRT.dll__controlfp
int3
Function at 0x41057e
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x4105c4
cmp dword [ebp + 0x10], 0
je 0x4105b1
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebp
ret 0xc
Function at 0x4123e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
shr ecx, 1
xor ecx, eax
dec esi
jne 0x4123f0
mov dword [edx*4 + 0x44e9a0], ecx
inc edx
cmp edx, 0x100
jb 0x4123eb
mov esi, 0x800
jmp 0x412437
mov ecx, dword [edx*4 + 0x44e5a0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x44e9a0]
inc edx
mov dword [edx*4 + 0x44e99c], ecx
cmp edx, esi
jb 0x41241b
mov dword [0x44cfa8], 0x412462
call fcn.004155ba
mov ecx, dword [0x44cfa8]
mov edx, 0x4124ff
test eax, eax
cmove ecx, edx
mov dword [0x44cfa8], ecx
pop esi
ret

Function at 0x412ea6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x412eb8
xor eax, eax
jmp 0x412eff
and dword [edi], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x400000
and dword [ebp + 0x10], 0
push 0
lea eax, [ebp + 0x10]
push eax
cmp esi, ecx
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x412f03
test ecx, ecx
je 0x412efc
mov ecx, 0x400000
test esi, esi
jne 0x412ec4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
pop ebx
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x412f85
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x412f97
xor eax, eax
jmp 0x412fde
and dword [edi], 0
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x400000
and dword [ebp + 0x10], 0
push 0
lea eax, [ebp + 0x10]
push eax
cmp esi, ecx
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x412fe2
test ecx, ecx
je 0x412fdb
mov ecx, 0x400000
test esi, esi
jne 0x412fa3
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
pop ebx
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x415452
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
mov esi, dword [esi]
xor edi, edi
and esi, 7
cmp eax, 5
jae 0x415473
xor eax, eax
jmp 0x4155b6
mov edx, dword [ebp + 8]
add dword [ebp + 0x10], 5
push ebx
lea ecx, [eax - 4]
or ebx, 0xffffffff
add ecx, edx
mov dword [ebp + 0xc], ecx
add edx, edi
mov dword [ebp - 8], edx
cmp edx, ecx
jae 0x41549f
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x41549c
inc edx
cmp edx, ecx
jb 0x41548f
mov dword [ebp - 8], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x41559a
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x4154f4
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x4154c7
cmp al, 0xff
jne 0x41551d
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 0x10]
shl ebx, 8
or ebx, eax
cmp dword [ebp + 0x18], 0
je 0x415531
add ebx, edi
add ebx, edx
jmp 0x415535
dec ecx
shl esi, cl
and esi, 7
je 0x4154b7
movzx eax, byte [esi + 0x43e564]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x43e55c], 0
mov al, byte [ecx + 4]
je 0x41551b
test al, al
je 0x41551b
cmp al, 0xff
jne 0x4154b7
mov ebx, edi
and esi, 3
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
jmp 0x415486
sub ebx, edi
sub ebx, edx
mov dword [ebp - 4], ebx
test esi, esi
je 0x41556e
movzx eax, byte [esi + 0x43e564]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x41555a
cmp al, 0xff
jne 0x41556e
push 0x20
xor ebx, ebx
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp - 4]
jmp 0x4154e8
mov edx, dword [ebp - 8]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
shr eax, 8
mov byte [edx + 1], bl
mov ebx, dword [ebp - 0x10]
mov byte [edx + 2], al
add edi, 5
jmp 0x415526
mov edx, edi
sub edx, ebx
xor eax, eax
lea ecx, [edx - 1]
shl esi, cl
pop ebx
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x417347
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push 0x43e5a4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x417423
push ebx
push edi
push connect
push edi
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
jne 0x41738c
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4173ad
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4173b1
xor eax, eax
jmp 0x417422
push 0x100
call fcn.0041daf6
pop ecx
lea ecx, [ebp - 4]
push ecx
push 0x100
mov dword [ebp - 8], eax
push eax
jmp 0x4173f4
cmp dword [ebp - 4], edi
je 0x4173ff
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417402
lea eax, [ebp - 4]
push eax
push 0x100
push dword [ebp - 8]
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4173cb
xor edi, edi
inc edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push dword [ebp - 8]
call fcn.00421948
pop ecx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x417533
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
mov esi, ecx
push 0x12
push dword [esi + 8]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x417563
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.00417427
pop esi
pop ebp
ret 4

Function at 0x417ee7
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x417efe
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
pop ebp
ret 4
Function at 0x418ca5
Capabilities:
Copy file

Disassembly:
push 0x40
mov eax, 0x43c0d7
call fcn.00424059
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
xor edi, edi
call fcn.0041da59
test eax, eax
jle 0x418cd0
lea ecx, [ebp + 8]
call fcn.0041da59
mov edi, eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 0x43e880
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0041da59
inc eax
je 0x418cff
push eax
lea ecx, [ebp - 0x20]
call fcn.00419e68
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp + 8]
call fcn.0041da59
lea eax, [eax*2 + 2]
push eax
lea ecx, [ebp + 8]
call fcn.0041d83c
push eax
push ebx
call fcn.00423960
add esp, 0xc
lea ecx, [ebp + 8]
call fcn.0041da59
inc eax
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
cmp esi, ecx
jae 0x418d45
sub ecx, esi
push ecx
lea ecx, [ebp - 0x20]
call fcn.00419e68
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [ebx + eax*2], cx
cmp edi, 0x104
jl 0x418d5a
xor esi, esi
jmp 0x418e57
and dword [ebp - 0x10], ecx
lea ecx, [ebp + 0x90]
call fcn.0041da59
test eax, eax
jle 0x418d7a
lea ecx, [ebp + 0x90]
call fcn.0041da59
mov dword [ebp - 0x10], eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], 0x43e880
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 3
call fcn.0041da59
inc eax
je 0x418dac
push eax
lea ecx, [ebp - 0x2c]
call fcn.00419e68
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
lea ecx, [ebp + 0x90]
call fcn.0041da59
lea eax, [eax*2 + 2]
push eax
lea ecx, [ebp + 0x90]
call fcn.0041d83c
push eax
push edi
call fcn.00423960
add esp, 0xc
lea ecx, [ebp + 0x90]
call fcn.0041da59
inc eax
mov dword [ebp - 0x14], eax
lea ecx, [eax + 1]
cmp esi, ecx
jae 0x418dfb
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00419e68
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp dword [ebp - 0x10], 0x104
mov word [edi + eax*2], cx
jl 0x418e0e
xor esi, esi
jmp 0x418e50
push 0x1e
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.00424520
mov eax, 0x414
mov word [ebp - 0x3c], ax
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push edi
call fcn.004247f5
pop ecx
push ebx
call fcn.004247f5
pop ecx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0041d7ee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x90]
call fcn.0041d7ee
mov eax, esi
call fcn.00424027
ret