joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a1d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ecx]
sub esp, 0x140
push ebx
push esi
xor esi, esi
test ax, ax
push edi
mov edx, ecx
je 0x403a48
movzx eax, ax
cmp ax, 3
je 0x403a50
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x403a38
cmp word [edx], 3
je 0x403a50
xor edx, edx
test edx, edx
je 0x403a60
call fcn.0040be2a
mov dword [ebp - 4], eax
mov ebx, ecx
jmp 0x403a78
lea ebx, [ebp - 0x40]
mov eax, ebx
push eax
mov edx, str.yA36zA48dEhfrvghGRg57h5UlDv3
mov dword [ebp - 4], 0x1c
call fcn.00405a2e
pop ecx
mov ecx, dword [ebp + 8]
call fcn.0040be2a
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp edi, 0xff
jge 0x403ae5
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x140]
call fcn.0040bcf9
test al, al
je 0x403ae5
dec edi
xor ecx, ecx
xor esi, esi
test edi, edi
jle 0x403adb
cmp esi, dword [ebp - 4]
jne 0x403ab1
xor esi, esi
mov al, byte [ebx + esi*2]
xor al, byte [ebp + ecx - 0x13f]
mov dl, byte [ebp + ecx - 0x140]
cmp al, dl
jae 0x403ac8
dec al
sub al, dl
mov edx, dword [ebp + 8]
movzx ax, al
mov word [edx + ecx*2], ax
inc ecx
inc esi
cmp ecx, edi
jl 0x403aaa
mov eax, dword [ebp + 8]
and word [eax + ecx*2], 0
mov esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403d8c
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push ebx
push esi
push edi
push 8
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.0040b963
lea eax, [ebp - 0x70]
push eax
mov edx, str.SOFTWAREFlashFXP3
call fcn.00405a2e
pop ecx
lea eax, [ebp - 0x30]
push eax
mov edx, str.datafolder
call fcn.00405a2e
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x70]
push eax
lea edi, [ebp - 0x278]
mov eax, 0x80000002
call fcn.0040875e
add esp, 0xc
cmp eax, 0xffffffff
je 0x403e11
cmp eax, ebx
jbe 0x403e11
push esi
lea eax, [ebp - 0x480]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00403aec
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x403e86
lea eax, [ebp - 0x48]
push eax
mov edx, str.flashfxp
call fcn.00405a2e
lea eax, [ebp - 0x48]
pop ecx
mov dword [ebp - 0x18], 0x23
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x26
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x278]
push eax
push ebx
push ebx
push dword [ebp + esi*4 - 0x18]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x403e7d
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x403b53
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00408517
add esp, 0x24
inc esi
cmp esi, 3
jb 0x403e42
cmp dword [ebp - 4], ebx
jbe 0x403e92
mov esi, dword [ebp - 8]
call fcn.004039e4
jmp 0x403e9b
push dword [ebp - 8]
call fcn.0040b900
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403ea0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
imul eax, eax, 0x8088405
push 0x20
push 0
push dword [esp + 0xc]
inc eax
push 0
push eax
mov dword [ecx], eax
call fcn.0040889f
push edx
push eax
call fcn.00408870
ret
Function at 0x403ec3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x108
push ebx
push esi
push edi
call fcn.0040be2a
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x403fe8
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
call fcn.0040bcf9
test al, al
je 0x403fe8
sub esi, 4
xor ebx, ebx
test esi, esi
mov dword [ebp - 4], 0xcf671
jle 0x403f30
push 8
lea ecx, [ebp - 4]
lea edi, [ebp + ebx - 0x108]
call fcn.00403ea0
pop ecx
movsx ecx, al
mov al, byte [edi]
rol al, cl
inc ebx
cmp ebx, esi
mov byte [edi], al
jl 0x403f10
mov dword [ebp - 4], 0x3039
mov dword [ebp - 8], 0x100
push esi
lea ecx, [ebp - 4]
call fcn.00403ea0
pop ecx
push esi
lea ecx, [ebp - 4]
movsx edi, al
call fcn.00403ea0
dec dword [ebp - 8]
pop ecx
movsx ecx, al
lea ecx, [ebp + ecx - 0x108]
mov bl, byte [ecx]
lea eax, [ebp + edi - 0x108]
mov dl, byte [eax]
mov byte [eax], bl
mov byte [ecx], dl
jne 0x403f3e
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xa564
jle 0x403f9a
push 0x100
lea ecx, [ebp - 4]
call fcn.00403ea0
xor byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x403f80
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xd431
jle 0x403fc1
push 0x100
lea ecx, [ebp - 4]
call fcn.00403ea0
sub byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x403fa7
xor eax, eax
test esi, esi
jle 0x403fdc
movzx cx, byte [ebp + eax - 0x108]
mov edx, dword [ebp + 8]
mov word [edx + eax*2], cx
inc eax
cmp eax, esi
jl 0x403fc7
mov eax, dword [ebp + 8]
and word [eax + esi*2], 0
mov eax, esi
jmp 0x403fea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404036
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x20002
push 8
push dword [0x4253c8]
call edi
mov ebx, eax
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0x14], ebx
je 0x404206
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffff
push ebx
push eax
push eax
push eax
call esi
test eax, eax
jbe 0x4041ff
lea ecx, [eax + 1]
mov eax, ebx
call fcn.0040bf3b
test al, al
je 0x4041ff
push 0xc0c
push 8
push dword [0x4253c8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x4041ff
lea eax, [edi + 0x3fc]
mov dword [ebp - 8], eax
add eax, 0x1fe
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x74]
push eax
mov edx, str.connections
mov dword [ebp - 4], ebx
call fcn.00405a2e
pop ecx
lea eax, [ebp - 0x34]
push eax
mov edx, str.default
call fcn.00405a2e
pop ecx
lea eax, [ebp - 0x24]
push eax
mov edx, 0x40f284
call fcn.00405a2e
pop ecx
lea eax, [ebp - 0x48]
push eax
mov edx, str.username
call fcn.00405a2e
pop ecx
lea eax, [ebp - 0x5c]
push eax
mov edx, str.password
call fcn.00405a2e
pop ecx
mov ebx, 0xff
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4041df
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4041df
push dword [ebp + 8]
push ebx
push edi
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jbe 0x4041df
push dword [ebp + 8]
lea eax, [edi + 0x1fe]
push ebx
push eax
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jbe 0x4041df
push dword [ebp + 8]
lea eax, [ebp - 0x5c]
push ebx
push dword [ebp - 8]
push 0
push eax
push dword [ebp - 4]
call esi
test eax, eax
jbe 0x4041df
push dword [ebp - 8]
call fcn.00403ec3
test eax, eax
pop ecx
jle 0x4041df
lea eax, [ebp - 0x94]
push eax
mov edx, str.ftp:___s:_s__s_n
call fcn.00405a2e
pop ecx
push edi
push dword [ebp - 8]
mov edi, dword [ebp - 0xc]
push dword [ebp - 0x18]
lea eax, [ebp - 0x94]
push eax
mov edx, 0x307
call fcn.0040bebf
add esp, 0x10
test eax, eax
jle 0x4041dc
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0040bad1
test al, al
pop ecx
je 0x4041dc
inc dword [edi + 4]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
push 1
call fcn.0040bf5b
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x404114
push edi
call fcn.0040b900
mov ebx, dword [ebp - 0x14]
pop ecx
push ebx
call fcn.0040b900
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40425c
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push ebx
push esi
push edi
push 8
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.0040b963
lea eax, [ebp - 0x100]
mov ebx, str.SOFTWAREGhislerTotal_Commander
push eax
mov edx, ebx
call fcn.00405a2e
pop ecx
lea eax, [ebp - 0x6c]
push eax
mov edx, str.ftpininame
call fcn.00405a2e
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x100]
push eax
lea edi, [ebp - 0x308]
mov eax, 0x80000001
call fcn.0040875e
add esp, 0xc
cmp eax, 0xffffffff
je 0x4042f5
test eax, eax
jbe 0x4042f5
push esi
lea eax, [ebp - 0x510]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x510]
push eax
call fcn.00404036
pop ecx
pop ecx
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 8], 0
jne 0x40444a
lea eax, [ebp - 0x40]
push eax
mov edx, str.totalcmd
call fcn.00405a2e
pop ecx
lea eax, [ebp - 0x9c]
push eax
mov edx, str.totalcommander
call fcn.00405a2e
pop ecx
lea eax, [ebp - 0x54]
push eax
mov edx, str.ghisler
call fcn.00405a2e
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x54]
pop ecx
mov dword [ebp - 0x28], 0x24
mov dword [ebp - 0x24], 0x1a
mov dword [ebp - 0x20], 0x26
mov dword [ebp - 0x1c], 0x23
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edi, dword [ebp + eax*4 - 0x28]
lea eax, [ebp - 0x308]
push eax
xor eax, eax
push eax
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4043cb
cmp edi, 0x24
jne 0x4043a6
xor edi, edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.00403fef
add esp, 0xc
mov word [ebp - 0x302], di
jmp 0x4043a8
xor edi, edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x40420b
push 2
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.00408517
add esp, 0x24
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jb 0x404364
cmp dword [ebp - 8], 0
jne 0x40444a
lea eax, [ebp - 0xb8]
push eax
mov edx, ebx
call fcn.00405a2e
pop ecx
lea eax, [ebp - 0x40]
push eax
mov edx, str.installdir
call fcn.00405a2e
pop ecx
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xb8]
push eax
lea edi, [ebp - 0x308]
mov eax, 0x80000001
call fcn.0040875e
add esp, 0xc
cmp eax, 0xffffffff
je 0x404446
test eax, eax
jbe 0x404446
push esi
lea eax, [ebp - 0x510]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x510]
push eax
call fcn.00403fef
add esp, 0xc
cmp dword [ebp - 8], 0
jbe 0x404456
mov esi, dword [ebp - 0xc]
call fcn.004039e4
jmp 0x40445f
push dword [ebp - 0xc]
call fcn.0040b900
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404733
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
lea eax, [ebp - 0x30]
push edi
push eax
mov edx, str.filezilla
call fcn.00405a2e
pop ecx
lea eax, [ebp - 0x30]
push 8
mov dword [ebp - 0xc], eax
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x18], 0x26
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x23
call fcn.0040b963
xor edi, edi
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push dword [ebp + edi*4 - 0x18]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4047b3
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x404464
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00408517
add esp, 0x24
inc edi
cmp edi, 3
jb 0x404778
cmp dword [ebp - 4], esi
jbe 0x4047c8
mov esi, dword [ebp - 8]
call fcn.004039e4
jmp 0x4047d1
push dword [ebp - 8]
call fcn.0040b900
pop ecx
pop edi
pop esi
leave
ret

Function at 0x4047d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push 0xff
push edi
lea eax, [ebp - 0x100]
push eax
call fcn.0040b93c
mov cl, byte [ebp - 0xff]
xor cl, byte [ebp - 0x100]
mov dl, byte [ebp - 0xfe]
or cl, 0x50
xor eax, eax
test dl, dl
mov byte [ebp - 2], 0
je 0x404829
push esi
lea esi, [ebp - 0xfe]
xor dl, cl
movzx dx, dl
mov word [edi + eax*2], dx
inc eax
inc esi
mov dl, byte [esi]
test dl, dl
jne 0x404816
pop esi
and word [edi + eax*2], 0
leave
ret
Function at 0x404aaf
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov ecx, edi
call fcn.0040be2a
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x404b61
lea ecx, [ebp - 0x100]
mov eax, edi
call fcn.0040bcf9
test al, al
je 0x404b61
xor eax, eax
test esi, esi
jle 0x404af8
xor byte [ebp + eax - 0x100], 0x5c
inc eax
cmp eax, esi
jl 0x404aeb
mov bl, byte [ebp - 0x100]
cmp bl, 0xff
jne 0x404b11
mov bl, byte [ebp - 0xfe]
lea eax, [ebp - 0xfd]
jmp 0x404b17
lea eax, [ebp - 0xff]
movzx ecx, byte [eax]
lea ecx, [eax + ecx + 1]
movzx eax, bl
lea edx, [eax + ecx]
lea esi, [ebp + esi - 0x100]
cmp edx, esi
ja 0x404b61
cmp eax, dword [ebp + 8]
jl 0x404b61
cmp byte [ebp - 0x100], 0xff
jne 0x404b43
add ecx, dword [ebp + 8]
sub bl, byte [ebp + 8]
movzx eax, bl
xor edx, edx
test eax, eax
jle 0x404b5a
movzx si, byte [edx + ecx]
mov word [edi + edx*2], si
inc edx
cmp edx, eax
jl 0x404b4c
and word [edi + eax*2], 0
jmp 0x404b63
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x4050de
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push esi
lea eax, [ebp - 0x38]
push edi
push eax
mov edx, str.ftpcommander
call fcn.00405a2e
pop ecx
lea eax, [ebp - 0x38]
push 8
mov dword [ebp - 0xc], eax
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x18], 0x26
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x23
call fcn.0040b963
xor edi, edi
lea eax, [ebp - 0x240]
push eax
push esi
push esi
push dword [ebp + edi*4 - 0x18]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40515e
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x404e18
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00408517
add esp, 0x24
inc edi
cmp edi, 3
jb 0x405123
cmp dword [ebp - 4], esi
jbe 0x405173
mov esi, dword [ebp - 8]
call fcn.004039e4
jmp 0x40517c
push dword [ebp - 8]
call fcn.0040b900
pop ecx
pop edi
pop esi
leave
ret
Function at 0x405782
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
push ebx
push esi
push edi
push 8
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.0040b963
lea eax, [ebp - 0x128]
push eax
mov edx, str.SOFTWARE_smartftpclient_2.0_settingsgeneral_favorites
call fcn.00405a2e
lea eax, [ebp - 0xb8]
push eax
mov edx, str.SOFTWARE_smartftpclient_2.0_settings_backup
call fcn.00405a2e
lea eax, [ebp - 0x54]
push eax
mov edx, str.personal_favorites
call fcn.00405a2e
lea eax, [ebp - 0x2c]
push eax
mov edx, str.folder
call fcn.00405a2e
lea eax, [ebp - 0x128]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
mov ebx, 0x104
push ebx
push dword [ebp + esi - 0x14]
lea edi, [ebp - 0x330]
push dword [ebp + esi - 0x1c]
mov eax, 0x80000001
call fcn.0040875e
add esp, 0xc
cmp eax, 0xffffffff
je 0x40584f
test eax, eax
jbe 0x40584f
push ebx
lea eax, [ebp - 0x538]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x538]
push eax
call fcn.004054c7
pop ecx
pop ecx
add esi, 4
dec dword [ebp - 4]
jne 0x405807
cmp dword [ebp - 8], 0
jbe 0x405867
mov esi, dword [ebp - 0xc]
call fcn.004039e4
jmp 0x405870
push dword [ebp - 0xc]
call fcn.0040b900
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4070b9
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040d080
push ebx
push edi
push 0x400
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call fcn.0040596e
pop ecx
xor ebx, ebx
inc eax
xor ecx, ecx
cmp esi, ebx
je 0x40710c
cmp eax, ebx
jbe 0x40710c
mov byte [ebp - 0x804], bl
cmp word [esi + ecx*2], bx
mov dl, byte [esi + ecx*2]
mov byte [ebp + ecx - 0x804], dl
je 0x40710c
inc ecx
cmp ecx, eax
jb 0x4070f7
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407133
xor eax, eax
jmp 0x407158
push ebx
lea eax, [ebp - 4]
push eax
push esi
call fcn.0040596e
pop ecx
push eax
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x40715c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40718f
xor eax, eax
jmp 0x4071c4
push edi
push dword [ebp + 0x14]
call fcn.0040596e
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
leave
ret

Function at 0x407473
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x407485
xor eax, eax
pop esi
ret
push esi
push esi
push esi
push 1
push esi
call dword [sym.imp.WININET.dll_InternetOpenW]
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [0x4114e4], eax
pop esi
mov eax, ecx
ret
Function at 0x4075b6
Capabilities:
Clear file content
Delete file
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
sub esp, 0x818
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4075f8
mov eax, dword [ebp + 0x10]
or dword [eax], 1
xor eax, eax
jmp 0x4076c5
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov edi, dword [ebp + 0x10]
jne 0x407615
push dword [ebp - 4]
or dword [edi], 2
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
push ebx
push 0x80000000
push ebx
push ebx
push dword [ebp + 8]
push dword [0x4114e4]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x10], esi
jne 0x407644
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 4
jmp 0x4076c1
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
lea eax, [ebp - 8]
push eax
mov edi, 0x800
push edi
lea eax, [ebp - 0x818]
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x407697
cmp dword [ebp - 8], ebx
je 0x4076a1
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x818]
push eax
push dword [ebp - 0x10]
call esi
cmp eax, 1
mov dword [ebp - 0xc], eax
je 0x40766b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
je 0x4076c3
mov eax, dword [ebp + 0x10]
or dword [eax], 4
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x407b36
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push edi
xor esi, esi
push esi
mov edi, 0x80
push edi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x407c81
push esi
push edi
push 2
push esi
push esi
push 0xc0000000
push dword [ebp + 0xc]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x407b8c
push 2
pop eax
jmp 0x407c84
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x407c81
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push dword [ebp - 0xc]
call ebx
test eax, eax
je 0x407c81
cmp dword [ebp - 8], edi
jne 0x407c81
push esi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push esi
push esi
push dword [ebp - 4]
call edi
push esi
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x14]
push esi
push esi
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call edi
push esi
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call ebx
call fcn.00405ca3
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, dword [ebp - 0x140]
push esi
push esi
push dword [ebp - 0x10]
push dword [ebp - 4]
lea eax, [eax + edx - 0x1f4]
mov dword [ebp - 0x140], eax
call edi
push esi
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
jmp 0x407c84
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407c89
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1000
call fcn.0040d080
push ebx
push esi
push edi
mov ebx, 0x400
push ebx
lea eax, [esp + 0x10]
push eax
xor edi, edi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esp + 0x1010], edi
je 0x407ccf
push dword [esp + 0x1010]
lea eax, [esp + 0x10]
push eax
call fcn.00407b36
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x407d43
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea eax, [esp + 0x814]
push eax
push dword [esi*4 + 0x411044]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x810]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00407b36
test eax, eax
pop ecx
pop ecx
je 0x407d4d
cmp eax, 1
jne 0x407d19
push 4
call ebp
lea eax, [eax + edi + 0xf4240]
push eax
push 4
jmp 0x407d2c
cmp eax, 2
jne 0x407d34
push 4
call ebp
lea eax, [eax + edi + 0xf4240]
push eax
push 5
call fcn.0040aa55
add esp, 0xc
inc esi
add edi, 0xf4240
cmp esi, 2
jl 0x407cd6
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1000
ret
lea eax, [esi + 1]
jmp 0x407d42

Function at 0x407d52
Capabilities:
Create process on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0040d000
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x24
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop esi
jne 0x407d8a
leave
ret
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
leave
ret

Function at 0x407fa6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040d080
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x2000]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407fdc
lea edx, [ebp - 0x2000]
call fcn.00407458
jmp 0x407fea
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, str.System.log
lea eax, [ebp - 0x2000]
call fcn.00405a0a
cmp dword [ebp + 8], edi
push 4
pop eax
je 0x408005
push 3
pop eax
push edi
push 2
push eax
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
mov dword [0x4110b0], eax
pop esi
mov eax, ecx
leave
ret