joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401eb0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41227b
mov eax, dword fs:[0]
push eax
sub esp, 0xdcc
mov eax, dword [0x4170e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xc90]
mov dword [ebp - 0xdd4], ecx
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401ef0
lea eax, [ebp - 0xc90]
push eax
lea ecx, [ebp - 0x890]
push str._supdates.
push ecx
call fcn.00404d80
add esp, 0xc
lea edx, [ebp - 0xdd0]
push edx
lea eax, [ebp - 0x890]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4020e6
test esi, esi
je 0x4020e6
mov dword [ebp - 0xdd8], esi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 4], 0
nop
mov ecx, 0x413424
lea eax, [ebp - 0xda4]
jmp 0x401f60
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401f80
test dl, dl
je 0x401f7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401f80
add eax, 2
add ecx, 2
test dl, dl
jne 0x401f60
xor eax, eax
jmp 0x401f85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4020c6
mov ecx, 0x413420
lea eax, [ebp - 0xda4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401fb8
test dl, dl
je 0x401fb4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401fb8
add eax, 2
add ecx, 2
test dl, dl
jne 0x401f98
xor eax, eax
jmp 0x401fbd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4020c6
lea ecx, [ebp - 0xda4]
push ecx
lea edx, [ebp - 0xc90]
push edx
lea eax, [ebp - 0x890]
push str._supdates_s
push eax
call fcn.00404d80
add esp, 0x10
test byte [ebp - 0xdd0], 0x10
je 0x40208a
lea ecx, [ebp - 0xda4]
push ecx
lea edx, [ebp - 0x90]
push str.___s__
push edx
call fcn.00404d80
push 0x400
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.004031c3
add esp, 0x18
test eax, eax
jne 0x40204d
lea edx, [ebp - 0xda4]
push edx
lea eax, [ebp - 0xc90]
push eax
lea ecx, [ebp - 0x490]
push str._s_s
push ecx
call fcn.00404d80
add esp, 0x10
lea edx, [ebp - 0x490]
push edx
call fcn.004027ad
add esp, 4
test eax, eax
jne 0x40206f
lea eax, [ebp - 0x490]
push eax
call fcn.0040275a
add esp, 4
lea ecx, [ebp - 0x490]
push ecx
mov ecx, dword [ebp - 0xdd4]
lea edx, [ebp - 0x890]
push edx
call fcn.00401ce0
jmp 0x4020c6
lea eax, [ebp - 0xda4]
push eax
lea ecx, [ebp - 0xc90]
push ecx
lea edx, [ebp - 0x490]
push str._s_s
push edx
call fcn.00404d80
mov eax, dword [ebp - 0xdd4]
push eax
lea ecx, [ebp - 0x490]
push ecx
lea edx, [ebp - 0x890]
push edx
call fcn.004028b2
add esp, 0x1c
lea eax, [ebp - 0xdd0]
push eax
push esi
call edi
test eax, eax
jne 0x401f50
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0xc90]
push ecx
lea edx, [ebp - 0x890]
push str._supdates
push edx
call fcn.00404d80
lea eax, [ebp - 0x890]
push eax
call fcn.00402891
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404d71
mov esp, ebp
pop ebp
ret 4
Function at 0x402130
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4122bb
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x4170e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 0x410]
push str._s.ap
push eax
mov ebx, ecx
call fcn.00404d80
add esp, 0xc
lea ecx, [ebp - 0x550]
push ecx
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4021f8
test edi, edi
je 0x4021f8
mov dword [ebp - 0x554], edi
mov dword [ebp - 4], 0
test byte [ebp - 0x550], 0x10
jne 0x4021d8
lea eax, [ebp - 0x524]
push eax
push esi
lea ecx, [ebp - 0x410]
push str._s_s
push ecx
call fcn.00404d80
push ebx
lea edx, [ebp - 0x410]
push 0
push edx
call fcn.004028b2
add esp, 0x1c
lea eax, [ebp - 0x550]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4021a4
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
lea ecx, [ebp - 0x410]
push str._s_rzx1002_09.dll
push ecx
call fcn.00404d80
push ebx
lea edx, [ebp - 0x410]
push 0
push edx
call fcn.004028b2
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404d71
mov esp, ebp
pop ebp
ret 4

Function at 0x402673
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x548
mov eax, 0x4122ee
call fcn.004053b1
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x410]
push str._s
push eax
call fcn.00404d80
add esp, 0xc
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402743
mov dword [ebp - 0x554], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x524]
push 0x413424
push eax
call fcn.004052c0
pop ecx
pop ecx
test eax, eax
je 0x402726
lea eax, [ebp - 0x524]
push 0x413420
push eax
call fcn.004052c0
pop ecx
pop ecx
test eax, eax
je 0x402726
test byte [ebp - 0x550], 0x10
je 0x40274b
lea eax, [ebp - 0x524]
push eax
push edi
lea eax, [ebp - 0x410]
push str._s_s
push eax
call fcn.00404d80
lea eax, [ebp - 0x410]
push eax
call fcn.00402673
add esp, 0x14
test al, al
je 0x40274b
lea eax, [ebp - 0x550]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4026c3
test esi, esi
je 0x402743
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
call fcn.004053fb
ret
test esi, esi
je 0x402756
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x402745

Function at 0x40278f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4027a9
test al, 0x10
jne 0x4027a9
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4027ad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4027c7
test al, 0x10
je 0x4027c7
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4027d9
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4170e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x40282f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
test edi, edi
je 0x402826
push 5
push 0
push edi
call esi
push 5
push edi
push ebx
call esi
pop esi
jmp 0x402841
push str.wininit.ini
push edi
push ebx
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00404d71
leave
ret
Function at 0x4028b2
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc50
mov eax, dword [0x4170e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc50], ebx
mov dword [ebp - 0xc48], esi
test ebx, ebx
je 0x402afd
and dword [ebp - 0xc4c], 0
test esi, esi
jne 0x40291f
push 0x400
lea eax, [ebp - 0xc44]
push esi
push eax
call fcn.00404e10
lea eax, [ebp - 0xc44]
push eax
call fcn.00403257
lea eax, [ebp - 0xc44]
add esp, 0x10
mov dword [ebp - 0xc48], eax
mov esi, eax
push esi
call fcn.00405230
cmp byte [esi + eax - 1], 0x5c
pop ecx
jne 0x402937
mov dword [ebp - 0xc4c], 1
push ebx
call fcn.0040278f
pop ecx
test eax, eax
je 0x402afd
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
test edi, edi
jne 0x402959
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40295f
push 0xb
push edi
push ebx
call esi
test eax, eax
jne 0x402afd
mov ebx, 0x3ff
push ebx
push eax
mov byte [ebp - 0x844], al
lea eax, [ebp - 0x843]
push eax
call fcn.00404e10
push ebx
xor ebx, ebx
lea eax, [ebp - 0x443]
push ebx
push eax
mov byte [ebp - 0x444], 0
call fcn.00404e10
add esp, 0x18
cmp edi, ebx
je 0x402a03
push edi
call fcn.0040278f
pop ecx
test eax, eax
je 0x4029f8
push edi
lea eax, [ebp - 0x444]
push str._s.bak
push eax
call fcn.00404d80
add esp, 0xc
push 0x5c
push edi
call fcn.00404960
pop ecx
pop ecx
cmp dword [ebp - 0xc4c], ebx
je 0x4029d1
inc eax
push eax
push dword [ebp - 0xc48]
lea eax, [ebp - 0x844]
push str._s_s.bak
push eax
call fcn.00404d80
add esp, 0x10
push 0xb
lea eax, [ebp - 0x444]
push eax
push edi
call esi
push 0xb
push edi
push dword [ebp - 0xc50]
jmp 0x402a56
mov edi, dword [ebp - 0xc50]
push edi
lea eax, [ebp - 0x444]
push str._s.bak
push eax
call fcn.00404d80
add esp, 0xc
push 0x5c
push edi
call fcn.00404960
pop ecx
pop ecx
cmp dword [ebp - 0xc4c], ebx
je 0x402a31
inc eax
push eax
push dword [ebp - 0xc48]
lea eax, [ebp - 0x844]
push str._s_s.bak
push eax
call fcn.00404d80
add esp, 0x10
push 0xb
lea eax, [ebp - 0x444]
push eax
push edi
call esi
cmp byte [ebp - 0x844], bl
je 0x402afd
cmp byte [ebp - 0x444], bl
je 0x402afd
lea eax, [ebp - 0x444]
push eax
call fcn.0040278f
pop ecx
test eax, eax
je 0x402afd
push 0
call fcn.00405106
push 0x3f
mov edi, eax
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], bl
call fcn.00404e10
push edi
lea eax, [ebp - 0x44]
push 0x413534
push eax
call fcn.00404d80
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x844]
push eax
call fcn.00406d60
add esp, 0x24
push 0xb
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x444]
push eax
call esi
test eax, eax
lea eax, [ebp - 0x844]
jne 0x402af3
push str..bak
push eax
call fcn.00406d60
mov eax, ebx
pop ecx
inc ebx
pop ecx
cmp eax, 0xa
jl 0x402abc
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.004027d9
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404d71
leave
ret
Function at 0x402b0c
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x544
mov eax, dword [0x4170e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 0x404]
push str._s
push eax
call fcn.00404d80
add esp, 0xc
lea eax, [ebp - 0x544]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402beb
lea eax, [ebp - 0x518]
push 0x413424
push eax
call fcn.004052c0
pop ecx
pop ecx
test eax, eax
je 0x402bc7
lea eax, [ebp - 0x518]
push 0x413420
push eax
call fcn.004052c0
pop ecx
pop ecx
test eax, eax
je 0x402bc7
lea eax, [ebp - 0x518]
push eax
push esi
lea eax, [ebp - 0x404]
push str._s_s
push eax
call fcn.00404d80
add esp, 0x10
test byte [ebp - 0x544], 0x10
lea eax, [ebp - 0x404]
je 0x402bba
push eax
call fcn.00402b0c
pop ecx
jmp 0x402bc7
push 0
push 0
push eax
call fcn.004028b2
add esp, 0xc
lea eax, [ebp - 0x544]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402b58
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404d71
leave
ret
Function at 0x402bf9
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x412326
call fcn.00405348
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.00404e10
mov dword [ebp - 0x3c], ebx
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [ebp - 0x20]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00402fed
push 1
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.004046c0
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov byte [ebp - 4], 1
mov edi, 0x80
cmp dword [ebp + 0x18], ebx
je 0x402c7d
lea ecx, [ebp - 0x2c]
call fcn.004046de
push ebx
push edi
push 3
push eax
push 3
push 0x80000000
push dword [ebp + 0x18]
call esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp + 0x1c], ebx
je 0x402ca6
lea ecx, [ebp - 0x2c]
call fcn.004046de
push ebx
push edi
push 4
push eax
push 3
push 0x40000000
push dword [ebp + 0x1c]
call esi
mov edi, eax
mov dword [ebp - 0x14], 1
jmp 0x402ca9
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x80], 0x44
cmp dword [ebp - 0x14], ebx
je 0x402cc5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], 0x100
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp + 0x14]
push ebx
push ebx
or eax, 0x8000000
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402d0a
xor esi, esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004046dd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404700
mov eax, esi
call fcn.004053e7
ret
cmp dword [ebp + 0x10], ebx
je 0x402d26
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x10], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x402d3c
cmp dword [ebp - 0x10], ebx
je 0x402d3c
push dword [ebp - 0x10]
call esi
cmp edi, 0xffffffff
je 0x402d48
cmp edi, ebx
je 0x402d48
push edi
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
call esi
xor esi, esi
inc esi
jmp 0x402ceb
Function at 0x402d57
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x41235c
call fcn.00405348
lea ecx, [ebp - 0x14]
call fcn.00402fed
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040469d
lea ecx, [ebp - 0x1c]
call fcn.00402fed
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00404705
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
call fcn.004046c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004046de
push dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax - 0xb7]
neg esi
lea ecx, [ebp - 0x28]
sbb esi, esi
mov byte [ebp - 4], 1
call fcn.004046dd
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0040471e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00404700
lea eax, [esi + 1]
call fcn.004053e7
ret

Function at 0x402f20
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4170e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ecx]
cmp edx, 0xffffffff
je 0x402f5a
test edx, edx
je 0x402f5a
and dword [ebp - 0x20], 0
push edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
pop edi
jmp 0x402f5c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404d71
leave
ret

Function at 0x403033
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
mov eax, dword [0x4170e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x403059
xor eax, eax
jmp 0x4030d6
push 0xc00
lea eax, [ebp - 0xc04]
push 0
push eax
mov dword [ebp - 0xc10], 1
call fcn.00404e10
and dword [ebp - 0xc08], 0
add esp, 0xc
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0xc10]
push eax
push 0
push ebx
push dword [edi]
mov dword [ebp - 0xc0c], 0xbff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4030cd
push dword [ebp + 0x10]
lea eax, [ebp - 0xc04]
push eax
push esi
mov dword [ebp - 0xc08], 1
call fcn.00406960
add esp, 0xc
jmp 0x4030d0
mov byte [esi], 0
mov eax, dword [ebp - 0xc08]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404d71
leave
ret 0xc
Function at 0x4031c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push str._system_
push esi
call fcn.0040f049
pop ecx
pop ecx
test eax, eax
jne 0x4031ec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
inc eax
jmp 0x403254
push str._system32_
push esi
call fcn.0040f049
pop ecx
pop ecx
test eax, eax
jne 0x40320f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00403183
pop ecx
pop ecx
push 2
pop eax
jmp 0x403254
push str._windows_
push esi
call fcn.0040f049
pop ecx
pop ecx
test eax, eax
jne 0x403230
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 3
jmp 0x40320c
push str._driver_
push esi
call fcn.0040f049
pop ecx
pop ecx
test eax, eax
jne 0x403252
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004031a3
pop ecx
pop ecx
push 4
jmp 0x40320c
xor eax, eax
pop esi
pop ebp
ret

Function at 0x403257
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4170e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
mov esi, 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
ja 0x403293
test eax, eax
je 0x403293
lea eax, [ebp - 0x404]
push eax
jmp 0x403298
push str.c:_temp
push edi
call fcn.00406d50
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404d71
leave
ret
Function at 0x40436e
Capabilities:
Resolve dns

Disassembly:
push 0x548
mov eax, 0x412491
call fcn.004053b1
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov al, byte [esi]
mov dword [ebp - 0x4bc], edx
mov ecx, esi
jmp 0x40439e
cmp al, 0x30
jl 0x404397
cmp al, 0x39
jle 0x40439b
cmp al, 0x2e
jne 0x4043b3
inc ecx
mov al, byte [ecx]
test al, al
jne 0x40438f
push esi
push edx
call fcn.00406d50
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x4045db
push 0x3ff
xor edi, edi
lea eax, [ebp - 0x40f]
push edi
push eax
mov byte [ebp - 0x410], 0
call fcn.00404e10
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00406960
lea eax, [ebp - 0x410]
push eax
call fcn.00407dd3
push edi
call fcn.00405106
mov ebx, 0x418c78
add esp, 0x20
mov ecx, ebx
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4cc], ebx
call fcn.00404739
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], edi
call fcn.00403a39
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x4b4]
push eax
mov ecx, 0x418c68
mov byte [ebp - 4], 1
call fcn.004039d3
push edi
push 1
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 0
call fcn.00403536
mov esi, dword [ebp - 0x4b4]
cmp esi, dword [0x418c6c]
je 0x404492
mov eax, dword [ebp - 0x4c0]
sub eax, dword [esi + 0xa8]
cmp eax, 0x12c
jg 0x404492
add esi, 0x28
push esi
push dword [ebp - 0x4bc]
call fcn.00406d50
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, ebx
call fcn.00404741
jmp 0x4043ab
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x4c4], eax
cmp eax, edi
je 0x4045ce
mov dword [ebp - 0x4b8], edi
mov eax, dword [ebp - 0x4c4]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x4b8]
cmp dword [eax + ecx], edi
je 0x4045ce
mov eax, dword [eax + ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push 2
push 0x413608
push eax
mov dword [ebp - 0x4b4], eax
call fcn.00407b41
add esp, 0xc
test eax, eax
je 0x404506
push 0x413604
push dword [ebp - 0x4b4]
call fcn.00404ee0
pop ecx
pop ecx
test eax, eax
je 0x40450f
add dword [ebp - 0x4b8], 4
jmp 0x4044b3
mov eax, dword [ebp - 0x4c0]
push dword [ebp - 0x4b4]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x4b0]
push eax
call fcn.00406d50
pop ecx
pop ecx
lea eax, [ebp - 0x410]
cmp esi, dword [0x418c6c]
je 0x40457c
push eax
lea ecx, [ebp - 0x42c]
call fcn.00403a39
lea eax, [ebp - 0x42c]
push eax
mov ecx, 0x418c68
mov byte [ebp - 4], 2
call fcn.00404239
push 0x21
pop ecx
mov edi, eax
lea esi, [ebp - 0x4b0]
push 0
rep movsd dword es:[edi], dword [esi]
push 1
lea ecx, [ebp - 0x42c]
call fcn.00403536
jmp 0x4045b7
push 0x21
pop ecx
mov dword [ebp - 0x554], eax
lea esi, [ebp - 0x4b0]
lea edi, [ebp - 0x550]
rep movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0x554]
mov esi, 0x418c68
push eax
mov ecx, esi
call fcn.004042ec
push eax
lea eax, [ebp - 0x4c8]
push eax
mov ecx, esi
call fcn.00403ef3
lea eax, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4bc]
call fcn.00406d50
pop ecx
xor edi, edi
pop ecx
inc edi
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.00404741
mov eax, edi
call fcn.004053fb
ret
Function at 0x404d71
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4170e0]
jne 0x404d7b
repz ret
jmp fcn.0040946c

Function at 0x40e924
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4170e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408f08
and dword [ebp - 0x14], 0
cmp dword [0x4199c0], 0
mov dword [ebp - 0x18], eax
jne 0x40e9d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40ea7f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40ea7f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4199c0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4199c4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4199c8], eax
call edi
push eax
call esi
mov dword [0x4199d0], eax
test eax, eax
je 0x40e9d7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4199cc], eax
mov eax, dword [0x4199cc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40ea30
cmp dword [0x4199d0], ecx
je 0x40ea30
push eax
call esi
push dword [0x4199d0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40ea30
test ebx, ebx
je 0x40ea30
call edi
test eax, eax
je 0x40ea27
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40ea27
test byte [ebp - 8], 1
jne 0x40ea30
or dword [ebp + 0x10], 0x200000
jmp 0x40ea63
mov eax, dword [0x4199c4]
cmp eax, dword [ebp - 0x18]
je 0x40ea63
push eax
call esi
test eax, eax
je 0x40ea63
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40ea63
mov eax, dword [0x4199c8]
cmp eax, dword [ebp - 0x18]
je 0x40ea63
push eax
call esi
test eax, eax
je 0x40ea63
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4199c0]
call esi
test eax, eax
je 0x40ea7f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40ea81
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404d71
leave
ret