joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e330
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44e379
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x44e7f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4728a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044e3a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044e420
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044e420
lea ecx, [esi + 0xc]
call fcn.00464037
lea ecx, [esi + 0x10]
call fcn.00464037
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044f9b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044f9b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044f9b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004640ac
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004640ac
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x44fba0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44fc06
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44fc06
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44fbe7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x466450
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x466488
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00464507
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004644df
jmp 0x466494
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x467b45
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x467b87
call fcn.0046d6ba
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467b87
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x467b7e
xor eax, eax
jmp 0x467b8f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467b95
pop edi
pop esi
pop ebx
ret 4

Function at 0x46dbea
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46dc18
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46dc36
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046db50
jmp 0x46dc36
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46dc36
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046db50
test edi, edi
mov eax, edi
jne 0x46dc20
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42c284
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call fcn.0042c23f
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0xc]
call fcn.0042c23f
lea eax, [ebp - 0x128]
push eax
call fcn.0042c8de
add esp, 0x14
test al, al
je 0x42c2e6
lea eax, [ebp - 0x230]
push eax
call fcn.0042c8de
test al, al
pop ecx
je 0x42c2d5
cmp byte [ebp + 0x10], 0
jmp 0x42c2e4
lea eax, [ebp - 0x230]
push eax
call fcn.0042c582
pop ecx
test al, al
jne 0x42c2ea
xor al, al
leave
ret
push edi
lea eax, [ebp - 0x128]
push 0x45f9e4
push eax
call fcn.00457a90
lea eax, [ebp - 0x128]
push eax
call fcn.00457cb0
mov byte [ebp + eax - 0x127], 0
lea eax, [ebp - 0x230]
push eax
call fcn.00457cb0
and dword [ebp - 0x20], 0
add esp, 0x10
mov byte [ebp + eax - 0x22f], 0
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop edi
leave
ret
Function at 0x42c368
Capabilities:
Check for time delay via gettickcount
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9a4
push esi
lea eax, [ebp - 0x234]
push eax
push dword [ebp + 8]
call fcn.0042c23f
lea eax, [ebp - 0x584]
push eax
push dword [ebp + 0xc]
call fcn.0042c23f
lea eax, [ebp - 0x234]
push eax
call fcn.0042c8de
add esp, 0x14
test al, al
mov esi, 0x45f9e4
je 0x42c3b7
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.00457a90
pop ecx
pop ecx
lea eax, [ebp - 0x584]
push eax
call fcn.0042c8de
test al, al
pop ecx
je 0x42c3d7
lea eax, [ebp - 0x584]
push esi
push eax
call fcn.00457a90
pop ecx
pop ecx
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x42c3fa
xor eax, eax
jmp 0x42c57f
push ebx
push edi
lea eax, [ebp - 0x9a4]
push eax
lea eax, [ebp - 0x89c]
push eax
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x794]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00441cb7
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x794]
push eax
push str._s_s
lea eax, [ebp - 0x12c]
push 0x105
push eax
call fcn.0040a6d3
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x104
add esp, 0x28
sub esi, eax
and dword [ebp - 4], 0
lea ebx, [ebp + eax - 0x12c]
call edi
sub eax, dword [0x4681ac]
mov ecx, dword [0x465108]
cmp eax, dword [ecx + 0xb0]
jbe 0x42c49f
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x42c498
push 1
push 0xffffffffffffffff
call fcn.0040de6e
pop ecx
pop ecx
call edi
mov dword [0x4681ac], eax
test byte [ebp - 0x47c], 0x10
jne 0x42c559
lea eax, [ebp - 0x450]
push eax
call fcn.00457cb0
cmp eax, esi
pop ecx
ja 0x42c556
lea eax, [ebp - 0x450]
push eax
push ebx
call fcn.00457a80
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x584]
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.0042c65e
add esp, 0x14
cmp byte [ebp + 0x14], 0
je 0x42c535
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x42c559
cmp byte [ebp + 0x10], al
je 0x42c556
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x42c556
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x42c552
xor eax, eax
cmp byte [ebp + 0x10], al
sete al
push eax
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42c559
inc dword [ebp - 4]
lea eax, [ebp - 0x47c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42c463
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4011ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011c1
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011d3
xor eax, eax
jmp 0x401205
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4011f7
cmp esi, eax
jae 0x4011cf
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011e9
cmp esi, eax
jae 0x4011cf
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x401d56
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 4]
xor ebx, ebx
call fcn.00401cac
mov edi, dword [ebp + 0xc]
test edi, edi
jg 0x401d79
mov edi, 0x5fffffff
mov ecx, esi
call fcn.00401cde
test eax, eax
je 0x401def
cmp dword [ebp + 8], 0
je 0x401d93
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x64
push dword [esi + 0x24]
sub edi, 0x64
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401def
test edi, edi
jg 0x401d79
mov eax, dword [esi + 0x24]
test eax, eax
je 0x401dbc
push 0xfffffffffffffff4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x24]
test eax, eax
mov dword [esi + 0x2c], 0
je 0x401dd5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x24], 0
mov esi, dword [ebp - 4]
test esi, esi
je 0x401de6
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esi + 0x18]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
xor ebx, ebx
inc ebx
jmp 0x401dbc
Function at 0x4037b6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov esi, ecx
je 0x40380e
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x40380e
call fcn.00403768
mov ecx, eax
sub ecx, dword [ebp + 0x10]
mov dword [ebp - 4], edi
cmp ebx, ecx
jbe 0x4037e0
mov ebx, ecx
cmp dword [ebp + 0x10], eax
jae 0x40380e
push edi
push edi
push dword [ebp + 0x10]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
jmp 0x403810
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403baf
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x423147
call fcn.00410238
sub esp, 0x5c
mov eax, dword [0x42eb80]
xor eax, ebp
push ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
cmp eax, esi
push edi
mov edi, ecx
je 0x403c87
push eax
lea ecx, [ebp - 0x48]
call fcn.00402827
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], 0xf
call fcn.00401ea0
inc ebx
push ebx
push esi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
mov byte [ebp - 0x4c], 0x5c
call fcn.004038c6
cmp eax, esi
jge 0x403c44
push 0x424588
add edi, 4
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.00402d59
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004024b0
push esi
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401fc9
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040253f
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x403c5f
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x403c6f
cmp eax, 0xffffffff
jne 0x403c71
xor ebx, ebx
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401fc9
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401fc9
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040f6e1
leave
ret 4
Function at 0x404061
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xac
mov eax, dword [0x42eb80]
mov ecx, dword [ebp + 0x7c]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x74]
test eax, eax
push esi
push edi
mov edi, dword [ebp + 0x78]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], ecx
je 0x4042a7
test edi, edi
je 0x4042a7
test ecx, ecx
je 0x4042a7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.unknown_Windows_version
push eax
call esi
and dword [edi], 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4042a7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
push ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x24]
and ebx, 0xffff
push ebx
push eax
push ecx
push str._u._u._u
push dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp dword [ebp - 0x3c], 1
jne 0x4041f0
cmp dword [ebp - 0x38], 4
jne 0x4042a1
cmp dword [ebp - 0x34], 0xa
jae 0x404171
mov eax, 0x3b6
cmp ebx, eax
jne 0x404131
push str.Windows_95
push dword [ebp - 0x30]
call esi
mov dword [edi], 1
jmp 0x4042a1
jbe 0x404150
cmp ebx, 0x438
ja 0x404158
push str.Windows_95_SP1
push dword [ebp - 0x30]
call esi
mov dword [edi], 2
jmp 0x4042a1
cmp ebx, 0x438
jbe 0x40416d
push str.Windows_95_OSR2
push dword [ebp - 0x30]
call esi
mov dword [edi], 3
jmp 0x4042a1
cmp dword [ebp - 0x34], 0xa
jne 0x4041d1
mov eax, 0x7ce
cmp ebx, eax
jne 0x404191
push str.Windows_98
push dword [ebp - 0x30]
call esi
mov dword [edi], 4
jmp 0x4042a1
jbe 0x4041b0
cmp ebx, 0x887
jae 0x4041bc
push str.Windows_98_SP1
push dword [ebp - 0x30]
call esi
mov dword [edi], 5
jmp 0x4042a1
cmp ebx, 0x887
jb 0x4042a1
push str.Windows_98_SE
push dword [ebp - 0x30]
call esi
mov dword [edi], 6
jmp 0x4042a1
cmp dword [ebp - 0x34], 0x5a
jne 0x4042a1
push str.Windows_ME
push dword [ebp - 0x30]
call esi
mov dword [edi], 7
jmp 0x4042a1
cmp dword [ebp - 0x3c], 2
jne 0x40428b
cmp dword [ebp - 0x38], 3
jne 0x40421f
cmp dword [ebp - 0x34], 0x33
jne 0x4042a1
push str.Windows_NT_3.51
push dword [ebp - 0x30]
call esi
mov dword [edi], 0x65
jmp 0x4042a1
cmp dword [ebp - 0x38], 4
jne 0x40423d
cmp dword [ebp - 0x34], 0
jne 0x4042a1
push str.Windows_NT_4
push dword [ebp - 0x30]
call esi
mov dword [edi], 0x66
jmp 0x4042a1
cmp dword [ebp - 0x38], 5
jne 0x4042a1
cmp dword [ebp - 0x34], 0
jne 0x40425b
push str.Windows_2000
push dword [ebp - 0x30]
call esi
mov dword [edi], 0x67
jmp 0x4042a1
cmp dword [ebp - 0x34], 1
jne 0x404273
push str.Windows_XP
push dword [ebp - 0x30]
call esi
mov dword [edi], 0x68
jmp 0x4042a1
cmp dword [ebp - 0x34], 2
jne 0x4042a1
push str.Windows_2003_Server
push dword [ebp - 0x30]
call esi
mov dword [edi], 0x69
jmp 0x4042a1
cmp dword [ebp - 0x3c], 3
jne 0x4042a1
push str.Windows_CE
push dword [ebp - 0x30]
call esi
mov dword [edi], 0xc9
xor eax, eax
inc eax
pop ebx
jmp 0x4042a9
xor eax, eax
mov ecx, dword [ebp + 0x68]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f6e1
add ebp, 0x6c
leave
ret
Function at 0x4044b1
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov eax, 0x4231c5
call fcn.00410238
sub esp, 0x28
mov eax, dword [0x42eb80]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
xor eax, ebp
cmp dword [esi + 4], 0xffffffff
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x30], esi
jne 0x40466d
xor edi, edi
push edi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x4044f9
xor eax, eax
jmp 0x404672
push 4
lea ecx, [ebp - 0x34]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 0x34], 0x2710
call dword [sym.imp.WS2_32.dll_setsockopt]
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040173a
mov dword [ebp - 4], edi
call fcn.0041cce2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 0xc]
cmp bx, di
mov byte [ebp - 4], 1
jne 0x4045c6
push edi
push 0x3a
lea ecx, [ebp - 0x28]
call fcn.004043a4
mov esi, eax
cmp esi, edi
jle 0x4045b8
push esi
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404425
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00401626
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401237
inc esi
push esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040448e
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401488
push eax
call fcn.00410e11
pop ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.00401237
mov esi, dword [ebp - 0x30]
jmp 0x4045d2
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401626
jmp 0x4045b3
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401626
cmp bx, di
jne 0x4045da
push 0x50
pop ebx
push ebx
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], edi
jge 0x4045fd
push 0x80070057
call fcn.00401193
movsx eax, byte [eax]
cmp eax, 0x2f
jle 0x40461f
cmp eax, 0x3a
jge 0x40461f
push edi
lea ecx, [ebp - 0x24]
call fcn.00401488
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
jmp 0x40463f
push edi
lea ecx, [ebp - 0x24]
call fcn.00401488
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
je 0x40463c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x40461a
mov dword [ebp - 0x1c], edi
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp - 0x24]
mov esi, eax
neg esi
sbb esi, esi
add ecx, 0xfffffff0
inc esi
call fcn.00401237
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401237
jmp 0x404670
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f6e1
leave
ret 8
Function at 0x4048d1
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x42eb80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
xor esi, esi
push esi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x404908
push 4
pop eax
jmp 0x404966
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x44]
push str.Agent_ld
push eax
call fcn.004102bf
add esp, 0xc
test byte [ebp - 0x50], 4
push esi
push esi
lea eax, [ebp - 0x44]
push esi
jne 0x404931
push 4
jmp 0x404932
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, esi
je 0x404962
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push edi
call fcn.0040468d
add esp, 0x18
push edi
mov esi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
jmp 0x404965
push 4
pop eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f6e1
leave
ret

Function at 0x4049d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push str.ppstreamvod_
push connect
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x404a4e
and dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0x4244fc
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404a45
cmp dword [ebp - 4], 2
je 0x404a27
cmp dword [ebp - 4], 1
jne 0x404a45
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
push esi
mov byte [eax + esi], 0
call fcn.00402716
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x404a50
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret 4
Function at 0x405950
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 4]
lea eax, [esi + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x405a4a
push ebx
lea ebx, [edi + 1]
push ebx
call fcn.0041cde7
push ebx
push 0
push eax
mov dword [esi], eax
call fcn.0040f650
add esp, 0x10
push dword [esi]
lea eax, [esi + 0x28]
push edi
push dword [ebp - 4]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
pop ebx
je 0x405a4a
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call fcn.0040585b
test eax, eax
je 0x405a4a
mov eax, dword [ebp - 0x30]
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0xa], ax
mov eax, dword [ebp - 0x2c]
mov word [esi + 8], cx
mov ecx, eax
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
shr ecx, 0x10
mov word [esi + 0xc], cx
mov ecx, eax
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
shr ecx, 0x10
mov word [esi + 0x16], ax
mov word [esi + 0x10], cx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
shr ecx, 0x10
lea eax, [esi + 0x230]
push eax
mov word [esi + 0x14], cx
push str.CompanyName
mov ecx, esi
call fcn.0040589b
lea eax, [esi + 0x640]
push eax
push str.FileDescription
mov ecx, esi
call fcn.0040589b
lea eax, [esi + 0x438]
push eax
push str.ProductName
mov ecx, esi
call fcn.0040589b
xor eax, eax
inc eax
jmp 0x405a4c
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x406c47
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
call fcn.004068e9
mov eax, dword [esi + 0x308]
cmp word [eax], 0x5a4d
jne 0x406cb8
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esi + 0x30c], eax
cmp dword [eax], 0x4550
jne 0x406cb8
mov ecx, esi
call fcn.00406b9d
mov dword [esi + 0x310], eax
mov eax, dword [esi + 0x30c]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x406c97
mov ecx, dword [esi + 0x308]
add ecx, eax
mov dword [esi + 0x314], ecx
mov eax, dword [esi + 0x30c]
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0x314]
mov dword [esi + 0x318], eax
lea eax, [eax + eax*8]
lea eax, [ecx + eax*2]
mov dword [esi + 0x31c], eax
pop esi
ret

Function at 0x406cba
Capabilities:
Read file via mapping

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0040690a
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push connect
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x300], eax
je 0x406d13
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x304], eax
je 0x406d13
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x308], eax
pop edi
pop esi
ret 4